source: stable/1.16/Clp/configure @ 2178

Last change on this file since 2178 was 2178, checked in by tkr, 4 years ago

temporarily committing release candidate

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