source: stable/1.15/Clp/configure @ 2039

Last change on this file since 2039 was 2039, checked in by tkr, 5 years ago

restoring Clp/stable/1.15

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