source: stable/2.7/Cbc/configure @ 1759

Last change on this file since 1759 was 1759, checked in by tkr, 8 years ago

restoring Cbc/stable/2.7

  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.7.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.7'
433PACKAGE_STRING='Cbc 2.7'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.7 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.7:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119
1120  --with-coindepend-lib linker flags for using package CoinDepend
1121  --with-coindepend-incdir
1122                          directory with header files for using package
1123                          CoinDepend
1124  --with-coindepend-datadir
1125                          directory with data files for using package
1126                          CoinDepend
1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-ositests-lib linker flags for using package OsiTests
1131  --with-ositests-incdir directory with header files for using package
1132                          OsiTests
1133  --with-ositests-datadir directory with data files for using package OsiTests
1134  --with-sample-lib linker flags for using package Sample
1135  --with-sample-incdir directory with header files for using package Sample
1136  --with-sample-datadir directory with data files for using package Sample
1137  --with-netlib-lib linker flags for using package Netlib
1138  --with-netlib-incdir directory with header files for using package Netlib
1139  --with-netlib-datadir directory with data files for using package Netlib
1140  --with-miplib3-lib linker flags for using package Miplib3
1141  --with-miplib3-incdir directory with header files for using package Miplib3
1142  --with-miplib3-datadir directory with data files for using package Miplib3
1143  --with-dylp-lib linker flags for using package DyLP
1144  --with-dylp-incdir directory with header files for using package DyLP
1145  --with-dylp-datadir directory with data files for using package DyLP
1146  --with-vol-lib linker flags for using package Vol
1147  --with-vol-incdir directory with header files for using package Vol
1148  --with-vol-datadir directory with data files for using package Vol
1149  --with-cpx-lib linker flags for using package Cpx
1150  --with-cpx-incdir directory with header files for using package Cpx
1151  --with-cpx-datadir directory with data files for using package Cpx
1152  --with-glpk-lib linker flags for using package Glpk
1153  --with-glpk-incdir directory with header files for using package Glpk
1154  --with-glpk-datadir directory with data files for using package Glpk
1155  --with-grb-lib linker flags for using package Grb
1156  --with-grb-incdir directory with header files for using package Grb
1157  --with-grb-datadir directory with data files for using package Grb
1158  --with-msk-lib linker flags for using package Msk
1159  --with-msk-incdir directory with header files for using package Msk
1160  --with-msk-datadir directory with data files for using package Msk
1161  --with-spx-lib linker flags for using package Spx
1162  --with-spx-incdir directory with header files for using package Spx
1163  --with-spx-datadir directory with data files for using package Spx
1164  --with-xpr-lib linker flags for using package Xpr
1165  --with-xpr-incdir directory with header files for using package Xpr
1166  --with-xpr-datadir directory with data files for using package Xpr
1167  --with-asl-lib linker flags for using package ASL
1168  --with-asl-incdir directory with header files for using package ASL
1169  --with-asl-datadir directory with data files for using package ASL
1170  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1171  --with-cbc-generic-solver
1172                          specify default solver for cbc-generic in lower case
1173                          letters (if not given, clp is assumed)
1174  --with-osicbc-default-solver
1175                          specify underlying solver for OsiCbc (default clp)
1176  --with-dot              use dot (from graphviz) when creating documentation
1177                          with doxygen if available; --without-dot to disable
1178
1179Some influential environment variables:
1180  CDEFS       Additional -D flags to be used when compiling C code.
1181  ADD_CFLAGS  Additional C compiler options
1182  DBG_CFLAGS  Debug C compiler options
1183  OPT_CFLAGS  Optimize C compiler options
1184  CC          C compiler command
1185  CFLAGS      C compiler flags
1186  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1187              nonstandard directory <lib dir>
1188  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1189              headers in a nonstandard directory <include dir>
1190  MPICC       C MPI Compiler
1191  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1192  ADD_CXXFLAGS
1193              Additional C++ compiler options
1194  DBG_CXXFLAGS
1195              Debug C++ compiler options
1196  OPT_CXXFLAGS
1197              Optimize C++ compiler options
1198  CXX         C++ compiler command
1199  CXXFLAGS    C++ compiler flags
1200  MPICXX      C++ MPI Compiler
1201  CPP         C preprocessor
1202  CXXCPP      C++ preprocessor
1203  F77         Fortran 77 compiler command
1204  FFLAGS      Fortran 77 compiler flags
1205  PKG_CONFIG  path to pkg-config utility
1206
1207Use these variables to override the choices made by `configure' or to help
1208it to find libraries and programs with nonstandard names/locations.
1209
1210Report bugs to <cbc@lists.coin-or.org>.
1211_ACEOF
1212fi
1213
1214if test "$ac_init_help" = "recursive"; then
1215  # If there are subdirs, report their specific --help.
1216  ac_popdir=`pwd`
1217  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218    test -d $ac_dir || continue
1219    ac_builddir=.
1220
1221if test "$ac_dir" != .; then
1222  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223  # A "../" for each directory in $ac_dir_suffix.
1224  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225else
1226  ac_dir_suffix= ac_top_builddir=
1227fi
1228
1229case $srcdir in
1230  .)  # No --srcdir option.  We are building in place.
1231    ac_srcdir=.
1232    if test -z "$ac_top_builddir"; then
1233       ac_top_srcdir=.
1234    else
1235       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236    fi ;;
1237  [\\/]* | ?:[\\/]* )  # Absolute path.
1238    ac_srcdir=$srcdir$ac_dir_suffix;
1239    ac_top_srcdir=$srcdir ;;
1240  *) # Relative path.
1241    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243esac
1244
1245# Do not use `cd foo && pwd` to compute absolute paths, because
1246# the directories may not exist.
1247case `pwd` in
1248.) ac_abs_builddir="$ac_dir";;
1249*)
1250  case "$ac_dir" in
1251  .) ac_abs_builddir=`pwd`;;
1252  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254  esac;;
1255esac
1256case $ac_abs_builddir in
1257.) ac_abs_top_builddir=${ac_top_builddir}.;;
1258*)
1259  case ${ac_top_builddir}. in
1260  .) ac_abs_top_builddir=$ac_abs_builddir;;
1261  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263  esac;;
1264esac
1265case $ac_abs_builddir in
1266.) ac_abs_srcdir=$ac_srcdir;;
1267*)
1268  case $ac_srcdir in
1269  .) ac_abs_srcdir=$ac_abs_builddir;;
1270  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272  esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_srcdir=$ac_top_srcdir;;
1276*)
1277  case $ac_top_srcdir in
1278  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281  esac;;
1282esac
1283
1284    cd $ac_dir
1285    # Check for guested configure; otherwise get Cygnus style configure.
1286    if test -f $ac_srcdir/configure.gnu; then
1287      echo
1288      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1289    elif test -f $ac_srcdir/configure; then
1290      echo
1291      $SHELL $ac_srcdir/configure  --help=recursive
1292    elif test -f $ac_srcdir/configure.ac ||
1293           test -f $ac_srcdir/configure.in; then
1294      echo
1295      $ac_configure --help
1296    else
1297      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298    fi
1299    cd $ac_popdir
1300  done
1301fi
1302
1303test -n "$ac_init_help" && exit 0
1304if $ac_init_version; then
1305  cat <<\_ACEOF
1306Cbc configure 2.7
1307generated by GNU Autoconf 2.59
1308
1309Copyright (C) 2003 Free Software Foundation, Inc.
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312
1313
1314Copyright 2006 International Business Machines and others.
1315All Rights Reserved.
1316This file is part of the open source package Coin which is distributed
1317under the Eclipse Public License.
1318_ACEOF
1319  exit 0
1320fi
1321exec 5>config.log
1322cat >&5 <<_ACEOF
1323This file contains any messages produced by compilers while
1324running configure, to aid debugging if configure makes a mistake.
1325
1326It was created by Cbc $as_me 2.7, which was
1327generated by GNU Autoconf 2.59.  Invocation command line was
1328
1329  $ $0 $@
1330
1331_ACEOF
1332{
1333cat <<_ASUNAME
1334## --------- ##
1335## Platform. ##
1336## --------- ##
1337
1338hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1339uname -m = `(uname -m) 2>/dev/null || echo unknown`
1340uname -r = `(uname -r) 2>/dev/null || echo unknown`
1341uname -s = `(uname -s) 2>/dev/null || echo unknown`
1342uname -v = `(uname -v) 2>/dev/null || echo unknown`
1343
1344/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1345/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1346
1347/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1348/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1349/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1350hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1351/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1352/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1353/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1354
1355_ASUNAME
1356
1357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358for as_dir in $PATH
1359do
1360  IFS=$as_save_IFS
1361  test -z "$as_dir" && as_dir=.
1362  echo "PATH: $as_dir"
1363done
1364
1365} >&5
1366
1367cat >&5 <<_ACEOF
1368
1369
1370## ----------- ##
1371## Core tests. ##
1372## ----------- ##
1373
1374_ACEOF
1375
1376
1377# Keep a trace of the command line.
1378# Strip out --no-create and --no-recursion so they do not pile up.
1379# Strip out --silent because we don't want to record it for future runs.
1380# Also quote any args containing shell meta-characters.
1381# Make two passes to allow for proper duplicate-argument suppression.
1382ac_configure_args=
1383ac_configure_args0=
1384ac_configure_args1=
1385ac_sep=
1386ac_must_keep_next=false
1387for ac_pass in 1 2
1388do
1389  for ac_arg
1390  do
1391    case $ac_arg in
1392    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1393    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1394    | -silent | --silent | --silen | --sile | --sil)
1395      continue ;;
1396    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1397      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1398    esac
1399    case $ac_pass in
1400    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1401    2)
1402      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1403      if test $ac_must_keep_next = true; then
1404        ac_must_keep_next=false # Got value, back to normal.
1405      else
1406        case $ac_arg in
1407          *=* | --config-cache | -C | -disable-* | --disable-* \
1408          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1409          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1410          | -with-* | --with-* | -without-* | --without-* | --x)
1411            case "$ac_configure_args0 " in
1412              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1413            esac
1414            ;;
1415          -* ) ac_must_keep_next=true ;;
1416        esac
1417      fi
1418      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1419      # Get rid of the leading space.
1420      ac_sep=" "
1421      ;;
1422    esac
1423  done
1424done
1425$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1426$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1427
1428# When interrupted or exit'd, cleanup temporary files, and complete
1429# config.log.  We remove comments because anyway the quotes in there
1430# would cause problems or look ugly.
1431# WARNING: Be sure not to use single quotes in there, as some shells,
1432# such as our DU 5.0 friend, will then `close' the trap.
1433trap 'exit_status=$?
1434  # Save into config.log some information that might help in debugging.
1435  {
1436    echo
1437
1438    cat <<\_ASBOX
1439## ---------------- ##
1440## Cache variables. ##
1441## ---------------- ##
1442_ASBOX
1443    echo
1444    # The following way of writing the cache mishandles newlines in values,
1445{
1446  (set) 2>&1 |
1447    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1448    *ac_space=\ *)
1449      sed -n \
1450        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1451          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1452      ;;
1453    *)
1454      sed -n \
1455        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1456      ;;
1457    esac;
1458}
1459    echo
1460
1461    cat <<\_ASBOX
1462## ----------------- ##
1463## Output variables. ##
1464## ----------------- ##
1465_ASBOX
1466    echo
1467    for ac_var in $ac_subst_vars
1468    do
1469      eval ac_val=$`echo $ac_var`
1470      echo "$ac_var='"'"'$ac_val'"'"'"
1471    done | sort
1472    echo
1473
1474    if test -n "$ac_subst_files"; then
1475      cat <<\_ASBOX
1476## ------------- ##
1477## Output files. ##
1478## ------------- ##
1479_ASBOX
1480      echo
1481      for ac_var in $ac_subst_files
1482      do
1483        eval ac_val=$`echo $ac_var`
1484        echo "$ac_var='"'"'$ac_val'"'"'"
1485      done | sort
1486      echo
1487    fi
1488
1489    if test -s confdefs.h; then
1490      cat <<\_ASBOX
1491## ----------- ##
1492## confdefs.h. ##
1493## ----------- ##
1494_ASBOX
1495      echo
1496      sed "/^$/d" confdefs.h | sort
1497      echo
1498    fi
1499    test "$ac_signal" != 0 &&
1500      echo "$as_me: caught signal $ac_signal"
1501    echo "$as_me: exit $exit_status"
1502  } >&5
1503  rm -f core *.core &&
1504  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1505    exit $exit_status
1506     ' 0
1507for ac_signal in 1 2 13 15; do
1508  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1509done
1510ac_signal=0
1511
1512# confdefs.h avoids OS command line length limits that DEFS can exceed.
1513rm -rf conftest* confdefs.h
1514# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1515echo >confdefs.h
1516
1517# Predefined preprocessor variables.
1518
1519cat >>confdefs.h <<_ACEOF
1520#define PACKAGE_NAME "$PACKAGE_NAME"
1521_ACEOF
1522
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_VERSION "$PACKAGE_VERSION"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_STRING "$PACKAGE_STRING"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1541_ACEOF
1542
1543
1544# Let the site file select an alternate cache file if it wants to.
1545# Prefer explicitly selected file to automatically selected ones.
1546if test -z "$CONFIG_SITE"; then
1547  if test "x$prefix" != xNONE; then
1548    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1549  else
1550    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1551  fi
1552fi
1553for ac_site_file in $CONFIG_SITE; do
1554  if test -r "$ac_site_file"; then
1555    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1556echo "$as_me: loading site script $ac_site_file" >&6;}
1557    sed 's/^/| /' "$ac_site_file" >&5
1558    . "$ac_site_file"
1559  fi
1560done
1561
1562if test -r "$cache_file"; then
1563  # Some versions of bash will fail to source /dev/null (special
1564  # files actually), so we avoid doing that.
1565  if test -f "$cache_file"; then
1566    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1567echo "$as_me: loading cache $cache_file" >&6;}
1568    case $cache_file in
1569      [\\/]* | ?:[\\/]* ) . $cache_file;;
1570      *)                      . ./$cache_file;;
1571    esac
1572  fi
1573else
1574  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1575echo "$as_me: creating cache $cache_file" >&6;}
1576  >$cache_file
1577fi
1578
1579# Check that the precious variables saved in the cache have kept the same
1580# value.
1581ac_cache_corrupted=false
1582for ac_var in `(set) 2>&1 |
1583               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1584  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1585  eval ac_new_set=\$ac_env_${ac_var}_set
1586  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1587  eval ac_new_val="\$ac_env_${ac_var}_value"
1588  case $ac_old_set,$ac_new_set in
1589    set,)
1590      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1591echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1592      ac_cache_corrupted=: ;;
1593    ,set)
1594      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1595echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1596      ac_cache_corrupted=: ;;
1597    ,);;
1598    *)
1599      if test "x$ac_old_val" != "x$ac_new_val"; then
1600        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1601echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1602        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1603echo "$as_me:   former value:  $ac_old_val" >&2;}
1604        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1605echo "$as_me:   current value: $ac_new_val" >&2;}
1606        ac_cache_corrupted=:
1607      fi;;
1608  esac
1609  # Pass precious variables to config.status.
1610  if test "$ac_new_set" = set; then
1611    case $ac_new_val in
1612    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1613      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1614    *) ac_arg=$ac_var=$ac_new_val ;;
1615    esac
1616    case " $ac_configure_args " in
1617      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1618      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1619    esac
1620  fi
1621done
1622if $ac_cache_corrupted; then
1623  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1624echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1625  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1626echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1627   { (exit 1); exit 1; }; }
1628fi
1629
1630ac_ext=c
1631ac_cpp='$CPP $CPPFLAGS'
1632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1660
1661
1662
1663
1664
1665# List one file in the package so that the configure script can test
1666# whether the package is actually there
1667
1668
1669# Where should everything be installed by default?  Here, we want it
1670# to be installed directly in 'bin', 'lib', 'include' subdirectories
1671# of the directory where configure is run.  The default would be
1672# /usr/local.
1673
1674
1675#############################################################################
1676#                         Standard build tool stuff                         #
1677#############################################################################
1678
1679# Get the system type
1680ac_aux_dir=
1681for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1682  if test -f $ac_dir/install-sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install-sh -c"
1685    break
1686  elif test -f $ac_dir/install.sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install.sh -c"
1689    break
1690  elif test -f $ac_dir/shtool; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/shtool install -c"
1693    break
1694  fi
1695done
1696if test -z "$ac_aux_dir"; then
1697  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1698echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1699   { (exit 1); exit 1; }; }
1700fi
1701ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1702ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1703ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1704
1705# Make sure we can run config.sub.
1706$ac_config_sub sun4 >/dev/null 2>&1 ||
1707  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1708echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1709   { (exit 1); exit 1; }; }
1710
1711echo "$as_me:$LINENO: checking build system type" >&5
1712echo $ECHO_N "checking build system type... $ECHO_C" >&6
1713if test "${ac_cv_build+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  ac_cv_build_alias=$build_alias
1717test -z "$ac_cv_build_alias" &&
1718  ac_cv_build_alias=`$ac_config_guess`
1719test -z "$ac_cv_build_alias" &&
1720  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1721echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1722   { (exit 1); exit 1; }; }
1723ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1724  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1725echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1726   { (exit 1); exit 1; }; }
1727
1728fi
1729echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1730echo "${ECHO_T}$ac_cv_build" >&6
1731build=$ac_cv_build
1732build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735
1736
1737
1738# If this project depends on external projects, the Externals file in
1739# the source root directory contains definition of where to find those
1740# externals.  The following macro ensures that those externals are
1741# retrieved by svn if they are not there yet.
1742
1743# As backup, we make sure we don't loose an FLIBS if it has been set
1744# by the user
1745save_FLIBS="$FLIBS"
1746
1747# A useful makefile conditional that is always false
1748
1749
1750if false; then
1751  ALWAYS_FALSE_TRUE=
1752  ALWAYS_FALSE_FALSE='#'
1753else
1754  ALWAYS_FALSE_TRUE='#'
1755  ALWAYS_FALSE_FALSE=
1756fi
1757
1758
1759# We set the following variable so that we know later in AC_COIN_FINALIZE
1760# that we are in a project main directory
1761coin_projectdir=yes
1762
1763# Set the project's version numbers
1764
1765
1766cat >>confdefs.h <<_ACEOF
1767#define CBC_VERSION "$PACKAGE_VERSION"
1768_ACEOF
1769
1770
1771  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1772  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1773  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1774  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1775  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1776  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1777
1778cat >>confdefs.h <<_ACEOF
1779#define CBC_VERSION_MAJOR $coin_majorver
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MINOR $coin_minorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_RELEASE $coin_releasever
1790_ACEOF
1791
1792
1793  # We use the following variable to have a string with the upper case
1794  # version of the project name
1795  COIN_PRJCT=CBC
1796
1797  # Set the project's SVN revision number. The complicated sed expression
1798  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1799  # as a single number.
1800  # Extract the first word of "svnversion", so it can be a program name with args.
1801set dummy svnversion; ac_word=$2
1802echo "$as_me:$LINENO: checking for $ac_word" >&5
1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_have_svnversion+set}" = set; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  if test -n "$have_svnversion"; then
1808  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1809else
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813  IFS=$as_save_IFS
1814  test -z "$as_dir" && as_dir=.
1815  for ac_exec_ext in '' $ac_executable_extensions; do
1816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817    ac_cv_prog_have_svnversion="yes"
1818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819    break 2
1820  fi
1821done
1822done
1823
1824  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1825fi
1826fi
1827have_svnversion=$ac_cv_prog_have_svnversion
1828if test -n "$have_svnversion"; then
1829  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1830echo "${ECHO_T}$have_svnversion" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836  if test "x$have_svnversion" = xyes; then
1837
1838    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1839    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1840      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1841
1842cat >>confdefs.h <<_ACEOF
1843#define CBC_SVN_REV $CBC_SVN_REV
1844_ACEOF
1845
1846    fi
1847  fi
1848
1849
1850
1851# Capture libtool library version, if given.
1852
1853
1854
1855
1856# Check if user wants to produce debugging code
1857
1858echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1859echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1860
1861# Check whether --enable-debug or --disable-debug was given.
1862if test "${enable_debug+set}" = set; then
1863  enableval="$enable_debug"
1864  case "${enableval}" in
1865   yes) coin_debug_compile=true
1866        if test "${enable_shared+set}" = set; then :; else
1867          enable_shared=no
1868        fi
1869        ;;
1870   no)  coin_debug_compile=false
1871        ;;
1872   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1873echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1874   { (exit 1); exit 1; }; }
1875        ;;
1876esac
1877else
1878  coin_debug_compile=false
1879fi;
1880
1881# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1882if test "${enable_debug_cbc+set}" = set; then
1883  enableval="$enable_debug_cbc"
1884  case "${enableval}" in
1885    yes) coin_debug_compile=true
1886         ;;
1887    no)  coin_debug_compile=false
1888         ;;
1889    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1890echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1891   { (exit 1); exit 1; }; }
1892         ;;
1893 esac
1894else
1895  :
1896fi;
1897
1898 # m4_ifvaln([Cbc],
1899
1900if test $coin_debug_compile = true; then
1901  echo "$as_me:$LINENO: result: yes" >&5
1902echo "${ECHO_T}yes" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908
1909# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1910if test "${with_cbc_verbosity+set}" = set; then
1911  withval="$with_cbc_verbosity"
1912  if test "$withval" = yes; then
1913                withval=1
1914              fi
1915              coin_cbc_verbosity=$withval
1916else
1917  coin_cbc_verbosity=0
1918fi;
1919
1920cat >>confdefs.h <<_ACEOF
1921#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1922_ACEOF
1923
1924
1925
1926# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1927if test "${with_cbc_checklevel+set}" = set; then
1928  withval="$with_cbc_checklevel"
1929  if test "$withval" = yes; then
1930                withval=1
1931              fi
1932              coin_cbc_checklevel=$withval
1933else
1934  coin_cbc_checklevel=0
1935fi;
1936
1937cat >>confdefs.h <<_ACEOF
1938#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1939_ACEOF
1940
1941
1942 # m4_ifvaln([Cbc],
1943
1944
1945
1946# Get the name of the C++ compiler and appropriate compiler options
1947case $build in
1948  *-mingw*)
1949    if test "${LD+set}" = set; then :; else
1950      LD=link
1951    fi
1952    ;;
1953 esac
1954 case $enable_doscompile in
1955   msvc)
1956     if test "x${LD+set}" = xset; then :; else
1957       LD=link
1958     fi
1959     ;;
1960 esac
1961
1962
1963 # Check whether --enable-doscompile or --disable-doscompile was given.
1964if test "${enable_doscompile+set}" = set; then
1965  enableval="$enable_doscompile"
1966  if test "$enable_doscompile" != no; then
1967     case $build in
1968       *-cygwin* | *-mingw*) ;;
1969       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1970echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1971   { (exit 1); exit 1; }; } ;;
1972     esac
1973   fi
1974else
1975  enable_doscompile=no
1976fi;
1977 case "$enable_doscompile" in
1978   mingw)
1979     case $build in
1980       *-mingw*) enable_doscompile=no ;;
1981     esac
1982     ;;
1983   msvc|no) ;;
1984   yes) enable_doscompile=mingw ;;
1985   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1986                    Try configure --help=recursive." >&5
1987echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1988                    Try configure --help=recursive." >&2;}
1989   { (exit 1); exit 1; }; }
1990      ;;
1991  esac
1992  if test "$enable_doscompile" != no ; then
1993    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1994echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1995  fi
1996
1997
1998
1999
2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007# For consistency, we set the C compiler to the same value of the C++
2008# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2009if test x"$CXX" != x; then
2010  case "$CXX" in
2011    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2012      if test x"$CC" = x; then
2013        CC="$CXX"
2014        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2015echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2016      fi
2017      ;;
2018  esac
2019fi
2020
2021
2022
2023
2024
2025
2026coin_has_cc=yes
2027
2028save_cflags="$CFLAGS"
2029
2030# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2031# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2032# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2033# compiler. In this case, put cc after gcc.
2034
2035case $build in
2036  *-cygwin* | *-mingw*)
2037             if test "$enable_doscompile" = msvc ; then
2038               comps="icl cl"
2039             else
2040               comps="gcc cl"
2041             fi ;;
2042  *-*-solaris*)
2043             # Extract the first word of "cc", so it can be a program name with args.
2044set dummy cc; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$sol_cc_compiler"; then
2051  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2052else
2053  ac_prog_rejected=no
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062       ac_prog_rejected=yes
2063       continue
2064     fi
2065    ac_cv_prog_sol_cc_compiler="cc"
2066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067    break 2
2068  fi
2069done
2070done
2071
2072if test $ac_prog_rejected = yes; then
2073  # We found a bogon in the path, so make sure we never use it.
2074  set dummy $ac_cv_prog_sol_cc_compiler
2075  shift
2076  if test $# != 0; then
2077    # We chose a different compiler from the bogus one.
2078    # However, it has the same basename, so the bogon will be chosen
2079    # first if we set sol_cc_compiler to just the basename; use the full file name.
2080    shift
2081    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2082  fi
2083fi
2084fi
2085fi
2086sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2087if test -n "$sol_cc_compiler"; then
2088  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2089echo "${ECHO_T}$sol_cc_compiler" >&6
2090else
2091  echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6
2093fi
2094
2095             if test "$sol_cc_compiler" = "cc" ; then
2096               comps="cc xlc gcc pgcc icc"
2097             else
2098               comps="xlc gcc pgcc icc cc"
2099             fi
2100             ;;
2101  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2102  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2103  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2104esac
2105
2106# We delete the cached value, since the test might not have been
2107# performed with our choice of compilers earlier
2108$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2109# AC_MSG_NOTICE([C compiler candidates: $comps])
2110ac_ext=c
2111ac_cpp='$CPP $CPPFLAGS'
2112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2114ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115if test -n "$ac_tool_prefix"; then
2116  for ac_prog in $comps
2117  do
2118    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120echo "$as_me:$LINENO: checking for $ac_word" >&5
2121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122if test "${ac_cv_prog_CC+set}" = set; then
2123  echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125  if test -n "$CC"; then
2126  ac_cv_prog_CC="$CC" # Let the user override the test.
2127else
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131  IFS=$as_save_IFS
2132  test -z "$as_dir" && as_dir=.
2133  for ac_exec_ext in '' $ac_executable_extensions; do
2134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137    break 2
2138  fi
2139done
2140done
2141
2142fi
2143fi
2144CC=$ac_cv_prog_CC
2145if test -n "$CC"; then
2146  echo "$as_me:$LINENO: result: $CC" >&5
2147echo "${ECHO_T}$CC" >&6
2148else
2149  echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6
2151fi
2152
2153    test -n "$CC" && break
2154  done
2155fi
2156if test -z "$CC"; then
2157  ac_ct_CC=$CC
2158  for ac_prog in $comps
2159do
2160  # Extract the first word of "$ac_prog", so it can be a program name with args.
2161set dummy $ac_prog; ac_word=$2
2162echo "$as_me:$LINENO: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  if test -n "$ac_ct_CC"; then
2168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175  for ac_exec_ext in '' $ac_executable_extensions; do
2176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177    ac_cv_prog_ac_ct_CC="$ac_prog"
2178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179    break 2
2180  fi
2181done
2182done
2183
2184fi
2185fi
2186ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187if test -n "$ac_ct_CC"; then
2188  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189echo "${ECHO_T}$ac_ct_CC" >&6
2190else
2191  echo "$as_me:$LINENO: result: no" >&5
2192echo "${ECHO_T}no" >&6
2193fi
2194
2195  test -n "$ac_ct_CC" && break
2196done
2197
2198  CC=$ac_ct_CC
2199fi
2200
2201
2202test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: no acceptable C compiler found in \$PATH
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207
2208# Provide some information about the compiler.
2209echo "$as_me:$LINENO:" \
2210     "checking for C compiler version" >&5
2211ac_compiler=`set X $ac_compile; echo $2`
2212{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2213  (eval $ac_compiler --version </dev/null >&5) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2218  (eval $ac_compiler -v </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2223  (eval $ac_compiler -V </dev/null >&5) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227
2228cat >conftest.$ac_ext <<_ACEOF
2229/* confdefs.h.  */
2230_ACEOF
2231cat confdefs.h >>conftest.$ac_ext
2232cat >>conftest.$ac_ext <<_ACEOF
2233/* end confdefs.h.  */
2234
2235int
2236main ()
2237{
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243ac_clean_files_save=$ac_clean_files
2244ac_clean_files="$ac_clean_files a.out a.exe b.out"
2245# Try to create an executable without -o first, disregard a.out.
2246# It will help us diagnose broken compilers, and finding out an intuition
2247# of exeext.
2248echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2249echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2250ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2251if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2252  (eval $ac_link_default) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # Find the output, starting from the most likely.  This scheme is
2257# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2258# resort.
2259
2260# Be careful to initialize this variable, since it used to be cached.
2261# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2262ac_cv_exeext=
2263# b.out is created by i960 compilers.
2264for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2265do
2266  test -f "$ac_file" || continue
2267  case $ac_file in
2268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2269        ;;
2270    conftest.$ac_ext )
2271        # This is the source file.
2272        ;;
2273    [ab].out )
2274        # We found the default executable, but exeext='' is most
2275        # certainly right.
2276        break;;
2277    *.* )
2278        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279        # FIXME: I believe we export ac_cv_exeext for Libtool,
2280        # but it would be cool to find out if it's true.  Does anybody
2281        # maintain Libtool? --akim.
2282        export ac_cv_exeext
2283        break;;
2284    * )
2285        break;;
2286  esac
2287done
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: C compiler cannot create executables
2295See \`config.log' for more details." >&2;}
2296   { (exit 77); exit 77; }; }
2297fi
2298
2299ac_exeext=$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_file" >&5
2301echo "${ECHO_T}$ac_file" >&6
2302
2303# Check the compiler produces executables we can run.  If not, either
2304# the compiler is broken, or we cross compile.
2305echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2306echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2307# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2308# If not cross compiling, check that we can run a simple program.
2309if test "$cross_compiling" != yes; then
2310  if { ac_try='./$ac_file'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; }; then
2316    cross_compiling=no
2317  else
2318    if test "$cross_compiling" = maybe; then
2319        cross_compiling=yes
2320    else
2321        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot run C compiled programs.
2325If you meant to cross compile, use \`--host'.
2326See \`config.log' for more details." >&2;}
2327   { (exit 1); exit 1; }; }
2328    fi
2329  fi
2330fi
2331echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
2333
2334rm -f a.out a.exe conftest$ac_cv_exeext b.out
2335ac_clean_files=$ac_clean_files_save
2336# Check the compiler produces executables we can run.  If not, either
2337# the compiler is broken, or we cross compile.
2338echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2339echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2340echo "$as_me:$LINENO: result: $cross_compiling" >&5
2341echo "${ECHO_T}$cross_compiling" >&6
2342
2343echo "$as_me:$LINENO: checking for suffix of executables" >&5
2344echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346  (eval $ac_link) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2352# work properly (i.e., refer to `conftest.exe'), while it won't with
2353# `rm'.
2354for ac_file in conftest.exe conftest conftest.*; do
2355  test -f "$ac_file" || continue
2356  case $ac_file in
2357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2358    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359          export ac_cv_exeext
2360          break;;
2361    * ) break;;
2362  esac
2363done
2364else
2365  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2366See \`config.log' for more details." >&5
2367echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371
2372rm -f conftest$ac_cv_exeext
2373echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2374echo "${ECHO_T}$ac_cv_exeext" >&6
2375
2376rm -f conftest.$ac_ext
2377EXEEXT=$ac_cv_exeext
2378ac_exeext=$EXEEXT
2379echo "$as_me:$LINENO: checking for suffix of object files" >&5
2380echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2381if test "${ac_cv_objext+set}" = set; then
2382  echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384  cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h.  */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h.  */
2390
2391int
2392main ()
2393{
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.o conftest.obj
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; then
2405  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2406  case $ac_file in
2407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2408    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409       break;;
2410  esac
2411done
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot compute suffix of object files: cannot compile
2419See \`config.log' for more details." >&2;}
2420   { (exit 1); exit 1; }; }
2421fi
2422
2423rm -f conftest.$ac_cv_objext conftest.$ac_ext
2424fi
2425echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2426echo "${ECHO_T}$ac_cv_objext" >&6
2427OBJEXT=$ac_cv_objext
2428ac_objext=$OBJEXT
2429echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2430echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2431if test "${ac_cv_c_compiler_gnu+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444#ifndef __GNUC__
2445       choke me
2446#endif
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2474  ac_compiler_gnu=yes
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479ac_compiler_gnu=no
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482ac_cv_c_compiler_gnu=$ac_compiler_gnu
2483
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2486echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2487GCC=`test $ac_compiler_gnu = yes && echo yes`
2488ac_test_CFLAGS=${CFLAGS+set}
2489ac_save_CFLAGS=$CFLAGS
2490CFLAGS="-g"
2491echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2492echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2493if test "${ac_cv_prog_cc_g+set}" = set; then
2494  echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496  cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h.  */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h.  */
2502
2503int
2504main ()
2505{
2506
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2533  ac_cv_prog_cc_g=yes
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538ac_cv_prog_cc_g=no
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541fi
2542echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2544if test "$ac_test_CFLAGS" = set; then
2545  CFLAGS=$ac_save_CFLAGS
2546elif test $ac_cv_prog_cc_g = yes; then
2547  if test "$GCC" = yes; then
2548    CFLAGS="-g -O2"
2549  else
2550    CFLAGS="-g"
2551  fi
2552else
2553  if test "$GCC" = yes; then
2554    CFLAGS="-O2"
2555  else
2556    CFLAGS=
2557  fi
2558fi
2559echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2560echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2561if test "${ac_cv_prog_cc_stdc+set}" = set; then
2562  echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564  ac_cv_prog_cc_stdc=no
2565ac_save_CC=$CC
2566cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572#include <stdarg.h>
2573#include <stdio.h>
2574#include <sys/types.h>
2575#include <sys/stat.h>
2576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2577struct buf { int x; };
2578FILE * (*rcsopen) (struct buf *, struct stat *, int);
2579static char *e (p, i)
2580     char **p;
2581     int i;
2582{
2583  return p[i];
2584}
2585static char *f (char * (*g) (char **, int), char **p, ...)
2586{
2587  char *s;
2588  va_list v;
2589  va_start (v,p);
2590  s = g (p, va_arg (v,int));
2591  va_end (v);
2592  return s;
2593}
2594
2595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2596   function prototypes and stuff, but not '\xHH' hex character constants.
2597   These don't provoke an error unfortunately, instead are silently treated
2598   as 'x'.  The following induces an error, until -std1 is added to get
2599   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2600   array size at least.  It's necessary to write '\x00'==0 to get something
2601   that's true only with -std1.  */
2602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2603
2604int test (int i, double x);
2605struct s1 {int (*f) (int a);};
2606struct s2 {int (*f) (double a);};
2607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2608int argc;
2609char **argv;
2610int
2611main ()
2612{
2613return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2614  ;
2615  return 0;
2616}
2617_ACEOF
2618# Don't try gcc -ansi; that turns off useful extensions and
2619# breaks some systems' header files.
2620# AIX                   -qlanglvl=ansi
2621# Ultrix and OSF/1      -std1
2622# HP-UX 10.20 and later -Ae
2623# HP-UX older versions  -Aa -D_HPUX_SOURCE
2624# SVR4                  -Xc -D__EXTENSIONS__
2625for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2626do
2627  CC="$ac_save_CC $ac_arg"
2628  rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -z "$ac_c_werror_flag"
2638                         || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2650  ac_cv_prog_cc_stdc=$ac_arg
2651break
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656fi
2657rm -f conftest.err conftest.$ac_objext
2658done
2659rm -f conftest.$ac_ext conftest.$ac_objext
2660CC=$ac_save_CC
2661
2662fi
2663
2664case "x$ac_cv_prog_cc_stdc" in
2665  x|xno)
2666    echo "$as_me:$LINENO: result: none needed" >&5
2667echo "${ECHO_T}none needed" >&6 ;;
2668  *)
2669    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2670echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2671    CC="$CC $ac_cv_prog_cc_stdc" ;;
2672esac
2673
2674# Some people use a C++ compiler to compile C.  Since we use `exit',
2675# in C++ we need to declare it.  In case someone uses the same compiler
2676# for both compiling C and C++ we need to have the C++ compiler decide
2677# the declaration of exit, since it's the most demanding environment.
2678cat >conftest.$ac_ext <<_ACEOF
2679#ifndef __cplusplus
2680  choke me
2681#endif
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685  (eval $ac_compile) 2>conftest.er1
2686  ac_status=$?
2687  grep -v '^ *+' conftest.er1 >conftest.err
2688  rm -f conftest.er1
2689  cat conftest.err >&5
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); } &&
2692         { ac_try='test -z "$ac_c_werror_flag"
2693                         || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2705  for ac_declaration in \
2706   '' \
2707   'extern "C" void std::exit (int) throw (); using std::exit;' \
2708   'extern "C" void std::exit (int); using std::exit;' \
2709   'extern "C" void exit (int) throw ();' \
2710   'extern "C" void exit (int);' \
2711   'void exit (int);'
2712do
2713  cat >conftest.$ac_ext <<_ACEOF
2714/* confdefs.h.  */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h.  */
2719$ac_declaration
2720#include <stdlib.h>
2721int
2722main ()
2723{
2724exit (42);
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2751  :
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756continue
2757fi
2758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759  cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h.  */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h.  */
2765$ac_declaration
2766int
2767main ()
2768{
2769exit (42);
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776  (eval $ac_compile) 2>conftest.er1
2777  ac_status=$?
2778  grep -v '^ *+' conftest.er1 >conftest.err
2779  rm -f conftest.er1
2780  cat conftest.err >&5
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); } &&
2783         { ac_try='test -z "$ac_c_werror_flag"
2784                         || test ! -s conftest.err'
2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786  (eval $ac_try) 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }; } &&
2790         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2796  break
2797else
2798  echo "$as_me: failed program was:" >&5
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803done
2804rm -f conftest*
2805if test -n "$ac_declaration"; then
2806  echo '#ifdef __cplusplus' >>confdefs.h
2807  echo $ac_declaration      >>confdefs.h
2808  echo '#endif'             >>confdefs.h
2809fi
2810
2811else
2812  echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
2816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823if test -z "$CC" ; then
2824  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2825echo "$as_me: error: Failed to find a C compiler!" >&2;}
2826   { (exit 1); exit 1; }; }
2827fi
2828# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2829case "$CC" in
2830  cl* | */cl* | CL* | */CL* )
2831    if test "$ac_cv_prog_cc_g" = yes ; then
2832      ac_cv_prog_cc_g=no
2833      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2834echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2835    fi ;;
2836esac
2837CFLAGS="$save_cflags"
2838
2839# add automake conditional so we can recognize cl compiler in makefile
2840coin_cc_is_cl=false
2841case "$CC" in
2842  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2843    coin_cc_is_cl=true
2844    ;;
2845esac
2846
2847
2848if test $coin_cc_is_cl = true; then
2849  COIN_CC_IS_CL_TRUE=
2850  COIN_CC_IS_CL_FALSE='#'
2851else
2852  COIN_CC_IS_CL_TRUE='#'
2853  COIN_CC_IS_CL_FALSE=
2854fi
2855
2856
2857# Check if a project specific CFLAGS variable has been set
2858if test x$COIN_PRJCT != x; then
2859  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2860  if test x$coin_tmp = xset; then
2861    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2862  fi
2863fi
2864
2865if test x"$CFLAGS" = x; then
2866
2867  coin_add_cflags=
2868  coin_opt_cflags=
2869  coin_dbg_cflags=
2870  coin_warn_cflags=
2871
2872  if test "$GCC" = "yes"; then
2873    case "$CC" in
2874      icc* | */icc*)
2875        ;;
2876      *)
2877        coin_opt_cflags="-O3"
2878        coin_add_cflags="-pipe"
2879        coin_dbg_cflags="-g -O0"
2880        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2881        case $build in
2882          *-darwin*)
2883            ;;
2884          *)
2885            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2886            ;;
2887        esac
2888        case $enable_doscompile in
2889          mingw)
2890            CFLAGS="-mno-cygwin"
2891            cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901int i=0; i++;
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915         { ac_try='test -z "$ac_c_werror_flag"
2916                         || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922         { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933fi
2934rm -f conftest.err conftest.$ac_objext \
2935      conftest$ac_exeext conftest.$ac_ext
2936            CFLAGS=
2937          ;;
2938        esac
2939    esac
2940  fi
2941  if test -z "$coin_opt_cflags"; then
2942    case $build in
2943      *-cygwin* | *-mingw*)
2944        case "$CC" in
2945          cl* | */cl* | CL* | */CL*)
2946            coin_opt_cflags='-MT -O2'
2947            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2948            coin_dbg_cflags='-MTd'
2949            ;;
2950          icl* | */icl* | ICL* | */ICL*)
2951            coin_opt_cflags='-MT -Ox'
2952            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2953            coin_dbg_cflags='-MTd -debug'
2954            ;;
2955        esac
2956        ;;
2957      *-linux-*)
2958        case "$CC" in
2959          icc* | */icc*)
2960            coin_opt_cflags="-O3 -ip -mp1"
2961            coin_add_cflags=""
2962            coin_dbg_cflags="-g"
2963            # Check if -i_dynamic is necessary (for new glibc library)
2964            CFLAGS=
2965            cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975int i=0; i++;
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext conftest$ac_exeext
2981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982  (eval $ac_link) 2>conftest.er1
2983  ac_status=$?
2984  grep -v '^ *+' conftest.er1 >conftest.err
2985  rm -f conftest.er1
2986  cat conftest.err >&5
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); } &&
2989         { ac_try='test -z "$ac_c_werror_flag"
2990                         || test ! -s conftest.err'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; } &&
2996         { ac_try='test -s conftest$ac_exeext'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  :
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007coin_add_cflags="-i_dynamic $coin_add_cflags"
3008fi
3009rm -f conftest.err conftest.$ac_objext \
3010      conftest$ac_exeext conftest.$ac_ext
3011            ;;
3012          pgcc* | */pgcc*)
3013            coin_opt_cflags="-fast"
3014            coin_add_cflags="-Kieee -pc 64"
3015            coin_dbg_cflags="-g"
3016            ;;
3017        esac
3018        ;;
3019      *-ibm-*)
3020        case "$CC" in
3021          xlc* | */xlc* | mpxlc* | */mpxlc*)
3022            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3023            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3024            coin_dbg_cflags="-g"
3025          ;;
3026        esac
3027        ;;
3028      *-hp-*)
3029        coin_opt_cflags="-O"
3030        coin_add_cflags="-Ae"
3031        coin_dbg_cflags="-g"
3032        ;;
3033      *-*-solaris*)
3034        coin_opt_cflags="-xO4"
3035        coin_dbg_cflags="-g"
3036        ;;
3037      *-sgi-*)
3038        coin_opt_cflags="-O -OPT:Olimit=0"
3039        coin_dbg_cflags="-g"
3040        ;;
3041    esac
3042  fi
3043
3044  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3045    coin_dbg_cflags="-g"
3046  fi
3047
3048  if test -z "$coin_opt_cflags"; then
3049    # Try if -O option works if nothing else is set
3050    CFLAGS="-O"
3051    cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061int i=0; i++;
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext conftest$ac_exeext
3067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3068  (eval $ac_link) 2>conftest.er1
3069  ac_status=$?
3070  grep -v '^ *+' conftest.er1 >conftest.err
3071  rm -f conftest.er1
3072  cat conftest.err >&5
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); } &&
3075         { ac_try='test -z "$ac_c_werror_flag"
3076                         || test ! -s conftest.err'
3077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078  (eval $ac_try) 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; } &&
3082         { ac_try='test -s conftest$ac_exeext'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; }; then
3088  coin_opt_cflags="-O"
3089else
3090  echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093fi
3094rm -f conftest.err conftest.$ac_objext \
3095      conftest$ac_exeext conftest.$ac_ext
3096  fi
3097
3098  # if PM doesn't want the warning messages, take them out
3099  if test x"$coin_skip_warn_cflags" = xyes; then
3100    coin_warn_cflags=
3101  fi
3102
3103  if test x${DBG_CFLAGS+set} != xset; then
3104    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3105  fi
3106  if test x${OPT_CFLAGS+set} != xset; then
3107    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3108  fi
3109
3110  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3111  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3112
3113  if test "$coin_debug_compile" = "true"; then
3114    CFLAGS="$DBG_CFLAGS"
3115  else
3116    CFLAGS="$OPT_CFLAGS"
3117  fi
3118else
3119  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3120  if test x${DBG_CFLAGS+set} != xset; then
3121    DBG_CFLAGS="$CFLAGS"
3122  fi
3123  if test x${OPT_CFLAGS+set} != xset; then
3124    OPT_CFLAGS="$CFLAGS"
3125  fi
3126fi
3127
3128# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3129
3130case "$CFLAGS" in
3131  *-mno-cygwin*)
3132    if test x${CPPFLAGS+set} != xset ; then
3133      CPPFLAGS="-mno-cygwin"
3134    else
3135      case "$CPPFLAGS" in
3136        *-mno-cygwin*)
3137          ;;
3138        *)
3139          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3140          ;;
3141      esac
3142    fi ;;
3143esac
3144
3145# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3146if test x$COIN_PRJCT != x; then
3147  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3148fi
3149
3150# Try if CFLAGS works
3151save_CFLAGS="$CFLAGS"
3152cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162int i=0; i++;
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
3168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169  (eval $ac_link) 2>conftest.er1
3170  ac_status=$?
3171  grep -v '^ *+' conftest.er1 >conftest.err
3172  rm -f conftest.er1
3173  cat conftest.err >&5
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); } &&
3176         { ac_try='test -z "$ac_c_werror_flag"
3177                         || test ! -s conftest.err'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183         { ac_try='test -s conftest$ac_exeext'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; }; then
3189  :
3190else
3191  echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194CFLAGS=
3195fi
3196rm -f conftest.err conftest.$ac_objext \
3197      conftest$ac_exeext conftest.$ac_ext
3198if test -z "$CFLAGS"; then
3199  { 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
3200echo "$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;}
3201  CFLAGS='-O'
3202  cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212int i=0; i++;
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext conftest$ac_exeext
3218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3219  (eval $ac_link) 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } &&
3226         { ac_try='test -z "$ac_c_werror_flag"
3227                         || test ! -s conftest.err'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; } &&
3233         { ac_try='test -s conftest$ac_exeext'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  :
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244CFLAGS=
3245fi
3246rm -f conftest.err conftest.$ac_objext \
3247      conftest$ac_exeext conftest.$ac_ext
3248  if test -z "$CFLAGS"; then
3249    { 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
3250echo "$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;}
3251  fi
3252fi
3253
3254{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3255echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3256
3257
3258if test x"$MPICC" = x; then :; else
3259  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3260echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3261  CC="$MPICC"
3262fi
3263
3264# Correct the LD variable if we are using the MS or Intel-windows compiler
3265case "$CC" in
3266  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3267    case $build in
3268  *-mingw*)
3269    if test "${LD+set}" = set; then :; else
3270      LD=link
3271    fi
3272    ;;
3273 esac
3274 case $enable_doscompile in
3275   msvc)
3276     if test "x${LD+set}" = xset; then :; else
3277       LD=link
3278     fi
3279     ;;
3280 esac
3281
3282    ;;
3283esac
3284
3285ac_ext=c
3286ac_cpp='$CPP $CPPFLAGS'
3287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292
3293 #Let's try if that overcomes configuration problem with VC++ 6.0
3294
3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300
3301
3302
3303
3304
3305
3306
3307coin_has_cxx=yes
3308
3309save_cxxflags="$CXXFLAGS"
3310# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3311case $build in
3312  *-cygwin* | *-mingw*)
3313             if test "$enable_doscompile" = msvc ; then
3314               comps="icl cl"
3315             else
3316               comps="g++ cl"
3317             fi ;;
3318  *-*-solaris*)
3319             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3320  *-darwin*) comps="g++ c++ CC" ;;
3321  *-linux-gnu*)
3322             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3323          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3324esac
3325
3326# We delete the cached value, since the test might not have been
3327# performed with our choice of compilers earlier
3328$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3329# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3330ac_ext=cc
3331ac_cpp='$CXXCPP $CPPFLAGS'
3332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3335if test -n "$ac_tool_prefix"; then
3336  for ac_prog in $CCC $comps
3337  do
3338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_CXX+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  if test -n "$CXX"; then
3346  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353  for ac_exec_ext in '' $ac_executable_extensions; do
3354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360done
3361
3362fi
3363fi
3364CXX=$ac_cv_prog_CXX
3365if test -n "$CXX"; then
3366  echo "$as_me:$LINENO: result: $CXX" >&5
3367echo "${ECHO_T}$CXX" >&6
3368else
3369  echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371fi
3372
3373    test -n "$CXX" && break
3374  done
3375fi
3376if test -z "$CXX"; then
3377  ac_ct_CXX=$CXX
3378  for ac_prog in $CCC $comps
3379do
3380  # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382echo "$as_me:$LINENO: checking for $ac_word" >&5
3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  if test -n "$ac_ct_CXX"; then
3388  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393  IFS=$as_save_IFS
3394  test -z "$as_dir" && as_dir=.
3395  for ac_exec_ext in '' $ac_executable_extensions; do
3396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397    ac_cv_prog_ac_ct_CXX="$ac_prog"
3398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402done
3403
3404fi
3405fi
3406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3407if test -n "$ac_ct_CXX"; then
3408  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3409echo "${ECHO_T}$ac_ct_CXX" >&6
3410else
3411  echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413fi
3414
3415  test -n "$ac_ct_CXX" && break
3416done
3417test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3418
3419  CXX=$ac_ct_CXX
3420fi
3421
3422
3423# Provide some information about the compiler.
3424echo "$as_me:$LINENO:" \
3425     "checking for C++ compiler version" >&5
3426ac_compiler=`set X $ac_compile; echo $2`
3427{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3428  (eval $ac_compiler --version </dev/null >&5) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }
3432{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3433  (eval $ac_compiler -v </dev/null >&5) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }
3437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3438  (eval $ac_compiler -V </dev/null >&5) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }
3442
3443echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3444echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3445if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h.  */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458#ifndef __GNUC__
3459       choke me
3460#endif
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466rm -f conftest.$ac_objext
3467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468  (eval $ac_compile) 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } &&
3475         { ac_try='test -z "$ac_cxx_werror_flag"
3476                         || test ! -s conftest.err'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; } &&
3482         { ac_try='test -s conftest.$ac_objext'
3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484  (eval $ac_try) 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }; }; then
3488  ac_compiler_gnu=yes
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493ac_compiler_gnu=no
3494fi
3495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497
3498fi
3499echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3500echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3501GXX=`test $ac_compiler_gnu = yes && echo yes`
3502ac_test_CXXFLAGS=${CXXFLAGS+set}
3503ac_save_CXXFLAGS=$CXXFLAGS
3504CXXFLAGS="-g"
3505echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3506echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3507if test "${ac_cv_prog_cxx_g+set}" = set; then
3508  echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510  cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527  (eval $ac_compile) 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } &&
3534         { ac_try='test -z "$ac_cxx_werror_flag"
3535                         || test ! -s conftest.err'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; } &&
3541         { ac_try='test -s conftest.$ac_objext'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  ac_cv_prog_cxx_g=yes
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552ac_cv_prog_cxx_g=no
3553fi
3554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3557echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3558if test "$ac_test_CXXFLAGS" = set; then
3559  CXXFLAGS=$ac_save_CXXFLAGS
3560elif test $ac_cv_prog_cxx_g = yes; then
3561  if test "$GXX" = yes; then
3562    CXXFLAGS="-g -O2"
3563  else
3564    CXXFLAGS="-g"
3565  fi
3566else
3567  if test "$GXX" = yes; then
3568    CXXFLAGS="-O2"
3569  else
3570    CXXFLAGS=
3571  fi
3572fi
3573for ac_declaration in \
3574   '' \
3575   'extern "C" void std::exit (int) throw (); using std::exit;' \
3576   'extern "C" void std::exit (int); using std::exit;' \
3577   'extern "C" void exit (int) throw ();' \
3578   'extern "C" void exit (int);' \
3579   'void exit (int);'
3580do
3581  cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h.  */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h.  */
3587$ac_declaration
3588#include <stdlib.h>
3589int
3590main ()
3591{
3592exit (42);
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599  (eval $ac_compile) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_cxx_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest.$ac_objext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  :
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624continue
3625fi
3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627  cat >conftest.$ac_ext <<_ACEOF
3628/* confdefs.h.  */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h.  */
3633$ac_declaration
3634int
3635main ()
3636{
3637exit (42);
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642rm -f conftest.$ac_objext
3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644  (eval $ac_compile) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } &&
3651         { ac_try='test -z "$ac_cxx_werror_flag"
3652                         || test ! -s conftest.err'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; } &&
3658         { ac_try='test -s conftest.$ac_objext'
3659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660  (eval $ac_try) 2>&5
3661  ac_status=$?
3662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663  (exit $ac_status); }; }; then
3664  break
3665else
3666  echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669fi
3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671done
3672rm -f conftest*
3673if test -n "$ac_declaration"; then
3674  echo '#ifdef __cplusplus' >>confdefs.h
3675  echo $ac_declaration      >>confdefs.h
3676  echo '#endif'             >>confdefs.h
3677fi
3678
3679ac_ext=cc
3680ac_cpp='$CXXCPP $CPPFLAGS'
3681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3684
3685
3686#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3687#thus, we test here whether $CXX is actually working
3688ac_ext=cc
3689ac_cpp='$CXXCPP $CPPFLAGS'
3690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693
3694echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3695echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3696cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h.  */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h.  */
3702
3703int
3704main ()
3705{
3706int i=0;
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext
3712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713  (eval $ac_compile) 2>conftest.er1
3714  ac_status=$?
3715  grep -v '^ *+' conftest.er1 >conftest.err
3716  rm -f conftest.er1
3717  cat conftest.err >&5
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); } &&
3720         { ac_try='test -z "$ac_cxx_werror_flag"
3721                         || test ! -s conftest.err'
3722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723  (eval $ac_try) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; } &&
3727         { ac_try='test -s conftest.$ac_objext'
3728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729  (eval $ac_try) 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); }; }; then
3733  echo "$as_me:$LINENO: result: yes" >&5
3734echo "${ECHO_T}yes" >&6
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3742echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3743   { (exit 1); exit 1; }; }
3744
3745fi
3746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747ac_ext=cc
3748ac_cpp='$CXXCPP $CPPFLAGS'
3749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3752
3753
3754coin_cxx_is_cl=false
3755# It seems that we need to cleanup something here for the Windows
3756case "$CXX" in
3757  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3758    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3759    mv confdefs.hh confdefs.h
3760    coin_cxx_is_cl=true
3761    ;;
3762esac
3763
3764# add automake conditional so we can recognize cl compiler in makefile
3765
3766
3767if test $coin_cxx_is_cl = true; then
3768  COIN_CXX_IS_CL_TRUE=
3769  COIN_CXX_IS_CL_FALSE='#'
3770else
3771  COIN_CXX_IS_CL_TRUE='#'
3772  COIN_CXX_IS_CL_FALSE=
3773fi
3774
3775
3776# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3777case "$CXX" in
3778  cl* | */cl* | CL* | */CL* )
3779    if test "$ac_cv_prog_cxx_g" = yes ; then
3780      ac_cv_prog_cxx_g=no
3781      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3782echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3783    fi ;;
3784esac
3785CXXFLAGS="$save_cxxflags"
3786
3787# Check if a project specific CXXFLAGS variable has been set
3788if test x$COIN_PRJCT != x; then
3789  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3790  if test x$coin_tmp = xset; then
3791    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3792  fi
3793fi
3794
3795if test x"$CXXFLAGS" = x; then
3796
3797# ToDo decide whether we want -DNDEBUG for optimization
3798  coin_add_cxxflags=
3799  coin_opt_cxxflags=
3800  coin_dbg_cxxflags=
3801  coin_warn_cxxflags=
3802
3803  if test "$GXX" = "yes"; then
3804    case "$CXX" in
3805      icpc* | */icpc*)
3806        ;;
3807      *)
3808# ToDo decide about unroll-loops
3809        coin_opt_cxxflags="-O3"
3810        coin_add_cxxflags="-pipe"
3811        coin_dbg_cxxflags="-g -O0"
3812        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3813        case $build in
3814          *-darwin*)
3815            ;;
3816          *)
3817            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3818            ;;
3819        esac
3820
3821        case $enable_doscompile in
3822          mingw)
3823            CXXFLAGS="-mno-cygwin"
3824            cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834int i=0; i++;
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_cxx_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866fi
3867rm -f conftest.err conftest.$ac_objext \
3868      conftest$ac_exeext conftest.$ac_ext
3869            CXXFLAGS=
3870          ;;
3871        esac
3872    esac
3873  fi
3874
3875# Note that we do not need to cover GCC in the following tests.
3876
3877  if test -z "$coin_opt_cxxflags"; then
3878    case $build in
3879      *-cygwin* | *-mingw*)
3880        case "$CXX" in
3881          cl* | */cl* | CL* | */CL*)
3882            # The MT and MTd options are mutually exclusive
3883            coin_opt_cxxflags='-MT -O2'
3884            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3885            coin_dbg_cxxflags='-MTd'
3886            ;;
3887          icl* | */icl* | ICL* | */ICL*)
3888            # The MT and MTd options are mutually exclusive
3889            coin_opt_cxxflags='-MT -Ox'
3890            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3891            coin_dbg_cxxflags='-MTd -debug'
3892            ;;
3893        esac
3894        ;;
3895      *-linux-*)
3896        case "$CXX" in
3897          icpc* | */icpc*)
3898            coin_opt_cxxflags="-O3 -ip -mp1"
3899            coin_add_cxxflags=""
3900            coin_dbg_cxxflags="-g"
3901            # Check if -i_dynamic is necessary (for new glibc library)
3902            CXXFLAGS=
3903            cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913int i=0; i++;
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext conftest$ac_exeext
3919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920  (eval $ac_link) 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } &&
3927         { ac_try='test -z "$ac_cxx_werror_flag"
3928                         || test ! -s conftest.err'
3929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930  (eval $ac_try) 2>&5
3931  ac_status=$?
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); }; } &&
3934         { ac_try='test -s conftest$ac_exeext'
3935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936  (eval $ac_try) 2>&5
3937  ac_status=$?
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); }; }; then
3940  :
3941else
3942  echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3946fi
3947rm -f conftest.err conftest.$ac_objext \
3948      conftest$ac_exeext conftest.$ac_ext
3949            ;;
3950          pgCC* | */pgCC*)
3951            coin_opt_cxxflags="-fast"
3952            coin_add_cxxflags="-Kieee -pc 64"
3953            coin_dbg_cxxflags="-g"
3954            ;;
3955        esac
3956        ;;
3957      *-ibm-*)
3958        case "$CXX" in
3959          xlC* | */xlC* | mpxlC* | */mpxlC*)
3960            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3961            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3962            coin_dbg_cxxflags="-g"
3963            ;;
3964        esac
3965        ;;
3966      *-hp-*)
3967        case "$CXX" in
3968          aCC* | */aCC* )
3969            coin_opt_cxxflags="-O"
3970            coin_add_cxxflags="-AA"
3971            coin_dbg_cxxflags="-g"
3972            ;;
3973        esac
3974        ;;
3975      *-*-solaris*)
3976          coin_opt_cxxflags="-O4"
3977          coin_dbg_cxxflags="-g"
3978        ;;
3979    esac
3980  fi
3981
3982# Generic flag settings. If these don't work, add a case above.
3983
3984  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3985    coin_dbg_cxxflags="-g"
3986  fi
3987
3988  if test -z "$coin_opt_cxxflags"; then
3989    # Try if -O option works if nothing else is set
3990    CXXFLAGS=-O
3991    cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001int i=0; i++;
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_cxx_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  coin_opt_cxxflags="-O"
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033fi
4034rm -f conftest.err conftest.$ac_objext \
4035      conftest$ac_exeext conftest.$ac_ext
4036  fi
4037
4038  # if PM doesn't want the warning messages, take them out
4039  if test x"$coin_skip_warn_cxxflags" = xyes; then
4040    coin_warn_cxxflags=
4041  fi
4042
4043# Do final setup of flags based on values determined above.
4044
4045  if test x${DBG_CXXFLAGS+set} != xset; then
4046    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4047  fi
4048  if test x${OPT_CXXFLAGS+set} != xset; then
4049    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4050  fi
4051
4052  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4053  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4054
4055  if test "$coin_debug_compile" = "true"; then
4056    CXXFLAGS="$DBG_CXXFLAGS"
4057  else
4058    CXXFLAGS="$OPT_CXXFLAGS"
4059  fi
4060
4061# Handle the case where CXXFLAGS was set externally.
4062else
4063  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4064  if test x${DBG_CXXFLAGS+set} != xset; then
4065    DBG_CXXFLAGS="$CXXFLAGS"
4066  fi
4067  if test x${OPT_CXXFLAGS+set} != xset; then
4068    OPT_CXXFLAGS="$CXXFLAGS"
4069  fi
4070fi
4071
4072# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4073
4074case "$CXXFLAGS" in
4075  *-mno-cygwin*)
4076    if test x${CPPFLAGS+set} != xset ; then
4077      CPPFLAGS="-mno-cygwin"
4078    else
4079      case "$CPPFLAGS" in
4080        *-mno-cygwin*)
4081          ;;
4082        *)
4083          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4084          ;;
4085      esac
4086    fi ;;
4087esac
4088
4089# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4090if test x$COIN_PRJCT != x; then
4091  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4092fi
4093
4094# Try if CXXFLAGS works
4095save_CXXFLAGS="$CXXFLAGS"
4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h.  */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106int i=0; i++;
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111rm -f conftest.$ac_objext conftest$ac_exeext
4112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113  (eval $ac_link) 2>conftest.er1
4114  ac_status=$?
4115  grep -v '^ *+' conftest.er1 >conftest.err
4116  rm -f conftest.er1
4117  cat conftest.err >&5
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); } &&
4120         { ac_try='test -z "$ac_cxx_werror_flag"
4121                         || test ! -s conftest.err'
4122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123  (eval $ac_try) 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; } &&
4127         { ac_try='test -s conftest$ac_exeext'
4128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129  (eval $ac_try) 2>&5
4130  ac_status=$?
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); }; }; then
4133  :
4134else
4135  echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138CXXFLAGS=
4139fi
4140rm -f conftest.err conftest.$ac_objext \
4141      conftest$ac_exeext conftest.$ac_ext
4142if test -z "$CXXFLAGS"; then
4143  { 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
4144echo "$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;}
4145  CXXFLAGS='-O'
4146  cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h.  */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h.  */
4152
4153int
4154main ()
4155{
4156int i=0; i++;
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161rm -f conftest.$ac_objext conftest$ac_exeext
4162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4163  (eval $ac_link) 2>conftest.er1
4164  ac_status=$?
4165  grep -v '^ *+' conftest.er1 >conftest.err
4166  rm -f conftest.er1
4167  cat conftest.err >&5
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); } &&
4170         { ac_try='test -z "$ac_cxx_werror_flag"
4171                         || test ! -s conftest.err'
4172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173  (eval $ac_try) 2>&5
4174  ac_status=$?
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); }; } &&
4177         { ac_try='test -s conftest$ac_exeext'
4178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179  (eval $ac_try) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }; }; then
4183  :
4184else
4185  echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188CXXFLAGS=
4189fi
4190rm -f conftest.err conftest.$ac_objext \
4191      conftest$ac_exeext conftest.$ac_ext
4192  if test -z "$CXXFLAGS"; then
4193    { 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
4194echo "$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;}
4195  fi
4196fi
4197
4198{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4199echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4200
4201
4202if test x"$MPICXX" = x; then :; else
4203  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4204echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4205  CXX="$MPICXX"
4206fi
4207
4208# correct the LD variable in a mingw build with MS or intel compiler
4209case "$CXX" in
4210  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4211    case $build in
4212  *-mingw*)
4213    if test "${LD+set}" = set; then :; else
4214      LD=link
4215    fi
4216    ;;
4217 esac
4218 case $enable_doscompile in
4219   msvc)
4220     if test "x${LD+set}" = xset; then :; else
4221       LD=link
4222     fi
4223     ;;
4224 esac
4225
4226    ;;
4227esac
4228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235
4236
4237# Initialize automake and libtool
4238{
4239
4240
4241
4242# START
4243
4244# Test if force_shared has been set
4245if test "x" = xforce_shared; then
4246  if test x$enable_shared = xno; then
4247    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4248echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4249   { (exit 1); exit 1; }; }
4250  fi
4251  enable_shared=yes;
4252else
4253  # On Cygwin and AIX, building DLLs doesn't work
4254  case $build in
4255    *-cygwin*)
4256      coin_disable_shared=yes
4257      platform=Cygwin
4258    ;;
4259    *-aix*)
4260      coin_disable_shared=yes
4261      platform=AIX
4262    ;;
4263    *-mingw*)
4264      coin_disable_shared=yes
4265      platform="Msys"
4266#      case "$CXX" in
4267#        cl*)
4268#          coin_disable_shared=yes
4269#          platform="Msys with cl"
4270#      ;;
4271#      esac
4272    ;;
4273  esac
4274fi
4275if test x"$coin_disable_shared" = xyes; then
4276  if test x"$enable_shared" = xyes; then
4277    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4278echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4279  fi
4280  enable_shared=no
4281fi
4282# By default, we only want the shared objects to be compiled
4283# Check whether --enable-static or --disable-static was given.
4284if test "${enable_static+set}" = set; then
4285  enableval="$enable_static"
4286  p=${PACKAGE-default}
4287    case $enableval in
4288    yes) enable_static=yes ;;
4289    no) enable_static=no ;;
4290    *)
4291     enable_static=no
4292      # Look at the argument we got.  We use all the common list separators.
4293      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4294      for pkg in $enableval; do
4295        IFS="$lt_save_ifs"
4296        if test "X$pkg" = "X$p"; then
4297          enable_static=yes
4298        fi
4299      done
4300      IFS="$lt_save_ifs"
4301      ;;
4302    esac
4303else
4304  enable_static=no
4305fi;
4306
4307
4308
4309
4310# Initialize automake
4311echo "$as_me:$LINENO: checking for egrep" >&5
4312echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4313if test "${ac_cv_prog_egrep+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4317    then ac_cv_prog_egrep='grep -E'
4318    else ac_cv_prog_egrep='egrep'
4319    fi
4320fi
4321echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4322echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4323 EGREP=$ac_cv_prog_egrep
4324
4325
4326echo "$as_me:$LINENO: checking whether ln -s works" >&5
4327echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4328LN_S=$as_ln_s
4329if test "$LN_S" = "ln -s"; then
4330  echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332else
4333  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4334echo "${ECHO_T}no, using $LN_S" >&6
4335fi
4336
4337am__api_version="1.9"
4338# Find a good install program.  We prefer a C program (faster),
4339# so one script is as good as another.  But avoid the broken or
4340# incompatible versions:
4341# SysV /etc/install, /usr/sbin/install
4342# SunOS /usr/etc/install
4343# IRIX /sbin/install
4344# AIX /bin/install
4345# AmigaOS /C/install, which installs bootblocks on floppy discs
4346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4347# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4349# OS/2's system install, which has a completely different semantic
4350# ./install, which can be erroneously created by make from ./install.sh.
4351echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4352echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4353if test -z "$INSTALL"; then
4354if test "${ac_cv_path_install+set}" = set; then
4355  echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362  # Account for people who put trailing slashes in PATH elements.
4363case $as_dir/ in
4364  ./ | .// | /cC/* | \
4365  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4366  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4367  /usr/ucb/* ) ;;
4368  *)
4369    # OSF1 and SCO ODT 3.0 have their own names for install.
4370    # Don't use installbsd from OSF since it installs stuff as root
4371    # by default.
4372    for ac_prog in ginstall scoinst install; do
4373      for ac_exec_ext in '' $ac_executable_extensions; do
4374        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4375          if test $ac_prog = install &&
4376            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4377            # AIX install.  It has an incompatible calling convention.
4378            :
4379          elif test $ac_prog = install &&
4380            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4381            # program-specific install script used by HP pwplus--don't use.
4382            :
4383          else
4384            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4385            break 3
4386          fi
4387        fi
4388      done
4389    done
4390    ;;
4391esac
4392done
4393
4394
4395fi
4396  if test "${ac_cv_path_install+set}" = set; then
4397    INSTALL=$ac_cv_path_install
4398  else
4399    # As a last resort, use the slow shell script.  We don't cache a
4400    # path for INSTALL within a source directory, because that will
4401    # break other packages using the cache if that directory is
4402    # removed, or if the path is relative.
4403    INSTALL=$ac_install_sh
4404  fi
4405fi
4406echo "$as_me:$LINENO: result: $INSTALL" >&5
4407echo "${ECHO_T}$INSTALL" >&6
4408
4409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4410# It thinks the first close brace ends the variable substitution.
4411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4412
4413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4414
4415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4416
4417echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4418echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4419# Just in case
4420sleep 1
4421echo timestamp > conftest.file
4422# Do `set' in a subshell so we don't clobber the current shell's
4423# arguments.  Must try -L first in case configure is actually a
4424# symlink; some systems play weird games with the mod time of symlinks
4425# (eg FreeBSD returns the mod time of the symlink's containing
4426# directory).
4427if (
4428   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4429   if test "$*" = "X"; then
4430      # -L didn't work.
4431      set X `ls -t $srcdir/configure conftest.file`
4432   fi
4433   rm -f conftest.file
4434   if test "$*" != "X $srcdir/configure conftest.file" \
4435      && test "$*" != "X conftest.file $srcdir/configure"; then
4436
4437      # If neither matched, then we have a broken ls.  This can happen
4438      # if, for instance, CONFIG_SHELL is bash and it inherits a
4439      # broken ls alias from the environment.  This has actually
4440      # happened.  Such a system could not be considered "sane".
4441      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4442alias in your environment" >&5
4443echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4444alias in your environment" >&2;}
4445   { (exit 1); exit 1; }; }
4446   fi
4447
4448   test "$2" = conftest.file
4449   )
4450then
4451   # Ok.
4452   :
4453else
4454   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4455Check your system clock" >&5
4456echo "$as_me: error: newly created file is older than distributed files!
4457Check your system clock" >&2;}
4458   { (exit 1); exit 1; }; }
4459fi
4460echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462test "$program_prefix" != NONE &&
4463  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4464# Use a double $ so make ignores it.
4465test "$program_suffix" != NONE &&
4466  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4467# Double any \ or $.  echo might interpret backslashes.
4468# By default was `s,x,x', remove it if useless.
4469cat <<\_ACEOF >conftest.sed
4470s/[\\$]/&&/g;s/;s,x,x,$//
4471_ACEOF
4472program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4473rm conftest.sed
4474
4475# expand $ac_aux_dir to an absolute path
4476am_aux_dir=`cd $ac_aux_dir && pwd`
4477
4478test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4479# Use eval to expand $SHELL
4480if eval "$MISSING --run true"; then
4481  am_missing_run="$MISSING --run "
4482else
4483  am_missing_run=
4484  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4485echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4486fi
4487
4488if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4489  # We used to keeping the `.' as first argument, in order to
4490  # allow $(mkdir_p) to be used without argument.  As in
4491  #   $(mkdir_p) $(somedir)
4492  # where $(somedir) is conditionally defined.  However this is wrong
4493  # for two reasons:
4494  #  1. if the package is installed by a user who cannot write `.'
4495  #     make install will fail,
4496  #  2. the above comment should most certainly read
4497  #     $(mkdir_p) $(DESTDIR)$(somedir)
4498  #     so it does not work when $(somedir) is undefined and
4499  #     $(DESTDIR) is not.
4500  #  To support the latter case, we have to write
4501  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4502  #  so the `.' trick is pointless.
4503  mkdir_p='mkdir -p --'
4504else
4505  # On NextStep and OpenStep, the `mkdir' command does not
4506  # recognize any option.  It will interpret all options as
4507  # directories to create, and then abort because `.' already
4508  # exists.
4509  for d in ./-p ./--version;
4510  do
4511    test -d $d && rmdir $d
4512  done
4513  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4514  if test -f "$ac_aux_dir/mkinstalldirs"; then
4515    mkdir_p='$(mkinstalldirs)'
4516  else
4517    mkdir_p='$(install_sh) -d'
4518  fi
4519fi
4520
4521for ac_prog in gawk mawk nawk awk
4522do
4523  # Extract the first word of "$ac_prog", so it can be a program name with args.
4524set dummy $ac_prog; ac_word=$2
4525echo "$as_me:$LINENO: checking for $ac_word" >&5
4526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527if test "${ac_cv_prog_AWK+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  if test -n "$AWK"; then
4531  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538  for ac_exec_ext in '' $ac_executable_extensions; do
4539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_prog_AWK="$ac_prog"
4541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545done
4546
4547fi
4548fi
4549AWK=$ac_cv_prog_AWK
4550if test -n "$AWK"; then
4551  echo "$as_me:$LINENO: result: $AWK" >&5
4552echo "${ECHO_T}$AWK" >&6
4553else
4554  echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6
4556fi
4557
4558  test -n "$AWK" && break
4559done
4560
4561echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4562echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4563set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4564if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567  cat >conftest.make <<\_ACEOF
4568all:
4569        @echo 'ac_maketemp="$(MAKE)"'
4570_ACEOF
4571# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4572eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4573if test -n "$ac_maketemp"; then
4574  eval ac_cv_prog_make_${ac_make}_set=yes
4575else
4576  eval ac_cv_prog_make_${ac_make}_set=no
4577fi
4578rm -f conftest.make
4579fi
4580if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4581  echo "$as_me:$LINENO: result: yes" >&5
4582echo "${ECHO_T}yes" >&6
4583  SET_MAKE=
4584else
4585  echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587  SET_MAKE="MAKE=${MAKE-make}"
4588fi
4589
4590rm -rf .tst 2>/dev/null
4591mkdir .tst 2>/dev/null
4592if test -d .tst; then
4593  am__leading_dot=.
4594else
4595  am__leading_dot=_
4596fi
4597rmdir .tst 2>/dev/null
4598
4599DEPDIR="${am__leading_dot}deps"
4600
4601          ac_config_commands="$ac_config_commands depfiles"
4602
4603
4604am_make=${MAKE-make}
4605cat > confinc << 'END'
4606am__doit:
4607        @echo done
4608.PHONY: am__doit
4609END
4610# If we don't find an include directive, just comment out the code.
4611echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4612echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4613am__include="#"
4614am__quote=
4615_am_result=none
4616# First try GNU make style include.
4617echo "include confinc" > confmf
4618# We grep out `Entering directory' and `Leaving directory'
4619# messages which can occur if `w' ends up in MAKEFLAGS.
4620# In particular we don't look at `^make:' because GNU make might
4621# be invoked under some other name (usually "gmake"), in which
4622# case it prints its new name instead of `make'.
4623if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4624   am__include=include
4625   am__quote=
4626   _am_result=GNU
4627fi
4628# Now try BSD make style include.
4629if test "$am__include" = "#"; then
4630   echo '.include "confinc"' > confmf
4631   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4632      am__include=.include
4633      am__quote="\""
4634      _am_result=BSD
4635   fi
4636fi
4637
4638
4639echo "$as_me:$LINENO: result: $_am_result" >&5
4640echo "${ECHO_T}$_am_result" >&6
4641rm -f confinc confmf
4642
4643# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4644if test "${enable_dependency_tracking+set}" = set; then
4645  enableval="$enable_dependency_tracking"
4646
4647fi;
4648if test "x$enable_dependency_tracking" != xno; then
4649  am_depcomp="$ac_aux_dir/depcomp"
4650  AMDEPBACKSLASH='\'
4651fi
4652
4653
4654if test "x$enable_dependency_tracking" != xno; then
4655  AMDEP_TRUE=
4656  AMDEP_FALSE='#'
4657else
4658  AMDEP_TRUE='#'
4659  AMDEP_FALSE=
4660fi
4661
4662
4663
4664
4665
4666
4667# AC_MSG_NOTICE([Beginning automake initialisation.])
4668# Stuff for automake
4669# test to see if srcdir already configured
4670if test "`cd $srcdir && pwd`" != "`pwd`" &&
4671   test -f $srcdir/config.status; then
4672  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4673echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4674   { (exit 1); exit 1; }; }
4675fi
4676
4677# test whether we have cygpath
4678if test -z "$CYGPATH_W"; then
4679  if (cygpath --version) >/dev/null 2>/dev/null; then
4680    CYGPATH_W='cygpath -w'
4681  else
4682    CYGPATH_W=echo
4683  fi
4684fi
4685
4686
4687# Define the identity of the package.
4688 PACKAGE='cbc'
4689 VERSION='2.7'
4690
4691
4692cat >>confdefs.h <<_ACEOF
4693#define PACKAGE "$PACKAGE"
4694_ACEOF
4695
4696
4697cat >>confdefs.h <<_ACEOF
4698#define VERSION "$VERSION"
4699_ACEOF
4700
4701# Some tools Automake needs.
4702
4703ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4704
4705
4706AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4707
4708
4709AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4710
4711
4712AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4713
4714
4715MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4716
4717install_sh=${install_sh-"$am_aux_dir/install-sh"}
4718
4719# Installed binaries are usually stripped using `strip' when the user
4720# run `make install-strip'.  However `strip' might not be the right
4721# tool to use in cross-compilation environments, therefore Automake
4722# will honor the `STRIP' environment variable to overrule this program.
4723if test "$cross_compiling" != no; then
4724  if test -n "$ac_tool_prefix"; then
4725  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4726set dummy ${ac_tool_prefix}strip; ac_word=$2
4727echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729if test "${ac_cv_prog_STRIP+set}" = set; then
4730  echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732  if test -n "$STRIP"; then
4733  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  test -z "$as_dir" && as_dir=.
4740  for ac_exec_ext in '' $ac_executable_extensions; do
4741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744    break 2
4745  fi
4746done
4747done
4748
4749fi
4750fi
4751STRIP=$ac_cv_prog_STRIP
4752if test -n "$STRIP"; then
4753  echo "$as_me:$LINENO: result: $STRIP" >&5
4754echo "${ECHO_T}$STRIP" >&6
4755else
4756  echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6
4758fi
4759
4760fi
4761if test -z "$ac_cv_prog_STRIP"; then
4762  ac_ct_STRIP=$STRIP
4763  # Extract the first word of "strip", so it can be a program name with args.
4764set dummy strip; ac_word=$2
4765echo "$as_me:$LINENO: checking for $ac_word" >&5
4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4768  echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770  if test -n "$ac_ct_STRIP"; then
4771  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776  IFS=$as_save_IFS
4777  test -z "$as_dir" && as_dir=.
4778  for ac_exec_ext in '' $ac_executable_extensions; do
4779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780    ac_cv_prog_ac_ct_STRIP="strip"
4781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782    break 2
4783  fi
4784done
4785done
4786
4787  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4788fi
4789fi
4790ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4791if test -n "$ac_ct_STRIP"; then
4792  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4793echo "${ECHO_T}$ac_ct_STRIP" >&6
4794else
4795  echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797fi
4798
4799  STRIP=$ac_ct_STRIP
4800else
4801  STRIP="$ac_cv_prog_STRIP"
4802fi
4803
4804fi
4805INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4806
4807# We need awk for the "check" target.  The system "awk" is bad on
4808# some platforms.
4809# Always define AMTAR for backward compatibility.
4810
4811AMTAR=${AMTAR-"${am_missing_run}tar"}
4812
4813am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4814
4815
4816
4817
4818depcc="$CC"   am_compiler_list=
4819
4820echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4821echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4822if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4823  echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826  # We make a subdir and do the tests there.  Otherwise we can end up
4827  # making bogus files that we don't know about and never remove.  For
4828  # instance it was reported that on HP-UX the gcc test will end up
4829  # making a dummy file named `D' -- because `-MD' means `put the output
4830  # in D'.
4831  mkdir conftest.dir
4832  # Copy depcomp to subdir because otherwise we won't find it if we're
4833  # using a relative directory.
4834  cp "$am_depcomp" conftest.dir
4835  cd conftest.dir
4836  # We will build objects and dependencies in a subdirectory because
4837  # it helps to detect inapplicable dependency modes.  For instance
4838  # both Tru64's cc and ICC support -MD to output dependencies as a
4839  # side effect of compilation, but ICC will put the dependencies in
4840  # the current directory while Tru64 will put them in the object
4841  # directory.
4842  mkdir sub
4843
4844  am_cv_CC_dependencies_compiler_type=none
4845  if test "$am_compiler_list" = ""; then
4846     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4847  fi
4848  for depmode in $am_compiler_list; do
4849    # Setup a source with many dependencies, because some compilers
4850    # like to wrap large dependency lists on column 80 (with \), and
4851    # we should not choose a depcomp mode which is confused by this.
4852    #
4853    # We need to recreate these files for each test, as the compiler may
4854    # overwrite some of them when testing with obscure command lines.
4855    # This happens at least with the AIX C compiler.
4856    : > sub/conftest.c
4857    for i in 1 2 3 4 5 6; do
4858      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4859      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4860      # Solaris 8's {/usr,}/bin/sh.
4861      touch sub/conftst$i.h
4862    done
4863    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4864
4865    case $depmode in
4866    nosideeffect)
4867      # after this tag, mechanisms are not by side-effect, so they'll
4868      # only be used when explicitly requested
4869      if test "x$enable_dependency_tracking" = xyes; then
4870        continue
4871      else
4872        break
4873      fi
4874      ;;
4875    none) break ;;
4876    esac
4877    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4878    # mode.  It turns out that the SunPro C++ compiler does not properly
4879    # handle `-M -o', and we need to detect this.
4880    if depmode=$depmode \
4881       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4882       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4883       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4884         >/dev/null 2>conftest.err &&
4885       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4886       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4887       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4888      # icc doesn't choke on unknown options, it will just issue warnings
4889      # or remarks (even with -Werror).  So we grep stderr for any message
4890      # that says an option was ignored or not supported.
4891      # When given -MP, icc 7.0 and 7.1 complain thusly:
4892      #   icc: Command line warning: ignoring option '-M'; no argument required
4893      # The diagnosis changed in icc 8.0:
4894      #   icc: Command line remark: option '-MP' not supported
4895      if (grep 'ignoring option' conftest.err ||
4896          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4897        am_cv_CC_dependencies_compiler_type=$depmode
4898        break
4899      fi
4900    fi
4901  done
4902
4903  cd ..
4904  rm -rf conftest.dir
4905else
4906  am_cv_CC_dependencies_compiler_type=none
4907fi
4908
4909fi
4910echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4911echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4913
4914
4915
4916if
4917  test "x$enable_dependency_tracking" != xno \
4918  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4919  am__fastdepCC_TRUE=
4920  am__fastdepCC_FALSE='#'
4921else
4922  am__fastdepCC_TRUE='#'
4923  am__fastdepCC_FALSE=
4924fi
4925
4926
4927depcc="$CXX"  am_compiler_list=
4928
4929echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4930echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4931if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4932  echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4935  # We make a subdir and do the tests there.  Otherwise we can end up
4936  # making bogus files that we don't know about and never remove.  For
4937  # instance it was reported that on HP-UX the gcc test will end up
4938  # making a dummy file named `D' -- because `-MD' means `put the output
4939  # in D'.
4940  mkdir conftest.dir
4941  # Copy depcomp to subdir because otherwise we won't find it if we're
4942  # using a relative directory.
4943  cp "$am_depcomp" conftest.dir
4944  cd conftest.dir
4945  # We will build objects and dependencies in a subdirectory because
4946  # it helps to detect inapplicable dependency modes.  For instance
4947  # both Tru64's cc and ICC support -MD to output dependencies as a
4948  # side effect of compilation, but ICC will put the dependencies in
4949  # the current directory while Tru64 will put them in the object
4950  # directory.
4951  mkdir sub
4952
4953  am_cv_CXX_dependencies_compiler_type=none
4954  if test "$am_compiler_list" = ""; then
4955     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4956  fi
4957  for depmode in $am_compiler_list; do
4958    # Setup a source with many dependencies, because some compilers
4959    # like to wrap large dependency lists on column 80 (with \), and
4960    # we should not choose a depcomp mode which is confused by this.
4961    #
4962    # We need to recreate these files for each test, as the compiler may
4963    # overwrite some of them when testing with obscure command lines.
4964    # This happens at least with the AIX C compiler.
4965    : > sub/conftest.c
4966    for i in 1 2 3 4 5 6; do
4967      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4968      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4969      # Solaris 8's {/usr,}/bin/sh.
4970      touch sub/conftst$i.h
4971    done
4972    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4973
4974    case $depmode in
4975    nosideeffect)
4976      # after this tag, mechanisms are not by side-effect, so they'll
4977      # only be used when explicitly requested
4978      if test "x$enable_dependency_tracking" = xyes; then
4979        continue
4980      else
4981        break
4982      fi
4983      ;;
4984    none) break ;;
4985    esac
4986    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4987    # mode.  It turns out that the SunPro C++ compiler does not properly
4988    # handle `-M -o', and we need to detect this.
4989    if depmode=$depmode \
4990       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4991       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4993         >/dev/null 2>conftest.err &&
4994       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4995       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4996       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4997      # icc doesn't choke on unknown options, it will just issue warnings
4998      # or remarks (even with -Werror).  So we grep stderr for any message
4999      # that says an option was ignored or not supported.
5000      # When given -MP, icc 7.0 and 7.1 complain thusly:
5001      #   icc: Command line warning: ignoring option '-M'; no argument required
5002      # The diagnosis changed in icc 8.0:
5003      #   icc: Command line remark: option '-MP' not supported
5004      if (grep 'ignoring option' conftest.err ||
5005          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5006        am_cv_CXX_dependencies_compiler_type=$depmode
5007        break
5008      fi
5009    fi
5010  done
5011
5012  cd ..
5013  rm -rf conftest.dir
5014else
5015  am_cv_CXX_dependencies_compiler_type=none
5016fi
5017
5018fi
5019echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5020echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5021CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5022
5023
5024
5025if
5026  test "x$enable_dependency_tracking" != xno \
5027  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5028  am__fastdepCXX_TRUE=
5029  am__fastdepCXX_FALSE='#'
5030else
5031  am__fastdepCXX_TRUE='#'
5032  am__fastdepCXX_FALSE=
5033fi
5034
5035
5036
5037echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5038echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5039    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5040if test "${enable_maintainer_mode+set}" = set; then
5041  enableval="$enable_maintainer_mode"
5042  USE_MAINTAINER_MODE=$enableval
5043else
5044  USE_MAINTAINER_MODE=no
5045fi;
5046  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5047echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5048
5049
5050if test $USE_MAINTAINER_MODE = yes; then
5051  MAINTAINER_MODE_TRUE=
5052  MAINTAINER_MODE_FALSE='#'
5053else
5054  MAINTAINER_MODE_TRUE='#'
5055  MAINTAINER_MODE_FALSE=
5056fi
5057
5058  MAINT=$MAINTAINER_MODE_TRUE
5059
5060
5061
5062coin_have_externals=no
5063if test "$enable_maintainer_mode" = yes; then
5064
5065  # If maintainer mode is chosen, we make sure that the correct versions
5066  # of the tools are used, and that we know where libtool.m4 is (to
5067  # recreate acinclude.m4)
5068
5069
5070  LIBTOOLM4=
5071  # Normally, $HOME
5072  AUTOTOOLS_DFLT=$HOME
5073
5074  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5075echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5076if test "${ac_cv_use_correct_autotools+set}" = set; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  ac_cv_use_correct_autotools=check
5080fi
5081echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5082echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5083
5084  if test $ac_cv_use_correct_autotools = check; then
5085    ac_cv_use_correct_autotools=yes
5086    # Check if we have autoconf
5087    # Extract the first word of "autoconf", so it can be a program name with args.
5088set dummy autoconf; ac_word=$2
5089echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091if test "${ac_cv_prog_have_autoconf+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  if test -n "$have_autoconf"; then
5095  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100  IFS=$as_save_IFS
5101  test -z "$as_dir" && as_dir=.
5102  for ac_exec_ext in '' $ac_executable_extensions; do
5103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104    ac_cv_prog_have_autoconf="yes"
5105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106    break 2
5107  fi
5108done
5109done
5110
5111  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5112fi
5113fi
5114have_autoconf=$ac_cv_prog_have_autoconf
5115if test -n "$have_autoconf"; then
5116  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5117echo "${ECHO_T}$have_autoconf" >&6
5118else
5119  echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121fi
5122
5123    if test $have_autoconf = no; then
5124      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5125echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5126   { (exit 1); exit 1; }; }
5127    fi
5128
5129    # Check whether autoconf is the correct version
5130    correct_version='2.59'
5131    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5132    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5133echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5134    autoconf --version > confauto.out 2>&1
5135    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5136      echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138    else
5139      rm -f confauto.out
5140      echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5143echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5144   { (exit 1); exit 1; }; }
5145    fi
5146    rm -f confauto.out
5147
5148    # Check if the executable autoconf is picked up from the correct location
5149    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5150echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5151    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5152    autoconf_dir=`cd $autoconf_dir; pwd`
5153    if test x$AUTOTOOLS_DIR = x; then
5154      want_dir=$AUTOTOOLS_DFLT/bin
5155    else
5156      want_dir=$AUTOTOOLS_DIR/bin
5157    fi
5158    if test $autoconf_dir = `cd $want_dir; pwd`; then
5159      echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161    else
5162      rm -f confauto.out
5163      echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5166echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5167   { (exit 1); exit 1; }; }
5168    fi
5169
5170    # Check if we have automake
5171    # Extract the first word of "automake", so it can be a program name with args.
5172set dummy automake; ac_word=$2
5173echo "$as_me:$LINENO: checking for $ac_word" >&5
5174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5175if test "${ac_cv_prog_have_automake+set}" = set; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  if test -n "$have_automake"; then
5179  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186  for ac_exec_ext in '' $ac_executable_extensions; do
5187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_have_automake="yes"
5189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193done
5194
5195  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5196fi
5197fi
5198have_automake=$ac_cv_prog_have_automake
5199if test -n "$have_automake"; then
5200  echo "$as_me:$LINENO: result: $have_automake" >&5
5201echo "${ECHO_T}$have_automake" >&6
5202else
5203  echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205fi
5206
5207    if test $have_automake = no; then
5208      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5209echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5210   { (exit 1); exit 1; }; }
5211    fi
5212
5213    # Check whether automake is the correct version
5214    correct_version='1.9.6'
5215    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5216    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5217echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5218    automake --version > confauto.out 2>&1
5219    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5220      echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222    else
5223      rm -f confauto.out
5224      echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5227echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5228   { (exit 1); exit 1; }; }
5229    fi
5230    rm -f confauto.out
5231
5232    # Check if the executable automake is picked up from the correct location
5233    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5234echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5235    automake_dir=`which automake | sed -e 's=/automake=='`
5236    automake_dir=`cd $automake_dir; pwd`
5237    if test x$AUTOTOOLS_DIR = x; then
5238      want_dir=$AUTOTOOLS_DFLT/bin
5239    else
5240      want_dir=$AUTOTOOLS_DIR/bin
5241    fi
5242    if test $automake_dir = `cd $want_dir; pwd`; then
5243      echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245    else
5246      rm -f confauto.out
5247      echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5250echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5251   { (exit 1); exit 1; }; }
5252    fi
5253
5254    # Check if this is the correct version of libtool (with escaped dots)
5255    if test x$AUTOTOOLS_DIR = x; then
5256      want_dir=$AUTOTOOLS_DFLT/share
5257    else
5258      want_dir=$AUTOTOOLS_DIR/share
5259    fi
5260    correct_version='1.5.22'
5261    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5262    if test -r $want_dir/libtool/ltmain.sh; then
5263  have_ltmain=yes
5264  :
5265else
5266  have_ltmain=no
5267  :
5268fi
5269
5270    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5271echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5272    if test $have_ltmain = yes; then
5273    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5274        echo "$as_me:$LINENO: result: yes" >&5
5275echo "${ECHO_T}yes" >&6
5276      else
5277        echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6
5279        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5280echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5281   { (exit 1); exit 1; }; }
5282      fi
5283    else
5284      echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5287echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5288   { (exit 1); exit 1; }; }
5289    fi
5290  fi
5291
5292  # Check if we can find the libtool file
5293  if test x$AUTOTOOLS_DIR = x; then
5294    want_dir=$AUTOTOOLS_DFLT/share
5295  else
5296    want_dir=$AUTOTOOLS_DIR/share
5297  fi
5298  if test -r $want_dir/aclocal/libtool.m4; then
5299  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5300  :
5301else
5302  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5303echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5304   { (exit 1); exit 1; }; }
5305  :
5306fi
5307
5308
5309  # Check if we have an Dependencies file
5310  if test -r $srcdir/Dependencies; then
5311    coin_have_externals=yes
5312  fi
5313  # Check if subversion is installed and understands https
5314  # Extract the first word of "svn", so it can be a program name with args.
5315set dummy svn; ac_word=$2
5316echo "$as_me:$LINENO: checking for $ac_word" >&5
5317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318if test "${ac_cv_prog_have_svn+set}" = set; then
5319  echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321  if test -n "$have_svn"; then
5322  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327  IFS=$as_save_IFS
5328  test -z "$as_dir" && as_dir=.
5329  for ac_exec_ext in '' $ac_executable_extensions; do
5330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331    ac_cv_prog_have_svn="yes"
5332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333    break 2
5334  fi
5335done
5336done
5337
5338  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5339fi
5340fi
5341have_svn=$ac_cv_prog_have_svn
5342if test -n "$have_svn"; then
5343  echo "$as_me:$LINENO: result: $have_svn" >&5
5344echo "${ECHO_T}$have_svn" >&6
5345else
5346  echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348fi
5349
5350  if test x$have_svn = xyes; then
5351    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5352echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5353if test "${ac_cv_svn_understands_https+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356  svn --version > confauto.out 2>&1
5357                    if $EGREP https confauto.out >/dev/null 2>&1; then
5358                      ac_cv_svn_understands_https=yes
5359                    else
5360                      ac_cv_svn_understands_https=no
5361                      have_svn=no
5362                      ac_cv_prog_have_svn=no
5363                    fi
5364                    rm -f confauto.out
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5367echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5368  fi
5369
5370  # Find the location of the BuildTools directory
5371  BUILDTOOLSDIR=
5372  if test -r $srcdir/BuildTools/coin.m4; then
5373    BUILDTOOLSDIR=$srcdir/BuildTools
5374  else
5375    if test -r $srcdir/../BuildTools/coin.m4; then
5376      BUILDTOOLSDIR=$srcdir/../BuildTools
5377    else
5378      if test -r $srcdir/../../BuildTools/coin.m4; then
5379        BUILDTOOLSDIR=$srcdir/../../BuildTools
5380      else
5381        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5382echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5383   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5384      fi
5385    fi
5386  fi
5387
5388
5389  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5390  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5391    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5392  fi
5393
5394  # The following variable is set to the name of the directory where
5395  # the autotool scripts are located
5396
5397  AUX_DIR=$ac_aux_dir
5398fi
5399
5400# helpful variable for the base directory of this package
5401abs_source_dir=`cd $srcdir; pwd`
5402
5403
5404# Stuff for example Makefiles
5405if test x$prefix = xNONE; then
5406  full_prefix=$ac_default_prefix
5407else
5408  full_prefix=$prefix
5409fi
5410full_prefix=`cd $full_prefix ; pwd`
5411
5412abs_lib_dir=$full_prefix/lib
5413
5414abs_include_dir=$full_prefix/include
5415
5416abs_bin_dir=$full_prefix/bin
5417
5418
5419
5420if test $coin_have_externals = yes && test x$have_svn = xyes; then
5421  HAVE_EXTERNALS_TRUE=
5422  HAVE_EXTERNALS_FALSE='#'
5423else
5424  HAVE_EXTERNALS_TRUE='#'
5425  HAVE_EXTERNALS_FALSE=
5426fi
5427
5428
5429# AC_MSG_NOTICE([End automake initialisation.])
5430
5431
5432
5433LIBTOOL=
5434if test -r ../libtool; then
5435  coin_config_dir=..
5436  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5437fi
5438if test "x$LIBTOOL" = x; then
5439  if test -r ../../libtool; then
5440    coin_config_dir=../..
5441    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5442  fi
5443fi
5444
5445if test "x$LIBTOOL" = x; then
5446# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5447  # Stuff for libtool
5448  # Check whether --enable-shared or --disable-shared was given.
5449if test "${enable_shared+set}" = set; then
5450  enableval="$enable_shared"
5451  p=${PACKAGE-default}
5452    case $enableval in
5453    yes) enable_shared=yes ;;
5454    no) enable_shared=no ;;
5455    *)
5456      enable_shared=no
5457      # Look at the argument we got.  We use all the common list separators.
5458      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5459      for pkg in $enableval; do
5460        IFS="$lt_save_ifs"
5461        if test "X$pkg" = "X$p"; then
5462          enable_shared=yes
5463        fi
5464      done
5465      IFS="$lt_save_ifs"
5466      ;;
5467    esac
5468else
5469  enable_shared=yes
5470fi;
5471
5472# Check whether --enable-fast-install or --disable-fast-install was given.
5473if test "${enable_fast_install+set}" = set; then
5474  enableval="$enable_fast_install"
5475  p=${PACKAGE-default}
5476    case $enableval in
5477    yes) enable_fast_install=yes ;;
5478    no) enable_fast_install=no ;;
5479    *)
5480      enable_fast_install=no
5481      # Look at the argument we got.  We use all the common list separators.
5482      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5483      for pkg in $enableval; do
5484        IFS="$lt_save_ifs"
5485        if test "X$pkg" = "X$p"; then
5486          enable_fast_install=yes
5487        fi
5488      done
5489      IFS="$lt_save_ifs"
5490      ;;
5491    esac
5492else
5493  enable_fast_install=yes
5494fi;
5495
5496echo "$as_me:$LINENO: checking host system type" >&5
5497echo $ECHO_N "checking host system type... $ECHO_C" >&6
5498if test "${ac_cv_host+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501  ac_cv_host_alias=$host_alias
5502test -z "$ac_cv_host_alias" &&
5503  ac_cv_host_alias=$ac_cv_build_alias
5504ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5505  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5506echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5507   { (exit 1); exit 1; }; }
5508
5509fi
5510echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5511echo "${ECHO_T}$ac_cv_host" >&6
5512host=$ac_cv_host
5513host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5514host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5515host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5516
5517
5518echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5519echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5520if test "${lt_cv_path_SED+set}" = set; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523  # Loop through the user's path and test for sed and gsed.
5524# Then use that list of sed's as ones to test for truncation.
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528  IFS=$as_save_IFS
5529  test -z "$as_dir" && as_dir=.
5530  for lt_ac_prog in sed gsed; do
5531    for ac_exec_ext in '' $ac_executable_extensions; do
5532      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5533        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5534      fi
5535    done
5536  done
5537done
5538lt_ac_max=0
5539lt_ac_count=0
5540# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5541# along with /bin/sed that truncates output.
5542for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5543  test ! -f $lt_ac_sed && continue
5544  cat /dev/null > conftest.in
5545  lt_ac_count=0
5546  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5547  # Check for GNU sed and select it if it is found.
5548  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5549    lt_cv_path_SED=$lt_ac_sed
5550    break
5551  fi
5552  while true; do
5553    cat conftest.in conftest.in >conftest.tmp
5554    mv conftest.tmp conftest.in
5555    cp conftest.in conftest.nl
5556    echo >>conftest.nl
5557    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5558    cmp -s conftest.out conftest.nl || break
5559    # 10000 chars as input seems more than enough
5560    test $lt_ac_count -gt 10 && break
5561    lt_ac_count=`expr $lt_ac_count + 1`
5562    if test $lt_ac_count -gt $lt_ac_max; then
5563      lt_ac_max=$lt_ac_count
5564      lt_cv_path_SED=$lt_ac_sed
5565    fi
5566  done
5567done
5568
5569fi
5570
5571SED=$lt_cv_path_SED
5572echo "$as_me:$LINENO: result: $SED" >&5
5573echo "${ECHO_T}$SED" >&6
5574
5575
5576# Check whether --with-gnu-ld or --without-gnu-ld was given.
5577if test "${with_gnu_ld+set}" = set; then
5578  withval="$with_gnu_ld"
5579  test "$withval" = no || with_gnu_ld=yes
5580else
5581  with_gnu_ld=no
5582fi;
5583ac_prog=ld
5584if test "$GCC" = yes; then
5585  # Check if gcc -print-prog-name=ld gives a path.
5586  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5587echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5588  case $host in
5589  *-*-mingw*)
5590    # gcc leaves a trailing carriage return which upsets mingw
5591    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5592  *)
5593    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5594  esac
5595  case $ac_prog in
5596    # Accept absolute paths.
5597    [\\/]* | ?:[\\/]*)
5598      re_direlt='/[^/][^/]*/\.\./'
5599      # Canonicalize the pathname of ld
5600      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5601      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5602        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5603      done
5604      test -z "$LD" && LD="$ac_prog"
5605      ;;
5606  "")
5607    # If it fails, then pretend we aren't using GCC.
5608    ac_prog=ld
5609    ;;
5610  *)
5611    # If it is relative, then search for the first ld in PATH.
5612    with_gnu_ld=unknown
5613    ;;
5614  esac
5615elif test "$with_gnu_ld" = yes; then
5616  echo "$as_me:$LINENO: checking for GNU ld" >&5
5617echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5618else
5619  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5620echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5621fi
5622if test "${lt_cv_path_LD+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  if test -z "$LD"; then
5626  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5627  for ac_dir in $PATH; do
5628    IFS="$lt_save_ifs"
5629    test -z "$ac_dir" && ac_dir=.
5630    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5631      lt_cv_path_LD="$ac_dir/$ac_prog"
5632      # Check to see if the program is GNU ld.  I'd rather use --version,
5633      # but apparently some variants of GNU ld only accept -v.
5634      # Break only if it was the GNU/non-GNU ld that we prefer.
5635      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5636      *GNU* | *'with BFD'*)
5637        test "$with_gnu_ld" != no && break
5638        ;;
5639      *)
5640        test "$with_gnu_ld" != yes && break
5641        ;;
5642      esac
5643    fi
5644  done
5645  IFS="$lt_save_ifs"
5646else
5647  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5648fi
5649fi
5650
5651LD="$lt_cv_path_LD"
5652if test -n "$LD"; then
5653  echo "$as_me:$LINENO: result: $LD" >&5
5654echo "${ECHO_T}$LD" >&6
5655else
5656  echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658fi
5659test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5660echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5661   { (exit 1); exit 1; }; }
5662echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5663echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5664if test "${lt_cv_prog_gnu_ld+set}" = set; then
5665  echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5668case `$LD -v 2>&1 </dev/null` in
5669*GNU* | *'with BFD'*)
5670  lt_cv_prog_gnu_ld=yes
5671  ;;
5672*)
5673  lt_cv_prog_gnu_ld=no
5674  ;;
5675esac
5676fi
5677echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5678echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5679with_gnu_ld=$lt_cv_prog_gnu_ld
5680
5681
5682echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5683echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5684if test "${lt_cv_ld_reload_flag+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  lt_cv_ld_reload_flag='-r'
5688fi
5689echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5690echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5691reload_flag=$lt_cv_ld_reload_flag
5692case $reload_flag in
5693"" | " "*) ;;
5694*) reload_flag=" $reload_flag" ;;
5695esac
5696reload_cmds='$LD$reload_flag -o $output$reload_objs'
5697case $host_os in
5698  darwin*)
5699    if test "$GCC" = yes; then
5700      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5701    else
5702      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703    fi
5704    ;;
5705esac
5706
5707echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5708echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5709if test "${lt_cv_path_NM+set}" = set; then
5710  echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712  if test -n "$NM"; then
5713  # Let the user override the test.
5714  lt_cv_path_NM="$NM"
5715else
5716  lt_nm_to_check="${ac_tool_prefix}nm"
5717  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5718    lt_nm_to_check="$lt_nm_to_check nm"
5719  fi
5720  for lt_tmp_nm in $lt_nm_to_check; do
5721    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5722    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5723      IFS="$lt_save_ifs"
5724      test -z "$ac_dir" && ac_dir=.
5725      tmp_nm="$ac_dir/$lt_tmp_nm"
5726      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5727        # Check to see if the nm accepts a BSD-compat flag.
5728        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5729        #   nm: unknown option "B" ignored
5730        # Tru64's nm complains that /dev/null is an invalid object file
5731        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5732        */dev/null* | *'Invalid file or object type'*)
5733          lt_cv_path_NM="$tmp_nm -B"
5734          break
5735          ;;
5736        *)
5737          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5738          */dev/null*)
5739            lt_cv_path_NM="$tmp_nm -p"
5740            break
5741            ;;
5742          *)
5743            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5744            continue # so that we can try to find one that supports BSD flags
5745            ;;
5746          esac
5747          ;;
5748        esac
5749      fi
5750    done
5751    IFS="$lt_save_ifs"
5752  done
5753  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5754fi
5755fi
5756echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5757echo "${ECHO_T}$lt_cv_path_NM" >&6
5758NM="$lt_cv_path_NM"
5759
5760echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5761echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5762if test "${lt_cv_deplibs_check_method+set}" = set; then
5763  echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765  lt_cv_file_magic_cmd='$MAGIC_CMD'
5766lt_cv_file_magic_test_file=
5767lt_cv_deplibs_check_method='unknown'
5768# Need to set the preceding variable on all platforms that support
5769# interlibrary dependencies.
5770# 'none' -- dependencies not supported.
5771# `unknown' -- same as none, but documents that we really don't know.
5772# 'pass_all' -- all dependencies passed with no checks.
5773# 'test_compile' -- check by making test program.
5774# 'file_magic [[regex]]' -- check by looking for files in library path
5775# which responds to the $file_magic_cmd with a given extended regex.
5776# If you have `file' or equivalent on your system and you're not sure
5777# whether `pass_all' will *always* work, you probably want this one.
5778
5779case $host_os in
5780aix4* | aix5*)
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784beos*)
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788bsdi[45]*)
5789  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5790  lt_cv_file_magic_cmd='/usr/bin/file -L'
5791  lt_cv_file_magic_test_file=/shlib/libc.so
5792  ;;
5793
5794cygwin*)
5795  # func_win32_libid is a shell function defined in ltmain.sh
5796  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797  lt_cv_file_magic_cmd='func_win32_libid'
5798  ;;
5799
5800mingw* | pw32*)
5801  # Base MSYS/MinGW do not provide the 'file' command needed by
5802  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5803  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5804  lt_cv_file_magic_cmd='$OBJDUMP -f'
5805  ;;
5806
5807darwin* | rhapsody*)
5808  lt_cv_deplibs_check_method=pass_all
5809  ;;
5810
5811freebsd* | kfreebsd*-gnu | dragonfly*)
5812  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5813    case $host_cpu in
5814    i*86 )
5815      # Not sure whether the presence of OpenBSD here was a mistake.
5816      # Let's accept both of them until this is cleared up.
5817      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5818      lt_cv_file_magic_cmd=/usr/bin/file
5819      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5820      ;;
5821    esac
5822  else
5823    lt_cv_deplibs_check_method=pass_all
5824  fi
5825  ;;
5826
5827gnu*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831hpux10.20* | hpux11*)
5832  lt_cv_file_magic_cmd=/usr/bin/file
5833  case $host_cpu in
5834  ia64*)
5835    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5836    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5837    ;;
5838  hppa*64*)
5839    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]'
5840    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5841    ;;
5842  *)
5843    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5844    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5845    ;;
5846  esac
5847  ;;
5848
5849interix3*)
5850  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5851  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5852  ;;
5853
5854irix5* | irix6* | nonstopux*)
5855  case $LD in
5856  *-32|*"-32 ") libmagic=32-bit;;
5857  *-n32|*"-n32 ") libmagic=N32;;
5858  *-64|*"-64 ") libmagic=64-bit;;
5859  *) libmagic=never-match;;
5860  esac
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864# This must be Linux ELF.
5865linux*)
5866  lt_cv_deplibs_check_method=pass_all
5867  ;;
5868
5869netbsd*)
5870  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5871    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5872  else
5873    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5874  fi
5875  ;;
5876
5877newos6*)
5878  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5879  lt_cv_file_magic_cmd=/usr/bin/file
5880  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5881  ;;
5882
5883nto-qnx*)
5884  lt_cv_deplibs_check_method=unknown
5885  ;;
5886
5887openbsd*)
5888  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5889    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5890  else
5891    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5892  fi
5893  ;;
5894
5895osf3* | osf4* | osf5*)
5896  lt_cv_deplibs_check_method=pass_all
5897  ;;
5898
5899solaris*)
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902
5903sysv4 | sysv4.3*)
5904  case $host_vendor in
5905  motorola)
5906    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]'
5907    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5908    ;;
5909  ncr)
5910    lt_cv_deplibs_check_method=pass_all
5911    ;;
5912  sequent)
5913    lt_cv_file_magic_cmd='/bin/file'
5914    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5915    ;;
5916  sni)
5917    lt_cv_file_magic_cmd='/bin/file'
5918    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5919    lt_cv_file_magic_test_file=/lib/libc.so
5920    ;;
5921  siemens)
5922    lt_cv_deplibs_check_method=pass_all
5923    ;;
5924  pc)
5925    lt_cv_deplibs_check_method=pass_all
5926    ;;
5927  esac
5928  ;;
5929
5930sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5931  lt_cv_deplibs_check_method=pass_all
5932  ;;
5933esac
5934
5935fi
5936echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5937echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5938file_magic_cmd=$lt_cv_file_magic_cmd
5939deplibs_check_method=$lt_cv_deplibs_check_method
5940test -z "$deplibs_check_method" && deplibs_check_method=unknown
5941
5942
5943
5944
5945# If no C compiler was specified, use CC.
5946LTCC=${LTCC-"$CC"}
5947
5948# If no C compiler flags were specified, use CFLAGS.
5949LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5950
5951# Allow CC to be a program name with arguments.
5952compiler=$CC
5953
5954# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5955if test "${enable_libtool_lock+set}" = set; then
5956  enableval="$enable_libtool_lock"
5957
5958fi;
5959test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5960
5961# Some flags need to be propagated to the compiler or linker for good
5962# libtool support.
5963case $host in
5964ia64-*-hpux*)
5965  # Find out which ABI we are using.
5966  echo 'int i;' > conftest.$ac_ext
5967  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968  (eval $ac_compile) 2>&5
5969  ac_status=$?
5970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971  (exit $ac_status); }; then
5972    case `/usr/bin/file conftest.$ac_objext` in
5973    *ELF-32*)
5974      HPUX_IA64_MODE="32"
5975      ;;
5976    *ELF-64*)
5977      HPUX_IA64_MODE="64"
5978      ;;
5979    esac
5980  fi
5981  rm -rf conftest*
5982  ;;
5983*-*-irix6*)
5984  # Find out which ABI we are using.
5985  echo '#line 5985 "configure"' > conftest.$ac_ext
5986  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987  (eval $ac_compile) 2>&5
5988  ac_status=$?
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); }; then
5991   if test "$lt_cv_prog_gnu_ld" = yes; then
5992    case `/usr/bin/file conftest.$ac_objext` in
5993    *32-bit*)
5994      LD="${LD-ld} -melf32bsmip"
5995      ;;
5996    *N32*)
5997      LD="${LD-ld} -melf32bmipn32"
5998      ;;
5999    *64-bit*)
6000      LD="${LD-ld} -melf64bmip"
6001      ;;
6002    esac
6003   else
6004    case `/usr/bin/file conftest.$ac_objext` in
6005    *32-bit*)
6006      LD="${LD-ld} -32"
6007      ;;
6008    *N32*)
6009      LD="${LD-ld} -n32"
6010      ;;
6011    *64-bit*)
6012      LD="${LD-ld} -64"
6013      ;;
6014    esac
6015   fi
6016  fi
6017  rm -rf conftest*
6018  ;;
6019
6020x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6021  # Find out which ABI we are using.
6022  echo 'int i;' > conftest.$ac_ext
6023  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024  (eval $ac_compile) 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); }; then
6028    case `/usr/bin/file conftest.o` in
6029    *32-bit*)
6030      case $host in
6031        x86_64-*linux*)
6032          LD="${LD-ld} -m elf_i386"
6033          ;;
6034        ppc64-*linux*|powerpc64-*linux*)
6035          LD="${LD-ld} -m elf32ppclinux"
6036          ;;
6037        s390x-*linux*)
6038          LD="${LD-ld} -m elf_s390"
6039          ;;
6040        sparc64-*linux*)
6041          LD="${LD-ld} -m elf32_sparc"
6042          ;;
6043      esac
6044      ;;
6045    *64-bit*)
6046      case $host in
6047        x86_64-*linux*)
6048          LD="${LD-ld} -m elf_x86_64"
6049          ;;
6050        ppc*-*linux*|powerpc*-*linux*)
6051          LD="${LD-ld} -m elf64ppc"
6052          ;;
6053        s390*-*linux*)
6054          LD="${LD-ld} -m elf64_s390"
6055          ;;
6056        sparc*-*linux*)
6057          LD="${LD-ld} -m elf64_sparc"
6058          ;;
6059      esac
6060      ;;
6061    esac
6062  fi
6063  rm -rf conftest*
6064  ;;
6065
6066*-*-sco3.2v5*)
6067  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6068  SAVE_CFLAGS="$CFLAGS"
6069  CFLAGS="$CFLAGS -belf"
6070  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6071echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6072if test "${lt_cv_cc_needs_belf+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  ac_ext=c
6076ac_cpp='$CPP $CPPFLAGS'
6077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080
6081     cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h.  */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h.  */
6087
6088int
6089main ()
6090{
6091
6092  ;
6093  return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext conftest$ac_exeext
6097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6098  (eval $ac_link) 2>conftest.er1
6099  ac_status=$?
6100  grep -v '^ *+' conftest.er1 >conftest.err
6101  rm -f conftest.er1
6102  cat conftest.err >&5
6103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104  (exit $ac_status); } &&
6105         { ac_try='test -z "$ac_c_werror_flag"
6106                         || test ! -s conftest.err'
6107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108  (eval $ac_try) 2>&5
6109  ac_status=$?
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); }; } &&
6112         { ac_try='test -s conftest$ac_exeext'
6113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114  (eval $ac_try) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }; }; then
6118  lt_cv_cc_needs_belf=yes
6119else
6120  echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
6123lt_cv_cc_needs_belf=no
6124fi
6125rm -f conftest.err conftest.$ac_objext \
6126      conftest$ac_exeext conftest.$ac_ext
6127     ac_ext=c
6128ac_cpp='$CPP $CPPFLAGS'
6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133fi
6134echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6135echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6136  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6137    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6138    CFLAGS="$SAVE_CFLAGS"
6139  fi
6140  ;;
6141sparc*-*solaris*)
6142  # Find out which ABI we are using.
6143  echo 'int i;' > conftest.$ac_ext
6144  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145  (eval $ac_compile) 2>&5
6146  ac_status=$?
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); }; then
6149    case `/usr/bin/file conftest.o` in
6150    *64-bit*)
6151      case $lt_cv_prog_gnu_ld in
6152      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6153      *)    LD="${LD-ld} -64" ;;
6154      esac
6155      ;;
6156    esac
6157  fi
6158  rm -rf conftest*
6159  ;;
6160
6161
6162esac
6163
6164need_locks="$enable_libtool_lock"
6165
6166
6167ac_ext=c
6168ac_cpp='$CPP $CPPFLAGS'
6169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6173echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6174# On Suns, sometimes $CPP names a directory.
6175if test -n "$CPP" && test -d "$CPP"; then
6176  CPP=
6177fi
6178if test -z "$CPP"; then
6179  if test "${ac_cv_prog_CPP+set}" = set; then
6180  echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182      # Double quotes because CPP needs to be expanded
6183    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6184    do
6185      ac_preproc_ok=false
6186for ac_c_preproc_warn_flag in '' yes
6187do
6188  # Use a header file that comes with gcc, so configuring glibc
6189  # with a fresh cross-compiler works.
6190  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6191  # <limits.h> exists even on freestanding compilers.
6192  # On the NeXT, cc -E runs the code through the compiler's parser,
6193  # not just through cpp. "Syntax error" is here to catch this case.
6194  cat >conftest.$ac_ext <<_ACEOF
6195/* confdefs.h.  */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h.  */
6200#ifdef __STDC__
6201# include <limits.h>
6202#else
6203# include <assert.h>
6204#endif
6205                     Syntax error
6206_ACEOF
6207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6208  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6209  ac_status=$?
6210  grep -v '^ *+' conftest.er1 >conftest.err
6211  rm -f conftest.er1
6212  cat conftest.err >&5
6213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214  (exit $ac_status); } >/dev/null; then
6215  if test -s conftest.err; then
6216    ac_cpp_err=$ac_c_preproc_warn_flag
6217    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6218  else
6219    ac_cpp_err=
6220  fi
6221else
6222  ac_cpp_err=yes
6223fi
6224if test -z "$ac_cpp_err"; then
6225  :
6226else
6227  echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230  # Broken: fails on valid input.
6231continue
6232fi
6233rm -f conftest.err conftest.$ac_ext
6234
6235  # OK, works on sane cases.  Now check whether non-existent headers
6236  # can be detected and how.
6237  cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h.  */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h.  */
6243#include <ac_nonexistent.h>
6244_ACEOF
6245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6246  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6247  ac_status=$?
6248  grep -v '^ *+' conftest.er1 >conftest.err
6249  rm -f conftest.er1
6250  cat conftest.err >&5
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); } >/dev/null; then
6253  if test -s conftest.err; then
6254    ac_cpp_err=$ac_c_preproc_warn_flag
6255    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6256  else
6257    ac_cpp_err=
6258  fi
6259else
6260  ac_cpp_err=yes
6261fi
6262if test -z "$ac_cpp_err"; then
6263  # Broken: success on invalid input.
6264continue
6265else
6266  echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269  # Passes both tests.
6270ac_preproc_ok=:
6271break
6272fi
6273rm -f conftest.err conftest.$ac_ext
6274
6275done
6276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6277rm -f conftest.err conftest.$ac_ext
6278if $ac_preproc_ok; then
6279  break
6280fi
6281
6282    done
6283    ac_cv_prog_CPP=$CPP
6284
6285fi
6286  CPP=$ac_cv_prog_CPP
6287else
6288  ac_cv_prog_CPP=$CPP
6289fi
6290echo "$as_me:$LINENO: result: $CPP" >&5
6291echo "${ECHO_T}$CPP" >&6
6292ac_preproc_ok=false
6293for ac_c_preproc_warn_flag in '' yes
6294do
6295  # Use a header file that comes with gcc, so configuring glibc
6296  # with a fresh cross-compiler works.
6297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298  # <limits.h> exists even on freestanding compilers.
6299  # On the NeXT, cc -E runs the code through the compiler's parser,
6300  # not just through cpp. "Syntax error" is here to catch this case.
6301  cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h.  */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h.  */
6307#ifdef __STDC__
6308# include <limits.h>
6309#else
6310# include <assert.h>
6311#endif
6312                     Syntax error
6313_ACEOF
6314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316  ac_status=$?
6317  grep -v '^ *+' conftest.er1 >conftest.err
6318  rm -f conftest.er1
6319  cat conftest.err >&5
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); } >/dev/null; then
6322  if test -s conftest.err; then
6323    ac_cpp_err=$ac_c_preproc_warn_flag
6324    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6325  else
6326    ac_cpp_err=
6327  fi
6328else
6329  ac_cpp_err=yes
6330fi
6331if test -z "$ac_cpp_err"; then
6332  :
6333else
6334  echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337  # Broken: fails on valid input.
6338continue
6339fi
6340rm -f conftest.err conftest.$ac_ext
6341
6342  # OK, works on sane cases.  Now check whether non-existent headers
6343  # can be detected and how.
6344  cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350#include <ac_nonexistent.h>
6351_ACEOF
6352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } >/dev/null; then
6360  if test -s conftest.err; then
6361    ac_cpp_err=$ac_c_preproc_warn_flag
6362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6363  else
6364    ac_cpp_err=
6365  fi
6366else
6367  ac_cpp_err=yes
6368fi
6369if test -z "$ac_cpp_err"; then
6370  # Broken: success on invalid input.
6371continue
6372else
6373  echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376  # Passes both tests.
6377ac_preproc_ok=:
6378break
6379fi
6380rm -f conftest.err conftest.$ac_ext
6381
6382done
6383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6384rm -f conftest.err conftest.$ac_ext
6385if $ac_preproc_ok; then
6386  :
6387else
6388  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6389See \`config.log' for more details." >&5
6390echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6391See \`config.log' for more details." >&2;}
6392   { (exit 1); exit 1; }; }
6393fi
6394
6395ac_ext=c
6396ac_cpp='$CPP $CPPFLAGS'
6397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6399ac_compiler_gnu=$ac_cv_c_compiler_gnu
6400
6401
6402echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6403echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6404if test "${ac_cv_header_stdc+set}" = set; then
6405  echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407  cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h.  */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h.  */
6413#include <stdlib.h>
6414#include <stdarg.h>
6415#include <string.h>
6416#include <float.h>
6417
6418int
6419main ()
6420{
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext
6427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428  (eval $ac_compile) 2>conftest.er1
6429  ac_status=$?
6430  grep -v '^ *+' conftest.er1 >conftest.err
6431  rm -f conftest.er1
6432  cat conftest.err >&5
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); } &&
6435         { ac_try='test -z "$ac_c_werror_flag"
6436                         || test ! -s conftest.err'
6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438  (eval $ac_try) 2>&5
6439  ac_status=$?
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); }; } &&
6442         { ac_try='test -s conftest.$ac_objext'
6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444  (eval $ac_try) 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }; }; then
6448  ac_cv_header_stdc=yes
6449else
6450  echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453ac_cv_header_stdc=no
6454fi
6455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456
6457if test $ac_cv_header_stdc = yes; then
6458  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6459  cat >conftest.$ac_ext <<_ACEOF
6460/* confdefs.h.  */
6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h.  */
6465#include <string.h>
6466
6467_ACEOF
6468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469  $EGREP "memchr" >/dev/null 2>&1; then
6470  :
6471else
6472  ac_cv_header_stdc=no
6473fi
6474rm -f conftest*
6475
6476fi
6477
6478if test $ac_cv_header_stdc = yes; then
6479  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6480  cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h.  */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
6485/* end confdefs.h.  */
6486#include <stdlib.h>
6487
6488_ACEOF
6489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490  $EGREP "free" >/dev/null 2>&1; then
6491  :
6492else
6493  ac_cv_header_stdc=no
6494fi
6495rm -f conftest*
6496
6497fi
6498
6499if test $ac_cv_header_stdc = yes; then
6500  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6501  if test "$cross_compiling" = yes; then
6502  :
6503else
6504  cat >conftest.$ac_ext <<_ACEOF
6505/* confdefs.h.  */
6506_ACEOF
6507cat confdefs.h >>conftest.$ac_ext
6508cat >>conftest.$ac_ext <<_ACEOF
6509/* end confdefs.h.  */
6510#include <ctype.h>
6511#if ((' ' & 0x0FF) == 0x020)
6512# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6513# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6514#else
6515# define ISLOWER(c) \
6516                   (('a' <= (c) && (c) <= 'i') \
6517                     || ('j' <= (c) && (c) <= 'r') \
6518                     || ('s' <= (c) && (c) <= 'z'))
6519# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6520#endif
6521
6522#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6523int
6524main ()
6525{
6526  int i;
6527  for (i = 0; i < 256; i++)
6528    if (XOR (islower (i), ISLOWER (i))
6529        || toupper (i) != TOUPPER (i))
6530      exit(2);
6531  exit (0);
6532}
6533_ACEOF
6534rm -f conftest$ac_exeext
6535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536  (eval $ac_link) 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541  (eval $ac_try) 2>&5
6542  ac_status=$?
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); }; }; then
6545  :
6546else
6547  echo "$as_me: program exited with status $ac_status" >&5
6548echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551( exit $ac_status )
6552ac_cv_header_stdc=no
6553fi
6554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6555fi
6556fi
6557fi
6558echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6559echo "${ECHO_T}$ac_cv_header_stdc" >&6
6560if test $ac_cv_header_stdc = yes; then
6561
6562cat >>confdefs.h <<\_ACEOF
6563#define STDC_HEADERS 1
6564_ACEOF
6565
6566fi
6567
6568# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6579                  inttypes.h stdint.h unistd.h
6580do
6581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6582echo "$as_me:$LINENO: checking for $ac_header" >&5
6583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6584if eval "test \"\${$as_ac_Header+set}\" = set"; then
6585  echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587  cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h.  */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h.  */
6593$ac_includes_default
6594
6595#include <$ac_header>
6596_ACEOF
6597rm -f conftest.$ac_objext
6598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599  (eval $ac_compile) 2>conftest.er1
6600  ac_status=$?
6601  grep -v '^ *+' conftest.er1 >conftest.err
6602  rm -f conftest.er1
6603  cat conftest.err >&5
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); } &&
6606         { ac_try='test -z "$ac_c_werror_flag"
6607                         || test ! -s conftest.err'
6608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609  (eval $ac_try) 2>&5
6610  ac_status=$?
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); }; } &&
6613         { ac_try='test -s conftest.$ac_objext'
6614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615  (eval $ac_try) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; }; then
6619  eval "$as_ac_Header=yes"
6620else
6621  echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624eval "$as_ac_Header=no"
6625fi
6626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627fi
6628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630if test `eval echo '${'$as_ac_Header'}'` = yes; then
6631  cat >>confdefs.h <<_ACEOF
6632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6633_ACEOF
6634
6635fi
6636
6637done
6638
6639
6640
6641for ac_header in dlfcn.h
6642do
6643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644if eval "test \"\${$as_ac_Header+set}\" = set"; then
6645  echo "$as_me:$LINENO: checking for $ac_header" >&5
6646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649fi
6650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6652else
6653  # Is the header compilable?
6654echo "$as_me:$LINENO: checking $ac_header usability" >&5
6655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6656cat >conftest.$ac_ext <<_ACEOF
6657/* confdefs.h.  */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h.  */
6662$ac_includes_default
6663#include <$ac_header>
6664_ACEOF
6665rm -f conftest.$ac_objext
6666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667  (eval $ac_compile) 2>conftest.er1
6668  ac_status=$?
6669  grep -v '^ *+' conftest.er1 >conftest.err
6670  rm -f conftest.er1
6671  cat conftest.err >&5
6672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673  (exit $ac_status); } &&
6674         { ac_try='test -z "$ac_c_werror_flag"
6675                         || test ! -s conftest.err'
6676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677  (eval $ac_try) 2>&5
6678  ac_status=$?
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); }; } &&
6681         { ac_try='test -s conftest.$ac_objext'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; }; then
6687  ac_header_compiler=yes
6688else
6689  echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692ac_header_compiler=no
6693fi
6694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6696echo "${ECHO_T}$ac_header_compiler" >&6
6697
6698# Is the header present?
6699echo "$as_me:$LINENO: checking $ac_header presence" >&5
6700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6701cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707#include <$ac_header>
6708_ACEOF
6709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6711  ac_status=$?
6712  grep -v '^ *+' conftest.er1 >conftest.err
6713  rm -f conftest.er1
6714  cat conftest.err >&5
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); } >/dev/null; then
6717  if test -s conftest.err; then
6718    ac_cpp_err=$ac_c_preproc_warn_flag
6719    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6720  else
6721    ac_cpp_err=
6722  fi
6723else
6724  ac_cpp_err=yes
6725fi
6726if test -z "$ac_cpp_err"; then
6727  ac_header_preproc=yes
6728else
6729  echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732  ac_header_preproc=no
6733fi
6734rm -f conftest.err conftest.$ac_ext
6735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6736echo "${ECHO_T}$ac_header_preproc" >&6
6737
6738# So?  What about this header?
6739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6740  yes:no: )
6741    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6743    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6745    ac_header_preproc=yes
6746    ;;
6747  no:yes:* )
6748    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6750    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6751echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6752    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6754    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6755echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6758    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6760    (
6761      cat <<\_ASBOX
6762## ------------------------------------ ##
6763## Report this to cbc@lists.coin-or.org ##
6764## ------------------------------------ ##
6765_ASBOX
6766    ) |
6767      sed "s/^/$as_me: WARNING:     /" >&2
6768    ;;
6769esac
6770echo "$as_me:$LINENO: checking for $ac_header" >&5
6771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6772if eval "test \"\${$as_ac_Header+set}\" = set"; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  eval "$as_ac_Header=\$ac_header_preproc"
6776fi
6777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779
6780fi
6781if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782  cat >>confdefs.h <<_ACEOF
6783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784_ACEOF
6785
6786fi
6787
6788done
6789
6790
6791
6792if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6793    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6794    (test "X$CXX" != "Xg++"))) ; then
6795  ac_ext=cc
6796ac_cpp='$CXXCPP $CPPFLAGS'
6797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6800echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6801echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6802if test -z "$CXXCPP"; then
6803  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6804  echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806      # Double quotes because CXXCPP needs to be expanded
6807    for CXXCPP in "$CXX -E" "/lib/cpp"
6808    do
6809      ac_preproc_ok=false
6810for ac_cxx_preproc_warn_flag in '' yes
6811do
6812  # Use a header file that comes with gcc, so configuring glibc
6813  # with a fresh cross-compiler works.
6814  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6815  # <limits.h> exists even on freestanding compilers.
6816  # On the NeXT, cc -E runs the code through the compiler's parser,
6817  # not just through cpp. "Syntax error" is here to catch this case.
6818  cat >conftest.$ac_ext <<_ACEOF
6819/* confdefs.h.  */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h.  */
6824#ifdef __STDC__
6825# include <limits.h>
6826#else
6827# include <assert.h>
6828#endif
6829                     Syntax error
6830_ACEOF
6831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6832  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6833  ac_status=$?
6834  grep -v '^ *+' conftest.er1 >conftest.err
6835  rm -f conftest.er1
6836  cat conftest.err >&5
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); } >/dev/null; then
6839  if test -s conftest.err; then
6840    ac_cpp_err=$ac_cxx_preproc_warn_flag
6841    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6842  else
6843    ac_cpp_err=
6844  fi
6845else
6846  ac_cpp_err=yes
6847fi
6848if test -z "$ac_cpp_err"; then
6849  :
6850else
6851  echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
6853
6854  # Broken: fails on valid input.
6855continue
6856fi
6857rm -f conftest.err conftest.$ac_ext
6858
6859  # OK, works on sane cases.  Now check whether non-existent headers
6860  # can be detected and how.
6861  cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h.  */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h.  */
6867#include <ac_nonexistent.h>
6868_ACEOF
6869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6871  ac_status=$?
6872  grep -v '^ *+' conftest.er1 >conftest.err
6873  rm -f conftest.er1
6874  cat conftest.err >&5
6875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876  (exit $ac_status); } >/dev/null; then
6877  if test -s conftest.err; then
6878    ac_cpp_err=$ac_cxx_preproc_warn_flag
6879    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6880  else
6881    ac_cpp_err=
6882  fi
6883else
6884  ac_cpp_err=yes
6885fi
6886if test -z "$ac_cpp_err"; then
6887  # Broken: success on invalid input.
6888continue
6889else
6890  echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893  # Passes both tests.
6894ac_preproc_ok=:
6895break
6896fi
6897rm -f conftest.err conftest.$ac_ext
6898
6899done
6900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6901rm -f conftest.err conftest.$ac_ext
6902if $ac_preproc_ok; then
6903  break
6904fi
6905
6906    done
6907    ac_cv_prog_CXXCPP=$CXXCPP
6908
6909fi
6910  CXXCPP=$ac_cv_prog_CXXCPP
6911else
6912  ac_cv_prog_CXXCPP=$CXXCPP
6913fi
6914echo "$as_me:$LINENO: result: $CXXCPP" >&5
6915echo "${ECHO_T}$CXXCPP" >&6
6916ac_preproc_ok=false
6917for ac_cxx_preproc_warn_flag in '' yes
6918do
6919  # Use a header file that comes with gcc, so configuring glibc
6920  # with a fresh cross-compiler works.
6921  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6922  # <limits.h> exists even on freestanding compilers.
6923  # On the NeXT, cc -E runs the code through the compiler's parser,
6924  # not just through cpp. "Syntax error" is here to catch this case.
6925  cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h.  */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h.  */
6931#ifdef __STDC__
6932# include <limits.h>
6933#else
6934# include <assert.h>
6935#endif
6936                     Syntax error
6937_ACEOF
6938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } >/dev/null; then
6946  if test -s conftest.err; then
6947    ac_cpp_err=$ac_cxx_preproc_warn_flag
6948    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6949  else
6950    ac_cpp_err=
6951  fi
6952else
6953  ac_cpp_err=yes
6954fi
6955if test -z "$ac_cpp_err"; then
6956  :
6957else
6958  echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961  # Broken: fails on valid input.
6962continue
6963fi
6964rm -f conftest.err conftest.$ac_ext
6965
6966  # OK, works on sane cases.  Now check whether non-existent headers
6967  # can be detected and how.
6968  cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h.  */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h.  */
6974#include <ac_nonexistent.h>
6975_ACEOF
6976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6978  ac_status=$?
6979  grep -v '^ *+' conftest.er1 >conftest.err
6980  rm -f conftest.er1
6981  cat conftest.err >&5
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); } >/dev/null; then
6984  if test -s conftest.err; then
6985    ac_cpp_err=$ac_cxx_preproc_warn_flag
6986    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6987  else
6988    ac_cpp_err=
6989  fi
6990else
6991  ac_cpp_err=yes
6992fi
6993if test -z "$ac_cpp_err"; then
6994  # Broken: success on invalid input.
6995continue
6996else
6997  echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000  # Passes both tests.
7001ac_preproc_ok=:
7002break
7003fi
7004rm -f conftest.err conftest.$ac_ext
7005
7006done
7007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7008rm -f conftest.err conftest.$ac_ext
7009if $ac_preproc_ok; then
7010  :
7011else
7012  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7013See \`config.log' for more details." >&5
7014echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7015See \`config.log' for more details." >&2;}
7016   { (exit 1); exit 1; }; }
7017fi
7018
7019ac_ext=cc
7020ac_cpp='$CXXCPP $CPPFLAGS'
7021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7024
7025fi
7026
7027ac_ext=f
7028ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7029ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7031if test -n "$ac_tool_prefix"; then
7032  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7033  do
7034    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7036echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7038if test "${ac_cv_prog_F77+set}" = set; then
7039  echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041  if test -n "$F77"; then
7042  ac_cv_prog_F77="$F77" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  test -z "$as_dir" && as_dir=.
7049  for ac_exec_ext in '' $ac_executable_extensions; do
7050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053    break 2
7054  fi
7055done
7056done
7057
7058fi
7059fi
7060F77=$ac_cv_prog_F77
7061if test -n "$F77"; then
7062  echo "$as_me:$LINENO: result: $F77" >&5
7063echo "${ECHO_T}$F77" >&6
7064else
7065  echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6
7067fi
7068
7069    test -n "$F77" && break
7070  done
7071fi
7072if test -z "$F77"; then
7073  ac_ct_F77=$F77
7074  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7075do
7076  # Extract the first word of "$ac_prog", so it can be a program name with args.
7077set dummy $ac_prog; ac_word=$2
7078echo "$as_me:$LINENO: checking for $ac_word" >&5
7079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7081  echo $ECHO_N "(cached) $ECHO_C" >&6
7082else
7083  if test -n "$ac_ct_F77"; then
7084  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089  IFS=$as_save_IFS
7090  test -z "$as_dir" && as_dir=.
7091  for ac_exec_ext in '' $ac_executable_extensions; do
7092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093    ac_cv_prog_ac_ct_F77="$ac_prog"
7094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095    break 2
7096  fi
7097done
7098done
7099
7100fi
7101fi
7102ac_ct_F77=$ac_cv_prog_ac_ct_F77
7103if test -n "$ac_ct_F77"; then
7104  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7105echo "${ECHO_T}$ac_ct_F77" >&6
7106else
7107  echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6
7109fi
7110
7111  test -n "$ac_ct_F77" && break
7112done
7113
7114  F77=$ac_ct_F77
7115fi
7116
7117
7118# Provide some information about the compiler.
7119echo "$as_me:7119:" \
7120     "checking for Fortran 77 compiler version" >&5
7121ac_compiler=`set X $ac_compile; echo $2`
7122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7123  (eval $ac_compiler --version </dev/null >&5) 2>&5
7124  ac_status=$?
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); }
7127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7128  (eval $ac_compiler -v </dev/null >&5) 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }
7132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7133  (eval $ac_compiler -V </dev/null >&5) 2>&5
7134  ac_status=$?
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); }
7137rm -f a.out
7138
7139# If we don't use `.F' as extension, the preprocessor is not run on the
7140# input file.  (Note that this only needs to work for GNU compilers.)
7141ac_save_ext=$ac_ext
7142ac_ext=F
7143echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7144echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7145if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7146  echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148  cat >conftest.$ac_ext <<_ACEOF
7149      program main
7150#ifndef __GNUC__
7151       choke me
7152#endif
7153
7154      end
7155_ACEOF
7156rm -f conftest.$ac_objext
7157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158  (eval $ac_compile) 2>conftest.er1
7159  ac_status=$?
7160  grep -v '^ *+' conftest.er1 >conftest.err
7161  rm -f conftest.er1
7162  cat conftest.err >&5
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); } &&
7165         { ac_try='test -z "$ac_f77_werror_flag"
7166                         || test ! -s conftest.err'
7167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168  (eval $ac_try) 2>&5
7169  ac_status=$?
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); }; } &&
7172         { ac_try='test -s conftest.$ac_objext'
7173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174  (eval $ac_try) 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }; }; then
7178  ac_compiler_gnu=yes
7179else
7180  echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183ac_compiler_gnu=no
7184fi
7185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7187
7188fi
7189echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7190echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7191ac_ext=$ac_save_ext
7192ac_test_FFLAGS=${FFLAGS+set}
7193ac_save_FFLAGS=$FFLAGS
7194FFLAGS=
7195echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7196echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7197if test "${ac_cv_prog_f77_g+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200  FFLAGS=-g
7201cat >conftest.$ac_ext <<_ACEOF
7202      program main
7203
7204      end
7205_ACEOF
7206rm -f conftest.$ac_objext
7207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208  (eval $ac_compile) 2>conftest.er1
7209  ac_status=$?
7210  grep -v '^ *+' conftest.er1 >conftest.err
7211  rm -f conftest.er1
7212  cat conftest.err >&5
7213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214  (exit $ac_status); } &&
7215         { ac_try='test -z "$ac_f77_werror_flag"
7216                         || test ! -s conftest.err'
7217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218  (eval $ac_try) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); }; } &&
7222         { ac_try='test -s conftest.$ac_objext'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; }; then
7228  ac_cv_prog_f77_g=yes
7229else
7230  echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233ac_cv_prog_f77_g=no
7234fi
7235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236
7237fi
7238echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7239echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7240if test "$ac_test_FFLAGS" = set; then
7241  FFLAGS=$ac_save_FFLAGS
7242elif test $ac_cv_prog_f77_g = yes; then
7243  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7244    FFLAGS="-g -O2"
7245  else
7246    FFLAGS="-g"
7247  fi
7248else
7249  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7250    FFLAGS="-O2"
7251  else
7252    FFLAGS=
7253  fi
7254fi
7255
7256G77=`test $ac_compiler_gnu = yes && echo yes`
7257ac_ext=c
7258ac_cpp='$CPP $CPPFLAGS'
7259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262
7263
7264
7265# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7266
7267# find the maximum length of command line arguments
7268echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7269echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7270if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7271  echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273    i=0
7274  teststring="ABCD"
7275
7276  case $build_os in
7277  msdosdjgpp*)
7278    # On DJGPP, this test can blow up pretty badly due to problems in libc
7279    # (any single argument exceeding 2000 bytes causes a buffer overrun
7280    # during glob expansion).  Even if it were fixed, the result of this
7281    # check would be larger than it should be.
7282    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7283    ;;
7284
7285  gnu*)
7286    # Under GNU Hurd, this test is not required because there is
7287    # no limit to the length of command line arguments.
7288    # Libtool will interpret -1 as no limit whatsoever
7289    lt_cv_sys_max_cmd_len=-1;
7290    ;;
7291
7292  cygwin* | mingw*)
7293    # On Win9x/ME, this test blows up -- it succeeds, but takes
7294    # about 5 minutes as the teststring grows exponentially.
7295    # Worse, since 9x/ME are not pre-emptively multitasking,
7296    # you end up with a "frozen" computer, even though with patience
7297    # the test eventually succeeds (with a max line length of 256k).
7298    # Instead, let's just punt: use the minimum linelength reported by
7299    # all of the supported platforms: 8192 (on NT/2K/XP).
7300    lt_cv_sys_max_cmd_len=8192;
7301    ;;
7302
7303  amigaos*)
7304    # On AmigaOS with pdksh, this test takes hours, literally.
7305    # So we just punt and use a minimum line length of 8192.
7306    lt_cv_sys_max_cmd_len=8192;
7307    ;;
7308
7309  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7310    # This has been around since 386BSD, at least.  Likely further.
7311    if test -x /sbin/sysctl; then
7312      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7313    elif test -x /usr/sbin/sysctl; then
7314      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7315    else
7316      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7317    fi
7318    # And add a safety zone
7319    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7320    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7321    ;;
7322
7323  interix*)
7324    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7325    lt_cv_sys_max_cmd_len=196608
7326    ;;
7327
7328  osf*)
7329    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7330    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7331    # nice to cause kernel panics so lets avoid the loop below.
7332    # First set a reasonable default.
7333    lt_cv_sys_max_cmd_len=16384
7334    #
7335    if test -x /sbin/sysconfig; then
7336      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7337        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7338      esac
7339    fi
7340    ;;
7341  sco3.2v5*)
7342    lt_cv_sys_max_cmd_len=102400
7343    ;;
7344  sysv5* | sco5v6* | sysv4.2uw2*)
7345    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7346    if test -n "$kargmax"; then
7347      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7348    else
7349      lt_cv_sys_max_cmd_len=32768
7350    fi
7351    ;;
7352  *)
7353    # If test is not a shell built-in, we'll probably end up computing a
7354    # maximum length that is only half of the actual maximum length, but
7355    # we can't tell.
7356    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7357    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7358               = "XX$teststring") >/dev/null 2>&1 &&
7359            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7360            lt_cv_sys_max_cmd_len=$new_result &&
7361            test $i != 17 # 1/2 MB should be enough
7362    do
7363      i=`expr $i + 1`
7364      teststring=$teststring$teststring
7365    done
7366    teststring=
7367    # Add a significant safety factor because C++ compilers can tack on massive
7368    # amounts of additional arguments before passing them to the linker.
7369    # It appears as though 1/2 is a usable value.
7370    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7371    ;;
7372  esac
7373
7374fi
7375
7376if test -n $lt_cv_sys_max_cmd_len ; then
7377  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7378echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7379else
7380  echo "$as_me:$LINENO: result: none" >&5
7381echo "${ECHO_T}none" >&6
7382fi
7383
7384
7385
7386
7387# Check for command to grab the raw symbol name followed by C symbol from nm.
7388echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7389echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7390if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7391  echo $ECHO_N "(cached) $ECHO_C" >&6
7392else
7393
7394# These are sane defaults that work on at least a few old systems.
7395# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7396
7397# Character class describing NM global symbol codes.
7398symcode='[BCDEGRST]'
7399
7400# Regexp to match symbols that can be accessed directly from C.
7401sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7402
7403# Transform an extracted symbol line into a proper C declaration
7404lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7405
7406# Transform an extracted symbol line into symbol name and symbol address
7407lt_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'"
7408
7409# Define system-specific variables.
7410case $host_os in
7411aix*)
7412  symcode='[BCDT]'
7413  ;;
7414cygwin* | mingw* | pw32*)
7415  symcode='[ABCDGISTW]'
7416  ;;
7417hpux*) # Its linker distinguishes data from code symbols
7418  if test "$host_cpu" = ia64; then
7419    symcode='[ABCDEGRST]'
7420  fi
7421  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7422  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'"
7423  ;;
7424linux*)
7425  if test "$host_cpu" = ia64; then
7426    symcode='[ABCDGIRSTW]'
7427    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7428    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'"
7429  fi
7430  ;;
7431irix* | nonstopux*)
7432  symcode='[BCDEGRST]'
7433  ;;
7434osf*)
7435  symcode='[BCDEGQRST]'
7436  ;;
7437solaris*)
7438  symcode='[BDRT]'
7439  ;;
7440sco3.2v5*)
7441  symcode='[DT]'
7442  ;;
7443sysv4.2uw2*)
7444  symcode='[DT]'
7445  ;;
7446sysv5* | sco5v6* | unixware* | OpenUNIX*)
7447  symcode='[ABDT]'
7448  ;;
7449sysv4)
7450  symcode='[DFNSTU]'
7451  ;;
7452esac
7453
7454# Handle CRLF in mingw tool chain
7455opt_cr=
7456case $build_os in
7457mingw*)
7458  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7459  ;;
7460esac
7461
7462# If we're using GNU nm, then use its standard symbol codes.
7463case `$NM -V 2>&1` in
7464*GNU* | *'with BFD'*)
7465  symcode='[ABCDGIRSTW]' ;;
7466esac
7467
7468# Try without a prefix undercore, then with it.
7469for ac_symprfx in "" "_"; do
7470
7471  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7472  symxfrm="\\1 $ac_symprfx\\2 \\2"
7473
7474  # Write the raw and C identifiers.
7475  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7476
7477  # Check to see that the pipe works correctly.
7478  pipe_works=no
7479
7480  rm -f conftest*
7481  cat > conftest.$ac_ext <<EOF
7482#ifdef __cplusplus
7483extern "C" {
7484#endif
7485char nm_test_var;
7486void nm_test_func(){}
7487#ifdef __cplusplus
7488}
7489#endif
7490int main(){nm_test_var='a';nm_test_func();return(0);}
7491EOF
7492
7493  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7494  (eval $ac_compile) 2>&5
7495  ac_status=$?
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); }; then
7498    # Now try to grab the symbols.
7499    nlist=conftest.nm
7500    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7501  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7502  ac_status=$?
7503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); } && test -s "$nlist"; then
7505      # Try sorting and uniquifying the output.
7506      if sort "$nlist" | uniq > "$nlist"T; then
7507        mv -f "$nlist"T "$nlist"
7508      else
7509        rm -f "$nlist"T
7510      fi
7511
7512      # Make sure that we snagged all the symbols we need.
7513      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7514        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7515          cat <<EOF > conftest.$ac_ext
7516#ifdef __cplusplus
7517extern "C" {
7518#endif
7519
7520EOF
7521          # Now generate the symbol file.
7522          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7523
7524          cat <<EOF >> conftest.$ac_ext
7525#if defined (__STDC__) && __STDC__
7526# define lt_ptr_t void *
7527#else
7528# define lt_ptr_t char *
7529# define const
7530#endif
7531
7532/* The mapping between symbol names and symbols. */
7533const struct {
7534  const char *name;
7535  lt_ptr_t address;
7536}
7537lt_preloaded_symbols[] =
7538{
7539EOF
7540          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7541          cat <<\EOF >> conftest.$ac_ext
7542  {0, (lt_ptr_t) 0}
7543};
7544
7545#ifdef __cplusplus
7546}
7547#endif
7548EOF
7549          # Now try linking the two files.
7550          mv conftest.$ac_objext conftstm.$ac_objext
7551          lt_save_LIBS="$LIBS"
7552          lt_save_CFLAGS="$CFLAGS"
7553          LIBS="conftstm.$ac_objext"
7554          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7555          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556  (eval $ac_link) 2>&5
7557  ac_status=$?
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7560            pipe_works=yes
7561          fi
7562          LIBS="$lt_save_LIBS"
7563          CFLAGS="$lt_save_CFLAGS"
7564        else
7565          echo "cannot find nm_test_func in $nlist" >&5
7566        fi
7567      else
7568        echo "cannot find nm_test_var in $nlist" >&5
7569      fi
7570    else
7571      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7572    fi
7573  else
7574    echo "$progname: failed program was:" >&5
7575    cat conftest.$ac_ext >&5
7576  fi
7577  rm -f conftest* conftst*
7578
7579  # Do not use the global_symbol_pipe unless it works.
7580  if test "$pipe_works" = yes; then
7581    break
7582  else
7583    lt_cv_sys_global_symbol_pipe=
7584  fi
7585done
7586
7587fi
7588
7589if test -z "$lt_cv_sys_global_symbol_pipe"; then
7590  lt_cv_sys_global_symbol_to_cdecl=
7591fi
7592if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7593  echo "$as_me:$LINENO: result: failed" >&5
7594echo "${ECHO_T}failed" >&6
7595else
7596  echo "$as_me:$LINENO: result: ok" >&5
7597echo "${ECHO_T}ok" >&6
7598fi
7599
7600echo "$as_me:$LINENO: checking for objdir" >&5
7601echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7602if test "${lt_cv_objdir+set}" = set; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  rm -f .libs 2>/dev/null
7606mkdir .libs 2>/dev/null
7607if test -d .libs; then
7608  lt_cv_objdir=.libs
7609else
7610  # MS-DOS does not allow filenames that begin with a dot.
7611  lt_cv_objdir=_libs
7612fi
7613rmdir .libs 2>/dev/null
7614fi
7615echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7616echo "${ECHO_T}$lt_cv_objdir" >&6
7617objdir=$lt_cv_objdir
7618
7619
7620
7621
7622
7623case $host_os in
7624aix3*)
7625  # AIX sometimes has problems with the GCC collect2 program.  For some
7626  # reason, if we set the COLLECT_NAMES environment variable, the problems
7627  # vanish in a puff of smoke.
7628  if test "X${COLLECT_NAMES+set}" != Xset; then
7629    COLLECT_NAMES=
7630    export COLLECT_NAMES
7631  fi
7632  ;;
7633esac
7634
7635# Sed substitution that helps us do robust quoting.  It backslashifies
7636# metacharacters that are still active within double-quoted strings.
7637Xsed='sed -e 1s/^X//'
7638sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7639
7640# Same as above, but do not quote variable references.
7641double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7642
7643# Sed substitution to delay expansion of an escaped shell variable in a
7644# double_quote_subst'ed string.
7645delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7646
7647# Sed substitution to avoid accidental globbing in evaled expressions
7648no_glob_subst='s/\*/\\\*/g'
7649
7650# Constants:
7651rm="rm -f"
7652
7653# Global variables:
7654default_ofile=libtool
7655can_build_shared=yes
7656
7657# All known linkers require a `.a' archive for static linking (except MSVC,
7658# which needs '.lib').
7659libext=a
7660ltmain="$ac_aux_dir/ltmain.sh"
7661ofile="$default_ofile"
7662with_gnu_ld="$lt_cv_prog_gnu_ld"
7663
7664if test -n "$ac_tool_prefix"; then
7665  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}ar; ac_word=$2
7667echo "$as_me:$LINENO: checking for $ac_word" >&5
7668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7669if test "${ac_cv_prog_AR+set}" = set; then
7670  echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672  if test -n "$AR"; then
7673  ac_cv_prog_AR="$AR" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680  for ac_exec_ext in '' $ac_executable_extensions; do
7681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682    ac_cv_prog_AR="${ac_tool_prefix}ar"
7683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687done
7688
7689fi
7690fi
7691AR=$ac_cv_prog_AR
7692if test -n "$AR"; then
7693  echo "$as_me:$LINENO: result: $AR" >&5
7694echo "${ECHO_T}$AR" >&6
7695else
7696  echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6
7698fi
7699
7700fi
7701if test -z "$ac_cv_prog_AR"; then
7702  ac_ct_AR=$AR
7703  # Extract the first word of "ar", so it can be a program name with args.
7704set dummy ar; ac_word=$2
7705echo "$as_me:$LINENO: checking for $ac_word" >&5
7706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7707if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710  if test -n "$ac_ct_AR"; then
7711  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718  for ac_exec_ext in '' $ac_executable_extensions; do
7719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720    ac_cv_prog_ac_ct_AR="ar"
7721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725done
7726
7727  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7728fi
7729fi
7730ac_ct_AR=$ac_cv_prog_ac_ct_AR
7731if test -n "$ac_ct_AR"; then
7732  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7733echo "${ECHO_T}$ac_ct_AR" >&6
7734else
7735  echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737fi
7738
7739  AR=$ac_ct_AR
7740else
7741  AR="$ac_cv_prog_AR"
7742fi
7743
7744if test -n "$ac_tool_prefix"; then
7745  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7746set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7747echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749if test "${ac_cv_prog_RANLIB+set}" = set; then
7750  echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752  if test -n "$RANLIB"; then
7753  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758  IFS=$as_save_IFS
7759  test -z "$as_dir" && as_dir=.
7760  for ac_exec_ext in '' $ac_executable_extensions; do
7761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764    break 2
7765  fi
7766done
7767done
7768
7769fi
7770fi
7771RANLIB=$ac_cv_prog_RANLIB
7772if test -n "$RANLIB"; then
7773  echo "$as_me:$LINENO: result: $RANLIB" >&5
7774echo "${ECHO_T}$RANLIB" >&6
7775else
7776  echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6
7778fi
7779
7780fi
7781if test -z "$ac_cv_prog_RANLIB"; then
7782  ac_ct_RANLIB=$RANLIB
7783  # Extract the first word of "ranlib", so it can be a program name with args.
7784set dummy ranlib; ac_word=$2
7785echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7787if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7788  echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790  if test -n "$ac_ct_RANLIB"; then
7791  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798  for ac_exec_ext in '' $ac_executable_extensions; do
7799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_ac_ct_RANLIB="ranlib"
7801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805done
7806
7807  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7808fi
7809fi
7810ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7811if test -n "$ac_ct_RANLIB"; then
7812  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7813echo "${ECHO_T}$ac_ct_RANLIB" >&6
7814else
7815  echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817fi
7818
7819  RANLIB=$ac_ct_RANLIB
7820else
7821  RANLIB="$ac_cv_prog_RANLIB"
7822fi
7823
7824if test -n "$ac_tool_prefix"; then
7825  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7826set dummy ${ac_tool_prefix}strip; ac_word=$2
7827echo "$as_me:$LINENO: checking for $ac_word" >&5
7828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829if test "${ac_cv_prog_STRIP+set}" = set; then
7830  echo $ECHO_N "(cached) $ECHO_C" >&6
7831else
7832  if test -n "$STRIP"; then
7833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838  IFS=$as_save_IFS
7839  test -z "$as_dir" && as_dir=.
7840  for ac_exec_ext in '' $ac_executable_extensions; do
7841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844    break 2
7845  fi
7846done
7847done
7848
7849fi
7850fi
7851STRIP=$ac_cv_prog_STRIP
7852if test -n "$STRIP"; then
7853  echo "$as_me:$LINENO: result: $STRIP" >&5
7854echo "${ECHO_T}$STRIP" >&6
7855else
7856  echo "$as_me:$LINENO: result: no" >&5
7857echo "${ECHO_T}no" >&6
7858fi
7859
7860fi
7861if test -z "$ac_cv_prog_STRIP"; then
7862  ac_ct_STRIP=$STRIP
7863  # Extract the first word of "strip", so it can be a program name with args.
7864set dummy strip; ac_word=$2
7865echo "$as_me:$LINENO: checking for $ac_word" >&5
7866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7868  echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870  if test -n "$ac_ct_STRIP"; then
7871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7872else
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876  IFS=$as_save_IFS
7877  test -z "$as_dir" && as_dir=.
7878  for ac_exec_ext in '' $ac_executable_extensions; do
7879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880    ac_cv_prog_ac_ct_STRIP="strip"
7881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882    break 2
7883  fi
7884done
7885done
7886
7887  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7888fi
7889fi
7890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7891if test -n "$ac_ct_STRIP"; then
7892  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7893echo "${ECHO_T}$ac_ct_STRIP" >&6
7894else
7895  echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
7897fi
7898
7899  STRIP=$ac_ct_STRIP
7900else
7901  STRIP="$ac_cv_prog_STRIP"
7902fi
7903
7904
7905old_CC="$CC"
7906old_CFLAGS="$CFLAGS"
7907
7908# Set sane defaults for various variables
7909test -z "$AR" && AR=ar
7910test -z "$AR_FLAGS" && AR_FLAGS=cru
7911test -z "$AS" && AS=as
7912test -z "$CC" && CC=cc
7913test -z "$LTCC" && LTCC=$CC
7914test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7915test -z "$DLLTOOL" && DLLTOOL=dlltool
7916test -z "$LD" && LD=ld
7917test -z "$LN_S" && LN_S="ln -s"
7918test -z "$MAGIC_CMD" && MAGIC_CMD=file
7919test -z "$NM" && NM=nm
7920test -z "$SED" && SED=sed
7921test -z "$OBJDUMP" && OBJDUMP=objdump
7922test -z "$RANLIB" && RANLIB=:
7923test -z "$STRIP" && STRIP=:
7924test -z "$ac_objext" && ac_objext=o
7925
7926# Determine commands to create old-style static archives.
7927old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7928old_postinstall_cmds='chmod 644 $oldlib'
7929old_postuninstall_cmds=
7930
7931if test -n "$RANLIB"; then
7932  case $host_os in
7933  openbsd*)
7934    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7935    ;;
7936  *)
7937    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7938    ;;
7939  esac
7940  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7941fi
7942
7943for cc_temp in $compiler""; do
7944  case $cc_temp in
7945    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7946    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7947    \-*) ;;
7948    *) break;;
7949  esac
7950done
7951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7952
7953
7954# Only perform the check for file, if the check method requires it
7955case $deplibs_check_method in
7956file_magic*)
7957  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7958    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7959echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7960if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7961  echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963  case $MAGIC_CMD in
7964[\\/*] |  ?:[\\/]*)
7965  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7966  ;;
7967*)
7968  lt_save_MAGIC_CMD="$MAGIC_CMD"
7969  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7970  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971  for ac_dir in $ac_dummy; do
7972    IFS="$lt_save_ifs"
7973    test -z "$ac_dir" && ac_dir=.
7974    if test -f $ac_dir/${ac_tool_prefix}file; then
7975      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7976      if test -n "$file_magic_test_file"; then
7977        case $deplibs_check_method in
7978        "file_magic "*)
7979          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982            $EGREP "$file_magic_regex" > /dev/null; then
7983            :
7984          else
7985            cat <<EOF 1>&2
7986
7987*** Warning: the command libtool uses to detect shared libraries,
7988*** $file_magic_cmd, produces output that libtool cannot recognize.
7989*** The result is that libtool may fail to recognize shared libraries
7990*** as such.  This will affect the creation of libtool libraries that
7991*** depend on shared libraries, but programs linked with such libtool
7992*** libraries will work regardless of this problem.  Nevertheless, you
7993*** may want to report the problem to your system manager and/or to
7994*** bug-libtool@gnu.org
7995
7996EOF
7997          fi ;;
7998        esac
7999      fi
8000      break
8001    fi
8002  done
8003  IFS="$lt_save_ifs"
8004  MAGIC_CMD="$lt_save_MAGIC_CMD"
8005  ;;
8006esac
8007fi
8008
8009MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010if test -n "$MAGIC_CMD"; then
8011  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8012echo "${ECHO_T}$MAGIC_CMD" >&6
8013else
8014  echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6
8016fi
8017
8018if test -z "$lt_cv_path_MAGIC_CMD"; then
8019  if test -n "$ac_tool_prefix"; then
8020    echo "$as_me:$LINENO: checking for file" >&5
8021echo $ECHO_N "checking for file... $ECHO_C" >&6
8022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8023  echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025  case $MAGIC_CMD in
8026[\\/*] |  ?:[\\/]*)
8027  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8028  ;;
8029*)
8030  lt_save_MAGIC_CMD="$MAGIC_CMD"
8031  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8032  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8033  for ac_dir in $ac_dummy; do
8034    IFS="$lt_save_ifs"
8035    test -z "$ac_dir" && ac_dir=.
8036    if test -f $ac_dir/file; then
8037      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8038      if test -n "$file_magic_test_file"; then
8039        case $deplibs_check_method in
8040        "file_magic "*)
8041          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8042          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8043          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8044            $EGREP "$file_magic_regex" > /dev/null; then
8045            :
8046          else
8047            cat <<EOF 1>&2
8048
8049*** Warning: the command libtool uses to detect shared libraries,
8050*** $file_magic_cmd, produces output that libtool cannot recognize.
8051*** The result is that libtool may fail to recognize shared libraries
8052*** as such.  This will affect the creation of libtool libraries that
8053*** depend on shared libraries, but programs linked with such libtool
8054*** libraries will work regardless of this problem.  Nevertheless, you
8055*** may want to report the problem to your system manager and/or to
8056*** bug-libtool@gnu.org
8057
8058EOF
8059          fi ;;
8060        esac
8061      fi
8062      break
8063    fi
8064  done
8065  IFS="$lt_save_ifs"
8066  MAGIC_CMD="$lt_save_MAGIC_CMD"
8067  ;;
8068esac
8069fi
8070
8071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8072if test -n "$MAGIC_CMD"; then
8073  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8074echo "${ECHO_T}$MAGIC_CMD" >&6
8075else
8076  echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078fi
8079
8080  else
8081    MAGIC_CMD=:
8082  fi
8083fi
8084
8085  fi
8086  ;;
8087esac
8088
8089enable_dlopen=no
8090enable_win32_dll=no
8091
8092# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8093if test "${enable_libtool_lock+set}" = set; then
8094  enableval="$enable_libtool_lock"
8095
8096fi;
8097test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8098
8099
8100# Check whether --with-pic or --without-pic was given.
8101if test "${with_pic+set}" = set; then
8102  withval="$with_pic"
8103  pic_mode="$withval"
8104else
8105  pic_mode=default
8106fi;
8107test -z "$pic_mode" && pic_mode=default
8108
8109# Use C for the default configuration in the libtool script
8110tagname=
8111lt_save_CC="$CC"
8112ac_ext=c
8113ac_cpp='$CPP $CPPFLAGS'
8114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117
8118
8119# Source file extension for C test sources.
8120ac_ext=c
8121
8122# Object file extension for compiled C test sources.
8123objext=o
8124objext=$objext
8125
8126# Code to be used in simple compile tests
8127lt_simple_compile_test_code="int some_variable = 0;\n"
8128
8129# Code to be used in simple link tests
8130lt_simple_link_test_code='int main(){return(0);}\n'
8131
8132
8133# If no C compiler was specified, use CC.
8134LTCC=${LTCC-"$CC"}
8135
8136# If no C compiler flags were specified, use CFLAGS.
8137LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8138
8139# Allow CC to be a program name with arguments.
8140compiler=$CC
8141
8142
8143# save warnings/boilerplate of simple test code
8144ac_outfile=conftest.$ac_objext
8145printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8146eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8147_lt_compiler_boilerplate=`cat conftest.err`
8148$rm conftest*
8149
8150ac_outfile=conftest.$ac_objext
8151printf "$lt_simple_link_test_code" >conftest.$ac_ext
8152eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8153_lt_linker_boilerplate=`cat conftest.err`
8154$rm conftest*
8155
8156
8157## CAVEAT EMPTOR:
8158## There is no encapsulation within the following macros, do not change
8159## the running order or otherwise move them around unless you know exactly
8160## what you are doing...
8161
8162lt_prog_compiler_no_builtin_flag=
8163
8164if test "$GCC" = yes; then
8165  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8166
8167
8168echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8169echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8170if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8171  echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173  lt_cv_prog_compiler_rtti_exceptions=no
8174  ac_outfile=conftest.$ac_objext
8175   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8176   lt_compiler_flag="-fno-rtti -fno-exceptions"
8177   # Insert the option either (1) after the last *FLAGS variable, or
8178   # (2) before a word containing "conftest.", or (3) at the end.
8179   # Note that $ac_compile itself does not contain backslashes and begins
8180   # with a dollar sign (not a hyphen), so the echo should work correctly.
8181   # The option is referenced via a variable to avoid confusing sed.
8182   lt_compile=`echo "$ac_compile" | $SED \
8183   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8184   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8185   -e 's:$: $lt_compiler_flag:'`
8186   (eval echo "\"\$as_me:8186: $lt_compile\"" >&5)
8187   (eval "$lt_compile" 2>conftest.err)
8188   ac_status=$?
8189   cat conftest.err >&5
8190   echo "$as_me:8190: \$? = $ac_status" >&5
8191   if (exit $ac_status) && test -s "$ac_outfile"; then
8192     # The compiler can only warn and ignore the option if not recognized
8193     # So say no if there are warnings other than the usual output.
8194     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8195     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8196     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8197       lt_cv_prog_compiler_rtti_exceptions=yes
8198     fi
8199   fi
8200   $rm conftest*
8201
8202fi
8203echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8204echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8205
8206if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8207    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8208else
8209    :
8210fi
8211
8212fi
8213
8214lt_prog_compiler_wl=
8215lt_prog_compiler_pic=
8216lt_prog_compiler_static=
8217
8218echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8219echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8220
8221  if test "$GCC" = yes; then
8222    lt_prog_compiler_wl='-Wl,'
8223    lt_prog_compiler_static='-static'
8224
8225    case $host_os in
8226      aix*)
8227      # All AIX code is PIC.
8228      if test "$host_cpu" = ia64; then
8229        # AIX 5 now supports IA64 processor
8230        lt_prog_compiler_static='-Bstatic'
8231      fi
8232      ;;
8233
8234    amigaos*)
8235      # FIXME: we need at least 68020 code to build shared libraries, but
8236      # adding the `-m68020' flag to GCC prevents building anything better,
8237      # like `-m68040'.
8238      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8239      ;;
8240
8241    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8242      # PIC is the default for these OSes.
8243      ;;
8244
8245    mingw* | pw32* | os2*)
8246      # This hack is so that the source file can tell whether it is being
8247      # built for inclusion in a dll (and should export symbols for example).
8248      lt_prog_compiler_pic='-DDLL_EXPORT'
8249      ;;
8250
8251    darwin* | rhapsody*)
8252      # PIC is the default on this platform
8253      # Common symbols not allowed in MH_DYLIB files
8254      lt_prog_compiler_pic='-fno-common'
8255      ;;
8256
8257    interix3*)
8258      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8259      # Instead, we relocate shared libraries at runtime.
8260      ;;
8261
8262    msdosdjgpp*)
8263      # Just because we use GCC doesn't mean we suddenly get shared libraries
8264      # on systems that don't support them.
8265      lt_prog_compiler_can_build_shared=no
8266      enable_shared=no
8267      ;;
8268
8269    sysv4*MP*)
8270      if test -d /usr/nec; then
8271        lt_prog_compiler_pic=-Kconform_pic
8272      fi
8273      ;;
8274
8275    hpux*)
8276      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8277      # not for PA HP-UX.
8278      case $host_cpu in
8279      hppa*64*|ia64*)
8280        # +Z the default
8281        ;;
8282      *)
8283        lt_prog_compiler_pic='-fPIC'
8284        ;;
8285      esac
8286      ;;
8287
8288    *)
8289      lt_prog_compiler_pic='-fPIC'
8290      ;;
8291    esac
8292  else
8293    # PORTME Check for flag to pass linker flags through the system compiler.
8294    case $host_os in
8295    aix*)
8296      lt_prog_compiler_wl='-Wl,'
8297      if test "$host_cpu" = ia64; then
8298        # AIX 5 now supports IA64 processor
8299        lt_prog_compiler_static='-Bstatic'
8300      else
8301        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8302      fi
8303      ;;
8304      darwin*)
8305        # PIC is the default on this platform
8306        # Common symbols not allowed in MH_DYLIB files
8307       case $cc_basename in
8308         xlc*)
8309         lt_prog_compiler_pic='-qnocommon'
8310         lt_prog_compiler_wl='-Wl,'
8311         ;;
8312       esac
8313       ;;
8314
8315    mingw* | pw32* | os2*)
8316      # This hack is so that the source file can tell whether it is being
8317      # built for inclusion in a dll (and should export symbols for example).
8318      lt_prog_compiler_pic='-DDLL_EXPORT'
8319      ;;
8320
8321    hpux9* | hpux10* | hpux11*)
8322      lt_prog_compiler_wl='-Wl,'
8323      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8324      # not for PA HP-UX.
8325      case $host_cpu in
8326      hppa*64*|ia64*)
8327        # +Z the default
8328        ;;
8329      *)
8330        lt_prog_compiler_pic='+Z'
8331        ;;
8332      esac
8333      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8334      lt_prog_compiler_static='${wl}-a ${wl}archive'
8335      ;;
8336
8337    irix5* | irix6* | nonstopux*)
8338      lt_prog_compiler_wl='-Wl,'
8339      # PIC (with -KPIC) is the default.
8340      lt_prog_compiler_static='-non_shared'
8341      ;;
8342
8343    newsos6)
8344      lt_prog_compiler_pic='-KPIC'
8345      lt_prog_compiler_static='-Bstatic'
8346      ;;
8347
8348    linux*)
8349      case $cc_basename in
8350      icc* | ecc*)
8351        lt_prog_compiler_wl='-Wl,'
8352        lt_prog_compiler_pic='-KPIC'
8353        lt_prog_compiler_static='-static'
8354        ;;
8355      pgcc* | pgf77* | pgf90* | pgf95*)
8356        # Portland Group compilers (*not* the Pentium gcc compiler,
8357        # which looks to be a dead project)
8358        lt_prog_compiler_wl='-Wl,'
8359        lt_prog_compiler_pic='-fpic'
8360        lt_prog_compiler_static='-Bstatic'
8361        ;;
8362      ccc*)
8363        lt_prog_compiler_wl='-Wl,'
8364        # All Alpha code is PIC.
8365        lt_prog_compiler_static='-non_shared'
8366        ;;
8367      esac
8368      ;;
8369
8370    osf3* | osf4* | osf5*)
8371      lt_prog_compiler_wl='-Wl,'
8372      # All OSF/1 code is PIC.
8373      lt_prog_compiler_static='-non_shared'
8374      ;;
8375
8376    solaris*)
8377      lt_prog_compiler_pic='-KPIC'
8378      lt_prog_compiler_static='-Bstatic'
8379      case $cc_basename in
8380      f77* | f90* | f95*)
8381        lt_prog_compiler_wl='-Qoption ld ';;
8382      *)
8383        lt_prog_compiler_wl='-Wl,';;
8384      esac
8385      ;;
8386
8387    sunos4*)
8388      lt_prog_compiler_wl='-Qoption ld '
8389      lt_prog_compiler_pic='-PIC'
8390      lt_prog_compiler_static='-Bstatic'
8391      ;;
8392
8393    sysv4 | sysv4.2uw2* | sysv4.3*)
8394      lt_prog_compiler_wl='-Wl,'
8395      lt_prog_compiler_pic='-KPIC'
8396      lt_prog_compiler_static='-Bstatic'
8397      ;;
8398
8399    sysv4*MP*)
8400      if test -d /usr/nec ;then
8401        lt_prog_compiler_pic='-Kconform_pic'
8402        lt_prog_compiler_static='-Bstatic'
8403      fi
8404      ;;
8405
8406    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8407      lt_prog_compiler_wl='-Wl,'
8408      lt_prog_compiler_pic='-KPIC'
8409      lt_prog_compiler_static='-Bstatic'
8410      ;;
8411
8412    unicos*)
8413      lt_prog_compiler_wl='-Wl,'
8414      lt_prog_compiler_can_build_shared=no
8415      ;;
8416
8417    uts4*)
8418      lt_prog_compiler_pic='-pic'
8419      lt_prog_compiler_static='-Bstatic'
8420      ;;
8421
8422    *)
8423      lt_prog_compiler_can_build_shared=no
8424      ;;
8425    esac
8426  fi
8427
8428echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8429echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8430
8431#
8432# Check to make sure the PIC flag actually works.
8433#
8434if test -n "$lt_prog_compiler_pic"; then
8435
8436echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8437echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8438if test "${lt_prog_compiler_pic_works+set}" = set; then
8439  echo $ECHO_N "(cached) $ECHO_C" >&6
8440else
8441  lt_prog_compiler_pic_works=no
8442  ac_outfile=conftest.$ac_objext
8443   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8444   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8445   # Insert the option either (1) after the last *FLAGS variable, or
8446   # (2) before a word containing "conftest.", or (3) at the end.
8447   # Note that $ac_compile itself does not contain backslashes and begins
8448   # with a dollar sign (not a hyphen), so the echo should work correctly.
8449   # The option is referenced via a variable to avoid confusing sed.
8450   lt_compile=`echo "$ac_compile" | $SED \
8451   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8452   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8453   -e 's:$: $lt_compiler_flag:'`
8454   (eval echo "\"\$as_me:8454: $lt_compile\"" >&5)
8455   (eval "$lt_compile" 2>conftest.err)
8456   ac_status=$?
8457   cat conftest.err >&5
8458   echo "$as_me:8458: \$? = $ac_status" >&5
8459   if (exit $ac_status) && test -s "$ac_outfile"; then
8460     # The compiler can only warn and ignore the option if not recognized
8461     # So say no if there are warnings other than the usual output.
8462     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8463     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8464     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8465       lt_prog_compiler_pic_works=yes
8466     fi
8467   fi
8468   $rm conftest*
8469
8470fi
8471echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8472echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8473
8474if test x"$lt_prog_compiler_pic_works" = xyes; then
8475    case $lt_prog_compiler_pic in
8476     "" | " "*) ;;
8477     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8478     esac
8479else
8480    lt_prog_compiler_pic=
8481     lt_prog_compiler_can_build_shared=no
8482fi
8483
8484fi
8485case $host_os in
8486  # For platforms which do not support PIC, -DPIC is meaningless:
8487  *djgpp*)
8488    lt_prog_compiler_pic=
8489    ;;
8490  *)
8491    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8492    ;;
8493esac
8494
8495#
8496# Check to make sure the static flag actually works.
8497#
8498wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8499echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8500echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8501if test "${lt_prog_compiler_static_works+set}" = set; then
8502  echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504  lt_prog_compiler_static_works=no
8505   save_LDFLAGS="$LDFLAGS"
8506   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8507   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8508   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8509     # The linker can only warn and ignore the option if not recognized
8510     # So say no if there are warnings
8511     if test -s conftest.err; then
8512       # Append any errors to the config.log.
8513       cat conftest.err 1>&5
8514       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8515       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516       if diff conftest.exp conftest.er2 >/dev/null; then
8517         lt_prog_compiler_static_works=yes
8518       fi
8519     else
8520       lt_prog_compiler_static_works=yes
8521     fi
8522   fi
8523   $rm conftest*
8524   LDFLAGS="$save_LDFLAGS"
8525
8526fi
8527echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8528echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8529
8530if test x"$lt_prog_compiler_static_works" = xyes; then
8531    :
8532else
8533    lt_prog_compiler_static=
8534fi
8535
8536
8537echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8538echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8539if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  lt_cv_prog_compiler_c_o=no
8543   $rm -r conftest 2>/dev/null
8544   mkdir conftest
8545   cd conftest
8546   mkdir out
8547   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8548
8549   lt_compiler_flag="-o out/conftest2.$ac_objext"
8550   # Insert the option either (1) after the last *FLAGS variable, or
8551   # (2) before a word containing "conftest.", or (3) at the end.
8552   # Note that $ac_compile itself does not contain backslashes and begins
8553   # with a dollar sign (not a hyphen), so the echo should work correctly.
8554   lt_compile=`echo "$ac_compile" | $SED \
8555   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8557   -e 's:$: $lt_compiler_flag:'`
8558   (eval echo "\"\$as_me:8558: $lt_compile\"" >&5)
8559   (eval "$lt_compile" 2>out/conftest.err)
8560   ac_status=$?
8561   cat out/conftest.err >&5
8562   echo "$as_me:8562: \$? = $ac_status" >&5
8563   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8564   then
8565     # The compiler can only warn and ignore the option if not recognized
8566     # So say no if there are warnings
8567     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8568     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8569     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8570       lt_cv_prog_compiler_c_o=yes
8571     fi
8572   fi
8573   chmod u+w . 2>&5
8574   $rm conftest*
8575   # SGI C++ compiler will create directory out/ii_files/ for
8576   # template instantiation
8577   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8578   $rm out/* && rmdir out
8579   cd ..
8580   rmdir conftest
8581   $rm conftest*
8582
8583fi
8584echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8585echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8586
8587
8588hard_links="nottested"
8589if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8590  # do not overwrite the value of need_locks provided by the user
8591  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8592echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8593  hard_links=yes
8594  $rm conftest*
8595  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8596  touch conftest.a
8597  ln conftest.a conftest.b 2>&5 || hard_links=no
8598  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8599  echo "$as_me:$LINENO: result: $hard_links" >&5
8600echo "${ECHO_T}$hard_links" >&6
8601  if test "$hard_links" = no; then
8602    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8603echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8604    need_locks=warn
8605  fi
8606else
8607  need_locks=no
8608fi
8609
8610echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8611echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8612
8613  runpath_var=
8614  allow_undefined_flag=
8615  enable_shared_with_static_runtimes=no
8616  archive_cmds=
8617  archive_expsym_cmds=
8618  old_archive_From_new_cmds=
8619  old_archive_from_expsyms_cmds=
8620  export_dynamic_flag_spec=
8621  whole_archive_flag_spec=
8622  thread_safe_flag_spec=
8623  hardcode_libdir_flag_spec=
8624  hardcode_libdir_flag_spec_ld=
8625  hardcode_libdir_separator=
8626  hardcode_direct=no
8627  hardcode_minus_L=no
8628  hardcode_shlibpath_var=unsupported
8629  link_all_deplibs=unknown
8630  hardcode_automatic=no
8631  module_cmds=
8632  module_expsym_cmds=
8633  always_export_symbols=no
8634  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8635  # include_expsyms should be a list of space-separated symbols to be *always*
8636  # included in the symbol list
8637  include_expsyms=
8638  # exclude_expsyms can be an extended regexp of symbols to exclude
8639  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8640  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8641  # as well as any symbol that contains `d'.
8642  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8643  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8644  # platforms (ab)use it in PIC code, but their linkers get confused if
8645  # the symbol is explicitly referenced.  Since portable code cannot
8646  # rely on this symbol name, it's probably fine to never include it in
8647  # preloaded symbol tables.
8648  extract_expsyms_cmds=
8649  # Just being paranoid about ensuring that cc_basename is set.
8650  for cc_temp in $compiler""; do
8651  case $cc_temp in
8652    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8653    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8654    \-*) ;;
8655    *) break;;
8656  esac
8657done
8658cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8659
8660  case $host_os in
8661  cygwin* | mingw* | pw32*)
8662    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8663    # When not using gcc, we currently assume that we are using
8664    # Microsoft Visual C++.
8665    if test "$GCC" != yes; then
8666      with_gnu_ld=no
8667    fi
8668    ;;
8669  interix*)
8670    # we just hope/assume this is gcc and not c89 (= MSVC++)
8671    with_gnu_ld=yes
8672    ;;
8673  openbsd*)
8674    with_gnu_ld=no
8675    ;;
8676  esac
8677
8678  ld_shlibs=yes
8679  if test "$with_gnu_ld" = yes; then
8680    # If archive_cmds runs LD, not CC, wlarc should be empty
8681    wlarc='${wl}'
8682
8683    # Set some defaults for GNU ld with shared library support. These
8684    # are reset later if shared libraries are not supported. Putting them
8685    # here allows them to be overridden if necessary.
8686    runpath_var=LD_RUN_PATH
8687    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8688    export_dynamic_flag_spec='${wl}--export-dynamic'
8689    # ancient GNU ld didn't support --whole-archive et. al.
8690    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8691        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8692      else
8693        whole_archive_flag_spec=
8694    fi
8695    supports_anon_versioning=no
8696    case `$LD -v 2>/dev/null` in
8697      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8698      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8699      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8700      *\ 2.11.*) ;; # other 2.11 versions
8701      *) supports_anon_versioning=yes ;;
8702    esac
8703
8704    # See if GNU ld supports shared libraries.
8705    case $host_os in
8706    aix3* | aix4* | aix5*)
8707      # On AIX/PPC, the GNU linker is very broken
8708      if test "$host_cpu" != ia64; then
8709        ld_shlibs=no
8710        cat <<EOF 1>&2
8711
8712*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8713*** to be unable to reliably create shared libraries on AIX.
8714*** Therefore, libtool is disabling shared libraries support.  If you
8715*** really care for shared libraries, you may want to modify your PATH
8716*** so that a non-GNU linker is found, and then restart.
8717
8718EOF
8719      fi
8720      ;;
8721
8722    amigaos*)
8723      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)'
8724      hardcode_libdir_flag_spec='-L$libdir'
8725      hardcode_minus_L=yes
8726
8727      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8728      # that the semantics of dynamic libraries on AmigaOS, at least up
8729      # to version 4, is to share data among multiple programs linked
8730      # with the same dynamic library.  Since this doesn't match the
8731      # behavior of shared libraries on other platforms, we can't use
8732      # them.
8733      ld_shlibs=no
8734      ;;
8735
8736    beos*)
8737      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8738        allow_undefined_flag=unsupported
8739        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8740        # support --undefined.  This deserves some investigation.  FIXME
8741        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742      else
8743        ld_shlibs=no
8744      fi
8745      ;;
8746
8747    cygwin* | mingw* | pw32*)
8748      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8749      # as there is no search path for DLLs.
8750      hardcode_libdir_flag_spec='-L$libdir'
8751      allow_undefined_flag=unsupported
8752      always_export_symbols=no
8753      enable_shared_with_static_runtimes=yes
8754      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8755
8756      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8757        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8758        # If the export-symbols file already is a .def file (1st line
8759        # is EXPORTS), use it as is; otherwise, prepend...
8760        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8761          cp $export_symbols $output_objdir/$soname.def;
8762        else
8763          echo EXPORTS > $output_objdir/$soname.def;
8764          cat $export_symbols >> $output_objdir/$soname.def;
8765        fi~
8766        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8767      else
8768        ld_shlibs=no
8769      fi
8770      ;;
8771
8772    interix3*)
8773      hardcode_direct=no
8774      hardcode_shlibpath_var=no
8775      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8776      export_dynamic_flag_spec='${wl}-E'
8777      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8778      # Instead, shared libraries are loaded at an image base (0x10000000 by
8779      # default) and relocated if they conflict, which is a slow very memory
8780      # consuming and fragmenting process.  To avoid this, we pick a random,
8781      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8782      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8783      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8784      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'
8785      ;;
8786
8787    linux*)
8788      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8789        tmp_addflag=
8790        case $cc_basename,$host_cpu in
8791        pgcc*)                          # Portland Group C compiler
8792          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'
8793          tmp_addflag=' $pic_flag'
8794          ;;
8795        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8796          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'
8797          tmp_addflag=' $pic_flag -Mnomain' ;;
8798        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8799          tmp_addflag=' -i_dynamic' ;;
8800        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8801          tmp_addflag=' -i_dynamic -nofor_main' ;;
8802        ifc* | ifort*)                  # Intel Fortran compiler
8803          tmp_addflag=' -nofor_main' ;;
8804        esac
8805        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806
8807        if test $supports_anon_versioning = yes; then
8808          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8809  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8810  $echo "local: *; };" >> $output_objdir/$libname.ver~
8811          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8812        fi
8813      else
8814        ld_shlibs=no
8815      fi
8816      ;;
8817
8818    netbsd*)
8819      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8820        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8821        wlarc=
8822      else
8823        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8825      fi
8826      ;;
8827
8828    solaris*)
8829      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8830        ld_shlibs=no
8831        cat <<EOF 1>&2
8832
8833*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8834*** create shared libraries on Solaris systems.  Therefore, libtool
8835*** is disabling shared libraries support.  We urge you to upgrade GNU
8836*** binutils to release 2.9.1 or newer.  Another option is to modify
8837*** your PATH or compiler configuration so that the native linker is
8838*** used, and then restart.
8839
8840EOF
8841      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8842        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8844      else
8845        ld_shlibs=no
8846      fi
8847      ;;
8848
8849    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8850      case `$LD -v 2>&1` in
8851        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8852        ld_shlibs=no
8853        cat <<_LT_EOF 1>&2
8854
8855*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8856*** reliably create shared libraries on SCO systems.  Therefore, libtool
8857*** is disabling shared libraries support.  We urge you to upgrade GNU
8858*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8859*** your PATH or compiler configuration so that the native linker is
8860*** used, and then restart.
8861
8862_LT_EOF
8863        ;;
8864        *)
8865          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8866            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8867            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8868            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8869          else
8870            ld_shlibs=no
8871          fi
8872        ;;
8873      esac
8874      ;;
8875
8876    sunos4*)
8877      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8878      wlarc=
8879      hardcode_direct=yes
8880      hardcode_shlibpath_var=no
8881      ;;
8882
8883    *)
8884      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8885        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8887      else
8888        ld_shlibs=no
8889      fi
8890      ;;
8891    esac
8892
8893    if test "$ld_shlibs" = no; then
8894      runpath_var=
8895      hardcode_libdir_flag_spec=
8896      export_dynamic_flag_spec=
8897      whole_archive_flag_spec=
8898    fi
8899  else
8900    # PORTME fill in a description of your system's linker (not GNU ld)
8901    case $host_os in
8902    aix3*)
8903      allow_undefined_flag=unsupported
8904      always_export_symbols=yes
8905      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'
8906      # Note: this linker hardcodes the directories in LIBPATH if there
8907      # are no directories specified by -L.
8908      hardcode_minus_L=yes
8909      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8910        # Neither direct hardcoding nor static linking is supported with a
8911        # broken collect2.
8912        hardcode_direct=unsupported
8913      fi
8914      ;;
8915
8916    aix4* | aix5*)
8917      if test "$host_cpu" = ia64; then
8918        # On IA64, the linker does run time linking by default, so we don't
8919        # have to do anything special.
8920        aix_use_runtimelinking=no
8921        exp_sym_flag='-Bexport'
8922        no_entry_flag=""
8923      else
8924        # If we're using GNU nm, then we don't want the "-C" option.
8925        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8926        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8927          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'
8928        else
8929          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'
8930        fi
8931        aix_use_runtimelinking=no
8932
8933        # Test if we are trying to use run time linking or normal
8934        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8935        # need to do runtime linking.
8936        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8937          for ld_flag in $LDFLAGS; do
8938          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8939            aix_use_runtimelinking=yes
8940            break
8941          fi
8942          done
8943          ;;
8944        esac
8945
8946        exp_sym_flag='-bexport'
8947        no_entry_flag='-bnoentry'
8948      fi
8949
8950      # When large executables or shared objects are built, AIX ld can
8951      # have problems creating the table of contents.  If linking a library
8952      # or program results in "error TOC overflow" add -mminimal-toc to
8953      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8954      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8955
8956      archive_cmds=''
8957      hardcode_direct=yes
8958      hardcode_libdir_separator=':'
8959      link_all_deplibs=yes
8960
8961      if test "$GCC" = yes; then
8962        case $host_os in aix4.[012]|aix4.[012].*)
8963        # We only want to do this on AIX 4.2 and lower, the check
8964        # below for broken collect2 doesn't work under 4.3+
8965          collect2name=`${CC} -print-prog-name=collect2`
8966          if test -f "$collect2name" && \
8967           strings "$collect2name" | grep resolve_lib_name >/dev/null
8968          then
8969          # We have reworked collect2
8970          hardcode_direct=yes
8971          else
8972          # We have old collect2
8973          hardcode_direct=unsupported
8974          # It fails to find uninstalled libraries when the uninstalled
8975          # path is not listed in the libpath.  Setting hardcode_minus_L
8976          # to unsupported forces relinking
8977          hardcode_minus_L=yes
8978          hardcode_libdir_flag_spec='-L$libdir'
8979          hardcode_libdir_separator=
8980          fi
8981          ;;
8982        esac
8983        shared_flag='-shared'
8984        if test "$aix_use_runtimelinking" = yes; then
8985          shared_flag="$shared_flag "'${wl}-G'
8986        fi
8987      else
8988        # not using gcc
8989        if test "$host_cpu" = ia64; then
8990        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8991        # chokes on -Wl,-G. The following line is correct:
8992          shared_flag='-G'
8993        else
8994          if test "$aix_use_runtimelinking" = yes; then
8995            shared_flag='${wl}-G'
8996          else
8997            shared_flag='${wl}-bM:SRE'
8998          fi
8999        fi
9000      fi
9001
9002      # It seems that -bexpall does not export symbols beginning with
9003      # underscore (_), so it is better to generate a list of symbols to export.
9004      always_export_symbols=yes
9005      if test "$aix_use_runtimelinking" = yes; then
9006        # Warning - without using the other runtime loading flags (-brtl),
9007        # -berok will link without error, but may produce a broken library.
9008        allow_undefined_flag='-berok'
9009       # Determine the default libpath from the value encoded in an empty executable.
9010       cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h.  */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h.  */
9016
9017int
9018main ()
9019{
9020
9021  ;
9022  return 0;
9023}
9024_ACEOF
9025rm -f conftest.$ac_objext conftest$ac_exeext
9026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027  (eval $ac_link) 2>conftest.er1
9028  ac_status=$?
9029  grep -v '^ *+' conftest.er1 >conftest.err
9030  rm -f conftest.er1
9031  cat conftest.err >&5
9032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033  (exit $ac_status); } &&
9034         { ac_try='test -z "$ac_c_werror_flag"
9035                         || test ! -s conftest.err'
9036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037  (eval $ac_try) 2>&5
9038  ac_status=$?
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); }; } &&
9041         { ac_try='test -s conftest$ac_exeext'
9042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043  (eval $ac_try) 2>&5
9044  ac_status=$?
9045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046  (exit $ac_status); }; }; then
9047
9048aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9049}'`
9050# Check for a 64-bit object if we didn't find anything.
9051if 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; }
9052}'`; fi
9053else
9054  echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057fi
9058rm -f conftest.err conftest.$ac_objext \
9059      conftest$ac_exeext conftest.$ac_ext
9060if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9061
9062       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9063        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"
9064       else
9065        if test "$host_cpu" = ia64; then
9066          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9067          allow_undefined_flag="-z nodefs"
9068          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"
9069        else
9070         # Determine the default libpath from the value encoded in an empty executable.
9071         cat >conftest.$ac_ext <<_ACEOF
9072/* confdefs.h.  */
9073_ACEOF
9074cat confdefs.h >>conftest.$ac_ext
9075cat >>conftest.$ac_ext <<_ACEOF
9076/* end confdefs.h.  */
9077
9078int
9079main ()
9080{
9081
9082  ;
9083  return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext conftest$ac_exeext
9087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088  (eval $ac_link) 2>conftest.er1
9089  ac_status=$?
9090  grep -v '^ *+' conftest.er1 >conftest.err
9091  rm -f conftest.er1
9092  cat conftest.err >&5
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); } &&
9095         { ac_try='test -z "$ac_c_werror_flag"
9096                         || test ! -s conftest.err'
9097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098  (eval $ac_try) 2>&5
9099  ac_status=$?
9100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101  (exit $ac_status); }; } &&
9102         { ac_try='test -s conftest$ac_exeext'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; }; then
9108
9109aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9110}'`
9111# Check for a 64-bit object if we didn't find anything.
9112if 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; }
9113}'`; fi
9114else
9115  echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118fi
9119rm -f conftest.err conftest.$ac_objext \
9120      conftest$ac_exeext conftest.$ac_ext
9121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9122
9123         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9124          # Warning - without using the other run time loading flags,
9125          # -berok will link without error, but may produce a broken library.
9126          no_undefined_flag=' ${wl}-bernotok'
9127          allow_undefined_flag=' ${wl}-berok'
9128          # Exported symbols can be pulled into shared objects from archives
9129          whole_archive_flag_spec='$convenience'
9130          archive_cmds_need_lc=yes
9131          # This is similar to how AIX traditionally builds its shared libraries.
9132          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'
9133        fi
9134      fi
9135      ;;
9136
9137    amigaos*)
9138      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)'
9139      hardcode_libdir_flag_spec='-L$libdir'
9140      hardcode_minus_L=yes
9141      # see comment about different semantics on the GNU ld section
9142      ld_shlibs=no
9143      ;;
9144
9145    bsdi[45]*)
9146      export_dynamic_flag_spec=-rdynamic
9147      ;;
9148
9149    cygwin* | mingw* | pw32*)
9150      # When not using gcc, we currently assume that we are using
9151      # Microsoft Visual C++.
9152      # hardcode_libdir_flag_spec is actually meaningless, as there is
9153      # no search path for DLLs.
9154      hardcode_libdir_flag_spec=' '
9155      allow_undefined_flag=unsupported
9156      # Tell ltmain to make .lib files, not .a files.
9157      libext=lib
9158      # Tell ltmain to make .dll files, not .so files.
9159      shrext_cmds=".dll"
9160      # FIXME: Setting linknames here is a bad hack.
9161      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9162      # The linker will automatically build a .lib file if we build a DLL.
9163      old_archive_From_new_cmds='true'
9164      # FIXME: Should let the user specify the lib program.
9165      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9166      fix_srcfile_path='`cygpath -w "$srcfile"`'
9167      enable_shared_with_static_runtimes=yes
9168      ;;
9169
9170    darwin* | rhapsody*)
9171      case $host_os in
9172        rhapsody* | darwin1.[012])
9173         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9174         ;;
9175       *) # Darwin 1.3 on
9176         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9177           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9178         else
9179           case ${MACOSX_DEPLOYMENT_TARGET} in
9180             10.[012])
9181               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9182               ;;
9183             10.*)
9184               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9185               ;;
9186           esac
9187         fi
9188         ;;
9189      esac
9190      archive_cmds_need_lc=no
9191      hardcode_direct=no
9192      hardcode_automatic=yes
9193      hardcode_shlibpath_var=unsupported
9194      whole_archive_flag_spec=''
9195      link_all_deplibs=yes
9196    if test "$GCC" = yes ; then
9197        output_verbose_link_cmd='echo'
9198        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9199      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9200      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9201      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}'
9202      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}'
9203    else
9204      case $cc_basename in
9205        xlc*)
9206         output_verbose_link_cmd='echo'
9207         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9208         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9209          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9210         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}'
9211          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}'
9212          ;;
9213       *)
9214         ld_shlibs=no
9215          ;;
9216      esac
9217    fi
9218      ;;
9219
9220    dgux*)
9221      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222      hardcode_libdir_flag_spec='-L$libdir'
9223      hardcode_shlibpath_var=no
9224      ;;
9225
9226    freebsd1*)
9227      ld_shlibs=no
9228      ;;
9229
9230    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9231    # support.  Future versions do this automatically, but an explicit c++rt0.o
9232    # does not break anything, and helps significantly (at the cost of a little
9233    # extra space).
9234    freebsd2.2*)
9235      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9236      hardcode_libdir_flag_spec='-R$libdir'
9237      hardcode_direct=yes
9238      hardcode_shlibpath_var=no
9239      ;;
9240
9241    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9242    freebsd2*)
9243      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9244      hardcode_direct=yes
9245      hardcode_minus_L=yes
9246      hardcode_shlibpath_var=no
9247      ;;
9248
9249    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9250    freebsd* | kfreebsd*-gnu | dragonfly*)
9251      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9252      hardcode_libdir_flag_spec='-R$libdir'
9253      hardcode_direct=yes
9254      hardcode_shlibpath_var=no
9255      ;;
9256
9257    hpux9*)
9258      if test "$GCC" = yes; then
9259        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'
9260      else
9261        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'
9262      fi
9263      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264      hardcode_libdir_separator=:
9265      hardcode_direct=yes
9266
9267      # hardcode_minus_L: Not really in the search PATH,
9268      # but as the default location of the library.
9269      hardcode_minus_L=yes
9270      export_dynamic_flag_spec='${wl}-E'
9271      ;;
9272
9273    hpux10*)
9274      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9275        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9276      else
9277        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9278      fi
9279      if test "$with_gnu_ld" = no; then
9280        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9281        hardcode_libdir_separator=:
9282
9283        hardcode_direct=yes
9284        export_dynamic_flag_spec='${wl}-E'
9285
9286        # hardcode_minus_L: Not really in the search PATH,
9287        # but as the default location of the library.
9288        hardcode_minus_L=yes
9289      fi
9290      ;;
9291
9292    hpux11*)
9293      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9294        case $host_cpu in
9295        hppa*64*)
9296          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9297          ;;
9298        ia64*)
9299          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9300          ;;
9301        *)
9302          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9303          ;;
9304        esac
9305      else
9306        case $host_cpu in
9307        hppa*64*)
9308          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309          ;;
9310        ia64*)
9311          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9312          ;;
9313        *)
9314          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315          ;;
9316        esac
9317      fi
9318      if test "$with_gnu_ld" = no; then
9319        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320        hardcode_libdir_separator=:
9321
9322        case $host_cpu in
9323        hppa*64*|ia64*)
9324          hardcode_libdir_flag_spec_ld='+b $libdir'
9325          hardcode_direct=no
9326          hardcode_shlibpath_var=no
9327          ;;
9328        *)
9329          hardcode_direct=yes
9330          export_dynamic_flag_spec='${wl}-E'
9331
9332          # hardcode_minus_L: Not really in the search PATH,
9333          # but as the default location of the library.
9334          hardcode_minus_L=yes
9335          ;;
9336        esac
9337      fi
9338      ;;
9339
9340    irix5* | irix6* | nonstopux*)
9341      if test "$GCC" = yes; then
9342        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'
9343      else
9344        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'
9345        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9346      fi
9347      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9348      hardcode_libdir_separator=:
9349      link_all_deplibs=yes
9350      ;;
9351
9352    netbsd*)
9353      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9354        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9355      else
9356        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9357      fi
9358      hardcode_libdir_flag_spec='-R$libdir'
9359      hardcode_direct=yes
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    newsos6)
9364      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365      hardcode_direct=yes
9366      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367      hardcode_libdir_separator=:
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    openbsd*)
9372      hardcode_direct=yes
9373      hardcode_shlibpath_var=no
9374      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9375        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9377        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9378        export_dynamic_flag_spec='${wl}-E'
9379      else
9380       case $host_os in
9381         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9382           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383           hardcode_libdir_flag_spec='-R$libdir'
9384           ;;
9385         *)
9386           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9387           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9388           ;;
9389       esac
9390      fi
9391      ;;
9392
9393    os2*)
9394      hardcode_libdir_flag_spec='-L$libdir'
9395      hardcode_minus_L=yes
9396      allow_undefined_flag=unsupported
9397      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'
9398      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9399      ;;
9400
9401    osf3*)
9402      if test "$GCC" = yes; then
9403        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9404        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'
9405      else
9406        allow_undefined_flag=' -expect_unresolved \*'
9407        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'
9408      fi
9409      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410      hardcode_libdir_separator=:
9411      ;;
9412
9413    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9414      if test "$GCC" = yes; then
9415        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9416        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'
9417        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9418      else
9419        allow_undefined_flag=' -expect_unresolved \*'
9420        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'
9421        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9422        $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'
9423
9424        # Both c and cxx compiler support -rpath directly
9425        hardcode_libdir_flag_spec='-rpath $libdir'
9426      fi
9427      hardcode_libdir_separator=:
9428      ;;
9429
9430    solaris*)
9431      no_undefined_flag=' -z text'
9432      if test "$GCC" = yes; then
9433        wlarc='${wl}'
9434        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9436          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9437      else
9438        wlarc=''
9439        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9441        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9442      fi
9443      hardcode_libdir_flag_spec='-R$libdir'
9444      hardcode_shlibpath_var=no
9445      case $host_os in
9446      solaris2.[0-5] | solaris2.[0-5].*) ;;
9447      *)
9448        # The compiler driver will combine linker options so we
9449        # cannot just pass the convience library names through
9450        # without $wl, iff we do not link with $LD.
9451        # Luckily, gcc supports the same syntax we need for Sun Studio.
9452        # Supported since Solaris 2.6 (maybe 2.5.1?)
9453        case $wlarc in
9454        '')
9455          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9456        *)
9457          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' ;;
9458        esac ;;
9459      esac
9460      link_all_deplibs=yes
9461      ;;
9462
9463    sunos4*)
9464      if test "x$host_vendor" = xsequent; then
9465        # Use $CC to link under sequent, because it throws in some extra .o
9466        # files that make .init and .fini sections work.
9467        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9468      else
9469        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9470      fi
9471      hardcode_libdir_flag_spec='-L$libdir'
9472      hardcode_direct=yes
9473      hardcode_minus_L=yes
9474      hardcode_shlibpath_var=no
9475      ;;
9476
9477    sysv4)
9478      case $host_vendor in
9479        sni)
9480          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9481          hardcode_direct=yes # is this really true???
9482        ;;
9483        siemens)
9484          ## LD is ld it makes a PLAMLIB
9485          ## CC just makes a GrossModule.
9486          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9487          reload_cmds='$CC -r -o $output$reload_objs'
9488          hardcode_direct=no
9489        ;;
9490        motorola)
9491          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9493        ;;
9494      esac
9495      runpath_var='LD_RUN_PATH'
9496      hardcode_shlibpath_var=no
9497      ;;
9498
9499    sysv4.3*)
9500      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501      hardcode_shlibpath_var=no
9502      export_dynamic_flag_spec='-Bexport'
9503      ;;
9504
9505    sysv4*MP*)
9506      if test -d /usr/nec; then
9507        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508        hardcode_shlibpath_var=no
9509        runpath_var=LD_RUN_PATH
9510        hardcode_runpath_var=yes
9511        ld_shlibs=yes
9512      fi
9513      ;;
9514
9515    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9516      no_undefined_flag='${wl}-z,text'
9517      archive_cmds_need_lc=no
9518      hardcode_shlibpath_var=no
9519      runpath_var='LD_RUN_PATH'
9520
9521      if test "$GCC" = yes; then
9522        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524      else
9525        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9527      fi
9528      ;;
9529
9530    sysv5* | sco3.2v5* | sco5v6*)
9531      # Note: We can NOT use -z defs as we might desire, because we do not
9532      # link with -lc, and that would cause any symbols used from libc to
9533      # always be unresolved, which means just about no library would
9534      # ever link correctly.  If we're not using GNU ld we use -z text
9535      # though, which does catch some bad symbols but isn't as heavy-handed
9536      # as -z defs.
9537      no_undefined_flag='${wl}-z,text'
9538      allow_undefined_flag='${wl}-z,nodefs'
9539      archive_cmds_need_lc=no
9540      hardcode_shlibpath_var=no
9541      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9542      hardcode_libdir_separator=':'
9543      link_all_deplibs=yes
9544      export_dynamic_flag_spec='${wl}-Bexport'
9545      runpath_var='LD_RUN_PATH'
9546
9547      if test "$GCC" = yes; then
9548        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9549        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9550      else
9551        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9552        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9553      fi
9554      ;;
9555
9556    uts4*)
9557      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558      hardcode_libdir_flag_spec='-L$libdir'
9559      hardcode_shlibpath_var=no
9560      ;;
9561
9562    *)
9563      ld_shlibs=no
9564      ;;
9565    esac
9566  fi
9567
9568echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9569echo "${ECHO_T}$ld_shlibs" >&6
9570test "$ld_shlibs" = no && can_build_shared=no
9571
9572#
9573# Do we need to explicitly link libc?
9574#
9575case "x$archive_cmds_need_lc" in
9576x|xyes)
9577  # Assume -lc should be added
9578  archive_cmds_need_lc=yes
9579
9580  if test "$enable_shared" = yes && test "$GCC" = yes; then
9581    case $archive_cmds in
9582    *'~'*)
9583      # FIXME: we may have to deal with multi-command sequences.
9584      ;;
9585    '$CC '*)
9586      # Test whether the compiler implicitly links with -lc since on some
9587      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9588      # to ld, don't add -lc before -lgcc.
9589      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9590echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9591      $rm conftest*
9592      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595  (eval $ac_compile) 2>&5
9596  ac_status=$?
9597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598  (exit $ac_status); } 2>conftest.err; then
9599        soname=conftest
9600        lib=conftest
9601        libobjs=conftest.$ac_objext
9602        deplibs=
9603        wl=$lt_prog_compiler_wl
9604        pic_flag=$lt_prog_compiler_pic
9605        compiler_flags=-v
9606        linker_flags=-v
9607        verstring=
9608        output_objdir=.
9609        libname=conftest
9610        lt_save_allow_undefined_flag=$allow_undefined_flag
9611        allow_undefined_flag=
9612        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9613  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9614  ac_status=$?
9615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616  (exit $ac_status); }
9617        then
9618          archive_cmds_need_lc=no
9619        else
9620          archive_cmds_need_lc=yes
9621        fi
9622        allow_undefined_flag=$lt_save_allow_undefined_flag
9623      else
9624        cat conftest.err 1>&5
9625      fi
9626      $rm conftest*
9627      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9628echo "${ECHO_T}$archive_cmds_need_lc" >&6
9629      ;;
9630    esac
9631  fi
9632  ;;
9633esac
9634
9635echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9636echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9637library_names_spec=
9638libname_spec='lib$name'
9639soname_spec=
9640shrext_cmds=".so"
9641postinstall_cmds=
9642postuninstall_cmds=
9643finish_cmds=
9644finish_eval=
9645shlibpath_var=
9646shlibpath_overrides_runpath=unknown
9647version_type=none
9648dynamic_linker="$host_os ld.so"
9649sys_lib_dlsearch_path_spec="/lib /usr/lib"
9650if test "$GCC" = yes; then
9651  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9652  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9653    # if the path contains ";" then we assume it to be the separator
9654    # otherwise default to the standard path separator (i.e. ":") - it is
9655    # assumed that no part of a normal pathname contains ";" but that should
9656    # okay in the real world where ";" in dirpaths is itself problematic.
9657    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9658  else
9659    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9660  fi
9661else
9662  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9663fi
9664need_lib_prefix=unknown
9665hardcode_into_libs=no
9666
9667# when you set need_version to no, make sure it does not cause -set_version
9668# flags to be left without arguments
9669need_version=unknown
9670
9671case $host_os in
9672aix3*)
9673  version_type=linux
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9675  shlibpath_var=LIBPATH
9676
9677  # AIX 3 has no versioning support, so we append a major version to the name.
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  ;;
9680
9681aix4* | aix5*)
9682  version_type=linux
9683  need_lib_prefix=no
9684  need_version=no
9685  hardcode_into_libs=yes
9686  if test "$host_cpu" = ia64; then
9687    # AIX 5 supports IA64
9688    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9689    shlibpath_var=LD_LIBRARY_PATH
9690  else
9691    # With GCC up to 2.95.x, collect2 would create an import file
9692    # for dependence libraries.  The import file would start with
9693    # the line `#! .'.  This would cause the generated library to
9694    # depend on `.', always an invalid library.  This was fixed in
9695    # development snapshots of GCC prior to 3.0.
9696    case $host_os in
9697      aix4 | aix4.[01] | aix4.[01].*)
9698      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9699           echo ' yes '
9700           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9701        :
9702      else
9703        can_build_shared=no
9704      fi
9705      ;;
9706    esac
9707    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9708    # soname into executable. Probably we can add versioning support to
9709    # collect2, so additional links can be useful in future.
9710    if test "$aix_use_runtimelinking" = yes; then
9711      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9712      # instead of lib<name>.a to let people know that these are not
9713      # typical AIX shared libraries.
9714      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715    else
9716      # We preserve .a as extension for shared libraries through AIX4.2
9717      # and later when we are not doing run time linking.
9718      library_names_spec='${libname}${release}.a $libname.a'
9719      soname_spec='${libname}${release}${shared_ext}$major'
9720    fi
9721    shlibpath_var=LIBPATH
9722  fi
9723  ;;
9724
9725amigaos*)
9726  library_names_spec='$libname.ixlibrary $libname.a'
9727  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9728  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'
9729  ;;
9730
9731beos*)
9732  library_names_spec='${libname}${shared_ext}'
9733  dynamic_linker="$host_os ld.so"
9734  shlibpath_var=LIBRARY_PATH
9735  ;;
9736
9737bsdi[45]*)
9738  version_type=linux
9739  need_version=no
9740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741  soname_spec='${libname}${release}${shared_ext}$major'
9742  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9743  shlibpath_var=LD_LIBRARY_PATH
9744  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9745  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9746  # the default ld.so.conf also contains /usr/contrib/lib and
9747  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9748  # libtool to hard-code these into programs
9749  ;;
9750
9751cygwin* | mingw* | pw32*)
9752  version_type=windows
9753  shrext_cmds=".dll"
9754  need_version=no
9755  need_lib_prefix=no
9756
9757  case $GCC,$host_os in
9758  yes,cygwin* | yes,mingw* | yes,pw32*)
9759    library_names_spec='$libname.dll.a'
9760    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9761    postinstall_cmds='base_file=`basename \${file}`~
9762      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9763      dldir=$destdir/`dirname \$dlpath`~
9764      test -d \$dldir || mkdir -p \$dldir~
9765      $install_prog $dir/$dlname \$dldir/$dlname~
9766      chmod a+x \$dldir/$dlname'
9767    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9768      dlpath=$dir/\$dldll~
9769       $rm \$dlpath'
9770    shlibpath_overrides_runpath=yes
9771
9772    case $host_os in
9773    cygwin*)
9774      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9775      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9776      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9777      ;;
9778    mingw*)
9779      # MinGW DLLs use traditional 'lib' prefix
9780      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9781      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9782      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9783        # It is most probably a Windows format PATH printed by
9784        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9785        # path with ; separators, and with drive letters. We can handle the
9786        # drive letters (cygwin fileutils understands them), so leave them,
9787        # especially as we might pass files found there to a mingw objdump,
9788        # which wouldn't understand a cygwinified path. Ahh.
9789        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9790      else
9791        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9792      fi
9793      ;;
9794    pw32*)
9795      # pw32 DLLs use 'pw' prefix rather than 'lib'
9796      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9797      ;;
9798    esac
9799    ;;
9800
9801  *)
9802    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9803    ;;
9804  esac
9805  dynamic_linker='Win32 ld.exe'
9806  # FIXME: first we should search . and the directory the executable is in
9807  shlibpath_var=PATH
9808  ;;
9809
9810darwin* | rhapsody*)
9811  dynamic_linker="$host_os dyld"
9812  version_type=darwin
9813  need_lib_prefix=no
9814  need_version=no
9815  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9816  soname_spec='${libname}${release}${major}$shared_ext'
9817  shlibpath_overrides_runpath=yes
9818  shlibpath_var=DYLD_LIBRARY_PATH
9819  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9820  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9821  if test "$GCC" = yes; then
9822    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"`
9823  else
9824    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9825  fi
9826  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9827  ;;
9828
9829dgux*)
9830  version_type=linux
9831  need_lib_prefix=no
9832  need_version=no
9833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9834  soname_spec='${libname}${release}${shared_ext}$major'
9835  shlibpath_var=LD_LIBRARY_PATH
9836  ;;
9837
9838freebsd1*)
9839  dynamic_linker=no
9840  ;;
9841
9842kfreebsd*-gnu)
9843  version_type=linux
9844  need_lib_prefix=no
9845  need_version=no
9846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9847  soname_spec='${libname}${release}${shared_ext}$major'
9848  shlibpath_var=LD_LIBRARY_PATH
9849  shlibpath_overrides_runpath=no
9850  hardcode_into_libs=yes
9851  dynamic_linker='GNU ld.so'
9852  ;;
9853
9854freebsd* | dragonfly*)
9855  # DragonFly does not have aout.  When/if they implement a new
9856  # versioning mechanism, adjust this.
9857  if test -x /usr/bin/objformat; then
9858    objformat=`/usr/bin/objformat`
9859  else
9860    case $host_os in
9861    freebsd[123]*) objformat=aout ;;
9862    *) objformat=elf ;;
9863    esac
9864  fi
9865  version_type=freebsd-$objformat
9866  case $version_type in
9867    freebsd-elf*)
9868      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9869      need_version=no
9870      need_lib_prefix=no
9871      ;;
9872    freebsd-*)
9873      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9874      need_version=yes
9875      ;;
9876  esac
9877  shlibpath_var=LD_LIBRARY_PATH
9878  case $host_os in
9879  freebsd2*)
9880    shlibpath_overrides_runpath=yes
9881    ;;
9882  freebsd3.[01]* | freebsdelf3.[01]*)
9883    shlibpath_overrides_runpath=yes
9884    hardcode_into_libs=yes
9885    ;;
9886  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9887  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9888    shlibpath_overrides_runpath=no
9889    hardcode_into_libs=yes
9890    ;;
9891  freebsd*) # from 4.6 on
9892    shlibpath_overrides_runpath=yes
9893    hardcode_into_libs=yes
9894    ;;
9895  esac
9896  ;;
9897
9898gnu*)
9899  version_type=linux
9900  need_lib_prefix=no
9901  need_version=no
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  hardcode_into_libs=yes
9906  ;;
9907
9908hpux9* | hpux10* | hpux11*)
9909  # Give a soname corresponding to the major version so that dld.sl refuses to
9910  # link against other versions.
9911  version_type=sunos
9912  need_lib_prefix=no
9913  need_version=no
9914  case $host_cpu in
9915  ia64*)
9916    shrext_cmds='.so'
9917    hardcode_into_libs=yes
9918    dynamic_linker="$host_os dld.so"
9919    shlibpath_var=LD_LIBRARY_PATH
9920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922    soname_spec='${libname}${release}${shared_ext}$major'
9923    if test "X$HPUX_IA64_MODE" = X32; then
9924      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9925    else
9926      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9927    fi
9928    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9929    ;;
9930   hppa*64*)
9931     shrext_cmds='.sl'
9932     hardcode_into_libs=yes
9933     dynamic_linker="$host_os dld.sl"
9934     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937     soname_spec='${libname}${release}${shared_ext}$major'
9938     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9940     ;;
9941   *)
9942    shrext_cmds='.sl'
9943    dynamic_linker="$host_os dld.sl"
9944    shlibpath_var=SHLIB_PATH
9945    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947    soname_spec='${libname}${release}${shared_ext}$major'
9948    ;;
9949  esac
9950  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9951  postinstall_cmds='chmod 555 $lib'
9952  ;;
9953
9954interix3*)
9955  version_type=linux
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9961  shlibpath_var=LD_LIBRARY_PATH
9962  shlibpath_overrides_runpath=no
9963  hardcode_into_libs=yes
9964  ;;
9965
9966irix5* | irix6* | nonstopux*)
9967  case $host_os in
9968    nonstopux*) version_type=nonstopux ;;
9969    *)
9970        if test "$lt_cv_prog_gnu_ld" = yes; then
9971                version_type=linux
9972        else
9973                version_type=irix
9974        fi ;;
9975  esac
9976  need_lib_prefix=no
9977  need_version=no
9978  soname_spec='${libname}${release}${shared_ext}$major'
9979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9980  case $host_os in
9981  irix5* | nonstopux*)
9982    libsuff= shlibsuff=
9983    ;;
9984  *)
9985    case $LD in # libtool.m4 will add one of these switches to LD
9986    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9987      libsuff= shlibsuff= libmagic=32-bit;;
9988    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9989      libsuff=32 shlibsuff=N32 libmagic=N32;;
9990    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9991      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9992    *) libsuff= shlibsuff= libmagic=never-match;;
9993    esac
9994    ;;
9995  esac
9996  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9997  shlibpath_overrides_runpath=no
9998  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9999  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10000  hardcode_into_libs=yes
10001  ;;
10002
10003# No shared lib support for Linux oldld, aout, or coff.
10004linux*oldld* | linux*aout* | linux*coff*)
10005  dynamic_linker=no
10006  ;;
10007
10008# This must be Linux ELF.
10009linux*)
10010  version_type=linux
10011  need_lib_prefix=no
10012  need_version=no
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  shlibpath_overrides_runpath=no
10018  # This implies no fast_install, which is unacceptable.
10019  # Some rework will be needed to allow for fast_install
10020  # before this can be enabled.
10021  hardcode_into_libs=yes
10022
10023  # Append ld.so.conf contents to the search path
10024  if test -f /etc/ld.so.conf; then
10025    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' ' '`
10026    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10027  fi
10028
10029  # We used to test for /lib/ld.so.1 and disable shared libraries on
10030  # powerpc, because MkLinux only supported shared libraries with the
10031  # GNU dynamic linker.  Since this was broken with cross compilers,
10032  # most powerpc-linux boxes support dynamic linking these days and
10033  # people can always --disable-shared, the test was removed, and we
10034  # assume the GNU/Linux dynamic linker is in use.
10035  dynamic_linker='GNU/Linux ld.so'
10036  ;;
10037
10038knetbsd*-gnu)
10039  version_type=linux
10040  need_lib_prefix=no
10041  need_version=no
10042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  shlibpath_var=LD_LIBRARY_PATH
10045  shlibpath_overrides_runpath=no
10046  hardcode_into_libs=yes
10047  dynamic_linker='GNU ld.so'
10048  ;;
10049
10050netbsd*)
10051  version_type=sunos
10052  need_lib_prefix=no
10053  need_version=no
10054  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10056    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10057    dynamic_linker='NetBSD (a.out) ld.so'
10058  else
10059    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10060    soname_spec='${libname}${release}${shared_ext}$major'
10061    dynamic_linker='NetBSD ld.elf_so'
10062  fi
10063  shlibpath_var=LD_LIBRARY_PATH
10064  shlibpath_overrides_runpath=yes
10065  hardcode_into_libs=yes
10066  ;;
10067
10068newsos6)
10069  version_type=linux
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  shlibpath_overrides_runpath=yes
10073  ;;
10074
10075nto-qnx*)
10076  version_type=linux
10077  need_lib_prefix=no
10078  need_version=no
10079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080  soname_spec='${libname}${release}${shared_ext}$major'
10081  shlibpath_var=LD_LIBRARY_PATH
10082  shlibpath_overrides_runpath=yes
10083  ;;
10084
10085openbsd*)
10086  version_type=sunos
10087  sys_lib_dlsearch_path_spec="/usr/lib"
10088  need_lib_prefix=no
10089  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10090  case $host_os in
10091    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10092    *)                         need_version=no  ;;
10093  esac
10094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10095  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10096  shlibpath_var=LD_LIBRARY_PATH
10097  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10098    case $host_os in
10099      openbsd2.[89] | openbsd2.[89].*)
10100        shlibpath_overrides_runpath=no
10101        ;;
10102      *)
10103        shlibpath_overrides_runpath=yes
10104        ;;
10105      esac
10106  else
10107    shlibpath_overrides_runpath=yes
10108  fi
10109  ;;
10110
10111os2*)
10112  libname_spec='$name'
10113  shrext_cmds=".dll"
10114  need_lib_prefix=no
10115  library_names_spec='$libname${shared_ext} $libname.a'
10116  dynamic_linker='OS/2 ld.exe'
10117  shlibpath_var=LIBPATH
10118  ;;
10119
10120osf3* | osf4* | osf5*)
10121  version_type=osf
10122  need_lib_prefix=no
10123  need_version=no
10124  soname_spec='${libname}${release}${shared_ext}$major'
10125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126  shlibpath_var=LD_LIBRARY_PATH
10127  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10128  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10129  ;;
10130
10131solaris*)
10132  version_type=linux
10133  need_lib_prefix=no
10134  need_version=no
10135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136  soname_spec='${libname}${release}${shared_ext}$major'
10137  shlibpath_var=LD_LIBRARY_PATH
10138  shlibpath_overrides_runpath=yes
10139  hardcode_into_libs=yes
10140  # ldd complains unless libraries are executable
10141  postinstall_cmds='chmod +x $lib'
10142  ;;
10143
10144sunos4*)
10145  version_type=sunos
10146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10147  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10148  shlibpath_var=LD_LIBRARY_PATH
10149  shlibpath_overrides_runpath=yes
10150  if test "$with_gnu_ld" = yes; then
10151    need_lib_prefix=no
10152  fi
10153  need_version=yes
10154  ;;
10155
10156sysv4 | sysv4.3*)
10157  version_type=linux
10158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159  soname_spec='${libname}${release}${shared_ext}$major'
10160  shlibpath_var=LD_LIBRARY_PATH
10161  case $host_vendor in
10162    sni)
10163      shlibpath_overrides_runpath=no
10164      need_lib_prefix=no
10165      export_dynamic_flag_spec='${wl}-Blargedynsym'
10166      runpath_var=LD_RUN_PATH
10167      ;;
10168    siemens)
10169      need_lib_prefix=no
10170      ;;
10171    motorola)
10172      need_lib_prefix=no
10173      need_version=no
10174      shlibpath_overrides_runpath=no
10175      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10176      ;;
10177  esac
10178  ;;
10179
10180sysv4*MP*)
10181  if test -d /usr/nec ;then
10182    version_type=linux
10183    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10184    soname_spec='$libname${shared_ext}.$major'
10185    shlibpath_var=LD_LIBRARY_PATH
10186  fi
10187  ;;
10188
10189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10190  version_type=freebsd-elf
10191  need_lib_prefix=no
10192  need_version=no
10193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10194  soname_spec='${libname}${release}${shared_ext}$major'
10195  shlibpath_var=LD_LIBRARY_PATH
10196  hardcode_into_libs=yes
10197  if test "$with_gnu_ld" = yes; then
10198    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10199    shlibpath_overrides_runpath=no
10200  else
10201    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10202    shlibpath_overrides_runpath=yes
10203    case $host_os in
10204      sco3.2v5*)
10205        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10206        ;;
10207    esac
10208  fi
10209  sys_lib_dlsearch_path_spec='/usr/lib'
10210  ;;
10211
10212uts4*)
10213  version_type=linux
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LD_LIBRARY_PATH
10217  ;;
10218
10219*)
10220  dynamic_linker=no
10221  ;;
10222esac
10223echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10224echo "${ECHO_T}$dynamic_linker" >&6
10225test "$dynamic_linker" = no && can_build_shared=no
10226
10227variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10228if test "$GCC" = yes; then
10229  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10230fi
10231
10232echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10233echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10234hardcode_action=
10235if test -n "$hardcode_libdir_flag_spec" || \
10236   test -n "$runpath_var" || \
10237   test "X$hardcode_automatic" = "Xyes" ; then
10238
10239  # We can hardcode non-existant directories.
10240  if test "$hardcode_direct" != no &&
10241     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10242     # have to relink, otherwise we might link with an installed library
10243     # when we should be linking with a yet-to-be-installed one
10244     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10245     test "$hardcode_minus_L" != no; then
10246    # Linking always hardcodes the temporary library directory.
10247    hardcode_action=relink
10248  else
10249    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10250    hardcode_action=immediate
10251  fi
10252else
10253  # We cannot hardcode anything, or else we can only hardcode existing
10254  # directories.
10255  hardcode_action=unsupported
10256fi
10257echo "$as_me:$LINENO: result: $hardcode_action" >&5
10258echo "${ECHO_T}$hardcode_action" >&6
10259
10260if test "$hardcode_action" = relink; then
10261  # Fast installation is not supported
10262  enable_fast_install=no
10263elif test "$shlibpath_overrides_runpath" = yes ||
10264     test "$enable_shared" = no; then
10265  # Fast installation is not necessary
10266  enable_fast_install=needless
10267fi
10268
10269striplib=
10270old_striplib=
10271echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10272echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10273if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10274  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10275  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10276  echo "$as_me:$LINENO: result: yes" >&5
10277echo "${ECHO_T}yes" >&6
10278else
10279# FIXME - insert some real tests, host_os isn't really good enough
10280  case $host_os in
10281   darwin*)
10282       if test -n "$STRIP" ; then
10283         striplib="$STRIP -x"
10284         echo "$as_me:$LINENO: result: yes" >&5
10285echo "${ECHO_T}yes" >&6
10286       else
10287  echo "$as_me:$LINENO: result: no" >&5
10288echo "${ECHO_T}no" >&6
10289fi
10290       ;;
10291   *)
10292  echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
10294    ;;
10295  esac
10296fi
10297
10298if test "x$enable_dlopen" != xyes; then
10299  enable_dlopen=unknown
10300  enable_dlopen_self=unknown
10301  enable_dlopen_self_static=unknown
10302else
10303  lt_cv_dlopen=no
10304  lt_cv_dlopen_libs=
10305
10306  case $host_os in
10307  beos*)
10308    lt_cv_dlopen="load_add_on"
10309    lt_cv_dlopen_libs=
10310    lt_cv_dlopen_self=yes
10311    ;;
10312
10313  mingw* | pw32*)
10314    lt_cv_dlopen="LoadLibrary"
10315    lt_cv_dlopen_libs=
10316   ;;
10317
10318  cygwin*)
10319    lt_cv_dlopen="dlopen"
10320    lt_cv_dlopen_libs=
10321   ;;
10322
10323  darwin*)
10324  # if libdl is installed we need to link against it
10325    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10326echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10327if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10328  echo $ECHO_N "(cached) $ECHO_C" >&6
10329else
10330  ac_check_lib_save_LIBS=$LIBS
10331LIBS="-ldl  $LIBS"
10332cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h.  */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h.  */
10338
10339/* Override any gcc2 internal prototype to avoid an error.  */
10340#ifdef __cplusplus
10341extern "C"
10342#endif
10343/* We use char because int might match the return type of a gcc2
10344   builtin and then its argument prototype would still apply.  */
10345char dlopen ();
10346int
10347main ()
10348{
10349dlopen ();
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354rm -f conftest.$ac_objext conftest$ac_exeext
10355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356  (eval $ac_link) 2>conftest.er1
10357  ac_status=$?
10358  grep -v '^ *+' conftest.er1 >conftest.err
10359  rm -f conftest.er1
10360  cat conftest.err >&5
10361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); } &&
10363         { ac_try='test -z "$ac_c_werror_flag"
10364                         || test ! -s conftest.err'
10365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366  (eval $ac_try) 2>&5
10367  ac_status=$?
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); }; } &&
10370         { ac_try='test -s conftest$ac_exeext'
10371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372  (eval $ac_try) 2>&5
10373  ac_status=$?
10374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); }; }; then
10376  ac_cv_lib_dl_dlopen=yes
10377else
10378  echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5
10380
10381ac_cv_lib_dl_dlopen=no
10382fi
10383rm -f conftest.err conftest.$ac_objext \
10384      conftest$ac_exeext conftest.$ac_ext
10385LIBS=$ac_check_lib_save_LIBS
10386fi
10387echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10388echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10389if test $ac_cv_lib_dl_dlopen = yes; then
10390  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10391else
10392
10393    lt_cv_dlopen="dyld"
10394    lt_cv_dlopen_libs=
10395    lt_cv_dlopen_self=yes
10396
10397fi
10398
10399   ;;
10400
10401  *)
10402    echo "$as_me:$LINENO: checking for shl_load" >&5
10403echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10404if test "${ac_cv_func_shl_load+set}" = set; then
10405  echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407  cat >conftest.$ac_ext <<_ACEOF
10408/* confdefs.h.  */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h.  */
10413/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10414   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10415#define shl_load innocuous_shl_load
10416
10417/* System header to define __stub macros and hopefully few prototypes,
10418    which can conflict with char shl_load (); below.
10419    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10420    <limits.h> exists even on freestanding compilers.  */
10421
10422#ifdef __STDC__
10423# include <limits.h>
10424#else
10425# include <assert.h>
10426#endif
10427
10428#undef shl_load
10429
10430/* Override any gcc2 internal prototype to avoid an error.  */
10431#ifdef __cplusplus
10432extern "C"
10433{
10434#endif
10435/* We use char because int might match the return type of a gcc2
10436   builtin and then its argument prototype would still apply.  */
10437char shl_load ();
10438/* The GNU C library defines this for functions which it implements
10439    to always fail with ENOSYS.  Some functions are actually named
10440    something starting with __ and the normal name is an alias.  */
10441#if defined (__stub_shl_load) || defined (__stub___shl_load)
10442choke me
10443#else
10444char (*f) () = shl_load;
10445#endif
10446#ifdef __cplusplus
10447}
10448#endif
10449
10450int
10451main ()
10452{
10453return f != shl_load;
10454  ;
10455  return 0;
10456}
10457_ACEOF
10458rm -f conftest.$ac_objext conftest$ac_exeext
10459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460  (eval $ac_link) 2>conftest.er1
10461  ac_status=$?
10462  grep -v '^ *+' conftest.er1 >conftest.err
10463  rm -f conftest.er1
10464  cat conftest.err >&5
10465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466  (exit $ac_status); } &&
10467         { ac_try='test -z "$ac_c_werror_flag"
10468                         || test ! -s conftest.err'
10469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470  (eval $ac_try) 2>&5
10471  ac_status=$?
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); }; } &&
10474         { ac_try='test -s conftest$ac_exeext'
10475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476  (eval $ac_try) 2>&5
10477  ac_status=$?
10478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479  (exit $ac_status); }; }; then
10480  ac_cv_func_shl_load=yes
10481else
10482  echo "$as_me: failed program was:" >&5
10483sed 's/^/| /' conftest.$ac_ext >&5
10484
10485ac_cv_func_shl_load=no
10486fi
10487rm -f conftest.err conftest.$ac_objext \
10488      conftest$ac_exeext conftest.$ac_ext
10489fi
10490echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10491echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10492if test $ac_cv_func_shl_load = yes; then
10493  lt_cv_dlopen="shl_load"
10494else
10495  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10496echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10497if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10498  echo $ECHO_N "(cached) $ECHO_C" >&6
10499else
10500  ac_check_lib_save_LIBS=$LIBS
10501LIBS="-ldld  $LIBS"
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h.  */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h.  */
10508
10509/* Override any gcc2 internal prototype to avoid an error.  */
10510#ifdef __cplusplus
10511extern "C"
10512#endif
10513/* We use char because int might match the return type of a gcc2
10514   builtin and then its argument prototype would still apply.  */
10515char shl_load ();
10516int
10517main ()
10518{
10519shl_load ();
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524rm -f conftest.$ac_objext conftest$ac_exeext
10525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526  (eval $ac_link) 2>conftest.er1
10527  ac_status=$?
10528  grep -v '^ *+' conftest.er1 >conftest.err
10529  rm -f conftest.er1
10530  cat conftest.err >&5
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); } &&
10533         { ac_try='test -z "$ac_c_werror_flag"
10534                         || test ! -s conftest.err'
10535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536  (eval $ac_try) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); }; } &&
10540         { ac_try='test -s conftest$ac_exeext'
10541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542  (eval $ac_try) 2>&5
10543  ac_status=$?
10544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545  (exit $ac_status); }; }; then
10546  ac_cv_lib_dld_shl_load=yes
10547else
10548  echo "$as_me: failed program was:" >&5
10549sed 's/^/| /' conftest.$ac_ext >&5
10550
10551ac_cv_lib_dld_shl_load=no
10552fi
10553rm -f conftest.err conftest.$ac_objext \
10554      conftest$ac_exeext conftest.$ac_ext
10555LIBS=$ac_check_lib_save_LIBS
10556fi
10557echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10558echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10559if test $ac_cv_lib_dld_shl_load = yes; then
10560  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10561else
10562  echo "$as_me:$LINENO: checking for dlopen" >&5
10563echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10564if test "${ac_cv_func_dlopen+set}" = set; then
10565  echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567  cat >conftest.$ac_ext <<_ACEOF
10568/* confdefs.h.  */
10569_ACEOF
10570cat confdefs.h >>conftest.$ac_ext
10571cat >>conftest.$ac_ext <<_ACEOF
10572/* end confdefs.h.  */
10573/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10575#define dlopen innocuous_dlopen
10576
10577/* System header to define __stub macros and hopefully few prototypes,
10578    which can conflict with char dlopen (); below.
10579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10580    <limits.h> exists even on freestanding compilers.  */
10581
10582#ifdef __STDC__
10583# include <limits.h>
10584#else
10585# include <assert.h>
10586#endif
10587
10588#undef dlopen
10589
10590/* Override any gcc2 internal prototype to avoid an error.  */
10591#ifdef __cplusplus
10592extern "C"
10593{
10594#endif
10595/* We use char because int might match the return type of a gcc2
10596   builtin and then its argument prototype would still apply.  */
10597char dlopen ();
10598/* The GNU C library defines this for functions which it implements
10599    to always fail with ENOSYS.  Some functions are actually named
10600    something starting with __ and the normal name is an alias.  */
10601#if defined (__stub_dlopen) || defined (__stub___dlopen)
10602choke me
10603#else
10604char (*f) () = dlopen;
10605#endif
10606#ifdef __cplusplus
10607}
10608#endif
10609
10610int
10611main ()
10612{
10613return f != dlopen;
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618rm -f conftest.$ac_objext conftest$ac_exeext
10619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620  (eval $ac_link) 2>conftest.er1
10621  ac_status=$?
10622  grep -v '^ *+' conftest.er1 >conftest.err
10623  rm -f conftest.er1
10624  cat conftest.err >&5
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); } &&
10627         { ac_try='test -z "$ac_c_werror_flag"
10628                         || test ! -s conftest.err'
10629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630  (eval $ac_try) 2>&5
10631  ac_status=$?
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); }; } &&
10634         { ac_try='test -s conftest$ac_exeext'
10635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636  (eval $ac_try) 2>&5
10637  ac_status=$?
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); }; }; then
10640  ac_cv_func_dlopen=yes
10641else
10642  echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
10645ac_cv_func_dlopen=no
10646fi
10647rm -f conftest.err conftest.$ac_objext \
10648      conftest$ac_exeext conftest.$ac_ext
10649fi
10650echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10651echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10652if test $ac_cv_func_dlopen = yes; then
10653  lt_cv_dlopen="dlopen"
10654else
10655  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10656echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10657if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10658  echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660  ac_check_lib_save_LIBS=$LIBS
10661LIBS="-ldl  $LIBS"
10662cat >conftest.$ac_ext <<_ACEOF
10663/* confdefs.h.  */
10664_ACEOF
10665cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h.  */
10668
10669/* Override any gcc2 internal prototype to avoid an error.  */
10670#ifdef __cplusplus
10671extern "C"
10672#endif
10673/* We use char because int might match the return type of a gcc2
10674   builtin and then its argument prototype would still apply.  */
10675char dlopen ();
10676int
10677main ()
10678{
10679dlopen ();
10680  ;
10681  return 0;
10682}
10683_ACEOF
10684rm -f conftest.$ac_objext conftest$ac_exeext
10685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686  (eval $ac_link) 2>conftest.er1
10687  ac_status=$?
10688  grep -v '^ *+' conftest.er1 >conftest.err
10689  rm -f conftest.er1
10690  cat conftest.err >&5
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); } &&
10693         { ac_try='test -z "$ac_c_werror_flag"
10694                         || test ! -s conftest.err'
10695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696  (eval $ac_try) 2>&5
10697  ac_status=$?
10698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699  (exit $ac_status); }; } &&
10700         { ac_try='test -s conftest$ac_exeext'
10701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702  (eval $ac_try) 2>&5
10703  ac_status=$?
10704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705  (exit $ac_status); }; }; then
10706  ac_cv_lib_dl_dlopen=yes
10707else
10708  echo "$as_me: failed program was:" >&5
10709sed 's/^/| /' conftest.$ac_ext >&5
10710
10711ac_cv_lib_dl_dlopen=no
10712fi
10713rm -f conftest.err conftest.$ac_objext \
10714      conftest$ac_exeext conftest.$ac_ext
10715LIBS=$ac_check_lib_save_LIBS
10716fi
10717echo "$as_me:$LIN