source: stable/1.15/Clp/configure

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