source: stable/2.6/Cbc/configure @ 1619

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

restoring Cbc/stable/2.6

  • Property svn:executable set to *
File size: 999.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.6.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.6'
433PACKAGE_STRING='Cbc 2.6'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.6 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.6:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-cbc compile this project (Cbc) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-interpackage-dependencies
1101                          whether to deduce Makefile dependencies from package
1102                          linker flags (default: yes)
1103  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1104
1105Optional Packages:
1106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1108  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1109  --with-cbc-checklevel specify the sanity check level for project Cbc
1110  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1111  --with-pic              try to use only PIC/non-PIC objects [default=use
1112                          both]
1113  --with-tags[=TAGS]
1114                          include additional configurations [automatic]
1115  --with-coin-instdir     prefix of installation directory for precompiled
1116                          COIN packages
1117  --with-coindepend-lib linker flags for using package CoinDepend
1118  --with-coindepend-incdir
1119                          directory with header files for using package
1120                          CoinDepend
1121  --with-coindepend-datadir
1122                          directory with data files for using package
1123                          CoinDepend
1124  --with-clp-lib linker flags for using package Clp
1125  --with-clp-incdir directory with header files for using package Clp
1126  --with-clp-datadir directory with data files for using package Clp
1127  --with-ositests-lib linker flags for using package OsiTests
1128  --with-ositests-incdir directory with header files for using package
1129                          OsiTests
1130  --with-ositests-datadir directory with data files for using package OsiTests
1131  --with-sample-lib linker flags for using package Sample
1132  --with-sample-incdir directory with header files for using package Sample
1133  --with-sample-datadir directory with data files for using package Sample
1134  --with-netlib-lib linker flags for using package Netlib
1135  --with-netlib-incdir directory with header files for using package Netlib
1136  --with-netlib-datadir directory with data files for using package Netlib
1137  --with-miplib3-lib linker flags for using package Miplib3
1138  --with-miplib3-incdir directory with header files for using package Miplib3
1139  --with-miplib3-datadir directory with data files for using package Miplib3
1140  --with-dylp-lib linker flags for using package DyLP
1141  --with-dylp-incdir directory with header files for using package DyLP
1142  --with-dylp-datadir directory with data files for using package DyLP
1143  --with-vol-lib linker flags for using package Vol
1144  --with-vol-incdir directory with header files for using package Vol
1145  --with-vol-datadir directory with data files for using package Vol
1146  --with-cpx-lib linker flags for using package Cpx
1147  --with-cpx-incdir directory with header files for using package Cpx
1148  --with-cpx-datadir directory with data files for using package Cpx
1149  --with-glpk-lib linker flags for using package Glpk
1150  --with-glpk-incdir directory with header files for using package Glpk
1151  --with-glpk-datadir directory with data files for using package Glpk
1152  --with-grb-lib linker flags for using package Grb
1153  --with-grb-incdir directory with header files for using package Grb
1154  --with-grb-datadir directory with data files for using package Grb
1155  --with-msk-lib linker flags for using package Msk
1156  --with-msk-incdir directory with header files for using package Msk
1157  --with-msk-datadir directory with data files for using package Msk
1158  --with-spx-lib linker flags for using package Spx
1159  --with-spx-incdir directory with header files for using package Spx
1160  --with-spx-datadir directory with data files for using package Spx
1161  --with-xpr-lib linker flags for using package Xpr
1162  --with-xpr-incdir directory with header files for using package Xpr
1163  --with-xpr-datadir directory with data files for using package Xpr
1164  --with-asl-lib linker flags for using package ASL
1165  --with-asl-incdir directory with header files for using package ASL
1166  --with-asl-datadir directory with data files for using package ASL
1167  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1168  --with-cbc-generic-solver
1169                          specify default solver for cbc-generic in lower case
1170                          letters (if not given, clp is assumed)
1171  --with-osicbc-default-solver
1172                          specify underlying solver for OsiCbc (default clp)
1173  --with-dot              use dot (from graphviz) when creating documentation
1174                          with doxygen if available; --without-dot to disable
1175
1176Some influential environment variables:
1177  CDEFS       Additional -D flags to be used when compiling C code.
1178  ADD_CFLAGS  Additional C compiler options
1179  DBG_CFLAGS  Debug C compiler options
1180  OPT_CFLAGS  Optimize C compiler options
1181  CC          C compiler command
1182  CFLAGS      C compiler flags
1183  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1184              nonstandard directory <lib dir>
1185  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186              headers in a nonstandard directory <include dir>
1187  MPICC       C MPI Compiler
1188  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1189  ADD_CXXFLAGS
1190              Additional C++ compiler options
1191  DBG_CXXFLAGS
1192              Debug C++ compiler options
1193  OPT_CXXFLAGS
1194              Optimize C++ compiler options
1195  CXX         C++ compiler command
1196  CXXFLAGS    C++ compiler flags
1197  MPICXX      C++ MPI Compiler
1198  CPP         C preprocessor
1199  CXXCPP      C++ preprocessor
1200  F77         Fortran 77 compiler command
1201  FFLAGS      Fortran 77 compiler flags
1202  PKG_CONFIG  path to pkg-config utility
1203
1204Use these variables to override the choices made by `configure' or to help
1205it to find libraries and programs with nonstandard names/locations.
1206
1207Report bugs to <cbc@lists.coin-or.org>.
1208_ACEOF
1209fi
1210
1211if test "$ac_init_help" = "recursive"; then
1212  # If there are subdirs, report their specific --help.
1213  ac_popdir=`pwd`
1214  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1215    test -d $ac_dir || continue
1216    ac_builddir=.
1217
1218if test "$ac_dir" != .; then
1219  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1220  # A "../" for each directory in $ac_dir_suffix.
1221  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1222else
1223  ac_dir_suffix= ac_top_builddir=
1224fi
1225
1226case $srcdir in
1227  .)  # No --srcdir option.  We are building in place.
1228    ac_srcdir=.
1229    if test -z "$ac_top_builddir"; then
1230       ac_top_srcdir=.
1231    else
1232       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1233    fi ;;
1234  [\\/]* | ?:[\\/]* )  # Absolute path.
1235    ac_srcdir=$srcdir$ac_dir_suffix;
1236    ac_top_srcdir=$srcdir ;;
1237  *) # Relative path.
1238    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1239    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1240esac
1241
1242# Do not use `cd foo && pwd` to compute absolute paths, because
1243# the directories may not exist.
1244case `pwd` in
1245.) ac_abs_builddir="$ac_dir";;
1246*)
1247  case "$ac_dir" in
1248  .) ac_abs_builddir=`pwd`;;
1249  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1250  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1251  esac;;
1252esac
1253case $ac_abs_builddir in
1254.) ac_abs_top_builddir=${ac_top_builddir}.;;
1255*)
1256  case ${ac_top_builddir}. in
1257  .) ac_abs_top_builddir=$ac_abs_builddir;;
1258  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1259  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1260  esac;;
1261esac
1262case $ac_abs_builddir in
1263.) ac_abs_srcdir=$ac_srcdir;;
1264*)
1265  case $ac_srcdir in
1266  .) ac_abs_srcdir=$ac_abs_builddir;;
1267  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1268  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1269  esac;;
1270esac
1271case $ac_abs_builddir in
1272.) ac_abs_top_srcdir=$ac_top_srcdir;;
1273*)
1274  case $ac_top_srcdir in
1275  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1276  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1277  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1278  esac;;
1279esac
1280
1281    cd $ac_dir
1282    # Check for guested configure; otherwise get Cygnus style configure.
1283    if test -f $ac_srcdir/configure.gnu; then
1284      echo
1285      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1286    elif test -f $ac_srcdir/configure; then
1287      echo
1288      $SHELL $ac_srcdir/configure  --help=recursive
1289    elif test -f $ac_srcdir/configure.ac ||
1290           test -f $ac_srcdir/configure.in; then
1291      echo
1292      $ac_configure --help
1293    else
1294      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1295    fi
1296    cd $ac_popdir
1297  done
1298fi
1299
1300test -n "$ac_init_help" && exit 0
1301if $ac_init_version; then
1302  cat <<\_ACEOF
1303Cbc configure 2.6
1304generated by GNU Autoconf 2.59
1305
1306Copyright (C) 2003 Free Software Foundation, Inc.
1307This configure script is free software; the Free Software Foundation
1308gives unlimited permission to copy, distribute and modify it.
1309
1310
1311Copyright 2006 International Business Machines and others.
1312All Rights Reserved.
1313This file is part of the open source package Coin which is distributed
1314under the Common Public License.
1315_ACEOF
1316  exit 0
1317fi
1318exec 5>config.log
1319cat >&5 <<_ACEOF
1320This file contains any messages produced by compilers while
1321running configure, to aid debugging if configure makes a mistake.
1322
1323It was created by Cbc $as_me 2.6, which was
1324generated by GNU Autoconf 2.59.  Invocation command line was
1325
1326  $ $0 $@
1327
1328_ACEOF
1329{
1330cat <<_ASUNAME
1331## --------- ##
1332## Platform. ##
1333## --------- ##
1334
1335hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1336uname -m = `(uname -m) 2>/dev/null || echo unknown`
1337uname -r = `(uname -r) 2>/dev/null || echo unknown`
1338uname -s = `(uname -s) 2>/dev/null || echo unknown`
1339uname -v = `(uname -v) 2>/dev/null || echo unknown`
1340
1341/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1342/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1343
1344/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1345/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1346/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1347hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1348/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1349/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1350/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1351
1352_ASUNAME
1353
1354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355for as_dir in $PATH
1356do
1357  IFS=$as_save_IFS
1358  test -z "$as_dir" && as_dir=.
1359  echo "PATH: $as_dir"
1360done
1361
1362} >&5
1363
1364cat >&5 <<_ACEOF
1365
1366
1367## ----------- ##
1368## Core tests. ##
1369## ----------- ##
1370
1371_ACEOF
1372
1373
1374# Keep a trace of the command line.
1375# Strip out --no-create and --no-recursion so they do not pile up.
1376# Strip out --silent because we don't want to record it for future runs.
1377# Also quote any args containing shell meta-characters.
1378# Make two passes to allow for proper duplicate-argument suppression.
1379ac_configure_args=
1380ac_configure_args0=
1381ac_configure_args1=
1382ac_sep=
1383ac_must_keep_next=false
1384for ac_pass in 1 2
1385do
1386  for ac_arg
1387  do
1388    case $ac_arg in
1389    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1390    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1391    | -silent | --silent | --silen | --sile | --sil)
1392      continue ;;
1393    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1394      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1395    esac
1396    case $ac_pass in
1397    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1398    2)
1399      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1400      if test $ac_must_keep_next = true; then
1401        ac_must_keep_next=false # Got value, back to normal.
1402      else
1403        case $ac_arg in
1404          *=* | --config-cache | -C | -disable-* | --disable-* \
1405          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1406          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1407          | -with-* | --with-* | -without-* | --without-* | --x)
1408            case "$ac_configure_args0 " in
1409              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1410            esac
1411            ;;
1412          -* ) ac_must_keep_next=true ;;
1413        esac
1414      fi
1415      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1416      # Get rid of the leading space.
1417      ac_sep=" "
1418      ;;
1419    esac
1420  done
1421done
1422$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1423$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1424
1425# When interrupted or exit'd, cleanup temporary files, and complete
1426# config.log.  We remove comments because anyway the quotes in there
1427# would cause problems or look ugly.
1428# WARNING: Be sure not to use single quotes in there, as some shells,
1429# such as our DU 5.0 friend, will then `close' the trap.
1430trap 'exit_status=$?
1431  # Save into config.log some information that might help in debugging.
1432  {
1433    echo
1434
1435    cat <<\_ASBOX
1436## ---------------- ##
1437## Cache variables. ##
1438## ---------------- ##
1439_ASBOX
1440    echo
1441    # The following way of writing the cache mishandles newlines in values,
1442{
1443  (set) 2>&1 |
1444    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1445    *ac_space=\ *)
1446      sed -n \
1447        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1448          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1449      ;;
1450    *)
1451      sed -n \
1452        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1453      ;;
1454    esac;
1455}
1456    echo
1457
1458    cat <<\_ASBOX
1459## ----------------- ##
1460## Output variables. ##
1461## ----------------- ##
1462_ASBOX
1463    echo
1464    for ac_var in $ac_subst_vars
1465    do
1466      eval ac_val=$`echo $ac_var`
1467      echo "$ac_var='"'"'$ac_val'"'"'"
1468    done | sort
1469    echo
1470
1471    if test -n "$ac_subst_files"; then
1472      cat <<\_ASBOX
1473## ------------- ##
1474## Output files. ##
1475## ------------- ##
1476_ASBOX
1477      echo
1478      for ac_var in $ac_subst_files
1479      do
1480        eval ac_val=$`echo $ac_var`
1481        echo "$ac_var='"'"'$ac_val'"'"'"
1482      done | sort
1483      echo
1484    fi
1485
1486    if test -s confdefs.h; then
1487      cat <<\_ASBOX
1488## ----------- ##
1489## confdefs.h. ##
1490## ----------- ##
1491_ASBOX
1492      echo
1493      sed "/^$/d" confdefs.h | sort
1494      echo
1495    fi
1496    test "$ac_signal" != 0 &&
1497      echo "$as_me: caught signal $ac_signal"
1498    echo "$as_me: exit $exit_status"
1499  } >&5
1500  rm -f core *.core &&
1501  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1502    exit $exit_status
1503     ' 0
1504for ac_signal in 1 2 13 15; do
1505  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1506done
1507ac_signal=0
1508
1509# confdefs.h avoids OS command line length limits that DEFS can exceed.
1510rm -rf conftest* confdefs.h
1511# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1512echo >confdefs.h
1513
1514# Predefined preprocessor variables.
1515
1516cat >>confdefs.h <<_ACEOF
1517#define PACKAGE_NAME "$PACKAGE_NAME"
1518_ACEOF
1519
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_VERSION "$PACKAGE_VERSION"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_STRING "$PACKAGE_STRING"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1538_ACEOF
1539
1540
1541# Let the site file select an alternate cache file if it wants to.
1542# Prefer explicitly selected file to automatically selected ones.
1543if test -z "$CONFIG_SITE"; then
1544  if test "x$prefix" != xNONE; then
1545    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1546  else
1547    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1548  fi
1549fi
1550for ac_site_file in $CONFIG_SITE; do
1551  if test -r "$ac_site_file"; then
1552    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1553echo "$as_me: loading site script $ac_site_file" >&6;}
1554    sed 's/^/| /' "$ac_site_file" >&5
1555    . "$ac_site_file"
1556  fi
1557done
1558
1559if test -r "$cache_file"; then
1560  # Some versions of bash will fail to source /dev/null (special
1561  # files actually), so we avoid doing that.
1562  if test -f "$cache_file"; then
1563    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1564echo "$as_me: loading cache $cache_file" >&6;}
1565    case $cache_file in
1566      [\\/]* | ?:[\\/]* ) . $cache_file;;
1567      *)                      . ./$cache_file;;
1568    esac
1569  fi
1570else
1571  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1572echo "$as_me: creating cache $cache_file" >&6;}
1573  >$cache_file
1574fi
1575
1576# Check that the precious variables saved in the cache have kept the same
1577# value.
1578ac_cache_corrupted=false
1579for ac_var in `(set) 2>&1 |
1580               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1581  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1582  eval ac_new_set=\$ac_env_${ac_var}_set
1583  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1584  eval ac_new_val="\$ac_env_${ac_var}_value"
1585  case $ac_old_set,$ac_new_set in
1586    set,)
1587      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1588echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1589      ac_cache_corrupted=: ;;
1590    ,set)
1591      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1592echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1593      ac_cache_corrupted=: ;;
1594    ,);;
1595    *)
1596      if test "x$ac_old_val" != "x$ac_new_val"; then
1597        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1598echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1599        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1600echo "$as_me:   former value:  $ac_old_val" >&2;}
1601        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1602echo "$as_me:   current value: $ac_new_val" >&2;}
1603        ac_cache_corrupted=:
1604      fi;;
1605  esac
1606  # Pass precious variables to config.status.
1607  if test "$ac_new_set" = set; then
1608    case $ac_new_val in
1609    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1610      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1611    *) ac_arg=$ac_var=$ac_new_val ;;
1612    esac
1613    case " $ac_configure_args " in
1614      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1615      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1616    esac
1617  fi
1618done
1619if $ac_cache_corrupted; then
1620  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1621echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1622  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1623echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1624   { (exit 1); exit 1; }; }
1625fi
1626
1627ac_ext=c
1628ac_cpp='$CPP $CPPFLAGS'
1629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662# List one file in the package so that the configure script can test
1663# whether the package is actually there
1664
1665
1666# Where should everything be installed by default?  Here, we want it
1667# to be installed directly in 'bin', 'lib', 'include' subdirectories
1668# of the directory where configure is run.  The default would be
1669# /usr/local.
1670
1671
1672#############################################################################
1673#                         Standard build tool stuff                         #
1674#############################################################################
1675
1676# Get the system type
1677ac_aux_dir=
1678for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1679  if test -f $ac_dir/install-sh; then
1680    ac_aux_dir=$ac_dir
1681    ac_install_sh="$ac_aux_dir/install-sh -c"
1682    break
1683  elif test -f $ac_dir/install.sh; then
1684    ac_aux_dir=$ac_dir
1685    ac_install_sh="$ac_aux_dir/install.sh -c"
1686    break
1687  elif test -f $ac_dir/shtool; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/shtool install -c"
1690    break
1691  fi
1692done
1693if test -z "$ac_aux_dir"; then
1694  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1695echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1696   { (exit 1); exit 1; }; }
1697fi
1698ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1699ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1700ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1701
1702# Make sure we can run config.sub.
1703$ac_config_sub sun4 >/dev/null 2>&1 ||
1704  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1705echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1706   { (exit 1); exit 1; }; }
1707
1708echo "$as_me:$LINENO: checking build system type" >&5
1709echo $ECHO_N "checking build system type... $ECHO_C" >&6
1710if test "${ac_cv_build+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  ac_cv_build_alias=$build_alias
1714test -z "$ac_cv_build_alias" &&
1715  ac_cv_build_alias=`$ac_config_guess`
1716test -z "$ac_cv_build_alias" &&
1717  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1718echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1719   { (exit 1); exit 1; }; }
1720ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1721  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1722echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1723   { (exit 1); exit 1; }; }
1724
1725fi
1726echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1727echo "${ECHO_T}$ac_cv_build" >&6
1728build=$ac_cv_build
1729build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732
1733
1734
1735# If this project depends on external projects, the Externals file in
1736# the source root directory contains definition of where to find those
1737# externals.  The following macro ensures that those externals are
1738# retrieved by svn if they are not there yet.
1739# Initialize the ADDLIBS variable
1740ADDLIBS="-lm $LIBS"
1741
1742
1743# Initialize the PCADDLIBS variable.
1744# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1745# In certain cases, it may contain more flags than the ADDLIBS variable.
1746PCADDLIBS=""
1747
1748
1749# As backup, we make sure we don't loose an FLIBS if it has been set
1750# by the user
1751save_FLIBS="$FLIBS"
1752
1753# Initialize the FADDLIBS variable (which is to be used with a fortran
1754# compiler and will not include FLIBS)
1755FADDLIBS="$LIBS"
1756
1757
1758# A useful makefile conditional that is always false
1759
1760
1761if false; then
1762  ALWAYS_FALSE_TRUE=
1763  ALWAYS_FALSE_FALSE='#'
1764else
1765  ALWAYS_FALSE_TRUE='#'
1766  ALWAYS_FALSE_FALSE=
1767fi
1768
1769
1770# We set the following variable so that we know later in AC_COIN_FINALIZE
1771# that we are in a project main directory
1772coin_projectdir=yes
1773
1774# Set the project's version number
1775if test "xCbc" != x; then
1776
1777cat >>confdefs.h <<_ACEOF
1778#define CBC_VERSION "$PACKAGE_VERSION"
1779_ACEOF
1780
1781fi
1782
1783# Set the project's SVN revision number. The complicated sed expression
1784# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1785# as a single number.
1786# Extract the first word of "svnversion", so it can be a program name with args.
1787set dummy svnversion; ac_word=$2
1788echo "$as_me:$LINENO: checking for $ac_word" >&5
1789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790if test "${ac_cv_prog_have_svnversion+set}" = set; then
1791  echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793  if test -n "$have_svnversion"; then
1794  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1795else
1796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799  IFS=$as_save_IFS
1800  test -z "$as_dir" && as_dir=.
1801  for ac_exec_ext in '' $ac_executable_extensions; do
1802  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803    ac_cv_prog_have_svnversion="yes"
1804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805    break 2
1806  fi
1807done
1808done
1809
1810  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1811fi
1812fi
1813have_svnversion=$ac_cv_prog_have_svnversion
1814if test -n "$have_svnversion"; then
1815  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1816echo "${ECHO_T}$have_svnversion" >&6
1817else
1818  echo "$as_me:$LINENO: result: no" >&5
1819echo "${ECHO_T}no" >&6
1820fi
1821
1822if test "x$have_svnversion" = xyes && test "xCbc" != x; then
1823
1824  svn_rev_tmp=`cd $srcdir/$coin_has_cbc ; svnversion`
1825  CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1826  if test $CBC_SVN_REV != exported; then
1827
1828cat >>confdefs.h <<_ACEOF
1829#define CBC_SVN_REV $CBC_SVN_REV
1830_ACEOF
1831
1832  fi
1833fi
1834
1835# Capture libtool library version, if given.
1836
1837
1838
1839# Check if user wants to produce debugging code
1840
1841echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1842echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1843
1844# Check whether --enable-debug or --disable-debug was given.
1845if test "${enable_debug+set}" = set; then
1846  enableval="$enable_debug"
1847  case "${enableval}" in
1848   yes) coin_debug_compile=true
1849        if test "${enable_shared+set}" = set; then :; else
1850          enable_shared=no
1851        fi
1852        ;;
1853   no)  coin_debug_compile=false
1854        ;;
1855   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1856echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1857   { (exit 1); exit 1; }; }
1858        ;;
1859esac
1860else
1861  coin_debug_compile=false
1862fi;
1863
1864# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1865if test "${enable_debug_cbc+set}" = set; then
1866  enableval="$enable_debug_cbc"
1867  case "${enableval}" in
1868    yes) coin_debug_compile=true
1869         enable_shared=no
1870         ;;
1871    no)  coin_debug_compile=false
1872         ;;
1873    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1874echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1875   { (exit 1); exit 1; }; }
1876         ;;
1877 esac
1878else
1879  :
1880fi;
1881
1882 # m4_ifvaln([Cbc],
1883
1884if test $coin_debug_compile = true; then
1885  echo "$as_me:$LINENO: result: yes" >&5
1886echo "${ECHO_T}yes" >&6
1887else
1888  echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892
1893# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1894if test "${with_cbc_verbosity+set}" = set; then
1895  withval="$with_cbc_verbosity"
1896  if test "$withval" = yes; then
1897                withval=1
1898              fi
1899              coin_cbc_verbosity=$withval
1900else
1901  coin_cbc_verbosity=0
1902fi;
1903
1904cat >>confdefs.h <<_ACEOF
1905#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1906_ACEOF
1907
1908
1909
1910# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1911if test "${with_cbc_checklevel+set}" = set; then
1912  withval="$with_cbc_checklevel"
1913  if test "$withval" = yes; then
1914                withval=1
1915              fi
1916              coin_cbc_checklevel=$withval
1917else
1918  coin_cbc_checklevel=0
1919fi;
1920
1921cat >>confdefs.h <<_ACEOF
1922#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1923_ACEOF
1924
1925
1926# We use the following variable to have a string with the upper case
1927# version of the project name
1928COIN_PRJCT=CBC
1929
1930
1931 # m4_ifvaln([Cbc],
1932
1933
1934
1935# Get the name of the C++ compiler and appropriate compiler options
1936case $build in
1937  *-mingw*)
1938    if test "${LD+set}" = set; then :; else
1939      LD=link
1940    fi
1941    ;;
1942 esac
1943 case $enable_doscompile in
1944   msvc)
1945     if test "x${LD+set}" = xset; then :; else
1946       LD=link
1947     fi
1948     ;;
1949 esac
1950
1951
1952 # Check whether --enable-doscompile or --disable-doscompile was given.
1953if test "${enable_doscompile+set}" = set; then
1954  enableval="$enable_doscompile"
1955  if test "$enable_doscompile" != no; then
1956     case $build in
1957       *-cygwin* | *-mingw*) ;;
1958       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1959echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1960   { (exit 1); exit 1; }; } ;;
1961     esac
1962   fi
1963else
1964  enable_doscompile=no
1965fi;
1966 case "$enable_doscompile" in
1967   mingw)
1968     case $build in
1969       *-mingw*) enable_doscompile=no ;;
1970     esac
1971     ;;
1972   msvc|no) ;;
1973   yes) enable_doscompile=mingw ;;
1974   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1975                    Try configure --help=recursive." >&5
1976echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1977                    Try configure --help=recursive." >&2;}
1978   { (exit 1); exit 1; }; }
1979      ;;
1980  esac
1981  if test "$enable_doscompile" != no ; then
1982    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1983echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1984  fi
1985
1986
1987
1988
1989ac_ext=c
1990ac_cpp='$CPP $CPPFLAGS'
1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994
1995
1996# For consistency, we set the C compiler to the same value of the C++
1997# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1998if test x"$CXX" != x; then
1999  case "$CXX" in
2000    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2001      if test x"$CC" = x; then
2002        CC="$CXX"
2003        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2004echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2005      fi
2006      ;;
2007  esac
2008fi
2009
2010# add automake conditional so we can recognize cl compiler in makefile
2011coin_cc_is_cl=false
2012if test x"$CXX" != x; then
2013  case "$CXX" in
2014    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2015      coin_cc_is_cl=true
2016      ;;
2017  esac
2018fi
2019
2020
2021if test $coin_cc_is_cl = true; then
2022  COIN_CC_IS_CL_TRUE=
2023  COIN_CC_IS_CL_FALSE='#'
2024else
2025  COIN_CC_IS_CL_TRUE='#'
2026  COIN_CC_IS_CL_FALSE=
2027fi
2028
2029
2030
2031
2032
2033
2034
2035coin_has_cc=yes
2036
2037save_cflags="$CFLAGS"
2038
2039# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2040# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2041# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2042# compiler. In this case, put cc after gcc.
2043
2044case $build in
2045  *-cygwin* | *-mingw*)
2046             if test "$enable_doscompile" = msvc ; then
2047               comps="icl cl"
2048             else
2049               comps="gcc cl"
2050             fi ;;
2051  *-*-solaris*)
2052             # Extract the first word of "cc", so it can be a program name with args.
2053set dummy cc; ac_word=$2
2054echo "$as_me:$LINENO: checking for $ac_word" >&5
2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2057  echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059  if test -n "$sol_cc_compiler"; then
2060  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2061else
2062  ac_prog_rejected=no
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066  IFS=$as_save_IFS
2067  test -z "$as_dir" && as_dir=.
2068  for ac_exec_ext in '' $ac_executable_extensions; do
2069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2071       ac_prog_rejected=yes
2072       continue
2073     fi
2074    ac_cv_prog_sol_cc_compiler="cc"
2075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080
2081if test $ac_prog_rejected = yes; then
2082  # We found a bogon in the path, so make sure we never use it.
2083  set dummy $ac_cv_prog_sol_cc_compiler
2084  shift
2085  if test $# != 0; then
2086    # We chose a different compiler from the bogus one.
2087    # However, it has the same basename, so the bogon will be chosen
2088    # first if we set sol_cc_compiler to just the basename; use the full file name.
2089    shift
2090    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2091  fi
2092fi
2093fi
2094fi
2095sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2096if test -n "$sol_cc_compiler"; then
2097  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2098echo "${ECHO_T}$sol_cc_compiler" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104             if test "$sol_cc_compiler" = "cc" ; then
2105               comps="cc xlc gcc pgcc icc"
2106             else
2107               comps="xlc gcc pgcc icc cc"
2108             fi
2109             ;;
2110  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2111  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2112  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2113esac
2114
2115# We delete the cached value, since the test might not have been
2116# performed with our choice of compilers earlier
2117$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2118# AC_MSG_NOTICE([C compiler candidates: $comps])
2119ac_ext=c
2120ac_cpp='$CPP $CPPFLAGS'
2121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124if test -n "$ac_tool_prefix"; then
2125  for ac_prog in $comps
2126  do
2127    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2129echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131if test "${ac_cv_prog_CC+set}" = set; then
2132  echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134  if test -n "$CC"; then
2135  ac_cv_prog_CC="$CC" # Let the user override the test.
2136else
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146    break 2
2147  fi
2148done
2149done
2150
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
2155  echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6
2157else
2158  echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6
2160fi
2161
2162    test -n "$CC" && break
2163  done
2164fi
2165if test -z "$CC"; then
2166  ac_ct_CC=$CC
2167  for ac_prog in $comps
2168do
2169  # Extract the first word of "$ac_prog", so it can be a program name with args.
2170set dummy $ac_prog; ac_word=$2
2171echo "$as_me:$LINENO: checking for $ac_word" >&5
2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174  echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176  if test -n "$ac_ct_CC"; then
2177  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178else
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182  IFS=$as_save_IFS
2183  test -z "$as_dir" && as_dir=.
2184  for ac_exec_ext in '' $ac_executable_extensions; do
2185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186    ac_cv_prog_ac_ct_CC="$ac_prog"
2187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188    break 2
2189  fi
2190done
2191done
2192
2193fi
2194fi
2195ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196if test -n "$ac_ct_CC"; then
2197  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198echo "${ECHO_T}$ac_ct_CC" >&6
2199else
2200  echo "$as_me:$LINENO: result: no" >&5
2201echo "${ECHO_T}no" >&6
2202fi
2203
2204  test -n "$ac_ct_CC" && break
2205done
2206
2207  CC=$ac_ct_CC
2208fi
2209
2210
2211test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: no acceptable C compiler found in \$PATH
2214See \`config.log' for more details." >&2;}
2215   { (exit 1); exit 1; }; }
2216
2217# Provide some information about the compiler.
2218echo "$as_me:$LINENO:" \
2219     "checking for C compiler version" >&5
2220ac_compiler=`set X $ac_compile; echo $2`
2221{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2222  (eval $ac_compiler --version </dev/null >&5) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }
2226{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2227  (eval $ac_compiler -v </dev/null >&5) 2>&5
2228  ac_status=$?
2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230  (exit $ac_status); }
2231{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2232  (eval $ac_compiler -V </dev/null >&5) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }
2236
2237cat >conftest.$ac_ext <<_ACEOF
2238/* confdefs.h.  */
2239_ACEOF
2240cat confdefs.h >>conftest.$ac_ext
2241cat >>conftest.$ac_ext <<_ACEOF
2242/* end confdefs.h.  */
2243
2244int
2245main ()
2246{
2247
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252ac_clean_files_save=$ac_clean_files
2253ac_clean_files="$ac_clean_files a.out a.exe b.out"
2254# Try to create an executable without -o first, disregard a.out.
2255# It will help us diagnose broken compilers, and finding out an intuition
2256# of exeext.
2257echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2258echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2259ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2260if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2261  (eval $ac_link_default) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; then
2265  # Find the output, starting from the most likely.  This scheme is
2266# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2267# resort.
2268
2269# Be careful to initialize this variable, since it used to be cached.
2270# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2271ac_cv_exeext=
2272# b.out is created by i960 compilers.
2273for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2274do
2275  test -f "$ac_file" || continue
2276  case $ac_file in
2277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2278        ;;
2279    conftest.$ac_ext )
2280        # This is the source file.
2281        ;;
2282    [ab].out )
2283        # We found the default executable, but exeext='' is most
2284        # certainly right.
2285        break;;
2286    *.* )
2287        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288        # FIXME: I believe we export ac_cv_exeext for Libtool,
2289        # but it would be cool to find out if it's true.  Does anybody
2290        # maintain Libtool? --akim.
2291        export ac_cv_exeext
2292        break;;
2293    * )
2294        break;;
2295  esac
2296done
2297else
2298  echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: C compiler cannot create executables
2304See \`config.log' for more details." >&2;}
2305   { (exit 77); exit 77; }; }
2306fi
2307
2308ac_exeext=$ac_cv_exeext
2309echo "$as_me:$LINENO: result: $ac_file" >&5
2310echo "${ECHO_T}$ac_file" >&6
2311
2312# Check the compiler produces executables we can run.  If not, either
2313# the compiler is broken, or we cross compile.
2314echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2315echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2316# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2317# If not cross compiling, check that we can run a simple program.
2318if test "$cross_compiling" != yes; then
2319  if { ac_try='./$ac_file'
2320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321  (eval $ac_try) 2>&5
2322  ac_status=$?
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }; }; then
2325    cross_compiling=no
2326  else
2327    if test "$cross_compiling" = maybe; then
2328        cross_compiling=yes
2329    else
2330        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331If you meant to cross compile, use \`--host'.
2332See \`config.log' for more details." >&5
2333echo "$as_me: error: cannot run C compiled programs.
2334If you meant to cross compile, use \`--host'.
2335See \`config.log' for more details." >&2;}
2336   { (exit 1); exit 1; }; }
2337    fi
2338  fi
2339fi
2340echo "$as_me:$LINENO: result: yes" >&5
2341echo "${ECHO_T}yes" >&6
2342
2343rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344ac_clean_files=$ac_clean_files_save
2345# Check the compiler produces executables we can run.  If not, either
2346# the compiler is broken, or we cross compile.
2347echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2349echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350echo "${ECHO_T}$cross_compiling" >&6
2351
2352echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355  (eval $ac_link) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }; then
2359  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2360# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2361# work properly (i.e., refer to `conftest.exe'), while it won't with
2362# `rm'.
2363for ac_file in conftest.exe conftest conftest.*; do
2364  test -f "$ac_file" || continue
2365  case $ac_file in
2366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2367    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368          export ac_cv_exeext
2369          break;;
2370    * ) break;;
2371  esac
2372done
2373else
2374  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2375See \`config.log' for more details." >&5
2376echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2377See \`config.log' for more details." >&2;}
2378   { (exit 1); exit 1; }; }
2379fi
2380
2381rm -f conftest$ac_cv_exeext
2382echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2383echo "${ECHO_T}$ac_cv_exeext" >&6
2384
2385rm -f conftest.$ac_ext
2386EXEEXT=$ac_cv_exeext
2387ac_exeext=$EXEEXT
2388echo "$as_me:$LINENO: checking for suffix of object files" >&5
2389echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2390if test "${ac_cv_objext+set}" = set; then
2391  echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393  cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399
2400int
2401main ()
2402{
2403
2404  ;
2405  return 0;
2406}
2407_ACEOF
2408rm -f conftest.o conftest.obj
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>&5
2411  ac_status=$?
2412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413  (exit $ac_status); }; then
2414  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2415  case $ac_file in
2416    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2417    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2418       break;;
2419  esac
2420done
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2426See \`config.log' for more details." >&5
2427echo "$as_me: error: cannot compute suffix of object files: cannot compile
2428See \`config.log' for more details." >&2;}
2429   { (exit 1); exit 1; }; }
2430fi
2431
2432rm -f conftest.$ac_cv_objext conftest.$ac_ext
2433fi
2434echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2435echo "${ECHO_T}$ac_cv_objext" >&6
2436OBJEXT=$ac_cv_objext
2437ac_objext=$OBJEXT
2438echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2439echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2440if test "${ac_cv_c_compiler_gnu+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449
2450int
2451main ()
2452{
2453#ifndef __GNUC__
2454       choke me
2455#endif
2456
2457  ;
2458  return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463  (eval $ac_compile) 2>conftest.er1
2464  ac_status=$?
2465  grep -v '^ *+' conftest.er1 >conftest.err
2466  rm -f conftest.er1
2467  cat conftest.err >&5
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); } &&
2470         { ac_try='test -z "$ac_c_werror_flag"
2471                         || test ! -s conftest.err'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; } &&
2477         { ac_try='test -s conftest.$ac_objext'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; }; then
2483  ac_compiler_gnu=yes
2484else
2485  echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488ac_compiler_gnu=no
2489fi
2490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2491ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492
2493fi
2494echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2496GCC=`test $ac_compiler_gnu = yes && echo yes`
2497ac_test_CFLAGS=${CFLAGS+set}
2498ac_save_CFLAGS=$CFLAGS
2499CFLAGS="-g"
2500echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2501echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2502if test "${ac_cv_prog_cc_g+set}" = set; then
2503  echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505  cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h.  */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h.  */
2511
2512int
2513main ()
2514{
2515
2516  ;
2517  return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522  (eval $ac_compile) 2>conftest.er1
2523  ac_status=$?
2524  grep -v '^ *+' conftest.er1 >conftest.err
2525  rm -f conftest.er1
2526  cat conftest.err >&5
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); } &&
2529         { ac_try='test -z "$ac_c_werror_flag"
2530                         || test ! -s conftest.err'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; } &&
2536         { ac_try='test -s conftest.$ac_objext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  ac_cv_prog_cc_g=yes
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547ac_cv_prog_cc_g=no
2548fi
2549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2552echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2553if test "$ac_test_CFLAGS" = set; then
2554  CFLAGS=$ac_save_CFLAGS
2555elif test $ac_cv_prog_cc_g = yes; then
2556  if test "$GCC" = yes; then
2557    CFLAGS="-g -O2"
2558  else
2559    CFLAGS="-g"
2560  fi
2561else
2562  if test "$GCC" = yes; then
2563    CFLAGS="-O2"
2564  else
2565    CFLAGS=
2566  fi
2567fi
2568echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2569echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571  echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573  ac_cv_prog_cc_stdc=no
2574ac_save_CC=$CC
2575cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h.  */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h.  */
2581#include <stdarg.h>
2582#include <stdio.h>
2583#include <sys/types.h>
2584#include <sys/stat.h>
2585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2586struct buf { int x; };
2587FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588static char *e (p, i)
2589     char **p;
2590     int i;
2591{
2592  return p[i];
2593}
2594static char *f (char * (*g) (char **, int), char **p, ...)
2595{
2596  char *s;
2597  va_list v;
2598  va_start (v,p);
2599  s = g (p, va_arg (v,int));
2600  va_end (v);
2601  return s;
2602}
2603
2604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2605   function prototypes and stuff, but not '\xHH' hex character constants.
2606   These don't provoke an error unfortunately, instead are silently treated
2607   as 'x'.  The following induces an error, until -std1 is added to get
2608   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2609   array size at least.  It's necessary to write '\x00'==0 to get something
2610   that's true only with -std1.  */
2611int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2612
2613int test (int i, double x);
2614struct s1 {int (*f) (int a);};
2615struct s2 {int (*f) (double a);};
2616int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2617int argc;
2618char **argv;
2619int
2620main ()
2621{
2622return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2623  ;
2624  return 0;
2625}
2626_ACEOF
2627# Don't try gcc -ansi; that turns off useful extensions and
2628# breaks some systems' header files.
2629# AIX                   -qlanglvl=ansi
2630# Ultrix and OSF/1      -std1
2631# HP-UX 10.20 and later -Ae
2632# HP-UX older versions  -Aa -D_HPUX_SOURCE
2633# SVR4                  -Xc -D__EXTENSIONS__
2634for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2635do
2636  CC="$ac_save_CC $ac_arg"
2637  rm -f conftest.$ac_objext
2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639  (eval $ac_compile) 2>conftest.er1
2640  ac_status=$?
2641  grep -v '^ *+' conftest.er1 >conftest.err
2642  rm -f conftest.er1
2643  cat conftest.err >&5
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); } &&
2646         { ac_try='test -z "$ac_c_werror_flag"
2647                         || test ! -s conftest.err'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; } &&
2653         { ac_try='test -s conftest.$ac_objext'
2654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655  (eval $ac_try) 2>&5
2656  ac_status=$?
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; }; then
2659  ac_cv_prog_cc_stdc=$ac_arg
2660break
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665fi
2666rm -f conftest.err conftest.$ac_objext
2667done
2668rm -f conftest.$ac_ext conftest.$ac_objext
2669CC=$ac_save_CC
2670
2671fi
2672
2673case "x$ac_cv_prog_cc_stdc" in
2674  x|xno)
2675    echo "$as_me:$LINENO: result: none needed" >&5
2676echo "${ECHO_T}none needed" >&6 ;;
2677  *)
2678    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2679echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2680    CC="$CC $ac_cv_prog_cc_stdc" ;;
2681esac
2682
2683# Some people use a C++ compiler to compile C.  Since we use `exit',
2684# in C++ we need to declare it.  In case someone uses the same compiler
2685# for both compiling C and C++ we need to have the C++ compiler decide
2686# the declaration of exit, since it's the most demanding environment.
2687cat >conftest.$ac_ext <<_ACEOF
2688#ifndef __cplusplus
2689  choke me
2690#endif
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701         { ac_try='test -z "$ac_c_werror_flag"
2702                         || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708         { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  for ac_declaration in \
2715   '' \
2716   'extern "C" void std::exit (int) throw (); using std::exit;' \
2717   'extern "C" void std::exit (int); using std::exit;' \
2718   'extern "C" void exit (int) throw ();' \
2719   'extern "C" void exit (int);' \
2720   'void exit (int);'
2721do
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728$ac_declaration
2729#include <stdlib.h>
2730int
2731main ()
2732{
2733exit (42);
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740  (eval $ac_compile) 2>conftest.er1
2741  ac_status=$?
2742  grep -v '^ *+' conftest.er1 >conftest.err
2743  rm -f conftest.er1
2744  cat conftest.err >&5
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747         { ac_try='test -z "$ac_c_werror_flag"
2748                         || test ! -s conftest.err'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; } &&
2754         { ac_try='test -s conftest.$ac_objext'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; }; then
2760  :
2761else
2762  echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765continue
2766fi
2767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768  cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h.  */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h.  */
2774$ac_declaration
2775int
2776main ()
2777{
2778exit (42);
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783rm -f conftest.$ac_objext
2784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785  (eval $ac_compile) 2>conftest.er1
2786  ac_status=$?
2787  grep -v '^ *+' conftest.er1 >conftest.err
2788  rm -f conftest.er1
2789  cat conftest.err >&5
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); } &&
2792         { ac_try='test -z "$ac_c_werror_flag"
2793                         || test ! -s conftest.err'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; } &&
2799         { ac_try='test -s conftest.$ac_objext'
2800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801  (eval $ac_try) 2>&5
2802  ac_status=$?
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); }; }; then
2805  break
2806else
2807  echo "$as_me: failed program was:" >&5
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810fi
2811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812done
2813rm -f conftest*
2814if test -n "$ac_declaration"; then
2815  echo '#ifdef __cplusplus' >>confdefs.h
2816  echo $ac_declaration      >>confdefs.h
2817  echo '#endif'             >>confdefs.h
2818fi
2819
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826ac_ext=c
2827ac_cpp='$CPP $CPPFLAGS'
2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832if test -z "$CC" ; then
2833  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2834echo "$as_me: error: Failed to find a C compiler!" >&2;}
2835   { (exit 1); exit 1; }; }
2836fi
2837# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2838case "$CC" in
2839  cl* | */cl* | CL* | */CL* )
2840    if test "$ac_cv_prog_cc_g" = yes ; then
2841      ac_cv_prog_cc_g=no
2842      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2843echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2844    fi ;;
2845esac
2846CFLAGS="$save_cflags"
2847
2848# Check if a project specific CFLAGS variable has been set
2849if test x$COIN_PRJCT != x; then
2850  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2851  if test x$coin_tmp = xset; then
2852    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2853  fi
2854fi
2855
2856if test x"$CFLAGS" = x; then
2857
2858  coin_add_cflags=
2859  coin_opt_cflags=
2860  coin_dbg_cflags=
2861  coin_warn_cflags=
2862
2863  if test "$GCC" = "yes"; then
2864    case "$CC" in
2865      icc* | */icc*)
2866        ;;
2867      *)
2868        coin_opt_cflags="-O3"
2869        coin_add_cflags="-pipe"
2870        coin_dbg_cflags="-g"
2871        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2872        case $build in
2873          *-darwin*)
2874            ;;
2875          *)
2876            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2877            ;;
2878        esac
2879        case $enable_doscompile in
2880          mingw)
2881            CFLAGS="-mno-cygwin"
2882            cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h.  */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h.  */
2888
2889int
2890main ()
2891{
2892int i=0; i++;
2893  ;
2894  return 0;
2895}
2896_ACEOF
2897rm -f conftest.$ac_objext conftest$ac_exeext
2898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2899  (eval $ac_link) 2>conftest.er1
2900  ac_status=$?
2901  grep -v '^ *+' conftest.er1 >conftest.err
2902  rm -f conftest.er1
2903  cat conftest.err >&5
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); } &&
2906         { ac_try='test -z "$ac_c_werror_flag"
2907                         || test ! -s conftest.err'
2908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909  (eval $ac_try) 2>&5
2910  ac_status=$?
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); }; } &&
2913         { ac_try='test -s conftest$ac_exeext'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; }; then
2919  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2920else
2921  echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924fi
2925rm -f conftest.err conftest.$ac_objext \
2926      conftest$ac_exeext conftest.$ac_ext
2927            CFLAGS=
2928          ;;
2929        esac
2930    esac
2931  fi
2932  if test -z "$coin_opt_cflags"; then
2933    case $build in
2934      *-cygwin* | *-mingw*)
2935        case "$CC" in
2936          cl* | */cl* | CL* | */CL*)
2937            coin_opt_cflags='-MT -O2'
2938            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2939            coin_dbg_cflags='-MTd'
2940            ;;
2941          icl* | */icl* | ICL* | */ICL*)
2942            coin_opt_cflags='-MT -Ox'
2943            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2944            coin_dbg_cflags='-MTd -debug'
2945            ;;
2946        esac
2947        ;;
2948      *-linux-*)
2949        case "$CC" in
2950          icc* | */icc*)
2951            coin_opt_cflags="-O3 -ip -mp1"
2952            coin_add_cflags=""
2953            coin_dbg_cflags="-g"
2954            # Check if -i_dynamic is necessary (for new glibc library)
2955            CFLAGS=
2956            cat >conftest.$ac_ext <<_ACEOF
2957/* confdefs.h.  */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h.  */
2962
2963int
2964main ()
2965{
2966int i=0; i++;
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext conftest$ac_exeext
2972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973  (eval $ac_link) 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } &&
2980         { ac_try='test -z "$ac_c_werror_flag"
2981                         || test ! -s conftest.err'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; } &&
2987         { ac_try='test -s conftest$ac_exeext'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; }; then
2993  :
2994else
2995  echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998coin_add_cflags="-i_dynamic $coin_add_cflags"
2999fi
3000rm -f conftest.err conftest.$ac_objext \
3001      conftest$ac_exeext conftest.$ac_ext
3002            ;;
3003          pgcc* | */pgcc*)
3004            coin_opt_cflags="-fast"
3005            coin_add_cflags="-Kieee -pc 64"
3006            coin_dbg_cflags="-g"
3007            ;;
3008        esac
3009        ;;
3010      *-ibm-*)
3011        case "$CC" in
3012          xlc* | */xlc* | mpxlc* | */mpxlc*)
3013            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3014            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3015            coin_dbg_cflags="-g"
3016          ;;
3017        esac
3018        ;;
3019      *-hp-*)
3020        coin_opt_cflags="-O"
3021        coin_add_cflags="-Ae"
3022        coin_dbg_cflags="-g"
3023        ;;
3024      *-*-solaris*)
3025        coin_opt_cflags="-xO4"
3026        coin_dbg_cflags="-g"
3027        ;;
3028      *-sgi-*)
3029        coin_opt_cflags="-O -OPT:Olimit=0"
3030        coin_dbg_cflags="-g"
3031        ;;
3032    esac
3033  fi
3034
3035  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3036    coin_dbg_cflags="-g"
3037  fi
3038
3039  if test -z "$coin_opt_cflags"; then
3040    # Try if -O option works if nothing else is set
3041    CFLAGS="-O"
3042    cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052int i=0; i++;
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext conftest$ac_exeext
3058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3059  (eval $ac_link) 2>conftest.er1
3060  ac_status=$?
3061  grep -v '^ *+' conftest.er1 >conftest.err
3062  rm -f conftest.er1
3063  cat conftest.err >&5
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); } &&
3066         { ac_try='test -z "$ac_c_werror_flag"
3067                         || test ! -s conftest.err'
3068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069  (eval $ac_try) 2>&5
3070  ac_status=$?
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); }; } &&
3073         { ac_try='test -s conftest$ac_exeext'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; }; then
3079  coin_opt_cflags="-O"
3080else
3081  echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084fi
3085rm -f conftest.err conftest.$ac_objext \
3086      conftest$ac_exeext conftest.$ac_ext
3087  fi
3088
3089  # if PM doesn't want the warning messages, take them out
3090  if test x"$coin_skip_warn_cflags" = xyes; then
3091    coin_warn_cflags=
3092  fi
3093
3094  if test x${DBG_CFLAGS+set} != xset; then
3095    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3096  fi
3097  if test x${OPT_CFLAGS+set} != xset; then
3098    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3099  fi
3100
3101  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3102  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3103
3104  if test "$coin_debug_compile" = "true"; then
3105    CFLAGS="$DBG_CFLAGS"
3106  else
3107    CFLAGS="$OPT_CFLAGS"
3108  fi
3109else
3110  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3111  if test x${DBG_CFLAGS+set} != xset; then
3112    DBG_CFLAGS="$CFLAGS"
3113  fi
3114  if test x${OPT_CFLAGS+set} != xset; then
3115    OPT_CFLAGS="$CFLAGS"
3116  fi
3117fi
3118
3119# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3120
3121case "$CFLAGS" in
3122  *-mno-cygwin*)
3123    if test x${CPPFLAGS+set} != xset ; then
3124      CPPFLAGS="-mno-cygwin"
3125    else
3126      case "$CPPFLAGS" in
3127        *-mno-cygwin*)
3128          ;;
3129        *)
3130          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3131          ;;
3132      esac
3133    fi ;;
3134esac
3135
3136# Try if CFLAGS works
3137save_CFLAGS="$CFLAGS"
3138cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148int i=0; i++;
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext conftest$ac_exeext
3154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3155  (eval $ac_link) 2>conftest.er1
3156  ac_status=$?
3157  grep -v '^ *+' conftest.er1 >conftest.err
3158  rm -f conftest.er1
3159  cat conftest.err >&5
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); } &&
3162         { ac_try='test -z "$ac_c_werror_flag"
3163                         || test ! -s conftest.err'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; } &&
3169         { ac_try='test -s conftest$ac_exeext'
3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171  (eval $ac_try) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; }; then
3175  :
3176else
3177  echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180CFLAGS=
3181fi
3182rm -f conftest.err conftest.$ac_objext \
3183      conftest$ac_exeext conftest.$ac_ext
3184if test -z "$CFLAGS"; then
3185  { 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
3186echo "$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;}
3187  CFLAGS='-O'
3188  cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198int i=0; i++;
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext conftest$ac_exeext
3204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205  (eval $ac_link) 2>conftest.er1
3206  ac_status=$?
3207  grep -v '^ *+' conftest.er1 >conftest.err
3208  rm -f conftest.er1
3209  cat conftest.err >&5
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); } &&
3212         { ac_try='test -z "$ac_c_werror_flag"
3213                         || test ! -s conftest.err'
3214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215  (eval $ac_try) 2>&5
3216  ac_status=$?
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); }; } &&
3219         { ac_try='test -s conftest$ac_exeext'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; }; then
3225  :
3226else
3227  echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230CFLAGS=
3231fi
3232rm -f conftest.err conftest.$ac_objext \
3233      conftest$ac_exeext conftest.$ac_ext
3234  if test -z "$CFLAGS"; then
3235    { 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
3236echo "$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;}
3237  fi
3238fi
3239
3240{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3241echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3242
3243
3244if test x"$MPICC" = x; then :; else
3245  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3246echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3247  CC="$MPICC"
3248fi
3249
3250# Correct ADDLIBS initialization if we are using the MS compiler
3251case "$CC" in
3252  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3253    ADDLIBS=
3254    case $build in
3255  *-mingw*)
3256    if test "${LD+set}" = set; then :; else
3257      LD=link
3258    fi
3259    ;;
3260 esac
3261 case $enable_doscompile in
3262   msvc)
3263     if test "x${LD+set}" = xset; then :; else
3264       LD=link
3265     fi
3266     ;;
3267 esac
3268
3269    ;;
3270esac
3271
3272ac_ext=c
3273ac_cpp='$CPP $CPPFLAGS'
3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277
3278
3279
3280 #Let's try if that overcomes configuration problem with VC++ 6.0
3281
3282ac_ext=cc
3283ac_cpp='$CXXCPP $CPPFLAGS'
3284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3287
3288
3289
3290
3291
3292
3293
3294coin_has_cxx=yes
3295
3296save_cxxflags="$CXXFLAGS"
3297# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3298case $build in
3299  *-cygwin* | *-mingw*)
3300             if test "$enable_doscompile" = msvc ; then
3301               comps="icl cl"
3302             else
3303               comps="g++ cl"
3304             fi ;;
3305  *-*-solaris*)
3306             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3307  *-darwin*) comps="g++ c++ CC" ;;
3308  *-linux-gnu*)
3309             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3310          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3311esac
3312
3313# We delete the cached value, since the test might not have been
3314# performed with our choice of compilers earlier
3315$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3316# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3317ac_ext=cc
3318ac_cpp='$CXXCPP $CPPFLAGS'
3319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3322if test -n "$ac_tool_prefix"; then
3323  for ac_prog in $CCC $comps
3324  do
3325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327echo "$as_me:$LINENO: checking for $ac_word" >&5
3328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329if test "${ac_cv_prog_CXX+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332  if test -n "$CXX"; then
3333  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3334else
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338  IFS=$as_save_IFS
3339  test -z "$as_dir" && as_dir=.
3340  for ac_exec_ext in '' $ac_executable_extensions; do
3341  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344    break 2
3345  fi
3346done
3347done
3348
3349fi
3350fi
3351CXX=$ac_cv_prog_CXX
3352if test -n "$CXX"; then
3353  echo "$as_me:$LINENO: result: $CXX" >&5
3354echo "${ECHO_T}$CXX" >&6
3355else
3356  echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358fi
3359
3360    test -n "$CXX" && break
3361  done
3362fi
3363if test -z "$CXX"; then
3364  ac_ct_CXX=$CXX
3365  for ac_prog in $CCC $comps
3366do
3367  # Extract the first word of "$ac_prog", so it can be a program name with args.
3368set dummy $ac_prog; ac_word=$2
3369echo "$as_me:$LINENO: checking for $ac_word" >&5
3370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3372  echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374  if test -n "$ac_ct_CXX"; then
3375  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  test -z "$as_dir" && as_dir=.
3382  for ac_exec_ext in '' $ac_executable_extensions; do
3383  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384    ac_cv_prog_ac_ct_CXX="$ac_prog"
3385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386    break 2
3387  fi
3388done
3389done
3390
3391fi
3392fi
3393ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3394if test -n "$ac_ct_CXX"; then
3395  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3396echo "${ECHO_T}$ac_ct_CXX" >&6
3397else
3398  echo "$as_me:$LINENO: result: no" >&5
3399echo "${ECHO_T}no" >&6
3400fi
3401
3402  test -n "$ac_ct_CXX" && break
3403done
3404test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3405
3406  CXX=$ac_ct_CXX
3407fi
3408
3409
3410# Provide some information about the compiler.
3411echo "$as_me:$LINENO:" \
3412     "checking for C++ compiler version" >&5
3413ac_compiler=`set X $ac_compile; echo $2`
3414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3415  (eval $ac_compiler --version </dev/null >&5) 2>&5
3416  ac_status=$?
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); }
3419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3420  (eval $ac_compiler -v </dev/null >&5) 2>&5
3421  ac_status=$?
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); }
3424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3425  (eval $ac_compiler -V </dev/null >&5) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }
3429
3430echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3431echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3432if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3433  echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435  cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441
3442int
3443main ()
3444{
3445#ifndef __GNUC__
3446       choke me
3447#endif
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462         { ac_try='test -z "$ac_cxx_werror_flag"
3463                         || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469         { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  ac_compiler_gnu=yes
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480ac_compiler_gnu=no
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3484
3485fi
3486echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3487echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3488GXX=`test $ac_compiler_gnu = yes && echo yes`
3489ac_test_CXXFLAGS=${CXXFLAGS+set}
3490ac_save_CXXFLAGS=$CXXFLAGS
3491CXXFLAGS="-g"
3492echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3493echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3494if test "${ac_cv_prog_cxx_g+set}" = set; then
3495  echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497  cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext
3513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514  (eval $ac_compile) 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } &&
3521         { ac_try='test -z "$ac_cxx_werror_flag"
3522                         || test ! -s conftest.err'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; } &&
3528         { ac_try='test -s conftest.$ac_objext'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; }; then
3534  ac_cv_prog_cxx_g=yes
3535else
3536  echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539ac_cv_prog_cxx_g=no
3540fi
3541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3542fi
3543echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3544echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3545if test "$ac_test_CXXFLAGS" = set; then
3546  CXXFLAGS=$ac_save_CXXFLAGS
3547elif test $ac_cv_prog_cxx_g = yes; then
3548  if test "$GXX" = yes; then
3549    CXXFLAGS="-g -O2"
3550  else
3551    CXXFLAGS="-g"
3552  fi
3553else
3554  if test "$GXX" = yes; then
3555    CXXFLAGS="-O2"
3556  else
3557    CXXFLAGS=
3558  fi
3559fi
3560for ac_declaration in \
3561   '' \
3562   'extern "C" void std::exit (int) throw (); using std::exit;' \
3563   'extern "C" void std::exit (int); using std::exit;' \
3564   'extern "C" void exit (int) throw ();' \
3565   'extern "C" void exit (int);' \
3566   'void exit (int);'
3567do
3568  cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h.  */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h.  */
3574$ac_declaration
3575#include <stdlib.h>
3576int
3577main ()
3578{
3579exit (42);
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584rm -f conftest.$ac_objext
3585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586  (eval $ac_compile) 2>conftest.er1
3587  ac_status=$?
3588  grep -v '^ *+' conftest.er1 >conftest.err
3589  rm -f conftest.er1
3590  cat conftest.err >&5
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } &&
3593         { ac_try='test -z "$ac_cxx_werror_flag"
3594                         || test ! -s conftest.err'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; } &&
3600         { ac_try='test -s conftest.$ac_objext'
3601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602  (eval $ac_try) 2>&5
3603  ac_status=$?
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); }; }; then
3606  :
3607else
3608  echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611continue
3612fi
3613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3614  cat >conftest.$ac_ext <<_ACEOF
3615/* confdefs.h.  */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h.  */
3620$ac_declaration
3621int
3622main ()
3623{
3624exit (42);
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631  (eval $ac_compile) 2>conftest.er1
3632  ac_status=$?
3633  grep -v '^ *+' conftest.er1 >conftest.err
3634  rm -f conftest.er1
3635  cat conftest.err >&5
3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637  (exit $ac_status); } &&
3638         { ac_try='test -z "$ac_cxx_werror_flag"
3639                         || test ! -s conftest.err'
3640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641  (eval $ac_try) 2>&5
3642  ac_status=$?
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); }; } &&
3645         { ac_try='test -s conftest.$ac_objext'
3646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647  (eval $ac_try) 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); }; }; then
3651  break
3652else
3653  echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
3656fi
3657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658done
3659rm -f conftest*
3660if test -n "$ac_declaration"; then
3661  echo '#ifdef __cplusplus' >>confdefs.h
3662  echo $ac_declaration      >>confdefs.h
3663  echo '#endif'             >>confdefs.h
3664fi
3665
3666ac_ext=cc
3667ac_cpp='$CXXCPP $CPPFLAGS'
3668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671
3672
3673#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3674#thus, we test here whether $CXX is actually working
3675ac_ext=cc
3676ac_cpp='$CXXCPP $CPPFLAGS'
3677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3680
3681echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3682echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3683cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693int i=0;
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } &&
3707         { ac_try='test -z "$ac_cxx_werror_flag"
3708                         || test ! -s conftest.err'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; } &&
3714         { ac_try='test -s conftest.$ac_objext'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; }; then
3720  echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
3722else
3723  echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3729echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3730   { (exit 1); exit 1; }; }
3731
3732fi
3733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734ac_ext=cc
3735ac_cpp='$CXXCPP $CPPFLAGS'
3736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3739
3740
3741coin_cxx_is_cl=false
3742# It seems that we need to cleanup something here for the Windows
3743case "$CXX" in
3744  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3745    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3746    mv confdefs.hh confdefs.h
3747    coin_cxx_is_cl=true
3748    ;;
3749esac
3750
3751# add automake conditional so we can recognize cl compiler in makefile
3752
3753
3754if test $coin_cxx_is_cl = true; then
3755  COIN_CXX_IS_CL_TRUE=
3756  COIN_CXX_IS_CL_FALSE='#'
3757else
3758  COIN_CXX_IS_CL_TRUE='#'
3759  COIN_CXX_IS_CL_FALSE=
3760fi
3761
3762
3763# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3764case "$CXX" in
3765  cl* | */cl* | CL* | */CL* )
3766    if test "$ac_cv_prog_cxx_g" = yes ; then
3767      ac_cv_prog_cxx_g=no
3768      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3769echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3770    fi ;;
3771esac
3772CXXFLAGS="$save_cxxflags"
3773
3774# Check if a project specific CXXFLAGS variable has been set
3775if test x$COIN_PRJCT != x; then
3776  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3777  if test x$coin_tmp = xset; then
3778    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3779  fi
3780fi
3781
3782if test x"$CXXFLAGS" = x; then
3783
3784# ToDo decide whether we want -DNDEBUG for optimization
3785  coin_add_cxxflags=
3786  coin_opt_cxxflags=
3787  coin_dbg_cxxflags=
3788  coin_warn_cxxflags=
3789
3790  if test "$GXX" = "yes"; then
3791    case "$CXX" in
3792      icpc* | */icpc*)
3793        ;;
3794      *)
3795# ToDo decide about unroll-loops
3796        coin_opt_cxxflags="-O3"
3797        coin_add_cxxflags="-pipe"
3798        coin_dbg_cxxflags="-g"
3799        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3800        case $build in
3801          *-darwin*)
3802            ;;
3803          *)
3804            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3805            ;;
3806        esac
3807
3808        case $enable_doscompile in
3809          mingw)
3810            CXXFLAGS="-mno-cygwin"
3811            cat >conftest.$ac_ext <<_ACEOF
3812/* confdefs.h.  */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h.  */
3817
3818int
3819main ()
3820{
3821int i=0; i++;
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826rm -f conftest.$ac_objext conftest$ac_exeext
3827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3828  (eval $ac_link) 2>conftest.er1
3829  ac_status=$?
3830  grep -v '^ *+' conftest.er1 >conftest.err
3831  rm -f conftest.er1
3832  cat conftest.err >&5
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); } &&
3835         { ac_try='test -z "$ac_cxx_werror_flag"
3836                         || test ! -s conftest.err'
3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838  (eval $ac_try) 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; } &&
3842         { ac_try='test -s conftest$ac_exeext'
3843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844  (eval $ac_try) 2>&5
3845  ac_status=$?
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); }; }; then
3848  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3849else
3850  echo "$as_me: failed program was:" >&5
3851sed 's/^/| /' conftest.$ac_ext >&5
3852
3853fi
3854rm -f conftest.err conftest.$ac_objext \
3855      conftest$ac_exeext conftest.$ac_ext
3856            CXXFLAGS=
3857          ;;
3858        esac
3859    esac
3860  fi
3861
3862# Note that we do not need to cover GCC in the following tests.
3863
3864  if test -z "$coin_opt_cxxflags"; then
3865    case $build in
3866      *-cygwin* | *-mingw*)
3867        case "$CXX" in
3868          cl* | */cl* | CL* | */CL*)
3869            # The MT and MTd options are mutually exclusive
3870            coin_opt_cxxflags='-MT -O2'
3871            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3872            coin_dbg_cxxflags='-MTd'
3873            ;;
3874          icl* | */icl* | ICL* | */ICL*)
3875            # The MT and MTd options are mutually exclusive
3876            coin_opt_cxxflags='-MT -Ox'
3877            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3878            coin_dbg_cxxflags='-MTd -debug'
3879            ;;
3880        esac
3881        ;;
3882      *-linux-*)
3883        case "$CXX" in
3884          icpc* | */icpc*)
3885            coin_opt_cxxflags="-O3 -ip -mp1"
3886            coin_add_cxxflags=""
3887            coin_dbg_cxxflags="-g"
3888            # Check if -i_dynamic is necessary (for new glibc library)
3889            CXXFLAGS=
3890            cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h.  */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900int i=0; i++;
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext conftest$ac_exeext
3906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907  (eval $ac_link) 2>conftest.er1
3908  ac_status=$?
3909  grep -v '^ *+' conftest.er1 >conftest.err
3910  rm -f conftest.er1
3911  cat conftest.err >&5
3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913  (exit $ac_status); } &&
3914         { ac_try='test -z "$ac_cxx_werror_flag"
3915                         || test ! -s conftest.err'
3916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917  (eval $ac_try) 2>&5
3918  ac_status=$?
3919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920  (exit $ac_status); }; } &&
3921         { ac_try='test -s conftest$ac_exeext'
3922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923  (eval $ac_try) 2>&5
3924  ac_status=$?
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); }; }; then
3927  :
3928else
3929  echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3933fi
3934rm -f conftest.err conftest.$ac_objext \
3935      conftest$ac_exeext conftest.$ac_ext
3936            ;;
3937          pgCC* | */pgCC*)
3938            coin_opt_cxxflags="-fast"
3939            coin_add_cxxflags="-Kieee -pc 64"
3940            coin_dbg_cxxflags="-g"
3941            ;;
3942        esac
3943        ;;
3944      *-ibm-*)
3945        case "$CXX" in
3946          xlC* | */xlC* | mpxlC* | */mpxlC*)
3947            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3948            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3949            coin_dbg_cxxflags="-g"
3950            ;;
3951        esac
3952        ;;
3953      *-hp-*)
3954        case "$CXX" in
3955          aCC* | */aCC* )
3956            coin_opt_cxxflags="-O"
3957            coin_add_cxxflags="-AA"
3958            coin_dbg_cxxflags="-g"
3959            ;;
3960        esac
3961        ;;
3962      *-*-solaris*)
3963          coin_opt_cxxflags="-O4"
3964          coin_dbg_cxxflags="-g"
3965        ;;
3966    esac
3967  fi
3968
3969# Generic flag settings. If these don't work, add a case above.
3970
3971  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3972    coin_dbg_cxxflags="-g"
3973  fi
3974
3975  if test -z "$coin_opt_cxxflags"; then
3976    # Try if -O option works if nothing else is set
3977    CXXFLAGS=-O
3978    cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h.  */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h.  */
3984
3985int
3986main ()
3987{
3988int i=0; i++;
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993rm -f conftest.$ac_objext conftest$ac_exeext
3994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995  (eval $ac_link) 2>conftest.er1
3996  ac_status=$?
3997  grep -v '^ *+' conftest.er1 >conftest.err
3998  rm -f conftest.er1
3999  cat conftest.err >&5
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); } &&
4002         { ac_try='test -z "$ac_cxx_werror_flag"
4003                         || test ! -s conftest.err'
4004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005  (eval $ac_try) 2>&5
4006  ac_status=$?
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); }; } &&
4009         { ac_try='test -s conftest$ac_exeext'
4010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011  (eval $ac_try) 2>&5
4012  ac_status=$?
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); }; }; then
4015  coin_opt_cxxflags="-O"
4016else
4017  echo "$as_me: failed program was:" >&5
4018sed 's/^/| /' conftest.$ac_ext >&5
4019
4020fi
4021rm -f conftest.err conftest.$ac_objext \
4022      conftest$ac_exeext conftest.$ac_ext
4023  fi
4024
4025  # if PM doesn't want the warning messages, take them out
4026  if test x"$coin_skip_warn_cxxflags" = xyes; then
4027    coin_warn_cxxflags=
4028  fi
4029
4030# Do final setup of flags based on values determined above.
4031
4032  if test x${DBG_CXXFLAGS+set} != xset; then
4033    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4034  fi
4035  if test x${OPT_CXXFLAGS+set} != xset; then
4036    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4037  fi
4038
4039  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4040  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4041
4042  if test "$coin_debug_compile" = "true"; then
4043    CXXFLAGS="$DBG_CXXFLAGS"
4044  else
4045    CXXFLAGS="$OPT_CXXFLAGS"
4046  fi
4047
4048# Handle the case where CXXFLAGS was set externally.
4049else
4050  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4051  if test x${DBG_CXXFLAGS+set} != xset; then
4052    DBG_CXXFLAGS="$CXXFLAGS"
4053  fi
4054  if test x${OPT_CXXFLAGS+set} != xset; then
4055    OPT_CXXFLAGS="$CXXFLAGS"
4056  fi
4057fi
4058
4059# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4060
4061case "$CXXFLAGS" in
4062  *-mno-cygwin*)
4063    if test x${CPPFLAGS+set} != xset ; then
4064      CPPFLAGS="-mno-cygwin"
4065    else
4066      case "$CPPFLAGS" in
4067        *-mno-cygwin*)
4068          ;;
4069        *)
4070          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4071          ;;
4072      esac
4073    fi ;;
4074esac
4075
4076# Try if CXXFLAGS works
4077save_CXXFLAGS="$CXXFLAGS"
4078cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h.  */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h.  */
4084
4085int
4086main ()
4087{
4088int i=0; i++;
4089  ;
4090  return 0;
4091}
4092_ACEOF
4093rm -f conftest.$ac_objext conftest$ac_exeext
4094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095  (eval $ac_link) 2>conftest.er1
4096  ac_status=$?
4097  grep -v '^ *+' conftest.er1 >conftest.err
4098  rm -f conftest.er1
4099  cat conftest.err >&5
4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); } &&
4102         { ac_try='test -z "$ac_cxx_werror_flag"
4103                         || test ! -s conftest.err'
4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105  (eval $ac_try) 2>&5
4106  ac_status=$?
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); }; } &&
4109         { ac_try='test -s conftest$ac_exeext'
4110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111  (eval $ac_try) 2>&5
4112  ac_status=$?
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); }; }; then
4115  :
4116else
4117  echo "$as_me: failed program was:" >&5
4118sed 's/^/| /' conftest.$ac_ext >&5
4119
4120CXXFLAGS=
4121fi
4122rm -f conftest.err conftest.$ac_objext \
4123      conftest$ac_exeext conftest.$ac_ext
4124if test -z "$CXXFLAGS"; then
4125  { 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
4126echo "$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;}
4127  CXXFLAGS='-O'
4128  cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h.  */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h.  */
4134
4135int
4136main ()
4137{
4138int i=0; i++;
4139  ;
4140  return 0;
4141}
4142_ACEOF
4143rm -f conftest.$ac_objext conftest$ac_exeext
4144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4145  (eval $ac_link) 2>conftest.er1
4146  ac_status=$?
4147  grep -v '^ *+' conftest.er1 >conftest.err
4148  rm -f conftest.er1
4149  cat conftest.err >&5
4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151  (exit $ac_status); } &&
4152         { ac_try='test -z "$ac_cxx_werror_flag"
4153                         || test ! -s conftest.err'
4154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155  (eval $ac_try) 2>&5
4156  ac_status=$?
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); }; } &&
4159         { ac_try='test -s conftest$ac_exeext'
4160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161  (eval $ac_try) 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); }; }; then
4165  :
4166else
4167  echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170CXXFLAGS=
4171fi
4172rm -f conftest.err conftest.$ac_objext \
4173      conftest$ac_exeext conftest.$ac_ext
4174  if test -z "$CXXFLAGS"; then
4175    { 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
4176echo "$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;}
4177  fi
4178fi
4179
4180{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4181echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4182
4183
4184if test x"$MPICXX" = x; then :; else
4185  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4186echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4187  CXX="$MPICXX"
4188fi
4189
4190case "$CXX" in
4191  cl* | */cl* | CL* | */CL* )
4192    case $build in
4193  *-mingw*)
4194    if test "${LD+set}" = set; then :; else
4195      LD=link
4196    fi
4197    ;;
4198 esac
4199 case $enable_doscompile in
4200   msvc)
4201     if test "x${LD+set}" = xset; then :; else
4202       LD=link
4203     fi
4204     ;;
4205 esac
4206
4207    ;;
4208esac
4209
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216
4217
4218# Initialize automake and libtool
4219{
4220
4221
4222
4223# START
4224
4225# Test if force_shared has been set
4226if test "x" = xforce_shared; then
4227  if test x$enable_shared = xno; then
4228    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4229echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4230   { (exit 1); exit 1; }; }
4231  fi
4232  enable_shared=yes;
4233else
4234  # On Cygwin and AIX, building DLLs doesn't work
4235  case $build in
4236    *-cygwin*)
4237      coin_disable_shared=yes
4238      platform=Cygwin
4239    ;;
4240    *-aix*)
4241      coin_disable_shared=yes
4242      platform=AIX
4243    ;;
4244    *-mingw*)
4245      coin_disable_shared=yes
4246      platform="Msys"
4247#      case "$CXX" in
4248#        cl*)
4249#          coin_disable_shared=yes
4250#          platform="Msys with cl"
4251#      ;;
4252#      esac
4253    ;;
4254  esac
4255fi
4256if test x"$coin_disable_shared" = xyes; then
4257  if test x"$enable_shared" = xyes; then
4258    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4259echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4260  fi
4261  enable_shared=no
4262fi
4263# By default, we only want the shared objects to be compiled
4264# Check whether --enable-static or --disable-static was given.
4265if test "${enable_static+set}" = set; then
4266  enableval="$enable_static"
4267  p=${PACKAGE-default}
4268    case $enableval in
4269    yes) enable_static=yes ;;
4270    no) enable_static=no ;;
4271    *)
4272     enable_static=no
4273      # Look at the argument we got.  We use all the common list separators.
4274      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4275      for pkg in $enableval; do
4276        IFS="$lt_save_ifs"
4277        if test "X$pkg" = "X$p"; then
4278          enable_static=yes
4279        fi
4280      done
4281      IFS="$lt_save_ifs"
4282      ;;
4283    esac
4284else
4285  enable_static=no
4286fi;
4287
4288
4289
4290
4291# Initialize automake
4292echo "$as_me:$LINENO: checking for egrep" >&5
4293echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4294if test "${ac_cv_prog_egrep+set}" = set; then
4295  echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4298    then ac_cv_prog_egrep='grep -E'
4299    else ac_cv_prog_egrep='egrep'
4300    fi
4301fi
4302echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4303echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4304 EGREP=$ac_cv_prog_egrep
4305
4306
4307am__api_version="1.9"
4308# Find a good install program.  We prefer a C program (faster),
4309# so one script is as good as another.  But avoid the broken or
4310# incompatible versions:
4311# SysV /etc/install, /usr/sbin/install
4312# SunOS /usr/etc/install
4313# IRIX /sbin/install
4314# AIX /bin/install
4315# AmigaOS /C/install, which installs bootblocks on floppy discs
4316# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4317# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4319# OS/2's system install, which has a completely different semantic
4320# ./install, which can be erroneously created by make from ./install.sh.
4321echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4322echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4323if test -z "$INSTALL"; then
4324if test "${ac_cv_path_install+set}" = set; then
4325  echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330  IFS=$as_save_IFS
4331  test -z "$as_dir" && as_dir=.
4332  # Account for people who put trailing slashes in PATH elements.
4333case $as_dir/ in
4334  ./ | .// | /cC/* | \
4335  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4336  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4337  /usr/ucb/* ) ;;
4338  *)
4339    # OSF1 and SCO ODT 3.0 have their own names for install.
4340    # Don't use installbsd from OSF since it installs stuff as root
4341    # by default.
4342    for ac_prog in ginstall scoinst install; do
4343      for ac_exec_ext in '' $ac_executable_extensions; do
4344        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4345          if test $ac_prog = install &&
4346            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4347            # AIX install.  It has an incompatible calling convention.
4348            :
4349          elif test $ac_prog = install &&
4350            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4351            # program-specific install script used by HP pwplus--don't use.
4352            :
4353          else
4354            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4355            break 3
4356          fi
4357        fi
4358      done
4359    done
4360    ;;
4361esac
4362done
4363
4364
4365fi
4366  if test "${ac_cv_path_install+set}" = set; then
4367    INSTALL=$ac_cv_path_install
4368  else
4369    # As a last resort, use the slow shell script.  We don't cache a
4370    # path for INSTALL within a source directory, because that will
4371    # break other packages using the cache if that directory is
4372    # removed, or if the path is relative.
4373    INSTALL=$ac_install_sh
4374  fi
4375fi
4376echo "$as_me:$LINENO: result: $INSTALL" >&5
4377echo "${ECHO_T}$INSTALL" >&6
4378
4379# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4380# It thinks the first close brace ends the variable substitution.
4381test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4382
4383test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4384
4385test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4386
4387echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4388echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4389# Just in case
4390sleep 1
4391echo timestamp > conftest.file
4392# Do `set' in a subshell so we don't clobber the current shell's
4393# arguments.  Must try -L first in case configure is actually a
4394# symlink; some systems play weird games with the mod time of symlinks
4395# (eg FreeBSD returns the mod time of the symlink's containing
4396# directory).
4397if (
4398   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4399   if test "$*" = "X"; then
4400      # -L didn't work.
4401      set X `ls -t $srcdir/configure conftest.file`
4402   fi
4403   rm -f conftest.file
4404   if test "$*" != "X $srcdir/configure conftest.file" \
4405      && test "$*" != "X conftest.file $srcdir/configure"; then
4406
4407      # If neither matched, then we have a broken ls.  This can happen
4408      # if, for instance, CONFIG_SHELL is bash and it inherits a
4409      # broken ls alias from the environment.  This has actually
4410      # happened.  Such a system could not be considered "sane".
4411      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4412alias in your environment" >&5
4413echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4414alias in your environment" >&2;}
4415   { (exit 1); exit 1; }; }
4416   fi
4417
4418   test "$2" = conftest.file
4419   )
4420then
4421   # Ok.
4422   :
4423else
4424   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4425Check your system clock" >&5
4426echo "$as_me: error: newly created file is older than distributed files!
4427Check your system clock" >&2;}
4428   { (exit 1); exit 1; }; }
4429fi
4430echo "$as_me:$LINENO: result: yes" >&5
4431echo "${ECHO_T}yes" >&6
4432test "$program_prefix" != NONE &&
4433  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4434# Use a double $ so make ignores it.
4435test "$program_suffix" != NONE &&
4436  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4437# Double any \ or $.  echo might interpret backslashes.
4438# By default was `s,x,x', remove it if useless.
4439cat <<\_ACEOF >conftest.sed
4440s/[\\$]/&&/g;s/;s,x,x,$//
4441_ACEOF
4442program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4443rm conftest.sed
4444
4445# expand $ac_aux_dir to an absolute path
4446am_aux_dir=`cd $ac_aux_dir && pwd`
4447
4448test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4449# Use eval to expand $SHELL
4450if eval "$MISSING --run true"; then
4451  am_missing_run="$MISSING --run "
4452else
4453  am_missing_run=
4454  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4455echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4456fi
4457
4458if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4459  # We used to keeping the `.' as first argument, in order to
4460  # allow $(mkdir_p) to be used without argument.  As in
4461  #   $(mkdir_p) $(somedir)
4462  # where $(somedir) is conditionally defined.  However this is wrong
4463  # for two reasons:
4464  #  1. if the package is installed by a user who cannot write `.'
4465  #     make install will fail,
4466  #  2. the above comment should most certainly read
4467  #     $(mkdir_p) $(DESTDIR)$(somedir)
4468  #     so it does not work when $(somedir) is undefined and
4469  #     $(DESTDIR) is not.
4470  #  To support the latter case, we have to write
4471  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4472  #  so the `.' trick is pointless.
4473  mkdir_p='mkdir -p --'
4474else
4475  # On NextStep and OpenStep, the `mkdir' command does not
4476  # recognize any option.  It will interpret all options as
4477  # directories to create, and then abort because `.' already
4478  # exists.
4479  for d in ./-p ./--version;
4480  do
4481    test -d $d && rmdir $d
4482  done
4483  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4484  if test -f "$ac_aux_dir/mkinstalldirs"; then
4485    mkdir_p='$(mkinstalldirs)'
4486  else
4487    mkdir_p='$(install_sh) -d'
4488  fi
4489fi
4490
4491for ac_prog in gawk mawk nawk awk
4492do
4493  # Extract the first word of "$ac_prog", so it can be a program name with args.
4494set dummy $ac_prog; ac_word=$2
4495echo "$as_me:$LINENO: checking for $ac_word" >&5
4496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497if test "${ac_cv_prog_AWK+set}" = set; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  if test -n "$AWK"; then
4501  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506  IFS=$as_save_IFS
4507  test -z "$as_dir" && as_dir=.
4508  for ac_exec_ext in '' $ac_executable_extensions; do
4509  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510    ac_cv_prog_AWK="$ac_prog"
4511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512    break 2
4513  fi
4514done
4515done
4516
4517fi
4518fi
4519AWK=$ac_cv_prog_AWK
4520if test -n "$AWK"; then
4521  echo "$as_me:$LINENO: result: $AWK" >&5
4522echo "${ECHO_T}$AWK" >&6
4523else
4524  echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526fi
4527
4528  test -n "$AWK" && break
4529done
4530
4531echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4532echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4533set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4534if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4535  echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537  cat >conftest.make <<\_ACEOF
4538all:
4539        @echo 'ac_maketemp="$(MAKE)"'
4540_ACEOF
4541# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4542eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4543if test -n "$ac_maketemp"; then
4544  eval ac_cv_prog_make_${ac_make}_set=yes
4545else
4546  eval ac_cv_prog_make_${ac_make}_set=no
4547fi
4548rm -f conftest.make
4549fi
4550if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4551  echo "$as_me:$LINENO: result: yes" >&5
4552echo "${ECHO_T}yes" >&6
4553  SET_MAKE=
4554else
4555  echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
4557  SET_MAKE="MAKE=${MAKE-make}"
4558fi
4559
4560rm -rf .tst 2>/dev/null
4561mkdir .tst 2>/dev/null
4562if test -d .tst; then
4563  am__leading_dot=.
4564else
4565  am__leading_dot=_
4566fi
4567rmdir .tst 2>/dev/null
4568
4569DEPDIR="${am__leading_dot}deps"
4570
4571          ac_config_commands="$ac_config_commands depfiles"
4572
4573
4574am_make=${MAKE-make}
4575cat > confinc << 'END'
4576am__doit:
4577        @echo done
4578.PHONY: am__doit
4579END
4580# If we don't find an include directive, just comment out the code.
4581echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4582echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4583am__include="#"
4584am__quote=
4585_am_result=none
4586# First try GNU make style include.
4587echo "include confinc" > confmf
4588# We grep out `Entering directory' and `Leaving directory'
4589# messages which can occur if `w' ends up in MAKEFLAGS.
4590# In particular we don't look at `^make:' because GNU make might
4591# be invoked under some other name (usually "gmake"), in which
4592# case it prints its new name instead of `make'.
4593if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4594   am__include=include
4595   am__quote=
4596   _am_result=GNU
4597fi
4598# Now try BSD make style include.
4599if test "$am__include" = "#"; then
4600   echo '.include "confinc"' > confmf
4601   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4602      am__include=.include
4603      am__quote="\""
4604      _am_result=BSD
4605   fi
4606fi
4607
4608
4609echo "$as_me:$LINENO: result: $_am_result" >&5
4610echo "${ECHO_T}$_am_result" >&6
4611rm -f confinc confmf
4612
4613# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4614if test "${enable_dependency_tracking+set}" = set; then
4615  enableval="$enable_dependency_tracking"
4616
4617fi;
4618if test "x$enable_dependency_tracking" != xno; then
4619  am_depcomp="$ac_aux_dir/depcomp"
4620  AMDEPBACKSLASH='\'
4621fi
4622
4623
4624if test "x$enable_dependency_tracking" != xno; then
4625  AMDEP_TRUE=
4626  AMDEP_FALSE='#'
4627else
4628  AMDEP_TRUE='#'
4629  AMDEP_FALSE=
4630fi
4631
4632
4633
4634
4635
4636# AC_MSG_NOTICE([Beginning automake initialisation.])
4637# Stuff for automake
4638# test to see if srcdir already configured
4639if test "`cd $srcdir && pwd`" != "`pwd`" &&
4640   test -f $srcdir/config.status; then
4641  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4642echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4643   { (exit 1); exit 1; }; }
4644fi
4645
4646# test whether we have cygpath
4647if test -z "$CYGPATH_W"; then
4648  if (cygpath --version) >/dev/null 2>/dev/null; then
4649    CYGPATH_W='cygpath -w'
4650  else
4651    CYGPATH_W=echo
4652  fi
4653fi
4654
4655
4656# Define the identity of the package.
4657 PACKAGE='cbc'
4658 VERSION='2.6'
4659
4660
4661cat >>confdefs.h <<_ACEOF
4662#define PACKAGE "$PACKAGE"
4663_ACEOF
4664
4665
4666cat >>confdefs.h <<_ACEOF
4667#define VERSION "$VERSION"
4668_ACEOF
4669
4670# Some tools Automake needs.
4671
4672ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4673
4674
4675AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4676
4677
4678AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4679
4680
4681AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4682
4683
4684MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4685
4686install_sh=${install_sh-"$am_aux_dir/install-sh"}
4687
4688# Installed binaries are usually stripped using `strip' when the user
4689# run `make install-strip'.  However `strip' might not be the right
4690# tool to use in cross-compilation environments, therefore Automake
4691# will honor the `STRIP' environment variable to overrule this program.
4692if test "$cross_compiling" != no; then
4693  if test -n "$ac_tool_prefix"; then
4694  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4695set dummy ${ac_tool_prefix}strip; ac_word=$2
4696echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698if test "${ac_cv_prog_STRIP+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  if test -n "$STRIP"; then
4702  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707  IFS=$as_save_IFS
4708  test -z "$as_dir" && as_dir=.
4709  for ac_exec_ext in '' $ac_executable_extensions; do
4710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713    break 2
4714  fi
4715done
4716done
4717
4718fi
4719fi
4720STRIP=$ac_cv_prog_STRIP
4721if test -n "$STRIP"; then
4722  echo "$as_me:$LINENO: result: $STRIP" >&5
4723echo "${ECHO_T}$STRIP" >&6
4724else
4725  echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
4727fi
4728
4729fi
4730if test -z "$ac_cv_prog_STRIP"; then
4731  ac_ct_STRIP=$STRIP
4732  # Extract the first word of "strip", so it can be a program name with args.
4733set dummy strip; ac_word=$2
4734echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4736if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4737  echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739  if test -n "$ac_ct_STRIP"; then
4740  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747  for ac_exec_ext in '' $ac_executable_extensions; do
4748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749    ac_cv_prog_ac_ct_STRIP="strip"
4750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751    break 2
4752  fi
4753done
4754done
4755
4756  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4757fi
4758fi
4759ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4760if test -n "$ac_ct_STRIP"; then
4761  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4762echo "${ECHO_T}$ac_ct_STRIP" >&6
4763else
4764  echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6
4766fi
4767
4768  STRIP=$ac_ct_STRIP
4769else
4770  STRIP="$ac_cv_prog_STRIP"
4771fi
4772
4773fi
4774INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4775
4776# We need awk for the "check" target.  The system "awk" is bad on
4777# some platforms.
4778# Always define AMTAR for backward compatibility.
4779
4780AMTAR=${AMTAR-"${am_missing_run}tar"}
4781
4782am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4783
4784
4785
4786
4787depcc="$CC"   am_compiler_list=
4788
4789echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4790echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4791if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4792  echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4795  # We make a subdir and do the tests there.  Otherwise we can end up
4796  # making bogus files that we don't know about and never remove.  For
4797  # instance it was reported that on HP-UX the gcc test will end up
4798  # making a dummy file named `D' -- because `-MD' means `put the output
4799  # in D'.
4800  mkdir conftest.dir
4801  # Copy depcomp to subdir because otherwise we won't find it if we're
4802  # using a relative directory.
4803  cp "$am_depcomp" conftest.dir
4804  cd conftest.dir
4805  # We will build objects and dependencies in a subdirectory because
4806  # it helps to detect inapplicable dependency modes.  For instance
4807  # both Tru64's cc and ICC support -MD to output dependencies as a
4808  # side effect of compilation, but ICC will put the dependencies in
4809  # the current directory while Tru64 will put them in the object
4810  # directory.
4811  mkdir sub
4812
4813  am_cv_CC_dependencies_compiler_type=none
4814  if test "$am_compiler_list" = ""; then
4815     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4816  fi
4817  for depmode in $am_compiler_list; do
4818    # Setup a source with many dependencies, because some compilers
4819    # like to wrap large dependency lists on column 80 (with \), and
4820    # we should not choose a depcomp mode which is confused by this.
4821    #
4822    # We need to recreate these files for each test, as the compiler may
4823    # overwrite some of them when testing with obscure command lines.
4824    # This happens at least with the AIX C compiler.
4825    : > sub/conftest.c
4826    for i in 1 2 3 4 5 6; do
4827      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4828      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4829      # Solaris 8's {/usr,}/bin/sh.
4830      touch sub/conftst$i.h
4831    done
4832    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4833
4834    case $depmode in
4835    nosideeffect)
4836      # after this tag, mechanisms are not by side-effect, so they'll
4837      # only be used when explicitly requested
4838      if test "x$enable_dependency_tracking" = xyes; then
4839        continue
4840      else
4841        break
4842      fi
4843      ;;
4844    none) break ;;
4845    esac
4846    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4847    # mode.  It turns out that the SunPro C++ compiler does not properly
4848    # handle `-M -o', and we need to detect this.
4849    if depmode=$depmode \
4850       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4851       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4852       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4853         >/dev/null 2>conftest.err &&
4854       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4855       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4856       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4857      # icc doesn't choke on unknown options, it will just issue warnings
4858      # or remarks (even with -Werror).  So we grep stderr for any message
4859      # that says an option was ignored or not supported.
4860      # When given -MP, icc 7.0 and 7.1 complain thusly:
4861      #   icc: Command line warning: ignoring option '-M'; no argument required
4862      # The diagnosis changed in icc 8.0:
4863      #   icc: Command line remark: option '-MP' not supported
4864      if (grep 'ignoring option' conftest.err ||
4865          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4866        am_cv_CC_dependencies_compiler_type=$depmode
4867        break
4868      fi
4869    fi
4870  done
4871
4872  cd ..
4873  rm -rf conftest.dir
4874else
4875  am_cv_CC_dependencies_compiler_type=none
4876fi
4877
4878fi
4879echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4880echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4882
4883
4884
4885if
4886  test "x$enable_dependency_tracking" != xno \
4887  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4888  am__fastdepCC_TRUE=
4889  am__fastdepCC_FALSE='#'
4890else
4891  am__fastdepCC_TRUE='#'
4892  am__fastdepCC_FALSE=
4893fi
4894
4895
4896depcc="$CXX"  am_compiler_list=
4897
4898echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4899echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4900if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4901  echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4904  # We make a subdir and do the tests there.  Otherwise we can end up
4905  # making bogus files that we don't know about and never remove.  For
4906  # instance it was reported that on HP-UX the gcc test will end up
4907  # making a dummy file named `D' -- because `-MD' means `put the output
4908  # in D'.
4909  mkdir conftest.dir
4910  # Copy depcomp to subdir because otherwise we won't find it if we're
4911  # using a relative directory.
4912  cp "$am_depcomp" conftest.dir
4913  cd conftest.dir
4914  # We will build objects and dependencies in a subdirectory because
4915  # it helps to detect inapplicable dependency modes.  For instance
4916  # both Tru64's cc and ICC support -MD to output dependencies as a
4917  # side effect of compilation, but ICC will put the dependencies in
4918  # the current directory while Tru64 will put them in the object
4919  # directory.
4920  mkdir sub
4921
4922  am_cv_CXX_dependencies_compiler_type=none
4923  if test "$am_compiler_list" = ""; then
4924     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4925  fi
4926  for depmode in $am_compiler_list; do
4927    # Setup a source with many dependencies, because some compilers
4928    # like to wrap large dependency lists on column 80 (with \), and
4929    # we should not choose a depcomp mode which is confused by this.
4930    #
4931    # We need to recreate these files for each test, as the compiler may
4932    # overwrite some of them when testing with obscure command lines.
4933    # This happens at least with the AIX C compiler.
4934    : > sub/conftest.c
4935    for i in 1 2 3 4 5 6; do
4936      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4937      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4938      # Solaris 8's {/usr,}/bin/sh.
4939      touch sub/conftst$i.h
4940    done
4941    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4942
4943    case $depmode in
4944    nosideeffect)
4945      # after this tag, mechanisms are not by side-effect, so they'll
4946      # only be used when explicitly requested
4947      if test "x$enable_dependency_tracking" = xyes; then
4948        continue
4949      else
4950        break
4951      fi
4952      ;;
4953    none) break ;;
4954    esac
4955    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4956    # mode.  It turns out that the SunPro C++ compiler does not properly
4957    # handle `-M -o', and we need to detect this.
4958    if depmode=$depmode \
4959       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4960       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4961       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4962         >/dev/null 2>conftest.err &&
4963       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4964       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4965       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4966      # icc doesn't choke on unknown options, it will just issue warnings
4967      # or remarks (even with -Werror).  So we grep stderr for any message
4968      # that says an option was ignored or not supported.
4969      # When given -MP, icc 7.0 and 7.1 complain thusly:
4970      #   icc: Command line warning: ignoring option '-M'; no argument required
4971      # The diagnosis changed in icc 8.0:
4972      #   icc: Command line remark: option '-MP' not supported
4973      if (grep 'ignoring option' conftest.err ||
4974          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4975        am_cv_CXX_dependencies_compiler_type=$depmode
4976        break
4977      fi
4978    fi
4979  done
4980
4981  cd ..
4982  rm -rf conftest.dir
4983else
4984  am_cv_CXX_dependencies_compiler_type=none
4985fi
4986
4987fi
4988echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4989echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4990CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4991
4992
4993
4994if
4995  test "x$enable_dependency_tracking" != xno \
4996  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4997  am__fastdepCXX_TRUE=
4998  am__fastdepCXX_FALSE='#'
4999else
5000  am__fastdepCXX_TRUE='#'
5001  am__fastdepCXX_FALSE=
5002fi
5003
5004
5005
5006echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5007echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5008    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5009if test "${enable_maintainer_mode+set}" = set; then
5010  enableval="$enable_maintainer_mode"
5011  USE_MAINTAINER_MODE=$enableval
5012else
5013  USE_MAINTAINER_MODE=no
5014fi;
5015  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5016echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5017
5018
5019if test $USE_MAINTAINER_MODE = yes; then
5020  MAINTAINER_MODE_TRUE=
5021  MAINTAINER_MODE_FALSE='#'
5022else
5023  MAINTAINER_MODE_TRUE='#'
5024  MAINTAINER_MODE_FALSE=
5025fi
5026
5027  MAINT=$MAINTAINER_MODE_TRUE
5028
5029
5030
5031coin_have_externals=no
5032if test "$enable_maintainer_mode" = yes; then
5033
5034  # If maintainer mode is chosen, we make sure that the correct versions
5035  # of the tools are used, and that we know where libtool.m4 is (to
5036  # recreate acinclude.m4)
5037
5038
5039  LIBTOOLM4=
5040  # Normally, $HOME
5041  AUTOTOOLS_DFLT=$HOME
5042
5043  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5044echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5045if test "${ac_cv_use_correct_autotools+set}" = set; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048  ac_cv_use_correct_autotools=check
5049fi
5050echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5051echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5052
5053  if test $ac_cv_use_correct_autotools = check; then
5054    ac_cv_use_correct_autotools=yes
5055    # Check if we have autoconf
5056    # Extract the first word of "autoconf", so it can be a program name with args.
5057set dummy autoconf; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_prog_have_autoconf+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  if test -n "$have_autoconf"; then
5064  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071  for ac_exec_ext in '' $ac_executable_extensions; do
5072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073    ac_cv_prog_have_autoconf="yes"
5074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078done
5079
5080  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5081fi
5082fi
5083have_autoconf=$ac_cv_prog_have_autoconf
5084if test -n "$have_autoconf"; then
5085  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5086echo "${ECHO_T}$have_autoconf" >&6
5087else
5088  echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6
5090fi
5091
5092    if test $have_autoconf = no; then
5093      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5094echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5095   { (exit 1); exit 1; }; }
5096    fi
5097
5098    # Check whether autoconf is the correct version
5099    correct_version='2.59'
5100    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5101    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5102echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5103    autoconf --version > confauto.out 2>&1
5104    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5105      echo "$as_me:$LINENO: result: yes" >&5
5106echo "${ECHO_T}yes" >&6
5107    else
5108      rm -f confauto.out
5109      echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5112echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5113   { (exit 1); exit 1; }; }
5114    fi
5115    rm -f confauto.out
5116
5117    # Check if the executable autoconf is picked up from the correct location
5118    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5119echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5120    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5121    autoconf_dir=`cd $autoconf_dir; pwd`
5122    if test x$AUTOTOOLS_DIR = x; then
5123      want_dir=$AUTOTOOLS_DFLT/bin
5124    else
5125      want_dir=$AUTOTOOLS_DIR/bin
5126    fi
5127    if test $autoconf_dir = `cd $want_dir; pwd`; then
5128      echo "$as_me:$LINENO: result: yes" >&5
5129echo "${ECHO_T}yes" >&6
5130    else
5131      rm -f confauto.out
5132      echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
5134      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5135echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5136   { (exit 1); exit 1; }; }
5137    fi
5138
5139    # Check if we have automake
5140    # Extract the first word of "automake", so it can be a program name with args.
5141set dummy automake; ac_word=$2
5142echo "$as_me:$LINENO: checking for $ac_word" >&5
5143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144if test "${ac_cv_prog_have_automake+set}" = set; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147  if test -n "$have_automake"; then
5148  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155  for ac_exec_ext in '' $ac_executable_extensions; do
5156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157    ac_cv_prog_have_automake="yes"
5158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159    break 2
5160  fi
5161done
5162done
5163
5164  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5165fi
5166fi
5167have_automake=$ac_cv_prog_have_automake
5168if test -n "$have_automake"; then
5169  echo "$as_me:$LINENO: result: $have_automake" >&5
5170echo "${ECHO_T}$have_automake" >&6
5171else
5172  echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174fi
5175
5176    if test $have_automake = no; then
5177      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5178echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5179   { (exit 1); exit 1; }; }
5180    fi
5181
5182    # Check whether automake is the correct version
5183    correct_version='1.9.6'
5184    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5185    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5186echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5187    automake --version > confauto.out 2>&1
5188    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5189      echo "$as_me:$LINENO: result: yes" >&5
5190echo "${ECHO_T}yes" >&6
5191    else
5192      rm -f confauto.out
5193      echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5196echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5197   { (exit 1); exit 1; }; }
5198    fi
5199    rm -f confauto.out
5200
5201    # Check if the executable automake is picked up from the correct location
5202    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5203echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5204    automake_dir=`which automake | sed -e 's=/automake=='`
5205    automake_dir=`cd $automake_dir; pwd`
5206    if test x$AUTOTOOLS_DIR = x; then
5207      want_dir=$AUTOTOOLS_DFLT/bin
5208    else
5209      want_dir=$AUTOTOOLS_DIR/bin
5210    fi
5211    if test $automake_dir = `cd $want_dir; pwd`; then
5212      echo "$as_me:$LINENO: result: yes" >&5
5213echo "${ECHO_T}yes" >&6
5214    else
5215      rm -f confauto.out
5216      echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5219echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5220   { (exit 1); exit 1; }; }
5221    fi
5222
5223    # Check if this is the correct version of libtool (with escaped dots)
5224    if test x$AUTOTOOLS_DIR = x; then
5225      want_dir=$AUTOTOOLS_DFLT/share
5226    else
5227      want_dir=$AUTOTOOLS_DIR/share
5228    fi
5229    correct_version='1.5.22'
5230    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5231    if test -r $want_dir/libtool/ltmain.sh; then
5232  have_ltmain=yes
5233  :
5234else
5235  have_ltmain=no
5236  :
5237fi
5238
5239    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5240echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5241    if test $have_ltmain = yes; then
5242    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5243        echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245      else
5246        echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5249echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5250   { (exit 1); exit 1; }; }
5251      fi
5252    else
5253      echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
5255      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5256echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5257   { (exit 1); exit 1; }; }
5258    fi
5259  fi
5260
5261  # Check if we can find the libtool file
5262  if test x$AUTOTOOLS_DIR = x; then
5263    want_dir=$AUTOTOOLS_DFLT/share
5264  else
5265    want_dir=$AUTOTOOLS_DIR/share
5266  fi
5267  if test -r $want_dir/aclocal/libtool.m4; then
5268  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5269  :
5270else
5271  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5272echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5273   { (exit 1); exit 1; }; }
5274  :
5275fi
5276
5277
5278  # Check if we have an Externals file
5279  if test -r $srcdir/Externals; then
5280    coin_have_externals=yes
5281  fi
5282  # Check if subversion is installed and understands https
5283  # Extract the first word of "svn", so it can be a program name with args.
5284set dummy svn; ac_word=$2
5285echo "$as_me:$LINENO: checking for $ac_word" >&5
5286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287if test "${ac_cv_prog_have_svn+set}" = set; then
5288  echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290  if test -n "$have_svn"; then
5291  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296  IFS=$as_save_IFS
5297  test -z "$as_dir" && as_dir=.
5298  for ac_exec_ext in '' $ac_executable_extensions; do
5299  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300    ac_cv_prog_have_svn="yes"
5301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302    break 2
5303  fi
5304done
5305done
5306
5307  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5308fi
5309fi
5310have_svn=$ac_cv_prog_have_svn
5311if test -n "$have_svn"; then
5312  echo "$as_me:$LINENO: result: $have_svn" >&5
5313echo "${ECHO_T}$have_svn" >&6
5314else
5315  echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
5317fi
5318
5319  if test x$have_svn = xyes; then
5320    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5321echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5322if test "${ac_cv_svn_understands_https+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  svn --version > confauto.out 2>&1
5326                    if $EGREP https confauto.out >/dev/null 2>&1; then
5327                      ac_cv_svn_understands_https=yes
5328                    else
5329                      ac_cv_svn_understands_https=no
5330                      have_svn=no
5331                      ac_cv_prog_have_svn=no
5332                    fi
5333                    rm -f confauto.out
5334fi
5335echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5336echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5337  fi
5338
5339  # Find the location of the BuildTools directory
5340  BUILDTOOLSDIR=
5341  if test -r $srcdir/BuildTools/coin.m4; then
5342    BUILDTOOLSDIR=$srcdir/BuildTools
5343  else
5344    if test -r $srcdir/../BuildTools/coin.m4; then
5345      BUILDTOOLSDIR=$srcdir/../BuildTools
5346    else
5347      if test -r $srcdir/../../BuildTools/coin.m4; then
5348        BUILDTOOLSDIR=$srcdir/../../BuildTools
5349      else
5350        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5351echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5352   { (exit 1); exit 1; }; }
5353      fi
5354    fi
5355  fi
5356
5357
5358  # The following variable is set to the name of the directory where
5359  # the autotool scripts are located
5360
5361  AUX_DIR=$ac_aux_dir
5362fi
5363
5364# helpful variable for the base directory of this package
5365abs_source_dir=`cd $srcdir; pwd`
5366
5367
5368# Stuff for example Makefiles
5369if test x$prefix = xNONE; then
5370  full_prefix=$ac_default_prefix
5371else
5372  full_prefix=$prefix
5373fi
5374full_prefix=`cd $full_prefix ; pwd`
5375
5376abs_lib_dir=$full_prefix/lib/coin
5377
5378abs_include_dir=$full_prefix/include
5379
5380abs_bin_dir=$full_prefix/bin
5381
5382
5383
5384if test $coin_have_externals = yes && test x$have_svn = xyes; then
5385  HAVE_EXTERNALS_TRUE=
5386  HAVE_EXTERNALS_FALSE='#'
5387else
5388  HAVE_EXTERNALS_TRUE='#'
5389  HAVE_EXTERNALS_FALSE=
5390fi
5391
5392
5393# AC_MSG_NOTICE([End automake initialisation.])
5394
5395
5396
5397LIBTOOL=
5398if test -r ../libtool; then
5399  coin_config_dir=..
5400  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5401fi
5402if test "x$LIBTOOL" = x; then
5403  if test -r ../../libtool; then
5404    coin_config_dir=../..
5405    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5406  fi
5407fi
5408
5409if test "x$LIBTOOL" = x; then
5410# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5411  # Stuff for libtool
5412  # Check whether --enable-shared or --disable-shared was given.
5413if test "${enable_shared+set}" = set; then
5414  enableval="$enable_shared"
5415  p=${PACKAGE-default}
5416    case $enableval in
5417    yes) enable_shared=yes ;;
5418    no) enable_shared=no ;;
5419    *)
5420      enable_shared=no
5421      # Look at the argument we got.  We use all the common list separators.
5422      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5423      for pkg in $enableval; do
5424        IFS="$lt_save_ifs"
5425        if test "X$pkg" = "X$p"; then
5426          enable_shared=yes
5427        fi
5428      done
5429      IFS="$lt_save_ifs"
5430      ;;
5431    esac
5432else
5433  enable_shared=yes
5434fi;
5435
5436# Check whether --enable-fast-install or --disable-fast-install was given.
5437if test "${enable_fast_install+set}" = set; then
5438  enableval="$enable_fast_install"
5439  p=${PACKAGE-default}
5440    case $enableval in
5441    yes) enable_fast_install=yes ;;
5442    no) enable_fast_install=no ;;
5443    *)
5444      enable_fast_install=no
5445      # Look at the argument we got.  We use all the common list separators.
5446      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5447      for pkg in $enableval; do
5448        IFS="$lt_save_ifs"
5449        if test "X$pkg" = "X$p"; then
5450          enable_fast_install=yes
5451        fi
5452      done
5453      IFS="$lt_save_ifs"
5454      ;;
5455    esac
5456else
5457  enable_fast_install=yes
5458fi;
5459
5460echo "$as_me:$LINENO: checking host system type" >&5
5461echo $ECHO_N "checking host system type... $ECHO_C" >&6
5462if test "${ac_cv_host+set}" = set; then
5463  echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465  ac_cv_host_alias=$host_alias
5466test -z "$ac_cv_host_alias" &&
5467  ac_cv_host_alias=$ac_cv_build_alias
5468ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5469  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5470echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5471   { (exit 1); exit 1; }; }
5472
5473fi
5474echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5475echo "${ECHO_T}$ac_cv_host" >&6
5476host=$ac_cv_host
5477host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5478host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5479host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5480
5481
5482echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5483echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5484if test "${lt_cv_path_SED+set}" = set; then
5485  echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487  # Loop through the user's path and test for sed and gsed.
5488# Then use that list of sed's as ones to test for truncation.
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492  IFS=$as_save_IFS
5493  test -z "$as_dir" && as_dir=.
5494  for lt_ac_prog in sed gsed; do
5495    for ac_exec_ext in '' $ac_executable_extensions; do
5496      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5497        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5498      fi
5499    done
5500  done
5501done
5502lt_ac_max=0
5503lt_ac_count=0
5504# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5505# along with /bin/sed that truncates output.
5506for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5507  test ! -f $lt_ac_sed && continue
5508  cat /dev/null > conftest.in
5509  lt_ac_count=0
5510  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5511  # Check for GNU sed and select it if it is found.
5512  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5513    lt_cv_path_SED=$lt_ac_sed
5514    break
5515  fi
5516  while true; do
5517    cat conftest.in conftest.in >conftest.tmp
5518    mv conftest.tmp conftest.in
5519    cp conftest.in conftest.nl
5520    echo >>conftest.nl
5521    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5522    cmp -s conftest.out conftest.nl || break
5523    # 10000 chars as input seems more than enough
5524    test $lt_ac_count -gt 10 && break
5525    lt_ac_count=`expr $lt_ac_count + 1`
5526    if test $lt_ac_count -gt $lt_ac_max; then
5527      lt_ac_max=$lt_ac_count
5528      lt_cv_path_SED=$lt_ac_sed
5529    fi
5530  done
5531done
5532
5533fi
5534
5535SED=$lt_cv_path_SED
5536echo "$as_me:$LINENO: result: $SED" >&5
5537echo "${ECHO_T}$SED" >&6
5538
5539
5540# Check whether --with-gnu-ld or --without-gnu-ld was given.
5541if test "${with_gnu_ld+set}" = set; then
5542  withval="$with_gnu_ld"
5543  test "$withval" = no || with_gnu_ld=yes
5544else
5545  with_gnu_ld=no
5546fi;
5547ac_prog=ld
5548if test "$GCC" = yes; then
5549  # Check if gcc -print-prog-name=ld gives a path.
5550  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5551echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5552  case $host in
5553  *-*-mingw*)
5554    # gcc leaves a trailing carriage return which upsets mingw
5555    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5556  *)
5557    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5558  esac
5559  case $ac_prog in
5560    # Accept absolute paths.
5561    [\\/]* | ?:[\\/]*)
5562      re_direlt='/[^/][^/]*/\.\./'
5563      # Canonicalize the pathname of ld
5564      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5565      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5566        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5567      done
5568      test -z "$LD" && LD="$ac_prog"
5569      ;;
5570  "")
5571    # If it fails, then pretend we aren't using GCC.
5572    ac_prog=ld
5573    ;;
5574  *)
5575    # If it is relative, then search for the first ld in PATH.
5576    with_gnu_ld=unknown
5577    ;;
5578  esac
5579elif test "$with_gnu_ld" = yes; then
5580  echo "$as_me:$LINENO: checking for GNU ld" >&5
5581echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5582else
5583  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5584echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5585fi
5586if test "${lt_cv_path_LD+set}" = set; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589  if test -z "$LD"; then
5590  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5591  for ac_dir in $PATH; do
5592    IFS="$lt_save_ifs"
5593    test -z "$ac_dir" && ac_dir=.
5594    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5595      lt_cv_path_LD="$ac_dir/$ac_prog"
5596      # Check to see if the program is GNU ld.  I'd rather use --version,
5597      # but apparently some variants of GNU ld only accept -v.
5598      # Break only if it was the GNU/non-GNU ld that we prefer.
5599      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5600      *GNU* | *'with BFD'*)
5601        test "$with_gnu_ld" != no && break
5602        ;;
5603      *)
5604        test "$with_gnu_ld" != yes && break
5605        ;;
5606      esac
5607    fi
5608  done
5609  IFS="$lt_save_ifs"
5610else
5611  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5612fi
5613fi
5614
5615LD="$lt_cv_path_LD"
5616if test -n "$LD"; then
5617  echo "$as_me:$LINENO: result: $LD" >&5
5618echo "${ECHO_T}$LD" >&6
5619else
5620  echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622fi
5623test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5624echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5625   { (exit 1); exit 1; }; }
5626echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5627echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5628if test "${lt_cv_prog_gnu_ld+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5632case `$LD -v 2>&1 </dev/null` in
5633*GNU* | *'with BFD'*)
5634  lt_cv_prog_gnu_ld=yes
5635  ;;
5636*)
5637  lt_cv_prog_gnu_ld=no
5638  ;;
5639esac
5640fi
5641echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5642echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5643with_gnu_ld=$lt_cv_prog_gnu_ld
5644
5645
5646echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5647echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5648if test "${lt_cv_ld_reload_flag+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  lt_cv_ld_reload_flag='-r'
5652fi
5653echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5654echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5655reload_flag=$lt_cv_ld_reload_flag
5656case $reload_flag in
5657"" | " "*) ;;
5658*) reload_flag=" $reload_flag" ;;
5659esac
5660reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661case $host_os in
5662  darwin*)
5663    if test "$GCC" = yes; then
5664      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5665    else
5666      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5667    fi
5668    ;;
5669esac
5670
5671echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5672echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5673if test "${lt_cv_path_NM+set}" = set; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675else
5676  if test -n "$NM"; then
5677  # Let the user override the test.
5678  lt_cv_path_NM="$NM"
5679else
5680  lt_nm_to_check="${ac_tool_prefix}nm"
5681  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5682    lt_nm_to_check="$lt_nm_to_check nm"
5683  fi
5684  for lt_tmp_nm in $lt_nm_to_check; do
5685    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5687      IFS="$lt_save_ifs"
5688      test -z "$ac_dir" && ac_dir=.
5689      tmp_nm="$ac_dir/$lt_tmp_nm"
5690      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5691        # Check to see if the nm accepts a BSD-compat flag.
5692        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5693        #   nm: unknown option "B" ignored
5694        # Tru64's nm complains that /dev/null is an invalid object file
5695        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5696        */dev/null* | *'Invalid file or object type'*)
5697          lt_cv_path_NM="$tmp_nm -B"
5698          break
5699          ;;
5700        *)
5701          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5702          */dev/null*)
5703            lt_cv_path_NM="$tmp_nm -p"
5704            break
5705            ;;
5706          *)
5707            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708            continue # so that we can try to find one that supports BSD flags
5709            ;;
5710          esac
5711          ;;
5712        esac
5713      fi
5714    done
5715    IFS="$lt_save_ifs"
5716  done
5717  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5718fi
5719fi
5720echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5721echo "${ECHO_T}$lt_cv_path_NM" >&6
5722NM="$lt_cv_path_NM"
5723
5724echo "$as_me:$LINENO: checking whether ln -s works" >&5
5725echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5726LN_S=$as_ln_s
5727if test "$LN_S" = "ln -s"; then
5728  echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
5730else
5731  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5732echo "${ECHO_T}no, using $LN_S" >&6
5733fi
5734
5735echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5736echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5737if test "${lt_cv_deplibs_check_method+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  lt_cv_file_magic_cmd='$MAGIC_CMD'
5741lt_cv_file_magic_test_file=
5742lt_cv_deplibs_check_method='unknown'
5743# Need to set the preceding variable on all platforms that support
5744# interlibrary dependencies.
5745# 'none' -- dependencies not supported.
5746# `unknown' -- same as none, but documents that we really don't know.
5747# 'pass_all' -- all dependencies passed with no checks.
5748# 'test_compile' -- check by making test program.
5749# 'file_magic [[regex]]' -- check by looking for files in library path
5750# which responds to the $file_magic_cmd with a given extended regex.
5751# If you have `file' or equivalent on your system and you're not sure
5752# whether `pass_all' will *always* work, you probably want this one.
5753
5754case $host_os in
5755aix4* | aix5*)
5756  lt_cv_deplibs_check_method=pass_all
5757  ;;
5758
5759beos*)
5760  lt_cv_deplibs_check_method=pass_all
5761  ;;
5762
5763bsdi[45]*)
5764  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5765  lt_cv_file_magic_cmd='/usr/bin/file -L'
5766  lt_cv_file_magic_test_file=/shlib/libc.so
5767  ;;
5768
5769cygwin*)
5770  # func_win32_libid is a shell function defined in ltmain.sh
5771  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5772  lt_cv_file_magic_cmd='func_win32_libid'
5773  ;;
5774
5775mingw* | pw32*)
5776  # Base MSYS/MinGW do not provide the 'file' command needed by
5777  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5778  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5779  lt_cv_file_magic_cmd='$OBJDUMP -f'
5780  ;;
5781
5782darwin* | rhapsody*)
5783  lt_cv_deplibs_check_method=pass_all
5784  ;;
5785
5786freebsd* | kfreebsd*-gnu | dragonfly*)
5787  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5788    case $host_cpu in
5789    i*86 )
5790      # Not sure whether the presence of OpenBSD here was a mistake.
5791      # Let's accept both of them until this is cleared up.
5792      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5793      lt_cv_file_magic_cmd=/usr/bin/file
5794      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5795      ;;
5796    esac
5797  else
5798    lt_cv_deplibs_check_method=pass_all
5799  fi
5800  ;;
5801
5802gnu*)
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806hpux10.20* | hpux11*)
5807  lt_cv_file_magic_cmd=/usr/bin/file
5808  case $host_cpu in
5809  ia64*)
5810    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5811    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5812    ;;
5813  hppa*64*)
5814    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]'
5815    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5816    ;;
5817  *)
5818    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5819    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5820    ;;
5821  esac
5822  ;;
5823
5824interix3*)
5825  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5826  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5827  ;;
5828
5829irix5* | irix6* | nonstopux*)
5830  case $LD in
5831  *-32|*"-32 ") libmagic=32-bit;;
5832  *-n32|*"-n32 ") libmagic=N32;;
5833  *-64|*"-64 ") libmagic=64-bit;;
5834  *) libmagic=never-match;;
5835  esac
5836  lt_cv_deplibs_check_method=pass_all
5837  ;;
5838
5839# This must be Linux ELF.
5840linux*)
5841  lt_cv_deplibs_check_method=pass_all
5842  ;;
5843
5844netbsd*)
5845  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5846    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5847  else
5848    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5849  fi
5850  ;;
5851
5852newos6*)
5853  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5854  lt_cv_file_magic_cmd=/usr/bin/file
5855  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5856  ;;
5857
5858nto-qnx*)
5859  lt_cv_deplibs_check_method=unknown
5860  ;;
5861
5862openbsd*)
5863  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5864    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5865  else
5866    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867  fi
5868  ;;
5869
5870osf3* | osf4* | osf5*)
5871  lt_cv_deplibs_check_method=pass_all
5872  ;;
5873
5874solaris*)
5875  lt_cv_deplibs_check_method=pass_all
5876  ;;
5877
5878sysv4 | sysv4.3*)
5879  case $host_vendor in
5880  motorola)
5881    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]'
5882    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5883    ;;
5884  ncr)
5885    lt_cv_deplibs_check_method=pass_all
5886    ;;
5887  sequent)
5888    lt_cv_file_magic_cmd='/bin/file'
5889    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5890    ;;
5891  sni)
5892    lt_cv_file_magic_cmd='/bin/file'
5893    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5894    lt_cv_file_magic_test_file=/lib/libc.so
5895    ;;
5896  siemens)
5897    lt_cv_deplibs_check_method=pass_all
5898    ;;
5899  pc)
5900    lt_cv_deplibs_check_method=pass_all
5901    ;;
5902  esac
5903  ;;
5904
5905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5906  lt_cv_deplibs_check_method=pass_all
5907  ;;
5908esac
5909
5910fi
5911echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5912echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5913file_magic_cmd=$lt_cv_file_magic_cmd
5914deplibs_check_method=$lt_cv_deplibs_check_method
5915test -z "$deplibs_check_method" && deplibs_check_method=unknown
5916
5917
5918
5919
5920# If no C compiler was specified, use CC.
5921LTCC=${LTCC-"$CC"}
5922
5923# If no C compiler flags were specified, use CFLAGS.
5924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5925
5926# Allow CC to be a program name with arguments.
5927compiler=$CC
5928
5929# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5930if test "${enable_libtool_lock+set}" = set; then
5931  enableval="$enable_libtool_lock"
5932
5933fi;
5934test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5935
5936# Some flags need to be propagated to the compiler or linker for good
5937# libtool support.
5938case $host in
5939ia64-*-hpux*)
5940  # Find out which ABI we are using.
5941  echo 'int i;' > conftest.$ac_ext
5942  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943  (eval $ac_compile) 2>&5
5944  ac_status=$?
5945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946  (exit $ac_status); }; then
5947    case `/usr/bin/file conftest.$ac_objext` in
5948    *ELF-32*)
5949      HPUX_IA64_MODE="32"
5950      ;;
5951    *ELF-64*)
5952      HPUX_IA64_MODE="64"
5953      ;;
5954    esac
5955  fi
5956  rm -rf conftest*
5957  ;;
5958*-*-irix6*)
5959  # Find out which ABI we are using.
5960  echo '#line 5960 "configure"' > conftest.$ac_ext
5961  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962  (eval $ac_compile) 2>&5
5963  ac_status=$?
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); }; then
5966   if test "$lt_cv_prog_gnu_ld" = yes; then
5967    case `/usr/bin/file conftest.$ac_objext` in
5968    *32-bit*)
5969      LD="${LD-ld} -melf32bsmip"
5970      ;;
5971    *N32*)
5972      LD="${LD-ld} -melf32bmipn32"
5973      ;;
5974    *64-bit*)
5975      LD="${LD-ld} -melf64bmip"
5976      ;;
5977    esac
5978   else
5979    case `/usr/bin/file conftest.$ac_objext` in
5980    *32-bit*)
5981      LD="${LD-ld} -32"
5982      ;;
5983    *N32*)
5984      LD="${LD-ld} -n32"
5985      ;;
5986    *64-bit*)
5987      LD="${LD-ld} -64"
5988      ;;
5989    esac
5990   fi
5991  fi
5992  rm -rf conftest*
5993  ;;
5994
5995x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5996  # Find out which ABI we are using.
5997  echo 'int i;' > conftest.$ac_ext
5998  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999  (eval $ac_compile) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; then
6003    case `/usr/bin/file conftest.o` in
6004    *32-bit*)
6005      case $host in
6006        x86_64-*linux*)
6007          LD="${LD-ld} -m elf_i386"
6008          ;;
6009        ppc64-*linux*|powerpc64-*linux*)
6010          LD="${LD-ld} -m elf32ppclinux"
6011          ;;
6012        s390x-*linux*)
6013          LD="${LD-ld} -m elf_s390"
6014          ;;
6015        sparc64-*linux*)
6016          LD="${LD-ld} -m elf32_sparc"
6017          ;;
6018      esac
6019      ;;
6020    *64-bit*)
6021      case $host in
6022        x86_64-*linux*)
6023          LD="${LD-ld} -m elf_x86_64"
6024          ;;
6025        ppc*-*linux*|powerpc*-*linux*)
6026          LD="${LD-ld} -m elf64ppc"
6027          ;;
6028        s390*-*linux*)
6029          LD="${LD-ld} -m elf64_s390"
6030          ;;
6031        sparc*-*linux*)
6032          LD="${LD-ld} -m elf64_sparc"
6033          ;;
6034      esac
6035      ;;
6036    esac
6037  fi
6038  rm -rf conftest*
6039  ;;
6040
6041*-*-sco3.2v5*)
6042  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6043  SAVE_CFLAGS="$CFLAGS"
6044  CFLAGS="$CFLAGS -belf"
6045  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6046echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6047if test "${lt_cv_cc_needs_belf+set}" = set; then
6048  echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050  ac_ext=c
6051ac_cpp='$CPP $CPPFLAGS'
6052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055
6056     cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h.  */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h.  */
6062
6063int
6064main ()
6065{
6066
6067  ;
6068  return 0;
6069}
6070_ACEOF
6071rm -f conftest.$ac_objext conftest$ac_exeext
6072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6073  (eval $ac_link) 2>conftest.er1
6074  ac_status=$?
6075  grep -v '^ *+' conftest.er1 >conftest.err
6076  rm -f conftest.er1
6077  cat conftest.err >&5
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); } &&
6080         { ac_try='test -z "$ac_c_werror_flag"
6081                         || test ! -s conftest.err'
6082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083  (eval $ac_try) 2>&5
6084  ac_status=$?
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); }; } &&
6087         { ac_try='test -s conftest$ac_exeext'
6088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089  (eval $ac_try) 2>&5
6090  ac_status=$?
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); }; }; then
6093  lt_cv_cc_needs_belf=yes
6094else
6095  echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098lt_cv_cc_needs_belf=no
6099fi
6100rm -f conftest.err conftest.$ac_objext \
6101      conftest$ac_exeext conftest.$ac_ext
6102     ac_ext=c
6103ac_cpp='$CPP $CPPFLAGS'
6104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107
6108fi
6109echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6110echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6111  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6112    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6113    CFLAGS="$SAVE_CFLAGS"
6114  fi
6115  ;;
6116sparc*-*solaris*)
6117  # Find out which ABI we are using.
6118  echo 'int i;' > conftest.$ac_ext
6119  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120  (eval $ac_compile) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); }; then
6124    case `/usr/bin/file conftest.o` in
6125    *64-bit*)
6126      case $lt_cv_prog_gnu_ld in
6127      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6128      *)    LD="${LD-ld} -64" ;;
6129      esac
6130      ;;
6131    esac
6132  fi
6133  rm -rf conftest*
6134  ;;
6135
6136
6137esac
6138
6139need_locks="$enable_libtool_lock"
6140
6141
6142ac_ext=c
6143ac_cpp='$CPP $CPPFLAGS'
6144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6148echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6149# On Suns, sometimes $CPP names a directory.
6150if test -n "$CPP" && test -d "$CPP"; then
6151  CPP=
6152fi
6153if test -z "$CPP"; then
6154  if test "${ac_cv_prog_CPP+set}" = set; then
6155  echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157      # Double quotes because CPP needs to be expanded
6158    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6159    do
6160      ac_preproc_ok=false
6161for ac_c_preproc_warn_flag in '' yes
6162do
6163  # Use a header file that comes with gcc, so configuring glibc
6164  # with a fresh cross-compiler works.
6165  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6166  # <limits.h> exists even on freestanding compilers.
6167  # On the NeXT, cc -E runs the code through the compiler's parser,
6168  # not just through cpp. "Syntax error" is here to catch this case.
6169  cat >conftest.$ac_ext <<_ACEOF
6170/* confdefs.h.  */
6171_ACEOF
6172cat confdefs.h >>conftest.$ac_ext
6173cat >>conftest.$ac_ext <<_ACEOF
6174/* end confdefs.h.  */
6175#ifdef __STDC__
6176# include <limits.h>
6177#else
6178# include <assert.h>
6179#endif
6180                     Syntax error
6181_ACEOF
6182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6183  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6184  ac_status=$?
6185  grep -v '^ *+' conftest.er1 >conftest.err
6186  rm -f conftest.er1
6187  cat conftest.err >&5
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); } >/dev/null; then
6190  if test -s conftest.err; then
6191    ac_cpp_err=$ac_c_preproc_warn_flag
6192    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193  else
6194    ac_cpp_err=
6195  fi
6196else
6197  ac_cpp_err=yes
6198fi
6199if test -z "$ac_cpp_err"; then
6200  :
6201else
6202  echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205  # Broken: fails on valid input.
6206continue
6207fi
6208rm -f conftest.err conftest.$ac_ext
6209
6210  # OK, works on sane cases.  Now check whether non-existent headers
6211  # can be detected and how.
6212  cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h.  */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h.  */
6218#include <ac_nonexistent.h>
6219_ACEOF
6220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6221  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6222  ac_status=$?
6223  grep -v '^ *+' conftest.er1 >conftest.err
6224  rm -f conftest.er1
6225  cat conftest.err >&5
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); } >/dev/null; then
6228  if test -s conftest.err; then
6229    ac_cpp_err=$ac_c_preproc_warn_flag
6230    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6231  else
6232    ac_cpp_err=
6233  fi
6234else
6235  ac_cpp_err=yes
6236fi
6237if test -z "$ac_cpp_err"; then
6238  # Broken: success on invalid input.
6239continue
6240else
6241  echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
6243
6244  # Passes both tests.
6245ac_preproc_ok=:
6246break
6247fi
6248rm -f conftest.err conftest.$ac_ext
6249
6250done
6251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6252rm -f conftest.err conftest.$ac_ext
6253if $ac_preproc_ok; then
6254  break
6255fi
6256
6257    done
6258    ac_cv_prog_CPP=$CPP
6259
6260fi
6261  CPP=$ac_cv_prog_CPP
6262else
6263  ac_cv_prog_CPP=$CPP
6264fi
6265echo "$as_me:$LINENO: result: $CPP" >&5
6266echo "${ECHO_T}$CPP" >&6
6267ac_preproc_ok=false
6268for ac_c_preproc_warn_flag in '' yes
6269do
6270  # Use a header file that comes with gcc, so configuring glibc
6271  # with a fresh cross-compiler works.
6272  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6273  # <limits.h> exists even on freestanding compilers.
6274  # On the NeXT, cc -E runs the code through the compiler's parser,
6275  # not just through cpp. "Syntax error" is here to catch this case.
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282#ifdef __STDC__
6283# include <limits.h>
6284#else
6285# include <assert.h>
6286#endif
6287                     Syntax error
6288_ACEOF
6289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6291  ac_status=$?
6292  grep -v '^ *+' conftest.er1 >conftest.err
6293  rm -f conftest.er1
6294  cat conftest.err >&5
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); } >/dev/null; then
6297  if test -s conftest.err; then
6298    ac_cpp_err=$ac_c_preproc_warn_flag
6299    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300  else
6301    ac_cpp_err=
6302  fi
6303else
6304  ac_cpp_err=yes
6305fi
6306if test -z "$ac_cpp_err"; then
6307  :
6308else
6309  echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312  # Broken: fails on valid input.
6313continue
6314fi
6315rm -f conftest.err conftest.$ac_ext
6316
6317  # OK, works on sane cases.  Now check whether non-existent headers
6318  # can be detected and how.
6319  cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h.  */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h.  */
6325#include <ac_nonexistent.h>
6326_ACEOF
6327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329  ac_status=$?
6330  grep -v '^ *+' conftest.er1 >conftest.err
6331  rm -f conftest.er1
6332  cat conftest.err >&5
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); } >/dev/null; then
6335  if test -s conftest.err; then
6336    ac_cpp_err=$ac_c_preproc_warn_flag
6337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6338  else
6339    ac_cpp_err=
6340  fi
6341else
6342  ac_cpp_err=yes
6343fi
6344if test -z "$ac_cpp_err"; then
6345  # Broken: success on invalid input.
6346continue
6347else
6348  echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351  # Passes both tests.
6352ac_preproc_ok=:
6353break
6354fi
6355rm -f conftest.err conftest.$ac_ext
6356
6357done
6358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6359rm -f conftest.err conftest.$ac_ext
6360if $ac_preproc_ok; then
6361  :
6362else
6363  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6364See \`config.log' for more details." >&5
6365echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6366See \`config.log' for more details." >&2;}
6367   { (exit 1); exit 1; }; }
6368fi
6369
6370ac_ext=c
6371ac_cpp='$CPP $CPPFLAGS'
6372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375
6376
6377echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6378echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6379if test "${ac_cv_header_stdc+set}" = set; then
6380  echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382  cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h.  */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h.  */
6388#include <stdlib.h>
6389#include <stdarg.h>
6390#include <string.h>
6391#include <float.h>
6392
6393int
6394main ()
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401rm -f conftest.$ac_objext
6402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403  (eval $ac_compile) 2>conftest.er1
6404  ac_status=$?
6405  grep -v '^ *+' conftest.er1 >conftest.err
6406  rm -f conftest.er1
6407  cat conftest.err >&5
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); } &&
6410         { ac_try='test -z "$ac_c_werror_flag"
6411                         || test ! -s conftest.err'
6412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413  (eval $ac_try) 2>&5
6414  ac_status=$?
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); }; } &&
6417         { ac_try='test -s conftest.$ac_objext'
6418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419  (eval $ac_try) 2>&5
6420  ac_status=$?
6421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422  (exit $ac_status); }; }; then
6423  ac_cv_header_stdc=yes
6424else
6425  echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428ac_cv_header_stdc=no
6429fi
6430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431
6432if test $ac_cv_header_stdc = yes; then
6433  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6434  cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h.  */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h.  */
6440#include <string.h>
6441
6442_ACEOF
6443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444  $EGREP "memchr" >/dev/null 2>&1; then
6445  :
6446else
6447  ac_cv_header_stdc=no
6448fi
6449rm -f conftest*
6450
6451fi
6452
6453if test $ac_cv_header_stdc = yes; then
6454  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6455  cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461#include <stdlib.h>
6462
6463_ACEOF
6464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6465  $EGREP "free" >/dev/null 2>&1; then
6466  :
6467else
6468  ac_cv_header_stdc=no
6469fi
6470rm -f conftest*
6471
6472fi
6473
6474if test $ac_cv_header_stdc = yes; then
6475  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6476  if test "$cross_compiling" = yes; then
6477  :
6478else
6479  cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h.  */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h.  */
6485#include <ctype.h>
6486#if ((' ' & 0x0FF) == 0x020)
6487# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6488# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6489#else
6490# define ISLOWER(c) \
6491                   (('a' <= (c) && (c) <= 'i') \
6492                     || ('j' <= (c) && (c) <= 'r') \
6493                     || ('s' <= (c) && (c) <= 'z'))
6494# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6495#endif
6496
6497#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6498int
6499main ()
6500{
6501  int i;
6502  for (i = 0; i < 256; i++)
6503    if (XOR (islower (i), ISLOWER (i))
6504        || toupper (i) != TOUPPER (i))
6505      exit(2);
6506  exit (0);
6507}
6508_ACEOF
6509rm -f conftest$ac_exeext
6510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511  (eval $ac_link) 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516  (eval $ac_try) 2>&5
6517  ac_status=$?
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); }; }; then
6520  :
6521else
6522  echo "$as_me: program exited with status $ac_status" >&5
6523echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526( exit $ac_status )
6527ac_cv_header_stdc=no
6528fi
6529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6530fi
6531fi
6532fi
6533echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6534echo "${ECHO_T}$ac_cv_header_stdc" >&6
6535if test $ac_cv_header_stdc = yes; then
6536
6537cat >>confdefs.h <<\_ACEOF
6538#define STDC_HEADERS 1
6539_ACEOF
6540
6541fi
6542
6543# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6554                  inttypes.h stdint.h unistd.h
6555do
6556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557echo "$as_me:$LINENO: checking for $ac_header" >&5
6558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6559if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h.  */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h.  */
6568$ac_includes_default
6569
6570#include <$ac_header>
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574  (eval $ac_compile) 2>conftest.er1
6575  ac_status=$?
6576  grep -v '^ *+' conftest.er1 >conftest.err
6577  rm -f conftest.er1
6578  cat conftest.err >&5
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); } &&
6581         { ac_try='test -z "$ac_c_werror_flag"
6582                         || test ! -s conftest.err'
6583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584  (eval $ac_try) 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }; } &&
6588         { ac_try='test -s conftest.$ac_objext'
6589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590  (eval $ac_try) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }; }; then
6594  eval "$as_ac_Header=yes"
6595else
6596  echo "$as_me: failed program was:" >&5
6597sed 's/^/| /' conftest.$ac_ext >&5
6598
6599eval "$as_ac_Header=no"
6600fi
6601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602fi
6603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606  cat >>confdefs.h <<_ACEOF
6607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608_ACEOF
6609
6610fi
6611
6612done
6613
6614
6615
6616for ac_header in dlfcn.h
6617do
6618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619if eval "test \"\${$as_ac_Header+set}\" = set"; then
6620  echo "$as_me:$LINENO: checking for $ac_header" >&5
6621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6622if eval "test \"\${$as_ac_Header+set}\" = set"; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624fi
6625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627else
6628  # Is the header compilable?
6629echo "$as_me:$LINENO: checking $ac_header usability" >&5
6630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6631cat >conftest.$ac_ext <<_ACEOF
6632/* confdefs.h.  */
6633_ACEOF
6634cat confdefs.h >>conftest.$ac_ext
6635cat >>conftest.$ac_ext <<_ACEOF
6636/* end confdefs.h.  */
6637$ac_includes_default
6638#include <$ac_header>
6639_ACEOF
6640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642  (eval $ac_compile) 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } &&
6649         { ac_try='test -z "$ac_c_werror_flag"
6650                         || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656         { ac_try='test -s conftest.$ac_objext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  ac_header_compiler=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667ac_header_compiler=no
6668fi
6669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6671echo "${ECHO_T}$ac_header_compiler" >&6
6672
6673# Is the header present?
6674echo "$as_me:$LINENO: checking $ac_header presence" >&5
6675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6676cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682#include <$ac_header>
6683_ACEOF
6684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686  ac_status=$?
6687  grep -v '^ *+' conftest.er1 >conftest.err
6688  rm -f conftest.er1
6689  cat conftest.err >&5
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } >/dev/null; then
6692  if test -s conftest.err; then
6693    ac_cpp_err=$ac_c_preproc_warn_flag
6694    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695  else
6696    ac_cpp_err=
6697  fi
6698else
6699  ac_cpp_err=yes
6700fi
6701if test -z "$ac_cpp_err"; then
6702  ac_header_preproc=yes
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707  ac_header_preproc=no
6708fi
6709rm -f conftest.err conftest.$ac_ext
6710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6711echo "${ECHO_T}$ac_header_preproc" >&6
6712
6713# So?  What about this header?
6714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6715  yes:no: )
6716    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6718    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6720    ac_header_preproc=yes
6721    ;;
6722  no:yes:* )
6723    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6725    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6726echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6727    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6729    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6730echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6733    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6735    (
6736      cat <<\_ASBOX
6737## ------------------------------------ ##
6738## Report this to cbc@lists.coin-or.org ##
6739## ------------------------------------ ##
6740_ASBOX
6741    ) |
6742      sed "s/^/$as_me: WARNING:     /" >&2
6743    ;;
6744esac
6745echo "$as_me:$LINENO: checking for $ac_header" >&5
6746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748  echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750  eval "$as_ac_Header=\$ac_header_preproc"
6751fi
6752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754
6755fi
6756if test `eval echo '${'$as_ac_Header'}'` = yes; then
6757  cat >>confdefs.h <<_ACEOF
6758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6759_ACEOF
6760
6761fi
6762
6763done
6764
6765
6766
6767if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6768    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6769    (test "X$CXX" != "Xg++"))) ; then
6770  ac_ext=cc
6771ac_cpp='$CXXCPP $CPPFLAGS'
6772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6776echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6777if test -z "$CXXCPP"; then
6778  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781      # Double quotes because CXXCPP needs to be expanded
6782    for CXXCPP in "$CXX -E" "/lib/cpp"
6783    do
6784      ac_preproc_ok=false
6785for ac_cxx_preproc_warn_flag in '' yes
6786do
6787  # Use a header file that comes with gcc, so configuring glibc
6788  # with a fresh cross-compiler works.
6789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6790  # <limits.h> exists even on freestanding compilers.
6791  # On the NeXT, cc -E runs the code through the compiler's parser,
6792  # not just through cpp. "Syntax error" is here to catch this case.
6793  cat >conftest.$ac_ext <<_ACEOF
6794/* confdefs.h.  */
6795_ACEOF
6796cat confdefs.h >>conftest.$ac_ext
6797cat >>conftest.$ac_ext <<_ACEOF
6798/* end confdefs.h.  */
6799#ifdef __STDC__
6800# include <limits.h>
6801#else
6802# include <assert.h>
6803#endif
6804                     Syntax error
6805_ACEOF
6806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6807  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6808  ac_status=$?
6809  grep -v '^ *+' conftest.er1 >conftest.err
6810  rm -f conftest.er1
6811  cat conftest.err >&5
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); } >/dev/null; then
6814  if test -s conftest.err; then
6815    ac_cpp_err=$ac_cxx_preproc_warn_flag
6816    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6817  else
6818    ac_cpp_err=
6819  fi
6820else
6821  ac_cpp_err=yes
6822fi
6823if test -z "$ac_cpp_err"; then
6824  :
6825else
6826  echo "$as_me: failed program was:" >&5
6827sed 's/^/| /' conftest.$ac_ext >&5
6828
6829  # Broken: fails on valid input.
6830continue
6831fi
6832rm -f conftest.err conftest.$ac_ext
6833
6834  # OK, works on sane cases.  Now check whether non-existent headers
6835  # can be detected and how.
6836  cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h.  */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h.  */
6842#include <ac_nonexistent.h>
6843_ACEOF
6844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846  ac_status=$?
6847  grep -v '^ *+' conftest.er1 >conftest.err
6848  rm -f conftest.er1
6849  cat conftest.err >&5
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); } >/dev/null; then
6852  if test -s conftest.err; then
6853    ac_cpp_err=$ac_cxx_preproc_warn_flag
6854    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6855  else
6856    ac_cpp_err=
6857  fi
6858else
6859  ac_cpp_err=yes
6860fi
6861if test -z "$ac_cpp_err"; then
6862  # Broken: success on invalid input.
6863continue
6864else
6865  echo "$as_me: failed program was:" >&5
6866sed 's/^/| /' conftest.$ac_ext >&5
6867
6868  # Passes both tests.
6869ac_preproc_ok=:
6870break
6871fi
6872rm -f conftest.err conftest.$ac_ext
6873
6874done
6875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6876rm -f conftest.err conftest.$ac_ext
6877if $ac_preproc_ok; then
6878  break
6879fi
6880
6881    done
6882    ac_cv_prog_CXXCPP=$CXXCPP
6883
6884fi
6885  CXXCPP=$ac_cv_prog_CXXCPP
6886else
6887  ac_cv_prog_CXXCPP=$CXXCPP
6888fi
6889echo "$as_me:$LINENO: result: $CXXCPP" >&5
6890echo "${ECHO_T}$CXXCPP" >&6
6891ac_preproc_ok=false
6892for ac_cxx_preproc_warn_flag in '' yes
6893do
6894  # Use a header file that comes with gcc, so configuring glibc
6895  # with a fresh cross-compiler works.
6896  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897  # <limits.h> exists even on freestanding compilers.
6898  # On the NeXT, cc -E runs the code through the compiler's parser,
6899  # not just through cpp. "Syntax error" is here to catch this case.
6900  cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h.  */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h.  */
6906#ifdef __STDC__
6907# include <limits.h>
6908#else
6909# include <assert.h>
6910#endif
6911                     Syntax error
6912_ACEOF
6913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6914  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6915  ac_status=$?
6916  grep -v '^ *+' conftest.er1 >conftest.err
6917  rm -f conftest.er1
6918  cat conftest.err >&5
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); } >/dev/null; then
6921  if test -s conftest.err; then
6922    ac_cpp_err=$ac_cxx_preproc_warn_flag
6923    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6924  else
6925    ac_cpp_err=
6926  fi
6927else
6928  ac_cpp_err=yes
6929fi
6930if test -z "$ac_cpp_err"; then
6931  :
6932else
6933  echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936  # Broken: fails on valid input.
6937continue
6938fi
6939rm -f conftest.err conftest.$ac_ext
6940
6941  # OK, works on sane cases.  Now check whether non-existent headers
6942  # can be detected and how.
6943  cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h.  */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h.  */
6949#include <ac_nonexistent.h>
6950_ACEOF
6951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6952  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6953  ac_status=$?
6954  grep -v '^ *+' conftest.er1 >conftest.err
6955  rm -f conftest.er1
6956  cat conftest.err >&5
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); } >/dev/null; then
6959  if test -s conftest.err; then
6960    ac_cpp_err=$ac_cxx_preproc_warn_flag
6961    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6962  else
6963    ac_cpp_err=
6964  fi
6965else
6966  ac_cpp_err=yes
6967fi
6968if test -z "$ac_cpp_err"; then
6969  # Broken: success on invalid input.
6970continue
6971else
6972  echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975  # Passes both tests.
6976ac_preproc_ok=:
6977break
6978fi
6979rm -f conftest.err conftest.$ac_ext
6980
6981done
6982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6983rm -f conftest.err conftest.$ac_ext
6984if $ac_preproc_ok; then
6985  :
6986else
6987  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6988See \`config.log' for more details." >&5
6989echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6990See \`config.log' for more details." >&2;}
6991   { (exit 1); exit 1; }; }
6992fi
6993
6994ac_ext=cc
6995ac_cpp='$CXXCPP $CPPFLAGS'
6996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6999
7000fi
7001
7002ac_ext=f
7003ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7004ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7006if test -n "$ac_tool_prefix"; then
7007  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7008  do
7009    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7011echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7013if test "${ac_cv_prog_F77+set}" = set; then
7014  echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016  if test -n "$F77"; then
7017  ac_cv_prog_F77="$F77" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022  IFS=$as_save_IFS
7023  test -z "$as_dir" && as_dir=.
7024  for ac_exec_ext in '' $ac_executable_extensions; do
7025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028    break 2
7029  fi
7030done
7031done
7032
7033fi
7034fi
7035F77=$ac_cv_prog_F77
7036if test -n "$F77"; then
7037  echo "$as_me:$LINENO: result: $F77" >&5
7038echo "${ECHO_T}$F77" >&6
7039else
7040  echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042fi
7043
7044    test -n "$F77" && break
7045  done
7046fi
7047if test -z "$F77"; then
7048  ac_ct_F77=$F77
7049  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7050do
7051  # Extract the first word of "$ac_prog", so it can be a program name with args.
7052set dummy $ac_prog; ac_word=$2
7053echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7055if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7056  echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058  if test -n "$ac_ct_F77"; then
7059  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064  IFS=$as_save_IFS
7065  test -z "$as_dir" && as_dir=.
7066  for ac_exec_ext in '' $ac_executable_extensions; do
7067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068    ac_cv_prog_ac_ct_F77="$ac_prog"
7069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070    break 2
7071  fi
7072done
7073done
7074
7075fi
7076fi
7077ac_ct_F77=$ac_cv_prog_ac_ct_F77
7078if test -n "$ac_ct_F77"; then
7079  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7080echo "${ECHO_T}$ac_ct_F77" >&6
7081else
7082  echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
7084fi
7085
7086  test -n "$ac_ct_F77" && break
7087done
7088
7089  F77=$ac_ct_F77
7090fi
7091
7092
7093# Provide some information about the compiler.
7094echo "$as_me:7094:" \
7095     "checking for Fortran 77 compiler version" >&5
7096ac_compiler=`set X $ac_compile; echo $2`
7097{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7098  (eval $ac_compiler --version </dev/null >&5) 2>&5
7099  ac_status=$?
7100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101  (exit $ac_status); }
7102{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7103  (eval $ac_compiler -v </dev/null >&5) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }
7107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7108  (eval $ac_compiler -V </dev/null >&5) 2>&5
7109  ac_status=$?
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); }
7112rm -f a.out
7113
7114# If we don't use `.F' as extension, the preprocessor is not run on the
7115# input file.  (Note that this only needs to work for GNU compilers.)
7116ac_save_ext=$ac_ext
7117ac_ext=F
7118echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7119echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7120if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7121  echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123  cat >conftest.$ac_ext <<_ACEOF
7124      program main
7125#ifndef __GNUC__
7126       choke me
7127#endif
7128
7129      end
7130_ACEOF
7131rm -f conftest.$ac_objext
7132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133  (eval $ac_compile) 2>conftest.er1
7134  ac_status=$?
7135  grep -v '^ *+' conftest.er1 >conftest.err
7136  rm -f conftest.er1
7137  cat conftest.err >&5
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); } &&
7140         { ac_try='test -z "$ac_f77_werror_flag"
7141                         || test ! -s conftest.err'
7142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143  (eval $ac_try) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; } &&
7147         { ac_try='test -s conftest.$ac_objext'
7148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149  (eval $ac_try) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); }; }; then
7153  ac_compiler_gnu=yes
7154else
7155  echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158ac_compiler_gnu=no
7159fi
7160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7161ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7162
7163fi
7164echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7165echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7166ac_ext=$ac_save_ext
7167ac_test_FFLAGS=${FFLAGS+set}
7168ac_save_FFLAGS=$FFLAGS
7169FFLAGS=
7170echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7171echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7172if test "${ac_cv_prog_f77_g+set}" = set; then
7173  echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175  FFLAGS=-g
7176cat >conftest.$ac_ext <<_ACEOF
7177      program main
7178
7179      end
7180_ACEOF
7181rm -f conftest.$ac_objext
7182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183  (eval $ac_compile) 2>conftest.er1
7184  ac_status=$?
7185  grep -v '^ *+' conftest.er1 >conftest.err
7186  rm -f conftest.er1
7187  cat conftest.err >&5
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); } &&
7190         { ac_try='test -z "$ac_f77_werror_flag"
7191                         || test ! -s conftest.err'
7192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193  (eval $ac_try) 2>&5
7194  ac_status=$?
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); }; } &&
7197         { ac_try='test -s conftest.$ac_objext'
7198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199  (eval $ac_try) 2>&5
7200  ac_status=$?
7201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202  (exit $ac_status); }; }; then
7203  ac_cv_prog_f77_g=yes
7204else
7205  echo "$as_me: failed program was:" >&5
7206sed 's/^/| /' conftest.$ac_ext >&5
7207
7208ac_cv_prog_f77_g=no
7209fi
7210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7211
7212fi
7213echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7214echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7215if test "$ac_test_FFLAGS" = set; then
7216  FFLAGS=$ac_save_FFLAGS
7217elif test $ac_cv_prog_f77_g = yes; then
7218  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7219    FFLAGS="-g -O2"
7220  else
7221    FFLAGS="-g"
7222  fi
7223else
7224  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7225    FFLAGS="-O2"
7226  else
7227    FFLAGS=
7228  fi
7229fi
7230
7231G77=`test $ac_compiler_gnu = yes && echo yes`
7232ac_ext=c
7233ac_cpp='$CPP $CPPFLAGS'
7234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237
7238
7239
7240# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7241
7242# find the maximum length of command line arguments
7243echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7244echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7245if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248    i=0
7249  teststring="ABCD"
7250
7251  case $build_os in
7252  msdosdjgpp*)
7253    # On DJGPP, this test can blow up pretty badly due to problems in libc
7254    # (any single argument exceeding 2000 bytes causes a buffer overrun
7255    # during glob expansion).  Even if it were fixed, the result of this
7256    # check would be larger than it should be.
7257    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7258    ;;
7259
7260  gnu*)
7261    # Under GNU Hurd, this test is not required because there is
7262    # no limit to the length of command line arguments.
7263    # Libtool will interpret -1 as no limit whatsoever
7264    lt_cv_sys_max_cmd_len=-1;
7265    ;;
7266
7267  cygwin* | mingw*)
7268    # On Win9x/ME, this test blows up -- it succeeds, but takes
7269    # about 5 minutes as the teststring grows exponentially.
7270    # Worse, since 9x/ME are not pre-emptively multitasking,
7271    # you end up with a "frozen" computer, even though with patience
7272    # the test eventually succeeds (with a max line length of 256k).
7273    # Instead, let's just punt: use the minimum linelength reported by
7274    # all of the supported platforms: 8192 (on NT/2K/XP).
7275    lt_cv_sys_max_cmd_len=8192;
7276    ;;
7277
7278  amigaos*)
7279    # On AmigaOS with pdksh, this test takes hours, literally.
7280    # So we just punt and use a minimum line length of 8192.
7281    lt_cv_sys_max_cmd_len=8192;
7282    ;;
7283
7284  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7285    # This has been around since 386BSD, at least.  Likely further.
7286    if test -x /sbin/sysctl; then
7287      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7288    elif test -x /usr/sbin/sysctl; then
7289      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7290    else
7291      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7292    fi
7293    # And add a safety zone
7294    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7295    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7296    ;;
7297
7298  interix*)
7299    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7300    lt_cv_sys_max_cmd_len=196608
7301    ;;
7302
7303  osf*)
7304    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7305    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7306    # nice to cause kernel panics so lets avoid the loop below.
7307    # First set a reasonable default.
7308    lt_cv_sys_max_cmd_len=16384
7309    #
7310    if test -x /sbin/sysconfig; then
7311      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7312        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7313      esac
7314    fi
7315    ;;
7316  sco3.2v5*)
7317    lt_cv_sys_max_cmd_len=102400
7318    ;;
7319  sysv5* | sco5v6* | sysv4.2uw2*)
7320    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7321    if test -n "$kargmax"; then
7322      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7323    else
7324      lt_cv_sys_max_cmd_len=32768
7325    fi
7326    ;;
7327  *)
7328    # If test is not a shell built-in, we'll probably end up computing a
7329    # maximum length that is only half of the actual maximum length, but
7330    # we can't tell.
7331    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7332    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7333               = "XX$teststring") >/dev/null 2>&1 &&
7334            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7335            lt_cv_sys_max_cmd_len=$new_result &&
7336            test $i != 17 # 1/2 MB should be enough
7337    do
7338      i=`expr $i + 1`
7339      teststring=$teststring$teststring
7340    done
7341    teststring=
7342    # Add a significant safety factor because C++ compilers can tack on massive
7343    # amounts of additional arguments before passing them to the linker.
7344    # It appears as though 1/2 is a usable value.
7345    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7346    ;;
7347  esac
7348
7349fi
7350
7351if test -n $lt_cv_sys_max_cmd_len ; then
7352  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7353echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7354else
7355  echo "$as_me:$LINENO: result: none" >&5
7356echo "${ECHO_T}none" >&6
7357fi
7358
7359
7360
7361
7362# Check for command to grab the raw symbol name followed by C symbol from nm.
7363echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7364echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7366  echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368
7369# These are sane defaults that work on at least a few old systems.
7370# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7371
7372# Character class describing NM global symbol codes.
7373symcode='[BCDEGRST]'
7374
7375# Regexp to match symbols that can be accessed directly from C.
7376sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7377
7378# Transform an extracted symbol line into a proper C declaration
7379lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7380
7381# Transform an extracted symbol line into symbol name and symbol address
7382lt_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'"
7383
7384# Define system-specific variables.
7385case $host_os in
7386aix*)
7387  symcode='[BCDT]'
7388  ;;
7389cygwin* | mingw* | pw32*)
7390  symcode='[ABCDGISTW]'
7391  ;;
7392hpux*) # Its linker distinguishes data from code symbols
7393  if test "$host_cpu" = ia64; then
7394    symcode='[ABCDEGRST]'
7395  fi
7396  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7397  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'"
7398  ;;
7399linux*)
7400  if test "$host_cpu" = ia64; then
7401    symcode='[ABCDGIRSTW]'
7402    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7403    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'"
7404  fi
7405  ;;
7406irix* | nonstopux*)
7407  symcode='[BCDEGRST]'
7408  ;;
7409osf*)
7410  symcode='[BCDEGQRST]'
7411  ;;
7412solaris*)
7413  symcode='[BDRT]'
7414  ;;
7415sco3.2v5*)
7416  symcode='[DT]'
7417  ;;
7418sysv4.2uw2*)
7419  symcode='[DT]'
7420  ;;
7421sysv5* | sco5v6* | unixware* | OpenUNIX*)
7422  symcode='[ABDT]'
7423  ;;
7424sysv4)
7425  symcode='[DFNSTU]'
7426  ;;
7427esac
7428
7429# Handle CRLF in mingw tool chain
7430opt_cr=
7431case $build_os in
7432mingw*)
7433  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7434  ;;
7435esac
7436
7437# If we're using GNU nm, then use its standard symbol codes.
7438case `$NM -V 2>&1` in
7439*GNU* | *'with BFD'*)
7440  symcode='[ABCDGIRSTW]' ;;
7441esac
7442
7443# Try without a prefix undercore, then with it.
7444for ac_symprfx in "" "_"; do
7445
7446  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7447  symxfrm="\\1 $ac_symprfx\\2 \\2"
7448
7449  # Write the raw and C identifiers.
7450  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7451
7452  # Check to see that the pipe works correctly.
7453  pipe_works=no
7454
7455  rm -f conftest*
7456  cat > conftest.$ac_ext <<EOF
7457#ifdef __cplusplus
7458extern "C" {
7459#endif
7460char nm_test_var;
7461void nm_test_func(){}
7462#ifdef __cplusplus
7463}
7464#endif
7465int main(){nm_test_var='a';nm_test_func();return(0);}
7466EOF
7467
7468  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469  (eval $ac_compile) 2>&5
7470  ac_status=$?
7471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472  (exit $ac_status); }; then
7473    # Now try to grab the symbols.
7474    nlist=conftest.nm
7475    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7476  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7477  ac_status=$?
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } && test -s "$nlist"; then
7480      # Try sorting and uniquifying the output.
7481      if sort "$nlist" | uniq > "$nlist"T; then
7482        mv -f "$nlist"T "$nlist"
7483      else
7484        rm -f "$nlist"T
7485      fi
7486
7487      # Make sure that we snagged all the symbols we need.
7488      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7489        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7490          cat <<EOF > conftest.$ac_ext
7491#ifdef __cplusplus
7492extern "C" {
7493#endif
7494
7495EOF
7496          # Now generate the symbol file.
7497          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7498
7499          cat <<EOF >> conftest.$ac_ext
7500#if defined (__STDC__) && __STDC__
7501# define lt_ptr_t void *
7502#else
7503# define lt_ptr_t char *
7504# define const
7505#endif
7506
7507/* The mapping between symbol names and symbols. */
7508const struct {
7509  const char *name;
7510  lt_ptr_t address;
7511}
7512lt_preloaded_symbols[] =
7513{
7514EOF
7515          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7516          cat <<\EOF >> conftest.$ac_ext
7517  {0, (lt_ptr_t) 0}
7518};
7519
7520#ifdef __cplusplus
7521}
7522#endif
7523EOF
7524          # Now try linking the two files.
7525          mv conftest.$ac_objext conftstm.$ac_objext
7526          lt_save_LIBS="$LIBS"
7527          lt_save_CFLAGS="$CFLAGS"
7528          LIBS="conftstm.$ac_objext"
7529          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7530          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531  (eval $ac_link) 2>&5
7532  ac_status=$?
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7535            pipe_works=yes
7536          fi
7537          LIBS="$lt_save_LIBS"
7538          CFLAGS="$lt_save_CFLAGS"
7539        else
7540          echo "cannot find nm_test_func in $nlist" >&5
7541        fi
7542      else
7543        echo "cannot find nm_test_var in $nlist" >&5
7544      fi
7545    else
7546      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7547    fi
7548  else
7549    echo "$progname: failed program was:" >&5
7550    cat conftest.$ac_ext >&5
7551  fi
7552  rm -f conftest* conftst*
7553
7554  # Do not use the global_symbol_pipe unless it works.
7555  if test "$pipe_works" = yes; then
7556    break
7557  else
7558    lt_cv_sys_global_symbol_pipe=
7559  fi
7560done
7561
7562fi
7563
7564if test -z "$lt_cv_sys_global_symbol_pipe"; then
7565  lt_cv_sys_global_symbol_to_cdecl=
7566fi
7567if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7568  echo "$as_me:$LINENO: result: failed" >&5
7569echo "${ECHO_T}failed" >&6
7570else
7571  echo "$as_me:$LINENO: result: ok" >&5
7572echo "${ECHO_T}ok" >&6
7573fi
7574
7575echo "$as_me:$LINENO: checking for objdir" >&5
7576echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7577if test "${lt_cv_objdir+set}" = set; then
7578  echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580  rm -f .libs 2>/dev/null
7581mkdir .libs 2>/dev/null
7582if test -d .libs; then
7583  lt_cv_objdir=.libs
7584else
7585  # MS-DOS does not allow filenames that begin with a dot.
7586  lt_cv_objdir=_libs
7587fi
7588rmdir .libs 2>/dev/null
7589fi
7590echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7591echo "${ECHO_T}$lt_cv_objdir" >&6
7592objdir=$lt_cv_objdir
7593
7594
7595
7596
7597
7598case $host_os in
7599aix3*)
7600  # AIX sometimes has problems with the GCC collect2 program.  For some
7601  # reason, if we set the COLLECT_NAMES environment variable, the problems
7602  # vanish in a puff of smoke.
7603  if test "X${COLLECT_NAMES+set}" != Xset; then
7604    COLLECT_NAMES=
7605    export COLLECT_NAMES
7606  fi
7607  ;;
7608esac
7609
7610# Sed substitution that helps us do robust quoting.  It backslashifies
7611# metacharacters that are still active within double-quoted strings.
7612Xsed='sed -e 1s/^X//'
7613sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7614
7615# Same as above, but do not quote variable references.
7616double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7617
7618# Sed substitution to delay expansion of an escaped shell variable in a
7619# double_quote_subst'ed string.
7620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7621
7622# Sed substitution to avoid accidental globbing in evaled expressions
7623no_glob_subst='s/\*/\\\*/g'
7624
7625# Constants:
7626rm="rm -f"
7627
7628# Global variables:
7629default_ofile=libtool
7630can_build_shared=yes
7631
7632# All known linkers require a `.a' archive for static linking (except MSVC,
7633# which needs '.lib').
7634libext=a
7635ltmain="$ac_aux_dir/ltmain.sh"
7636ofile="$default_ofile"
7637with_gnu_ld="$lt_cv_prog_gnu_ld"
7638
7639if test -n "$ac_tool_prefix"; then
7640  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7641set dummy ${ac_tool_prefix}ar; ac_word=$2
7642echo "$as_me:$LINENO: checking for $ac_word" >&5
7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_AR+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  if test -n "$AR"; then
7648  ac_cv_prog_AR="$AR" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655  for ac_exec_ext in '' $ac_executable_extensions; do
7656  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_AR="${ac_tool_prefix}ar"
7658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662done
7663
7664fi
7665fi
7666AR=$ac_cv_prog_AR
7667if test -n "$AR"; then
7668  echo "$as_me:$LINENO: result: $AR" >&5
7669echo "${ECHO_T}$AR" >&6
7670else
7671  echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
7673fi
7674
7675fi
7676if test -z "$ac_cv_prog_AR"; then
7677  ac_ct_AR=$AR
7678  # Extract the first word of "ar", so it can be a program name with args.
7679set dummy ar; ac_word=$2
7680echo "$as_me:$LINENO: checking for $ac_word" >&5
7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7683  echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685  if test -n "$ac_ct_AR"; then
7686  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691  IFS=$as_save_IFS
7692  test -z "$as_dir" && as_dir=.
7693  for ac_exec_ext in '' $ac_executable_extensions; do
7694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695    ac_cv_prog_ac_ct_AR="ar"
7696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697    break 2
7698  fi
7699done
7700done
7701
7702  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7703fi
7704fi
7705ac_ct_AR=$ac_cv_prog_ac_ct_AR
7706if test -n "$ac_ct_AR"; then
7707  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7708echo "${ECHO_T}$ac_ct_AR" >&6
7709else
7710  echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712fi
7713
7714  AR=$ac_ct_AR
7715else
7716  AR="$ac_cv_prog_AR"
7717fi
7718
7719if test -n "$ac_tool_prefix"; then
7720  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7721set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7722echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724if test "${ac_cv_prog_RANLIB+set}" = set; then
7725  echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727  if test -n "$RANLIB"; then
7728  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7729else
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733  IFS=$as_save_IFS
7734  test -z "$as_dir" && as_dir=.
7735  for ac_exec_ext in '' $ac_executable_extensions; do
7736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739    break 2
7740  fi
7741done
7742done
7743
7744fi
7745fi
7746RANLIB=$ac_cv_prog_RANLIB
7747if test -n "$RANLIB"; then
7748  echo "$as_me:$LINENO: result: $RANLIB" >&5
7749echo "${ECHO_T}$RANLIB" >&6
7750else
7751  echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
7753fi
7754
7755fi
7756if test -z "$ac_cv_prog_RANLIB"; then
7757  ac_ct_RANLIB=$RANLIB
7758  # Extract the first word of "ranlib", so it can be a program name with args.
7759set dummy ranlib; ac_word=$2
7760echo "$as_me:$LINENO: checking for $ac_word" >&5
7761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7763  echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765  if test -n "$ac_ct_RANLIB"; then
7766  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7767else
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771  IFS=$as_save_IFS
7772  test -z "$as_dir" && as_dir=.
7773  for ac_exec_ext in '' $ac_executable_extensions; do
7774  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775    ac_cv_prog_ac_ct_RANLIB="ranlib"
7776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777    break 2
7778  fi
7779done
7780done
7781
7782  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7783fi
7784fi
7785ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7786if test -n "$ac_ct_RANLIB"; then
7787  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7788echo "${ECHO_T}$ac_ct_RANLIB" >&6
7789else
7790  echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6
7792fi
7793
7794  RANLIB=$ac_ct_RANLIB
7795else
7796  RANLIB="$ac_cv_prog_RANLIB"
7797fi
7798
7799if test -n "$ac_tool_prefix"; then
7800  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7801set dummy ${ac_tool_prefix}strip; ac_word=$2
7802echo "$as_me:$LINENO: checking for $ac_word" >&5
7803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7804if test "${ac_cv_prog_STRIP+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  if test -n "$STRIP"; then
7808  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7809else
7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813  IFS=$as_save_IFS
7814  test -z "$as_dir" && as_dir=.
7815  for ac_exec_ext in '' $ac_executable_extensions; do
7816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819    break 2
7820  fi
7821done
7822done
7823
7824fi
7825fi
7826STRIP=$ac_cv_prog_STRIP
7827if test -n "$STRIP"; then
7828  echo "$as_me:$LINENO: result: $STRIP" >&5
7829echo "${ECHO_T}$STRIP" >&6
7830else
7831  echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6
7833fi
7834
7835fi
7836if test -z "$ac_cv_prog_STRIP"; then
7837  ac_ct_STRIP=$STRIP
7838  # Extract the first word of "strip", so it can be a program name with args.
7839set dummy strip; ac_word=$2
7840echo "$as_me:$LINENO: checking for $ac_word" >&5
7841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7842if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7843  echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845  if test -n "$ac_ct_STRIP"; then
7846  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853  for ac_exec_ext in '' $ac_executable_extensions; do
7854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855    ac_cv_prog_ac_ct_STRIP="strip"
7856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860done
7861
7862  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7863fi
7864fi
7865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7866if test -n "$ac_ct_STRIP"; then
7867  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7868echo "${ECHO_T}$ac_ct_STRIP" >&6
7869else
7870  echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872fi
7873
7874  STRIP=$ac_ct_STRIP
7875else
7876  STRIP="$ac_cv_prog_STRIP"
7877fi
7878
7879
7880old_CC="$CC"
7881old_CFLAGS="$CFLAGS"
7882
7883# Set sane defaults for various variables
7884test -z "$AR" && AR=ar
7885test -z "$AR_FLAGS" && AR_FLAGS=cru
7886test -z "$AS" && AS=as
7887test -z "$CC" && CC=cc
7888test -z "$LTCC" && LTCC=$CC
7889test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7890test -z "$DLLTOOL" && DLLTOOL=dlltool
7891test -z "$LD" && LD=ld
7892test -z "$LN_S" && LN_S="ln -s"
7893test -z "$MAGIC_CMD" && MAGIC_CMD=file
7894test -z "$NM" && NM=nm
7895test -z "$SED" && SED=sed
7896test -z "$OBJDUMP" && OBJDUMP=objdump
7897test -z "$RANLIB" && RANLIB=:
7898test -z "$STRIP" && STRIP=:
7899test -z "$ac_objext" && ac_objext=o
7900
7901# Determine commands to create old-style static archives.
7902old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7903old_postinstall_cmds='chmod 644 $oldlib'
7904old_postuninstall_cmds=
7905
7906if test -n "$RANLIB"; then
7907  case $host_os in
7908  openbsd*)
7909    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7910    ;;
7911  *)
7912    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7913    ;;
7914  esac
7915  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7916fi
7917
7918for cc_temp in $compiler""; do
7919  case $cc_temp in
7920    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7921    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7922    \-*) ;;
7923    *) break;;
7924  esac
7925done
7926cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7927
7928
7929# Only perform the check for file, if the check method requires it
7930case $deplibs_check_method in
7931file_magic*)
7932  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7933    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7934echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7935if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7936  echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938  case $MAGIC_CMD in
7939[\\/*] |  ?:[\\/]*)
7940  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7941  ;;
7942*)
7943  lt_save_MAGIC_CMD="$MAGIC_CMD"
7944  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7945  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7946  for ac_dir in $ac_dummy; do
7947    IFS="$lt_save_ifs"
7948    test -z "$ac_dir" && ac_dir=.
7949    if test -f $ac_dir/${ac_tool_prefix}file; then
7950      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7951      if test -n "$file_magic_test_file"; then
7952        case $deplibs_check_method in
7953        "file_magic "*)
7954          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7955          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7956          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7957            $EGREP "$file_magic_regex" > /dev/null; then
7958            :
7959          else
7960            cat <<EOF 1>&2
7961
7962*** Warning: the command libtool uses to detect shared libraries,
7963*** $file_magic_cmd, produces output that libtool cannot recognize.
7964*** The result is that libtool may fail to recognize shared libraries
7965*** as such.  This will affect the creation of libtool libraries that
7966*** depend on shared libraries, but programs linked with such libtool
7967*** libraries will work regardless of this problem.  Nevertheless, you
7968*** may want to report the problem to your system manager and/or to
7969*** bug-libtool@gnu.org
7970
7971EOF
7972          fi ;;
7973        esac
7974      fi
7975      break
7976    fi
7977  done
7978  IFS="$lt_save_ifs"
7979  MAGIC_CMD="$lt_save_MAGIC_CMD"
7980  ;;
7981esac
7982fi
7983
7984MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7985if test -n "$MAGIC_CMD"; then
7986  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7987echo "${ECHO_T}$MAGIC_CMD" >&6
7988else
7989  echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991fi
7992
7993if test -z "$lt_cv_path_MAGIC_CMD"; then
7994  if test -n "$ac_tool_prefix"; then
7995    echo "$as_me:$LINENO: checking for file" >&5
7996echo $ECHO_N "checking for file... $ECHO_C" >&6
7997if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  case $MAGIC_CMD in
8001[\\/*] |  ?:[\\/]*)
8002  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8003  ;;
8004*)
8005  lt_save_MAGIC_CMD="$MAGIC_CMD"
8006  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8007  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8008  for ac_dir in $ac_dummy; do
8009    IFS="$lt_save_ifs"
8010    test -z "$ac_dir" && ac_dir=.
8011    if test -f $ac_dir/file; then
8012      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8013      if test -n "$file_magic_test_file"; then
8014        case $deplibs_check_method in
8015        "file_magic "*)
8016          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8017          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8019            $EGREP "$file_magic_regex" > /dev/null; then
8020            :
8021          else
8022            cat <<EOF 1>&2
8023
8024*** Warning: the command libtool uses to detect shared libraries,
8025*** $file_magic_cmd, produces output that libtool cannot recognize.
8026*** The result is that libtool may fail to recognize shared libraries
8027*** as such.  This will affect the creation of libtool libraries that
8028*** depend on shared libraries, but programs linked with such libtool
8029*** libraries will work regardless of this problem.  Nevertheless, you
8030*** may want to report the problem to your system manager and/or to
8031*** bug-libtool@gnu.org
8032
8033EOF
8034          fi ;;
8035        esac
8036      fi
8037      break
8038    fi
8039  done
8040  IFS="$lt_save_ifs"
8041  MAGIC_CMD="$lt_save_MAGIC_CMD"
8042  ;;
8043esac
8044fi
8045
8046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8047if test -n "$MAGIC_CMD"; then
8048  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8049echo "${ECHO_T}$MAGIC_CMD" >&6
8050else
8051  echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6
8053fi
8054
8055  else
8056    MAGIC_CMD=:
8057  fi
8058fi
8059
8060  fi
8061  ;;
8062esac
8063
8064enable_dlopen=no
8065enable_win32_dll=no
8066
8067# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8068if test "${enable_libtool_lock+set}" = set; then
8069  enableval="$enable_libtool_lock"
8070
8071fi;
8072test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8073
8074
8075# Check whether --with-pic or --without-pic was given.
8076if test "${with_pic+set}" = set; then
8077  withval="$with_pic"
8078  pic_mode="$withval"
8079else
8080  pic_mode=default
8081fi;
8082test -z "$pic_mode" && pic_mode=default
8083
8084# Use C for the default configuration in the libtool script
8085tagname=
8086lt_save_CC="$CC"
8087ac_ext=c
8088ac_cpp='$CPP $CPPFLAGS'
8089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093
8094# Source file extension for C test sources.
8095ac_ext=c
8096
8097# Object file extension for compiled C test sources.
8098objext=o
8099objext=$objext
8100
8101# Code to be used in simple compile tests
8102lt_simple_compile_test_code="int some_variable = 0;\n"
8103
8104# Code to be used in simple link tests
8105lt_simple_link_test_code='int main(){return(0);}\n'
8106
8107
8108# If no C compiler was specified, use CC.
8109LTCC=${LTCC-"$CC"}
8110
8111# If no C compiler flags were specified, use CFLAGS.
8112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8113
8114# Allow CC to be a program name with arguments.
8115compiler=$CC
8116
8117
8118# save warnings/boilerplate of simple test code
8119ac_outfile=conftest.$ac_objext
8120printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8121eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8122_lt_compiler_boilerplate=`cat conftest.err`
8123$rm conftest*
8124
8125ac_outfile=conftest.$ac_objext
8126printf "$lt_simple_link_test_code" >conftest.$ac_ext
8127eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8128_lt_linker_boilerplate=`cat conftest.err`
8129$rm conftest*
8130
8131
8132## CAVEAT EMPTOR:
8133## There is no encapsulation within the following macros, do not change
8134## the running order or otherwise move them around unless you know exactly
8135## what you are doing...
8136
8137lt_prog_compiler_no_builtin_flag=
8138
8139if test "$GCC" = yes; then
8140  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8141
8142
8143echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8144echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8145if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8146  echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148  lt_cv_prog_compiler_rtti_exceptions=no
8149  ac_outfile=conftest.$ac_objext
8150   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8151   lt_compiler_flag="-fno-rtti -fno-exceptions"
8152   # Insert the option either (1) after the last *FLAGS variable, or
8153   # (2) before a word containing "conftest.", or (3) at the end.
8154   # Note that $ac_compile itself does not contain backslashes and begins
8155   # with a dollar sign (not a hyphen), so the echo should work correctly.
8156   # The option is referenced via a variable to avoid confusing sed.
8157   lt_compile=`echo "$ac_compile" | $SED \
8158   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8159   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8160   -e 's:$: $lt_compiler_flag:'`
8161   (eval echo "\"\$as_me:8161: $lt_compile\"" >&5)
8162   (eval "$lt_compile" 2>conftest.err)
8163   ac_status=$?
8164   cat conftest.err >&5
8165   echo "$as_me:8165: \$? = $ac_status" >&5
8166   if (exit $ac_status) && test -s "$ac_outfile"; then
8167     # The compiler can only warn and ignore the option if not recognized
8168     # So say no if there are warnings other than the usual output.
8169     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8170     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8171     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8172       lt_cv_prog_compiler_rtti_exceptions=yes
8173     fi
8174   fi
8175   $rm conftest*
8176
8177fi
8178echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8179echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8180
8181if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8182    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8183else
8184    :
8185fi
8186
8187fi
8188
8189lt_prog_compiler_wl=
8190lt_prog_compiler_pic=
8191lt_prog_compiler_static=
8192
8193echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8194echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8195
8196  if test "$GCC" = yes; then
8197    lt_prog_compiler_wl='-Wl,'
8198    lt_prog_compiler_static='-static'
8199
8200    case $host_os in
8201      aix*)
8202      # All AIX code is PIC.
8203      if test "$host_cpu" = ia64; then
8204        # AIX 5 now supports IA64 processor
8205        lt_prog_compiler_static='-Bstatic'
8206      fi
8207      ;;
8208
8209    amigaos*)
8210      # FIXME: we need at least 68020 code to build shared libraries, but
8211      # adding the `-m68020' flag to GCC prevents building anything better,
8212      # like `-m68040'.
8213      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8214      ;;
8215
8216    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8217      # PIC is the default for these OSes.
8218      ;;
8219
8220    mingw* | pw32* | os2*)
8221      # This hack is so that the source file can tell whether it is being
8222      # built for inclusion in a dll (and should export symbols for example).
8223      lt_prog_compiler_pic='-DDLL_EXPORT'
8224      ;;
8225
8226    darwin* | rhapsody*)
8227      # PIC is the default on this platform
8228      # Common symbols not allowed in MH_DYLIB files
8229      lt_prog_compiler_pic='-fno-common'
8230      ;;
8231
8232    interix3*)
8233      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8234      # Instead, we relocate shared libraries at runtime.
8235      ;;
8236
8237    msdosdjgpp*)
8238      # Just because we use GCC doesn't mean we suddenly get shared libraries
8239      # on systems that don't support them.
8240      lt_prog_compiler_can_build_shared=no
8241      enable_shared=no
8242      ;;
8243
8244    sysv4*MP*)
8245      if test -d /usr/nec; then
8246        lt_prog_compiler_pic=-Kconform_pic
8247      fi
8248      ;;
8249
8250    hpux*)
8251      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8252      # not for PA HP-UX.
8253      case $host_cpu in
8254      hppa*64*|ia64*)
8255        # +Z the default
8256        ;;
8257      *)
8258        lt_prog_compiler_pic='-fPIC'
8259        ;;
8260      esac
8261      ;;
8262
8263    *)
8264      lt_prog_compiler_pic='-fPIC'
8265      ;;
8266    esac
8267  else
8268    # PORTME Check for flag to pass linker flags through the system compiler.
8269    case $host_os in
8270    aix*)
8271      lt_prog_compiler_wl='-Wl,'
8272      if test "$host_cpu" = ia64; then
8273        # AIX 5 now supports IA64 processor
8274        lt_prog_compiler_static='-Bstatic'
8275      else
8276        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8277      fi
8278      ;;
8279      darwin*)
8280        # PIC is the default on this platform
8281        # Common symbols not allowed in MH_DYLIB files
8282       case $cc_basename in
8283         xlc*)
8284         lt_prog_compiler_pic='-qnocommon'
8285         lt_prog_compiler_wl='-Wl,'
8286         ;;
8287       esac
8288       ;;
8289
8290    mingw* | pw32* | os2*)
8291      # This hack is so that the source file can tell whether it is being
8292      # built for inclusion in a dll (and should export symbols for example).
8293      lt_prog_compiler_pic='-DDLL_EXPORT'
8294      ;;
8295
8296    hpux9* | hpux10* | hpux11*)
8297      lt_prog_compiler_wl='-Wl,'
8298      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8299      # not for PA HP-UX.
8300      case $host_cpu in
8301      hppa*64*|ia64*)
8302        # +Z the default
8303        ;;
8304      *)
8305        lt_prog_compiler_pic='+Z'
8306        ;;
8307      esac
8308      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8309      lt_prog_compiler_static='${wl}-a ${wl}archive'
8310      ;;
8311
8312    irix5* | irix6* | nonstopux*)
8313      lt_prog_compiler_wl='-Wl,'
8314      # PIC (with -KPIC) is the default.
8315      lt_prog_compiler_static='-non_shared'
8316      ;;
8317
8318    newsos6)
8319      lt_prog_compiler_pic='-KPIC'
8320      lt_prog_compiler_static='-Bstatic'
8321      ;;
8322
8323    linux*)
8324      case $cc_basename in
8325      icc* | ecc*)
8326        lt_prog_compiler_wl='-Wl,'
8327        lt_prog_compiler_pic='-KPIC'
8328        lt_prog_compiler_static='-static'
8329        ;;
8330      pgcc* | pgf77* | pgf90* | pgf95*)
8331        # Portland Group compilers (*not* the Pentium gcc compiler,
8332        # which looks to be a dead project)
8333        lt_prog_compiler_wl='-Wl,'
8334        lt_prog_compiler_pic='-fpic'
8335        lt_prog_compiler_static='-Bstatic'
8336        ;;
8337      ccc*)
8338        lt_prog_compiler_wl='-Wl,'
8339        # All Alpha code is PIC.
8340        lt_prog_compiler_static='-non_shared'
8341        ;;
8342      esac
8343      ;;
8344
8345    osf3* | osf4* | osf5*)
8346      lt_prog_compiler_wl='-Wl,'
8347      # All OSF/1 code is PIC.
8348      lt_prog_compiler_static='-non_shared'
8349      ;;
8350
8351    solaris*)
8352      lt_prog_compiler_pic='-KPIC'
8353      lt_prog_compiler_static='-Bstatic'
8354      case $cc_basename in
8355      f77* | f90* | f95*)
8356        lt_prog_compiler_wl='-Qoption ld ';;
8357      *)
8358        lt_prog_compiler_wl='-Wl,';;
8359      esac
8360      ;;
8361
8362    sunos4*)
8363      lt_prog_compiler_wl='-Qoption ld '
8364      lt_prog_compiler_pic='-PIC'
8365      lt_prog_compiler_static='-Bstatic'
8366      ;;
8367
8368    sysv4 | sysv4.2uw2* | sysv4.3*)
8369      lt_prog_compiler_wl='-Wl,'
8370      lt_prog_compiler_pic='-KPIC'
8371      lt_prog_compiler_static='-Bstatic'
8372      ;;
8373
8374    sysv4*MP*)
8375      if test -d /usr/nec ;then
8376        lt_prog_compiler_pic='-Kconform_pic'
8377        lt_prog_compiler_static='-Bstatic'
8378      fi
8379      ;;
8380
8381    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8382      lt_prog_compiler_wl='-Wl,'
8383      lt_prog_compiler_pic='-KPIC'
8384      lt_prog_compiler_static='-Bstatic'
8385      ;;
8386
8387    unicos*)
8388      lt_prog_compiler_wl='-Wl,'
8389      lt_prog_compiler_can_build_shared=no
8390      ;;
8391
8392    uts4*)
8393      lt_prog_compiler_pic='-pic'
8394      lt_prog_compiler_static='-Bstatic'
8395      ;;
8396
8397    *)
8398      lt_prog_compiler_can_build_shared=no
8399      ;;
8400    esac
8401  fi
8402
8403echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8404echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8405
8406#
8407# Check to make sure the PIC flag actually works.
8408#
8409if test -n "$lt_prog_compiler_pic"; then
8410
8411echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8412echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8413if test "${lt_prog_compiler_pic_works+set}" = set; then
8414  echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416  lt_prog_compiler_pic_works=no
8417  ac_outfile=conftest.$ac_objext
8418   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8419   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8420   # Insert the option either (1) after the last *FLAGS variable, or
8421   # (2) before a word containing "conftest.", or (3) at the end.
8422   # Note that $ac_compile itself does not contain backslashes and begins
8423   # with a dollar sign (not a hyphen), so the echo should work correctly.
8424   # The option is referenced via a variable to avoid confusing sed.
8425   lt_compile=`echo "$ac_compile" | $SED \
8426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428   -e 's:$: $lt_compiler_flag:'`
8429   (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
8430   (eval "$lt_compile" 2>conftest.err)
8431   ac_status=$?
8432   cat conftest.err >&5
8433   echo "$as_me:8433: \$? = $ac_status" >&5
8434   if (exit $ac_status) && test -s "$ac_outfile"; then
8435     # The compiler can only warn and ignore the option if not recognized
8436     # So say no if there are warnings other than the usual output.
8437     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8438     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8439     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8440       lt_prog_compiler_pic_works=yes
8441     fi
8442   fi
8443   $rm conftest*
8444
8445fi
8446echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8447echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8448
8449if test x"$lt_prog_compiler_pic_works" = xyes; then
8450    case $lt_prog_compiler_pic in
8451     "" | " "*) ;;
8452     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8453     esac
8454else
8455    lt_prog_compiler_pic=
8456     lt_prog_compiler_can_build_shared=no
8457fi
8458
8459fi
8460case $host_os in
8461  # For platforms which do not support PIC, -DPIC is meaningless:
8462  *djgpp*)
8463    lt_prog_compiler_pic=
8464    ;;
8465  *)
8466    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8467    ;;
8468esac
8469
8470#
8471# Check to make sure the static flag actually works.
8472#
8473wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8474echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8475echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8476if test "${lt_prog_compiler_static_works+set}" = set; then
8477  echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479  lt_prog_compiler_static_works=no
8480   save_LDFLAGS="$LDFLAGS"
8481   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8482   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8483   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484     # The linker can only warn and ignore the option if not recognized
8485     # So say no if there are warnings
8486     if test -s conftest.err; then
8487       # Append any errors to the config.log.
8488       cat conftest.err 1>&5
8489       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8490       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491       if diff conftest.exp conftest.er2 >/dev/null; then
8492         lt_prog_compiler_static_works=yes
8493       fi
8494     else
8495       lt_prog_compiler_static_works=yes
8496     fi
8497   fi
8498   $rm conftest*
8499   LDFLAGS="$save_LDFLAGS"
8500
8501fi
8502echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8503echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8504
8505if test x"$lt_prog_compiler_static_works" = xyes; then
8506    :
8507else
8508    lt_prog_compiler_static=
8509fi
8510
8511
8512echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8513echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8514if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8515  echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517  lt_cv_prog_compiler_c_o=no
8518   $rm -r conftest 2>/dev/null
8519   mkdir conftest
8520   cd conftest
8521   mkdir out
8522   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8523
8524   lt_compiler_flag="-o out/conftest2.$ac_objext"
8525   # Insert the option either (1) after the last *FLAGS variable, or
8526   # (2) before a word containing "conftest.", or (3) at the end.
8527   # Note that $ac_compile itself does not contain backslashes and begins
8528   # with a dollar sign (not a hyphen), so the echo should work correctly.
8529   lt_compile=`echo "$ac_compile" | $SED \
8530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8532   -e 's:$: $lt_compiler_flag:'`
8533   (eval echo "\"\$as_me:8533: $lt_compile\"" >&5)
8534   (eval "$lt_compile" 2>out/conftest.err)
8535   ac_status=$?
8536   cat out/conftest.err >&5
8537   echo "$as_me:8537: \$? = $ac_status" >&5
8538   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8539   then
8540     # The compiler can only warn and ignore the option if not recognized
8541     # So say no if there are warnings
8542     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8543     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8544     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8545       lt_cv_prog_compiler_c_o=yes
8546     fi
8547   fi
8548   chmod u+w . 2>&5
8549   $rm conftest*
8550   # SGI C++ compiler will create directory out/ii_files/ for
8551   # template instantiation
8552   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8553   $rm out/* && rmdir out
8554   cd ..
8555   rmdir conftest
8556   $rm conftest*
8557
8558fi
8559echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8560echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8561
8562
8563hard_links="nottested"
8564if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8565  # do not overwrite the value of need_locks provided by the user
8566  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8567echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8568  hard_links=yes
8569  $rm conftest*
8570  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8571  touch conftest.a
8572  ln conftest.a conftest.b 2>&5 || hard_links=no
8573  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8574  echo "$as_me:$LINENO: result: $hard_links" >&5
8575echo "${ECHO_T}$hard_links" >&6
8576  if test "$hard_links" = no; then
8577    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8578echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8579    need_locks=warn
8580  fi
8581else
8582  need_locks=no
8583fi
8584
8585echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8586echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8587
8588  runpath_var=
8589  allow_undefined_flag=
8590  enable_shared_with_static_runtimes=no
8591  archive_cmds=
8592  archive_expsym_cmds=
8593  old_archive_From_new_cmds=
8594  old_archive_from_expsyms_cmds=
8595  export_dynamic_flag_spec=
8596  whole_archive_flag_spec=
8597  thread_safe_flag_spec=
8598  hardcode_libdir_flag_spec=
8599  hardcode_libdir_flag_spec_ld=
8600  hardcode_libdir_separator=
8601  hardcode_direct=no
8602  hardcode_minus_L=no
8603  hardcode_shlibpath_var=unsupported
8604  link_all_deplibs=unknown
8605  hardcode_automatic=no
8606  module_cmds=
8607  module_expsym_cmds=
8608  always_export_symbols=no
8609  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8610  # include_expsyms should be a list of space-separated symbols to be *always*
8611  # included in the symbol list
8612  include_expsyms=
8613  # exclude_expsyms can be an extended regexp of symbols to exclude
8614  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8615  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8616  # as well as any symbol that contains `d'.
8617  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8618  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8619  # platforms (ab)use it in PIC code, but their linkers get confused if
8620  # the symbol is explicitly referenced.  Since portable code cannot
8621  # rely on this symbol name, it's probably fine to never include it in
8622  # preloaded symbol tables.
8623  extract_expsyms_cmds=
8624  # Just being paranoid about ensuring that cc_basename is set.
8625  for cc_temp in $compiler""; do
8626  case $cc_temp in
8627    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8628    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8629    \-*) ;;
8630    *) break;;
8631  esac
8632done
8633cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8634
8635  case $host_os in
8636  cygwin* | mingw* | pw32*)
8637    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8638    # When not using gcc, we currently assume that we are using
8639    # Microsoft Visual C++.
8640    if test "$GCC" != yes; then
8641      with_gnu_ld=no
8642    fi
8643    ;;
8644  interix*)
8645    # we just hope/assume this is gcc and not c89 (= MSVC++)
8646    with_gnu_ld=yes
8647    ;;
8648  openbsd*)
8649    with_gnu_ld=no
8650    ;;
8651  esac
8652
8653  ld_shlibs=yes
8654  if test "$with_gnu_ld" = yes; then
8655    # If archive_cmds runs LD, not CC, wlarc should be empty
8656    wlarc='${wl}'
8657
8658    # Set some defaults for GNU ld with shared library support. These
8659    # are reset later if shared libraries are not supported. Putting them
8660    # here allows them to be overridden if necessary.
8661    runpath_var=LD_RUN_PATH
8662    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8663    export_dynamic_flag_spec='${wl}--export-dynamic'
8664    # ancient GNU ld didn't support --whole-archive et. al.
8665    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8666        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8667      else
8668        whole_archive_flag_spec=
8669    fi
8670    supports_anon_versioning=no
8671    case `$LD -v 2>/dev/null` in
8672      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8673      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8674      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8675      *\ 2.11.*) ;; # other 2.11 versions
8676      *) supports_anon_versioning=yes ;;
8677    esac
8678
8679    # See if GNU ld supports shared libraries.
8680    case $host_os in
8681    aix3* | aix4* | aix5*)
8682      # On AIX/PPC, the GNU linker is very broken
8683      if test "$host_cpu" != ia64; then
8684        ld_shlibs=no
8685        cat <<EOF 1>&2
8686
8687*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8688*** to be unable to reliably create shared libraries on AIX.
8689*** Therefore, libtool is disabling shared libraries support.  If you
8690*** really care for shared libraries, you may want to modify your PATH
8691*** so that a non-GNU linker is found, and then restart.
8692
8693EOF
8694      fi
8695      ;;
8696
8697    amigaos*)
8698      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)'
8699      hardcode_libdir_flag_spec='-L$libdir'
8700      hardcode_minus_L=yes
8701
8702      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8703      # that the semantics of dynamic libraries on AmigaOS, at least up
8704      # to version 4, is to share data among multiple programs linked
8705      # with the same dynamic library.  Since this doesn't match the
8706      # behavior of shared libraries on other platforms, we can't use
8707      # them.
8708      ld_shlibs=no
8709      ;;
8710
8711    beos*)
8712      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8713        allow_undefined_flag=unsupported
8714        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8715        # support --undefined.  This deserves some investigation.  FIXME
8716        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717      else
8718        ld_shlibs=no
8719      fi
8720      ;;
8721
8722    cygwin* | mingw* | pw32*)
8723      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8724      # as there is no search path for DLLs.
8725      hardcode_libdir_flag_spec='-L$libdir'
8726      allow_undefined_flag=unsupported
8727      always_export_symbols=no
8728      enable_shared_with_static_runtimes=yes
8729      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8730
8731      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8732        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8733        # If the export-symbols file already is a .def file (1st line
8734        # is EXPORTS), use it as is; otherwise, prepend...
8735        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8736          cp $export_symbols $output_objdir/$soname.def;
8737        else
8738          echo EXPORTS > $output_objdir/$soname.def;
8739          cat $export_symbols >> $output_objdir/$soname.def;
8740        fi~
8741        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8742      else
8743        ld_shlibs=no
8744      fi
8745      ;;
8746
8747    interix3*)
8748      hardcode_direct=no
8749      hardcode_shlibpath_var=no
8750      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8751      export_dynamic_flag_spec='${wl}-E'
8752      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8753      # Instead, shared libraries are loaded at an image base (0x10000000 by
8754      # default) and relocated if they conflict, which is a slow very memory
8755      # consuming and fragmenting process.  To avoid this, we pick a random,
8756      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8757      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8758      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8759      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'
8760      ;;
8761
8762    linux*)
8763      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8764        tmp_addflag=
8765        case $cc_basename,$host_cpu in
8766        pgcc*)                          # Portland Group C compiler
8767          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'
8768          tmp_addflag=' $pic_flag'
8769          ;;
8770        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8771          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'
8772          tmp_addflag=' $pic_flag -Mnomain' ;;
8773        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8774          tmp_addflag=' -i_dynamic' ;;
8775        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8776          tmp_addflag=' -i_dynamic -nofor_main' ;;
8777        ifc* | ifort*)                  # Intel Fortran compiler
8778          tmp_addflag=' -nofor_main' ;;
8779        esac
8780        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781
8782        if test $supports_anon_versioning = yes; then
8783          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8784  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8785  $echo "local: *; };" >> $output_objdir/$libname.ver~
8786          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8787        fi
8788      else
8789        ld_shlibs=no
8790      fi
8791      ;;
8792
8793    netbsd*)
8794      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8795        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8796        wlarc=
8797      else
8798        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800      fi
8801      ;;
8802
8803    solaris*)
8804      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8805        ld_shlibs=no
8806        cat <<EOF 1>&2
8807
8808*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8809*** create shared libraries on Solaris systems.  Therefore, libtool
8810*** is disabling shared libraries support.  We urge you to upgrade GNU
8811*** binutils to release 2.9.1 or newer.  Another option is to modify
8812*** your PATH or compiler configuration so that the native linker is
8813*** used, and then restart.
8814
8815EOF
8816      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8817        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8819      else
8820        ld_shlibs=no
8821      fi
8822      ;;
8823
8824    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8825      case `$LD -v 2>&1` in
8826        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8827        ld_shlibs=no
8828        cat <<_LT_EOF 1>&2
8829
8830*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8831*** reliably create shared libraries on SCO systems.  Therefore, libtool
8832*** is disabling shared libraries support.  We urge you to upgrade GNU
8833*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8834*** your PATH or compiler configuration so that the native linker is
8835*** used, and then restart.
8836
8837_LT_EOF
8838        ;;
8839        *)
8840          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8841            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8842            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8843            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8844          else
8845            ld_shlibs=no
8846          fi
8847        ;;
8848      esac
8849      ;;
8850
8851    sunos4*)
8852      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853      wlarc=
8854      hardcode_direct=yes
8855      hardcode_shlibpath_var=no
8856      ;;
8857
8858    *)
8859      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8860        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862      else
8863        ld_shlibs=no
8864      fi
8865      ;;
8866    esac
8867
8868    if test "$ld_shlibs" = no; then
8869      runpath_var=
8870      hardcode_libdir_flag_spec=
8871      export_dynamic_flag_spec=
8872      whole_archive_flag_spec=
8873    fi
8874  else
8875    # PORTME fill in a description of your system's linker (not GNU ld)
8876    case $host_os in
8877    aix3*)
8878      allow_undefined_flag=unsupported
8879      always_export_symbols=yes
8880      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'
8881      # Note: this linker hardcodes the directories in LIBPATH if there
8882      # are no directories specified by -L.
8883      hardcode_minus_L=yes
8884      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8885        # Neither direct hardcoding nor static linking is supported with a
8886        # broken collect2.
8887        hardcode_direct=unsupported
8888      fi
8889      ;;
8890
8891    aix4* | aix5*)
8892      if test "$host_cpu" = ia64; then
8893        # On IA64, the linker does run time linking by default, so we don't
8894        # have to do anything special.
8895        aix_use_runtimelinking=no
8896        exp_sym_flag='-Bexport'
8897        no_entry_flag=""
8898      else
8899        # If we're using GNU nm, then we don't want the "-C" option.
8900        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8901        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8902          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'
8903        else
8904          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'
8905        fi
8906        aix_use_runtimelinking=no
8907
8908        # Test if we are trying to use run time linking or normal
8909        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910        # need to do runtime linking.
8911        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8912          for ld_flag in $LDFLAGS; do
8913          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914            aix_use_runtimelinking=yes
8915            break
8916          fi
8917          done
8918          ;;
8919        esac
8920
8921        exp_sym_flag='-bexport'
8922        no_entry_flag='-bnoentry'
8923      fi
8924
8925      # When large executables or shared objects are built, AIX ld can
8926      # have problems creating the table of contents.  If linking a library
8927      # or program results in "error TOC overflow" add -mminimal-toc to
8928      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8929      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8930
8931      archive_cmds=''
8932      hardcode_direct=yes
8933      hardcode_libdir_separator=':'
8934      link_all_deplibs=yes
8935
8936      if test "$GCC" = yes; then
8937        case $host_os in aix4.[012]|aix4.[012].*)
8938        # We only want to do this on AIX 4.2 and lower, the check
8939        # below for broken collect2 doesn't work under 4.3+
8940          collect2name=`${CC} -print-prog-name=collect2`
8941          if test -f "$collect2name" && \
8942           strings "$collect2name" | grep resolve_lib_name >/dev/null
8943          then
8944          # We have reworked collect2
8945          hardcode_direct=yes
8946          else
8947          # We have old collect2
8948          hardcode_direct=unsupported
8949          # It fails to find uninstalled libraries when the uninstalled
8950          # path is not listed in the libpath.  Setting hardcode_minus_L
8951          # to unsupported forces relinking
8952          hardcode_minus_L=yes
8953          hardcode_libdir_flag_spec='-L$libdir'
8954          hardcode_libdir_separator=
8955          fi
8956          ;;
8957        esac
8958        shared_flag='-shared'
8959        if test "$aix_use_runtimelinking" = yes; then
8960          shared_flag="$shared_flag "'${wl}-G'
8961        fi
8962      else
8963        # not using gcc
8964        if test "$host_cpu" = ia64; then
8965        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8966        # chokes on -Wl,-G. The following line is correct:
8967          shared_flag='-G'
8968        else
8969          if test "$aix_use_runtimelinking" = yes; then
8970            shared_flag='${wl}-G'
8971          else
8972            shared_flag='${wl}-bM:SRE'
8973          fi
8974        fi
8975      fi
8976
8977      # It seems that -bexpall does not export symbols beginning with
8978      # underscore (_), so it is better to generate a list of symbols to export.
8979      always_export_symbols=yes
8980      if test "$aix_use_runtimelinking" = yes; then
8981        # Warning - without using the other runtime loading flags (-brtl),
8982        # -berok will link without error, but may produce a broken library.
8983        allow_undefined_flag='-berok'
8984       # Determine the default libpath from the value encoded in an empty executable.
8985       cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h.  */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h.  */
8991
8992int
8993main ()
8994{
8995
8996  ;
8997  return 0;
8998}
8999_ACEOF
9000rm -f conftest.$ac_objext conftest$ac_exeext
9001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002  (eval $ac_link) 2>conftest.er1
9003  ac_status=$?
9004  grep -v '^ *+' conftest.er1 >conftest.err
9005  rm -f conftest.er1
9006  cat conftest.err >&5
9007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008  (exit $ac_status); } &&
9009         { ac_try='test -z "$ac_c_werror_flag"
9010                         || test ! -s conftest.err'
9011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012  (eval $ac_try) 2>&5
9013  ac_status=$?
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); }; } &&
9016         { ac_try='test -s conftest$ac_exeext'
9017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018  (eval $ac_try) 2>&5
9019  ac_status=$?
9020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); }; }; then
9022
9023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9024}'`
9025# Check for a 64-bit object if we didn't find anything.
9026if 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; }
9027}'`; fi
9028else
9029  echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032fi
9033rm -f conftest.err conftest.$ac_objext \
9034      conftest$ac_exeext conftest.$ac_ext
9035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9036
9037       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038        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"
9039       else
9040        if test "$host_cpu" = ia64; then
9041          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9042          allow_undefined_flag="-z nodefs"
9043          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"
9044        else
9045         # Determine the default libpath from the value encoded in an empty executable.
9046         cat >conftest.$ac_ext <<_ACEOF
9047/* confdefs.h.  */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
9051/* end confdefs.h.  */
9052
9053int
9054main ()
9055{
9056
9057  ;
9058  return 0;
9059}
9060_ACEOF
9061rm -f conftest.$ac_objext conftest$ac_exeext
9062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063  (eval $ac_link) 2>conftest.er1
9064  ac_status=$?
9065  grep -v '^ *+' conftest.er1 >conftest.err
9066  rm -f conftest.er1
9067  cat conftest.err >&5
9068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069  (exit $ac_status); } &&
9070         { ac_try='test -z "$ac_c_werror_flag"
9071                         || test ! -s conftest.err'
9072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073  (eval $ac_try) 2>&5
9074  ac_status=$?
9075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076  (exit $ac_status); }; } &&
9077         { ac_try='test -s conftest$ac_exeext'
9078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079  (eval $ac_try) 2>&5
9080  ac_status=$?
9081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082  (exit $ac_status); }; }; then
9083
9084aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9085}'`
9086# Check for a 64-bit object if we didn't find anything.
9087if 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; }
9088}'`; fi
9089else
9090  echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
9093fi
9094rm -f conftest.err conftest.$ac_objext \
9095      conftest$ac_exeext conftest.$ac_ext
9096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9097
9098         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9099          # Warning - without using the other run time loading flags,
9100          # -berok will link without error, but may produce a broken library.
9101          no_undefined_flag=' ${wl}-bernotok'
9102          allow_undefined_flag=' ${wl}-berok'
9103          # Exported symbols can be pulled into shared objects from archives
9104          whole_archive_flag_spec='$convenience'
9105          archive_cmds_need_lc=yes
9106          # This is similar to how AIX traditionally builds its shared libraries.
9107          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'
9108        fi
9109      fi
9110      ;;
9111
9112    amigaos*)
9113      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)'
9114      hardcode_libdir_flag_spec='-L$libdir'
9115      hardcode_minus_L=yes
9116      # see comment about different semantics on the GNU ld section
9117      ld_shlibs=no
9118      ;;
9119
9120    bsdi[45]*)
9121      export_dynamic_flag_spec=-rdynamic
9122      ;;
9123
9124    cygwin* | mingw* | pw32*)
9125      # When not using gcc, we currently assume that we are using
9126      # Microsoft Visual C++.
9127      # hardcode_libdir_flag_spec is actually meaningless, as there is
9128      # no search path for DLLs.
9129      hardcode_libdir_flag_spec=' '
9130      allow_undefined_flag=unsupported
9131      # Tell ltmain to make .lib files, not .a files.
9132      libext=lib
9133      # Tell ltmain to make .dll files, not .so files.
9134      shrext_cmds=".dll"
9135      # FIXME: Setting linknames here is a bad hack.
9136      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9137      # The linker will automatically build a .lib file if we build a DLL.
9138      old_archive_From_new_cmds='true'
9139      # FIXME: Should let the user specify the lib program.
9140      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9141      fix_srcfile_path='`cygpath -w "$srcfile"`'
9142      enable_shared_with_static_runtimes=yes
9143      ;;
9144
9145    darwin* | rhapsody*)
9146      case $host_os in
9147        rhapsody* | darwin1.[012])
9148         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9149         ;;
9150       *) # Darwin 1.3 on
9151         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9152           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9153         else
9154           case ${MACOSX_DEPLOYMENT_TARGET} in
9155             10.[012])
9156               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9157               ;;
9158             10.*)
9159               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9160               ;;
9161           esac
9162         fi
9163         ;;
9164      esac
9165      archive_cmds_need_lc=no
9166      hardcode_direct=no
9167      hardcode_automatic=yes
9168      hardcode_shlibpath_var=unsupported
9169      whole_archive_flag_spec=''
9170      link_all_deplibs=yes
9171    if test "$GCC" = yes ; then
9172        output_verbose_link_cmd='echo'
9173        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9174      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9175      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9176      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}'
9177      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}'
9178    else
9179      case $cc_basename in
9180        xlc*)
9181         output_verbose_link_cmd='echo'
9182         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9183         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9184          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9185         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}'
9186          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}'
9187          ;;
9188       *)
9189         ld_shlibs=no
9190          ;;
9191      esac
9192    fi
9193      ;;
9194
9195    dgux*)
9196      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9197      hardcode_libdir_flag_spec='-L$libdir'
9198      hardcode_shlibpath_var=no
9199      ;;
9200
9201    freebsd1*)
9202      ld_shlibs=no
9203      ;;
9204
9205    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9206    # support.  Future versions do this automatically, but an explicit c++rt0.o
9207    # does not break anything, and helps significantly (at the cost of a little
9208    # extra space).
9209    freebsd2.2*)
9210      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9211      hardcode_libdir_flag_spec='-R$libdir'
9212      hardcode_direct=yes
9213      hardcode_shlibpath_var=no
9214      ;;
9215
9216    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9217    freebsd2*)
9218      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9219      hardcode_direct=yes
9220      hardcode_minus_L=yes
9221      hardcode_shlibpath_var=no
9222      ;;
9223
9224    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9225    freebsd* | kfreebsd*-gnu | dragonfly*)
9226      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9227      hardcode_libdir_flag_spec='-R$libdir'
9228      hardcode_direct=yes
9229      hardcode_shlibpath_var=no
9230      ;;
9231
9232    hpux9*)
9233      if test "$GCC" = yes; then
9234        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'
9235      else
9236        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'
9237      fi
9238      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9239      hardcode_libdir_separator=:
9240      hardcode_direct=yes
9241
9242      # hardcode_minus_L: Not really in the search PATH,
9243      # but as the default location of the library.
9244      hardcode_minus_L=yes
9245      export_dynamic_flag_spec='${wl}-E'
9246      ;;
9247
9248    hpux10*)
9249      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9250        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9251      else
9252        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9253      fi
9254      if test "$with_gnu_ld" = no; then
9255        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9256        hardcode_libdir_separator=:
9257
9258        hardcode_direct=yes
9259        export_dynamic_flag_spec='${wl}-E'
9260
9261        # hardcode_minus_L: Not really in the search PATH,
9262        # but as the default location of the library.
9263        hardcode_minus_L=yes
9264      fi
9265      ;;
9266
9267    hpux11*)
9268      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9269        case $host_cpu in
9270        hppa*64*)
9271          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9272          ;;
9273        ia64*)
9274          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9275          ;;
9276        *)
9277          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9278          ;;
9279        esac
9280      else
9281        case $host_cpu in
9282        hppa*64*)
9283          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9284          ;;
9285        ia64*)
9286          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9287          ;;
9288        *)
9289          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9290          ;;
9291        esac
9292      fi
9293      if test "$with_gnu_ld" = no; then
9294        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9295        hardcode_libdir_separator=:
9296
9297        case $host_cpu in
9298        hppa*64*|ia64*)
9299          hardcode_libdir_flag_spec_ld='+b $libdir'
9300          hardcode_direct=no
9301          hardcode_shlibpath_var=no
9302          ;;
9303        *)
9304          hardcode_direct=yes
9305          export_dynamic_flag_spec='${wl}-E'
9306
9307          # hardcode_minus_L: Not really in the search PATH,
9308          # but as the default location of the library.
9309          hardcode_minus_L=yes
9310          ;;
9311        esac
9312      fi
9313      ;;
9314
9315    irix5* | irix6* | nonstopux*)
9316      if test "$GCC" = yes; then
9317        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'
9318      else
9319        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'
9320        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9321      fi
9322      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323      hardcode_libdir_separator=:
9324      link_all_deplibs=yes
9325      ;;
9326
9327    netbsd*)
9328      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9329        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9330      else
9331        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9332      fi
9333      hardcode_libdir_flag_spec='-R$libdir'
9334      hardcode_direct=yes
9335      hardcode_shlibpath_var=no
9336      ;;
9337
9338    newsos6)
9339      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340      hardcode_direct=yes
9341      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342      hardcode_libdir_separator=:
9343      hardcode_shlibpath_var=no
9344      ;;
9345
9346    openbsd*)
9347      hardcode_direct=yes
9348      hardcode_shlibpath_var=no
9349      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9350        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9351        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9352        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353        export_dynamic_flag_spec='${wl}-E'
9354      else
9355       case $host_os in
9356         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9357           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358           hardcode_libdir_flag_spec='-R$libdir'
9359           ;;
9360         *)
9361           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9362           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363           ;;
9364       esac
9365      fi
9366      ;;
9367
9368    os2*)
9369      hardcode_libdir_flag_spec='-L$libdir'
9370      hardcode_minus_L=yes
9371      allow_undefined_flag=unsupported
9372      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'
9373      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9374      ;;
9375
9376    osf3*)
9377      if test "$GCC" = yes; then
9378        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9379        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'
9380      else
9381        allow_undefined_flag=' -expect_unresolved \*'
9382        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'
9383      fi
9384      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385      hardcode_libdir_separator=:
9386      ;;
9387
9388    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9389      if test "$GCC" = yes; then
9390        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9391        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'
9392        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9393      else
9394        allow_undefined_flag=' -expect_unresolved \*'
9395        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'
9396        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9397        $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'
9398
9399        # Both c and cxx compiler support -rpath directly
9400        hardcode_libdir_flag_spec='-rpath $libdir'
9401      fi
9402      hardcode_libdir_separator=:
9403      ;;
9404
9405    solaris*)
9406      no_undefined_flag=' -z text'
9407      if test "$GCC" = yes; then
9408        wlarc='${wl}'
9409        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9411          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9412      else
9413        wlarc=''
9414        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9416        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9417      fi
9418      hardcode_libdir_flag_spec='-R$libdir'
9419      hardcode_shlibpath_var=no
9420      case $host_os in
9421      solaris2.[0-5] | solaris2.[0-5].*) ;;
9422      *)
9423        # The compiler driver will combine linker options so we
9424        # cannot just pass the convience library names through
9425        # without $wl, iff we do not link with $LD.
9426        # Luckily, gcc supports the same syntax we need for Sun Studio.
9427        # Supported since Solaris 2.6 (maybe 2.5.1?)
9428        case $wlarc in
9429        '')
9430          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9431        *)
9432          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' ;;
9433        esac ;;
9434      esac
9435      link_all_deplibs=yes
9436      ;;
9437
9438    sunos4*)
9439      if test "x$host_vendor" = xsequent; then
9440        # Use $CC to link under sequent, because it throws in some extra .o
9441        # files that make .init and .fini sections work.
9442        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9443      else
9444        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9445      fi
9446      hardcode_libdir_flag_spec='-L$libdir'
9447      hardcode_direct=yes
9448      hardcode_minus_L=yes
9449      hardcode_shlibpath_var=no
9450      ;;
9451
9452    sysv4)
9453      case $host_vendor in
9454        sni)
9455          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456          hardcode_direct=yes # is this really true???
9457        ;;
9458        siemens)
9459          ## LD is ld it makes a PLAMLIB
9460          ## CC just makes a GrossModule.
9461          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9462          reload_cmds='$CC -r -o $output$reload_objs'
9463          hardcode_direct=no
9464        ;;
9465        motorola)
9466          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9468        ;;
9469      esac
9470      runpath_var='LD_RUN_PATH'
9471      hardcode_shlibpath_var=no
9472      ;;
9473
9474    sysv4.3*)
9475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476      hardcode_shlibpath_var=no
9477      export_dynamic_flag_spec='-Bexport'
9478      ;;
9479
9480    sysv4*MP*)
9481      if test -d /usr/nec; then
9482        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483        hardcode_shlibpath_var=no
9484        runpath_var=LD_RUN_PATH
9485        hardcode_runpath_var=yes
9486        ld_shlibs=yes
9487      fi
9488      ;;
9489
9490    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9491      no_undefined_flag='${wl}-z,text'
9492      archive_cmds_need_lc=no
9493      hardcode_shlibpath_var=no
9494      runpath_var='LD_RUN_PATH'
9495
9496      if test "$GCC" = yes; then
9497        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499      else
9500        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502      fi
9503      ;;
9504
9505    sysv5* | sco3.2v5* | sco5v6*)
9506      # Note: We can NOT use -z defs as we might desire, because we do not
9507      # link with -lc, and that would cause any symbols used from libc to
9508      # always be unresolved, which means just about no library would
9509      # ever link correctly.  If we're not using GNU ld we use -z text
9510      # though, which does catch some bad symbols but isn't as heavy-handed
9511      # as -z defs.
9512      no_undefined_flag='${wl}-z,text'
9513      allow_undefined_flag='${wl}-z,nodefs'
9514      archive_cmds_need_lc=no
9515      hardcode_shlibpath_var=no
9516      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9517      hardcode_libdir_separator=':'
9518      link_all_deplibs=yes
9519      export_dynamic_flag_spec='${wl}-Bexport'
9520      runpath_var='LD_RUN_PATH'
9521
9522      if test "$GCC" = yes; then
9523        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9524        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9525      else
9526        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9527        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528      fi
9529      ;;
9530
9531    uts4*)
9532      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533      hardcode_libdir_flag_spec='-L$libdir'
9534      hardcode_shlibpath_var=no
9535      ;;
9536
9537    *)
9538      ld_shlibs=no
9539      ;;
9540    esac
9541  fi
9542
9543echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9544echo "${ECHO_T}$ld_shlibs" >&6
9545test "$ld_shlibs" = no && can_build_shared=no
9546
9547#
9548# Do we need to explicitly link libc?
9549#
9550case "x$archive_cmds_need_lc" in
9551x|xyes)
9552  # Assume -lc should be added
9553  archive_cmds_need_lc=yes
9554
9555  if test "$enable_shared" = yes && test "$GCC" = yes; then
9556    case $archive_cmds in
9557    *'~'*)
9558      # FIXME: we may have to deal with multi-command sequences.
9559      ;;
9560    '$CC '*)
9561      # Test whether the compiler implicitly links with -lc since on some
9562      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9563      # to ld, don't add -lc before -lgcc.
9564      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9565echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9566      $rm conftest*
9567      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9568
9569      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570  (eval $ac_compile) 2>&5
9571  ac_status=$?
9572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573  (exit $ac_status); } 2>conftest.err; then
9574        soname=conftest
9575        lib=conftest
9576        libobjs=conftest.$ac_objext
9577        deplibs=
9578        wl=$lt_prog_compiler_wl
9579        pic_flag=$lt_prog_compiler_pic
9580        compiler_flags=-v
9581        linker_flags=-v
9582        verstring=
9583        output_objdir=.
9584        libname=conftest
9585        lt_save_allow_undefined_flag=$allow_undefined_flag
9586        allow_undefined_flag=
9587        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9588  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9589  ac_status=$?
9590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591  (exit $ac_status); }
9592        then
9593          archive_cmds_need_lc=no
9594        else
9595          archive_cmds_need_lc=yes
9596        fi
9597        allow_undefined_flag=$lt_save_allow_undefined_flag
9598      else
9599        cat conftest.err 1>&5
9600      fi
9601      $rm conftest*
9602      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9603echo "${ECHO_T}$archive_cmds_need_lc" >&6
9604      ;;
9605    esac
9606  fi
9607  ;;
9608esac
9609
9610echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9611echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9612library_names_spec=
9613libname_spec='lib$name'
9614soname_spec=
9615shrext_cmds=".so"
9616postinstall_cmds=
9617postuninstall_cmds=
9618finish_cmds=
9619finish_eval=
9620shlibpath_var=
9621shlibpath_overrides_runpath=unknown
9622version_type=none
9623dynamic_linker="$host_os ld.so"
9624sys_lib_dlsearch_path_spec="/lib /usr/lib"
9625if test "$GCC" = yes; then
9626  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9627  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9628    # if the path contains ";" then we assume it to be the separator
9629    # otherwise default to the standard path separator (i.e. ":") - it is
9630    # assumed that no part of a normal pathname contains ";" but that should
9631    # okay in the real world where ";" in dirpaths is itself problematic.
9632    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9633  else
9634    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9635  fi
9636else
9637  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9638fi
9639need_lib_prefix=unknown
9640hardcode_into_libs=no
9641
9642# when you set need_version to no, make sure it does not cause -set_version
9643# flags to be left without arguments
9644need_version=unknown
9645
9646case $host_os in
9647aix3*)
9648  version_type=linux
9649  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9650  shlibpath_var=LIBPATH
9651
9652  # AIX 3 has no versioning support, so we append a major version to the name.
9653  soname_spec='${libname}${release}${shared_ext}$major'
9654  ;;
9655
9656aix4* | aix5*)
9657  version_type=linux
9658  need_lib_prefix=no
9659  need_version=no
9660  hardcode_into_libs=yes
9661  if test "$host_cpu" = ia64; then
9662    # AIX 5 supports IA64
9663    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9664    shlibpath_var=LD_LIBRARY_PATH
9665  else
9666    # With GCC up to 2.95.x, collect2 would create an import file
9667    # for dependence libraries.  The import file would start with
9668    # the line `#! .'.  This would cause the generated library to
9669    # depend on `.', always an invalid library.  This was fixed in
9670    # development snapshots of GCC prior to 3.0.
9671    case $host_os in
9672      aix4 | aix4.[01] | aix4.[01].*)
9673      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9674           echo ' yes '
9675           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9676        :
9677      else
9678        can_build_shared=no
9679      fi
9680      ;;
9681    esac
9682    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9683    # soname into executable. Probably we can add versioning support to
9684    # collect2, so additional links can be useful in future.
9685    if test "$aix_use_runtimelinking" = yes; then
9686      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9687      # instead of lib<name>.a to let people know that these are not
9688      # typical AIX shared libraries.
9689      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690    else
9691      # We preserve .a as extension for shared libraries through AIX4.2
9692      # and later when we are not doing run time linking.
9693      library_names_spec='${libname}${release}.a $libname.a'
9694      soname_spec='${libname}${release}${shared_ext}$major'
9695    fi
9696    shlibpath_var=LIBPATH
9697  fi
9698  ;;
9699
9700amigaos*)
9701  library_names_spec='$libname.ixlibrary $libname.a'
9702  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9703  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'
9704  ;;
9705
9706beos*)
9707  library_names_spec='${libname}${shared_ext}'
9708  dynamic_linker="$host_os ld.so"
9709  shlibpath_var=LIBRARY_PATH
9710  ;;
9711
9712bsdi[45]*)
9713  version_type=linux
9714  need_version=no
9715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716  soname_spec='${libname}${release}${shared_ext}$major'
9717  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9718  shlibpath_var=LD_LIBRARY_PATH
9719  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9720  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9721  # the default ld.so.conf also contains /usr/contrib/lib and
9722  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9723  # libtool to hard-code these into programs
9724  ;;
9725
9726cygwin* | mingw* | pw32*)
9727  version_type=windows
9728  shrext_cmds=".dll"
9729  need_version=no
9730  need_lib_prefix=no
9731
9732  case $GCC,$host_os in
9733  yes,cygwin* | yes,mingw* | yes,pw32*)
9734    library_names_spec='$libname.dll.a'
9735    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9736    postinstall_cmds='base_file=`basename \${file}`~
9737      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9738      dldir=$destdir/`dirname \$dlpath`~
9739      test -d \$dldir || mkdir -p \$dldir~
9740      $install_prog $dir/$dlname \$dldir/$dlname~
9741      chmod a+x \$dldir/$dlname'
9742    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9743      dlpath=$dir/\$dldll~
9744       $rm \$dlpath'
9745    shlibpath_overrides_runpath=yes
9746
9747    case $host_os in
9748    cygwin*)
9749      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9750      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9751      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9752      ;;
9753    mingw*)
9754      # MinGW DLLs use traditional 'lib' prefix
9755      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9756      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9757      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9758        # It is most probably a Windows format PATH printed by
9759        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9760        # path with ; separators, and with drive letters. We can handle the
9761        # drive letters (cygwin fileutils understands them), so leave them,
9762        # especially as we might pass files found there to a mingw objdump,
9763        # which wouldn't understand a cygwinified path. Ahh.
9764        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9765      else
9766        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9767      fi
9768      ;;
9769    pw32*)
9770      # pw32 DLLs use 'pw' prefix rather than 'lib'
9771      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9772      ;;
9773    esac
9774    ;;
9775
9776  *)
9777    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9778    ;;
9779  esac
9780  dynamic_linker='Win32 ld.exe'
9781  # FIXME: first we should search . and the directory the executable is in
9782  shlibpath_var=PATH
9783  ;;
9784
9785darwin* | rhapsody*)
9786  dynamic_linker="$host_os dyld"
9787  version_type=darwin
9788  need_lib_prefix=no
9789  need_version=no
9790  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9791  soname_spec='${libname}${release}${major}$shared_ext'
9792  shlibpath_overrides_runpath=yes
9793  shlibpath_var=DYLD_LIBRARY_PATH
9794  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9795  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9796  if test "$GCC" = yes; then
9797    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"`
9798  else
9799    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9800  fi
9801  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9802  ;;
9803
9804dgux*)
9805  version_type=linux
9806  need_lib_prefix=no
9807  need_version=no
9808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9809  soname_spec='${libname}${release}${shared_ext}$major'
9810  shlibpath_var=LD_LIBRARY_PATH
9811  ;;
9812
9813freebsd1*)
9814  dynamic_linker=no
9815  ;;
9816
9817kfreebsd*-gnu)
9818  version_type=linux
9819  need_lib_prefix=no
9820  need_version=no
9821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822  soname_spec='${libname}${release}${shared_ext}$major'
9823  shlibpath_var=LD_LIBRARY_PATH
9824  shlibpath_overrides_runpath=no
9825  hardcode_into_libs=yes
9826  dynamic_linker='GNU ld.so'
9827  ;;
9828
9829freebsd* | dragonfly*)
9830  # DragonFly does not have aout.  When/if they implement a new
9831  # versioning mechanism, adjust this.
9832  if test -x /usr/bin/objformat; then
9833    objformat=`/usr/bin/objformat`
9834  else
9835    case $host_os in
9836    freebsd[123]*) objformat=aout ;;
9837    *) objformat=elf ;;
9838    esac
9839  fi
9840  version_type=freebsd-$objformat
9841  case $version_type in
9842    freebsd-elf*)
9843      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9844      need_version=no
9845      need_lib_prefix=no
9846      ;;
9847    freebsd-*)
9848      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9849      need_version=yes
9850      ;;
9851  esac
9852  shlibpath_var=LD_LIBRARY_PATH
9853  case $host_os in
9854  freebsd2*)
9855    shlibpath_overrides_runpath=yes
9856    ;;
9857  freebsd3.[01]* | freebsdelf3.[01]*)
9858    shlibpath_overrides_runpath=yes
9859    hardcode_into_libs=yes
9860    ;;
9861  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9862  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9863    shlibpath_overrides_runpath=no
9864    hardcode_into_libs=yes
9865    ;;
9866  freebsd*) # from 4.6 on
9867    shlibpath_overrides_runpath=yes
9868    hardcode_into_libs=yes
9869    ;;
9870  esac
9871  ;;
9872
9873gnu*)
9874  version_type=linux
9875  need_lib_prefix=no
9876  need_version=no
9877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9878  soname_spec='${libname}${release}${shared_ext}$major'
9879  shlibpath_var=LD_LIBRARY_PATH
9880  hardcode_into_libs=yes
9881  ;;
9882
9883hpux9* | hpux10* | hpux11*)
9884  # Give a soname corresponding to the major version so that dld.sl refuses to
9885  # link against other versions.
9886  version_type=sunos
9887  need_lib_prefix=no
9888  need_version=no
9889  case $host_cpu in
9890  ia64*)
9891    shrext_cmds='.so'
9892    hardcode_into_libs=yes
9893    dynamic_linker="$host_os dld.so"
9894    shlibpath_var=LD_LIBRARY_PATH
9895    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9896    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897    soname_spec='${libname}${release}${shared_ext}$major'
9898    if test "X$HPUX_IA64_MODE" = X32; then
9899      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9900    else
9901      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9902    fi
9903    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9904    ;;
9905   hppa*64*)
9906     shrext_cmds='.sl'
9907     hardcode_into_libs=yes
9908     dynamic_linker="$host_os dld.sl"
9909     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9910     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912     soname_spec='${libname}${release}${shared_ext}$major'
9913     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9914     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9915     ;;
9916   *)
9917    shrext_cmds='.sl'
9918    dynamic_linker="$host_os dld.sl"
9919    shlibpath_var=SHLIB_PATH
9920    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
9924  esac
9925  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9926  postinstall_cmds='chmod 555 $lib'
9927  ;;
9928
9929interix3*)
9930  version_type=linux
9931  need_lib_prefix=no
9932  need_version=no
9933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9934  soname_spec='${libname}${release}${shared_ext}$major'
9935  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9936  shlibpath_var=LD_LIBRARY_PATH
9937  shlibpath_overrides_runpath=no
9938  hardcode_into_libs=yes
9939  ;;
9940
9941irix5* | irix6* | nonstopux*)
9942  case $host_os in
9943    nonstopux*) version_type=nonstopux ;;
9944    *)
9945        if test "$lt_cv_prog_gnu_ld" = yes; then
9946                version_type=linux
9947        else
9948                version_type=irix
9949        fi ;;
9950  esac
9951  need_lib_prefix=no
9952  need_version=no
9953  soname_spec='${libname}${release}${shared_ext}$major'
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9955  case $host_os in
9956  irix5* | nonstopux*)
9957    libsuff= shlibsuff=
9958    ;;
9959  *)
9960    case $LD in # libtool.m4 will add one of these switches to LD
9961    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9962      libsuff= shlibsuff= libmagic=32-bit;;
9963    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9964      libsuff=32 shlibsuff=N32 libmagic=N32;;
9965    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9966      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9967    *) libsuff= shlibsuff= libmagic=never-match;;
9968    esac
9969    ;;
9970  esac
9971  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9972  shlibpath_overrides_runpath=no
9973  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9974  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9975  hardcode_into_libs=yes
9976  ;;
9977
9978# No shared lib support for Linux oldld, aout, or coff.
9979linux*oldld* | linux*aout* | linux*coff*)
9980  dynamic_linker=no
9981  ;;
9982
9983# This must be Linux ELF.
9984linux*)
9985  version_type=linux
9986  need_lib_prefix=no
9987  need_version=no
9988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989  soname_spec='${libname}${release}${shared_ext}$major'
9990  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9991  shlibpath_var=LD_LIBRARY_PATH
9992  shlibpath_overrides_runpath=no
9993  # This implies no fast_install, which is unacceptable.
9994  # Some rework will be needed to allow for fast_install
9995  # before this can be enabled.
9996  hardcode_into_libs=yes
9997
9998  # Append ld.so.conf contents to the search path
9999  if test -f /etc/ld.so.conf; then
10000    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' ' '`
10001    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10002  fi
10003
10004  # We used to test for /lib/ld.so.1 and disable shared libraries on
10005  # powerpc, because MkLinux only supported shared libraries with the
10006  # GNU dynamic linker.  Since this was broken with cross compilers,
10007  # most powerpc-linux boxes support dynamic linking these days and
10008  # people can always --disable-shared, the test was removed, and we
10009  # assume the GNU/Linux dynamic linker is in use.
10010  dynamic_linker='GNU/Linux ld.so'
10011  ;;
10012
10013knetbsd*-gnu)
10014  version_type=linux
10015  need_lib_prefix=no
10016  need_version=no
10017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10018  soname_spec='${libname}${release}${shared_ext}$major'
10019  shlibpath_var=LD_LIBRARY_PATH
10020  shlibpath_overrides_runpath=no
10021  hardcode_into_libs=yes
10022  dynamic_linker='GNU ld.so'
10023  ;;
10024
10025netbsd*)
10026  version_type=sunos
10027  need_lib_prefix=no
10028  need_version=no
10029  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10030    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10031    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10032    dynamic_linker='NetBSD (a.out) ld.so'
10033  else
10034    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10035    soname_spec='${libname}${release}${shared_ext}$major'
10036    dynamic_linker='NetBSD ld.elf_so'
10037  fi
10038  shlibpath_var=LD_LIBRARY_PATH
10039  shlibpath_overrides_runpath=yes
10040  hardcode_into_libs=yes
10041  ;;
10042
10043newsos6)
10044  version_type=linux
10045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046  shlibpath_var=LD_LIBRARY_PATH
10047  shlibpath_overrides_runpath=yes
10048  ;;
10049
10050nto-qnx*)
10051  version_type=linux
10052  need_lib_prefix=no
10053  need_version=no
10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055  soname_spec='${libname}${release}${shared_ext}$major'
10056  shlibpath_var=LD_LIBRARY_PATH
10057  shlibpath_overrides_runpath=yes
10058  ;;
10059
10060openbsd*)
10061  version_type=sunos
10062  sys_lib_dlsearch_path_spec="/usr/lib"
10063  need_lib_prefix=no
10064  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10065  case $host_os in
10066    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10067    *)                         need_version=no  ;;
10068  esac
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10070  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10073    case $host_os in
10074      openbsd2.[89] | openbsd2.[89].*)
10075        shlibpath_overrides_runpath=no
10076        ;;
10077      *)
10078        shlibpath_overrides_runpath=yes
10079        ;;
10080      esac
10081  else
10082    shlibpath_overrides_runpath=yes
10083  fi
10084  ;;
10085
10086os2*)
10087  libname_spec='$name'
10088  shrext_cmds=".dll"
10089  need_lib_prefix=no
10090  library_names_spec='$libname${shared_ext} $libname.a'
10091  dynamic_linker='OS/2 ld.exe'
10092  shlibpath_var=LIBPATH
10093  ;;
10094
10095osf3* | osf4* | osf5*)
10096  version_type=osf
10097  need_lib_prefix=no
10098  need_version=no
10099  soname_spec='${libname}${release}${shared_ext}$major'
10100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10103  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10104  ;;
10105
10106solaris*)
10107  version_type=linux
10108  need_lib_prefix=no
10109  need_version=no
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111  soname_spec='${libname}${release}${shared_ext}$major'
10112  shlibpath_var=LD_LIBRARY_PATH
10113  shlibpath_overrides_runpath=yes
10114  hardcode_into_libs=yes
10115  # ldd complains unless libraries are executable
10116  postinstall_cmds='chmod +x $lib'
10117  ;;
10118
10119sunos4*)
10120  version_type=sunos
10121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10122  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10123  shlibpath_var=LD_LIBRARY_PATH
10124  shlibpath_overrides_runpath=yes
10125  if test "$with_gnu_ld" = yes; then
10126    need_lib_prefix=no
10127  fi
10128  need_version=yes
10129  ;;
10130
10131sysv4 | sysv4.3*)
10132  version_type=linux
10133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134  soname_spec='${libname}${release}${shared_ext}$major'
10135  shlibpath_var=LD_LIBRARY_PATH
10136  case $host_vendor in
10137    sni)
10138      shlibpath_overrides_runpath=no
10139      need_lib_prefix=no
10140      export_dynamic_flag_spec='${wl}-Blargedynsym'
10141      runpath_var=LD_RUN_PATH
10142      ;;
10143    siemens)
10144      need_lib_prefix=no
10145      ;;
10146    motorola)
10147      need_lib_prefix=no
10148      need_version=no
10149      shlibpath_overrides_runpath=no
10150      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10151      ;;
10152  esac
10153  ;;
10154
10155sysv4*MP*)
10156  if test -d /usr/nec ;then
10157    version_type=linux
10158    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10159    soname_spec='$libname${shared_ext}.$major'
10160    shlibpath_var=LD_LIBRARY_PATH
10161  fi
10162  ;;
10163
10164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10165  version_type=freebsd-elf
10166  need_lib_prefix=no
10167  need_version=no
10168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10169  soname_spec='${libname}${release}${shared_ext}$major'
10170  shlibpath_var=LD_LIBRARY_PATH
10171  hardcode_into_libs=yes
10172  if test "$with_gnu_ld" = yes; then
10173    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10174    shlibpath_overrides_runpath=no
10175  else
10176    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10177    shlibpath_overrides_runpath=yes
10178    case $host_os in
10179      sco3.2v5*)
10180        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10181        ;;
10182    esac
10183  fi
10184  sys_lib_dlsearch_path_spec='/usr/lib'
10185  ;;
10186
10187uts4*)
10188  version_type=linux
10189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190  soname_spec='${libname}${release}${shared_ext}$major'
10191  shlibpath_var=LD_LIBRARY_PATH
10192  ;;
10193
10194*)
10195  dynamic_linker=no
10196  ;;
10197esac
10198echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10199echo "${ECHO_T}$dynamic_linker" >&6
10200test "$dynamic_linker" = no && can_build_shared=no
10201
10202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10203if test "$GCC" = yes; then
10204  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10205fi
10206
10207echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10208echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10209hardcode_action=
10210if test -n "$hardcode_libdir_flag_spec" || \
10211   test -n "$runpath_var" || \
10212   test "X$hardcode_automatic" = "Xyes" ; then
10213
10214  # We can hardcode non-existant directories.
10215  if test "$hardcode_direct" != no &&
10216     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10217     # have to relink, otherwise we might link with an installed library
10218     # when we should be linking with a yet-to-be-installed one
10219     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10220     test "$hardcode_minus_L" != no; then
10221    # Linking always hardcodes the temporary library directory.
10222    hardcode_action=relink
10223  else
10224    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10225    hardcode_action=immediate
10226  fi
10227else
10228  # We cannot hardcode anything, or else we can only hardcode existing
10229  # directories.
10230  hardcode_action=unsupported
10231fi
10232echo "$as_me:$LINENO: result: $hardcode_action" >&5
10233echo "${ECHO_T}$hardcode_action" >&6
10234
10235if test "$hardcode_action" = relink; then
10236  # Fast installation is not supported
10237  enable_fast_install=no
10238elif test "$shlibpath_overrides_runpath" = yes ||
10239     test "$enable_shared" = no; then
10240  # Fast installation is not necessary
10241  enable_fast_install=needless
10242fi
10243
10244striplib=
10245old_striplib=
10246echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10247echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10248if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10249  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10250  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10251  echo "$as_me:$LINENO: result: yes" >&5
10252echo "${ECHO_T}yes" >&6
10253else
10254# FIXME - insert some real tests, host_os isn't really good enough
10255  case $host_os in
10256   darwin*)
10257       if test -n "$STRIP" ; then
10258         striplib="$STRIP -x"
10259         echo "$as_me:$LINENO: result: yes" >&5
10260echo "${ECHO_T}yes" >&6
10261       else
10262  echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
10264fi
10265       ;;
10266   *)
10267  echo "$as_me:$LINENO: result: no" >&5
10268echo "${ECHO_T}no" >&6
10269    ;;
10270  esac
10271fi
10272
10273if test "x$enable_dlopen" != xyes; then
10274  enable_dlopen=unknown
10275  enable_dlopen_self=unknown
10276  enable_dlopen_self_static=unknown
10277else
10278  lt_cv_dlopen=no
10279  lt_cv_dlopen_libs=
10280
10281  case $host_os in
10282  beos*)
10283    lt_cv_dlopen="load_add_on"
10284    lt_cv_dlopen_libs=
10285    lt_cv_dlopen_self=yes
10286    ;;
10287
10288  mingw* | pw32*)
10289    lt_cv_dlopen="LoadLibrary"
10290    lt_cv_dlopen_libs=
10291   ;;
10292
10293  cygwin*)
10294    lt_cv_dlopen="dlopen"
10295    lt_cv_dlopen_libs=
10296   ;;
10297
10298  darwin*)
10299  # if libdl is installed we need to link against it
10300    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10301echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10302if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10303  echo $ECHO_N "(cached) $ECHO_C" >&6
10304else
10305  ac_check_lib_save_LIBS=$LIBS
10306LIBS="-ldl  $LIBS"
10307cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h.  */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h.  */
10313
10314/* Override any gcc2 internal prototype to avoid an error.  */
10315#ifdef __cplusplus
10316extern "C"
10317#endif
10318/* We use char because int might match the return type of a gcc2
10319   builtin and then its argument prototype would still apply.  */
10320char dlopen ();
10321int
10322main ()
10323{
10324dlopen ();
10325  ;
10326  return 0;
10327}
10328_ACEOF
10329rm -f conftest.$ac_objext conftest$ac_exeext
10330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331  (eval $ac_link) 2>conftest.er1
10332  ac_status=$?
10333  grep -v '^ *+' conftest.er1 >conftest.err
10334  rm -f conftest.er1
10335  cat conftest.err >&5
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); } &&
10338         { ac_try='test -z "$ac_c_werror_flag"
10339                         || test ! -s conftest.err'
10340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341  (eval $ac_try) 2>&5
10342  ac_status=$?
10343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344  (exit $ac_status); }; } &&
10345         { ac_try='test -s conftest$ac_exeext'
10346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347  (eval $ac_try) 2>&5
10348  ac_status=$?
10349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350  (exit $ac_status); }; }; then
10351  ac_cv_lib_dl_dlopen=yes
10352else
10353  echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356ac_cv_lib_dl_dlopen=no
10357fi
10358rm -f conftest.err conftest.$ac_objext \
10359      conftest$ac_exeext conftest.$ac_ext
10360LIBS=$ac_check_lib_save_LIBS
10361fi
10362echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10364if test $ac_cv_lib_dl_dlopen = yes; then
10365  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10366else
10367
10368    lt_cv_dlopen="dyld"
10369    lt_cv_dlopen_libs=
10370    lt_cv_dlopen_self=yes
10371
10372fi
10373
10374   ;;
10375
10376  *)
10377    echo "$as_me:$LINENO: checking for shl_load" >&5
10378echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10379if test "${ac_cv_func_shl_load+set}" = set; then
10380  echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382  cat >conftest.$ac_ext <<_ACEOF
10383/* confdefs.h.  */
10384_ACEOF
10385cat confdefs.h >>conftest.$ac_ext
10386cat >>conftest.$ac_ext <<_ACEOF
10387/* end confdefs.h.  */
10388/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10389   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10390#define shl_load innocuous_shl_load
10391
10392/* System header to define __stub macros and hopefully few prototypes,
10393    which can conflict with char shl_load (); below.
10394    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10395    <limits.h> exists even on freestanding compilers.  */
10396
10397#ifdef __STDC__
10398# include <limits.h>
10399#else
10400# include <assert.h>
10401#endif
10402
10403#undef shl_load
10404
10405/* Override any gcc2 internal prototype to avoid an error.  */
10406#ifdef __cplusplus
10407extern "C"
10408{
10409#endif
10410/* We use char because int might match the return type of a gcc2
10411   builtin and then its argument prototype would still apply.  */
10412char shl_load ();
10413/* The GNU C library defines this for functions which it implements
10414    to always fail with ENOSYS.  Some functions are actually named
10415    something starting with __ and the normal name is an alias.  */
10416#if defined (__stub_shl_load) || defined (__stub___shl_load)
10417choke me
10418#else
10419char (*f) () = shl_load;
10420#endif
10421#ifdef __cplusplus
10422}
10423#endif
10424
10425int
10426main ()
10427{
10428return f != shl_load;
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433rm -f conftest.$ac_objext conftest$ac_exeext
10434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435  (eval $ac_link) 2>conftest.er1
10436  ac_status=$?
10437  grep -v '^ *+' conftest.er1 >conftest.err
10438  rm -f conftest.er1
10439  cat conftest.err >&5
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); } &&
10442         { ac_try='test -z "$ac_c_werror_flag"
10443                         || test ! -s conftest.err'
10444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445  (eval $ac_try) 2>&5
10446  ac_status=$?
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); }; } &&
10449         { ac_try='test -s conftest$ac_exeext'
10450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451  (eval $ac_try) 2>&5
10452  ac_status=$?
10453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454  (exit $ac_status); }; }; then
10455  ac_cv_func_shl_load=yes
10456else
10457  echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460ac_cv_func_shl_load=no
10461fi
10462rm -f conftest.err conftest.$ac_objext \
10463      conftest$ac_exeext conftest.$ac_ext
10464fi
10465echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10466echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10467if test $ac_cv_func_shl_load = yes; then
10468  lt_cv_dlopen="shl_load"
10469else
10470  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10471echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10472if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10473  echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475  ac_check_lib_save_LIBS=$LIBS
10476LIBS="-ldld  $LIBS"
10477cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h.  */
10479_ACEOF
10480cat confdefs.h >>conftest.$ac_ext
10481cat >>conftest.$ac_ext <<_ACEOF
10482/* end confdefs.h.  */
10483
10484/* Override any gcc2 internal prototype to avoid an error.  */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488/* We use char because int might match the return type of a gcc2
10489   builtin and then its argument prototype would still apply.  */
10490char shl_load ();
10491int
10492main ()
10493{
10494shl_load ();
10495  ;
10496  return 0;
10497}
10498_ACEOF
10499rm -f conftest.$ac_objext conftest$ac_exeext
10500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501  (eval $ac_link) 2>conftest.er1
10502  ac_status=$?
10503  grep -v '^ *+' conftest.er1 >conftest.err
10504  rm -f conftest.er1
10505  cat conftest.err >&5
10506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507  (exit $ac_status); } &&
10508         { ac_try='test -z "$ac_c_werror_flag"
10509                         || test ! -s conftest.err'
10510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511  (eval $ac_try) 2>&5
10512  ac_status=$?
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); }; } &&
10515         { ac_try='test -s conftest$ac_exeext'
10516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517  (eval $ac_try) 2>&5
10518  ac_status=$?
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); }; }; then
10521  ac_cv_lib_dld_shl_load=yes
10522else
10523  echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
10526ac_cv_lib_dld_shl_load=no
10527fi
10528rm -f conftest.err conftest.$ac_objext \
10529      conftest$ac_exeext conftest.$ac_ext
10530LIBS=$ac_check_lib_save_LIBS
10531fi
10532echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10533echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10534if test $ac_cv_lib_dld_shl_load = yes; then
10535  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10536else
10537  echo "$as_me:$LINENO: checking for dlopen" >&5
10538echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10539if test "${ac_cv_func_dlopen+set}" = set; then
10540  echo $ECHO_N "(cached) $ECHO_C" >&6
10541else
10542  cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h.  */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h.  */
10548/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10549   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10550#define dlopen innocuous_dlopen
10551
10552/* System header to define __stub macros and hopefully few prototypes,
10553    which can conflict with char dlopen (); below.
10554    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10555    <limits.h> exists even on freestanding compilers.  */
10556
10557#ifdef __STDC__
10558# include <limits.h>
10559#else
10560# include <assert.h>
10561#endif
10562
10563#undef dlopen
10564
10565/* Override any gcc2 internal prototype to avoid an error.  */
10566#ifdef __cplusplus
10567extern "C"
10568{
10569#endif
10570/* We use char because int might match the return type of a gcc2
10571   builtin and then its argument prototype would still apply.  */
10572char dlopen ();
10573/* The GNU C library defines this for functions which it implements
10574    to always fail with ENOSYS.  Some functions are actually named
10575    something starting with __ and the normal name is an alias.  */
10576#if defined (__stub_dlopen) || defined (__stub___dlopen)
10577choke me
10578#else
10579char (*f) () = dlopen;
10580#endif
10581#ifdef __cplusplus
10582}
10583#endif
10584
10585int
10586main ()
10587{
10588return f != dlopen;
10589  ;
10590  return 0;
10591}
10592_ACEOF
10593rm -f conftest.$ac_objext conftest$ac_exeext
10594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595  (eval $ac_link) 2>conftest.er1
10596  ac_status=$?
10597  grep -v '^ *+' conftest.er1 >conftest.err
10598  rm -f conftest.er1
10599  cat conftest.err >&5
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); } &&
10602         { ac_try='test -z "$ac_c_werror_flag"
10603                         || test ! -s conftest.err'
10604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605  (eval $ac_try) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }; } &&
10609         { ac_try='test -s conftest$ac_exeext'
10610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611  (eval $ac_try) 2>&5
10612  ac_status=$?
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); }; }; then
10615  ac_cv_func_dlopen=yes
10616else
10617  echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620ac_cv_func_dlopen=no
10621fi
10622rm -f conftest.err conftest.$ac_objext \
10623      conftest$ac_exeext conftest.$ac_ext
10624fi
10625echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10626echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10627if test $ac_cv_func_dlopen = yes; then
10628  lt_cv_dlopen="dlopen"
10629else
10630  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10631echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10632if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10633  echo $ECHO_N "(cached) $ECHO_C" >&6
10634else
10635  ac_check_lib_save_LIBS=$LIBS
10636LIBS="-ldl  $LIBS"
10637cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h.  */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h.  */
10643
10644/* Override any gcc2 internal prototype to avoid an error.  */
10645#ifdef __cplusplus
10646extern "C"
10647#endif
10648/* We use char because int might match the return type of a gcc2
10649   builtin and then its argument prototype would still apply.  */
10650char dlopen ();
10651int
10652main ()
10653{
10654dlopen ();
10655  ;
10656  return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext conftest$ac_exeext
10660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661  (eval $ac_link) 2>conftest.er1
10662  ac_status=$?
10663  grep -v '^ *+' conftest.er1 >conftest.err
10664  rm -f conftest.er1
10665  cat conftest.err >&5
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); } &&
10668         { ac_try='test -z "$ac_c_werror_flag"
10669                         || test ! -s conftest.err'
10670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671  (eval $ac_try) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); }; } &&
10675         { ac_try='test -s conftest$ac_exeext'
10676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677  (eval $ac_try) 2>&5
10678  ac_status=$?
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); }; }; then
10681  ac_cv_lib_dl_dlopen=yes
10682else
10683  echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
10686ac_cv_lib_dl_dlopen=no
10687fi
10688rm -f conftest.err conftest.$ac_objext \
10689      conftest$ac_exeext conftest.$ac_ext
10690LIBS=$ac_check_lib_save_LIBS
10691fi
10692echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10693echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10694if test $ac_cv_lib_dl_dlopen = yes; then
10695  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10696else
10697  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10698echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10699if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10700  echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702  ac_check_lib_save_LIBS=$LIBS
10703LIBS="-lsvld  $LIBS"
10704cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h.  */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h.  */
10710
10711/* Override any gcc2 internal prototype to avoid an error.  */
10712#ifdef __cplusplus
10713extern "C"
10714#endif
10715/* We use char because int might match the return type of a gcc2
10716   builtin and then its argument prototype would still apply.  */
10717char dlopen ();
10718int
10719main ()
10720{