source: releases/1.1.2/Cbc/configure @ 1995

Last change on this file since 1995 was 791, checked in by forrest, 12 years ago

temporarily committing release candidate to stable

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