source: stable/1.15/Clp/configure @ 2058

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

temporarily committing release candidate

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