source: trunk/Cbc/configure @ 1497

Last change on this file since 1497 was 1497, checked in by stefan, 9 years ago

rerun autotools

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