source: releases/2.0.0/Cbc/configure @ 939

Last change on this file since 939 was 829, checked in by ladanyi, 14 years ago

temporarily committing release candidate to stable

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