source: trunk/Clp/configure @ 1995

Last change on this file since 1995 was 1984, checked in by tkr, 6 years ago

Re-running the autotools

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