source: branches/devel/Cbc/configure @ 608

Last change on this file since 608 was 592, checked in by lou, 13 years ago

Configuration and makefile changes for cbc-generic.

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