source: stable/1.1/Cbc/configure @ 605

Last change on this file since 605 was 605, checked in by ladanyi, 12 years ago

committing result of run_autotools

  • Property svn:executable set to *
File size: 775.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 0.1.
4#
5# Report bugs to <coin-cbc@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='0.1'
433PACKAGE_STRING='Cbc 0.1'
434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Cbc 0.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-cbc compile this project (Cbc) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link. Default
1082                          when mentioned: mingw. Default when not mentioned:
1083                          disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1098                          link check at configuration time
1099  --enable-fortmp-libcheck
1100                          use disable-fortmp-libcheck to skip the
1101                          link check at configuration time
1102  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1103                          link check at configuration time
1104  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1105                          check at configuration time
1106  --enable-soplex-libcheck
1107                          use disable-soplex-libcheck to skip the
1108                          link check at configuration time
1109  --enable-xpress-libcheck
1110                          use disable-xpress-libcheck to skip the
1111                          link check at configuration time
1112
1113Optional Packages:
1114  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1115  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1116  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1117  --with-cbc-checklevel specify the sanity check level for project Cbc
1118  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1119  --with-pic              try to use only PIC/non-PIC objects [default=use
1120                          both]
1121  --with-tags[=TAGS]
1122                          include additional configurations [automatic]
1123  --with-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 directory with the header files for library
1127                          Cplex
1128  --with-cplex-lib specify the flags to link with the library Cplex
1129  --with-glpk-incdir specify the directory with the header files for library
1130                          Glpk
1131  --with-glpk-lib specify the flags to link with the library Glpk
1132  --with-fortmp-incdir specify the directory with the header files for library
1133                          FortMP
1134  --with-fortmp-lib specify the flags to link with the library FortMP
1135  --with-mosek-incdir specify the directory with the header files for library
1136                          Mosek
1137  --with-mosek-lib specify the flags to link with the library Mosek
1138  --with-osl-incdir specify the directory with the header files for library
1139                          Osl
1140  --with-osl-lib specify the flags to link with the library Osl
1141  --with-soplex-incdir specify the directory with the header files for library
1142                          Soplex
1143  --with-soplex-lib specify the flags to link with the library Soplex
1144  --with-xpress-incdir specify the directory with the header files for library
1145                          Xpress
1146  --with-xpress-lib specify the flags to link with the library Xpress
1147  --with-asldir           specify path to AMPL solver directory (or BUILD for
1148                          compilation, or "no" for disabling AMPL)
1149
1150Some influential environment variables:
1151  CDEFS       Additional -D flags to be used when compiling C code.
1152  ADD_CFLAGS  Additional C compiler options
1153  DBG_CFLAGS  Debug C compiler options
1154  OPT_CFLAGS  Optimize C compiler options
1155  CC          C compiler command
1156  CFLAGS      C compiler flags
1157  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1158              nonstandard directory <lib dir>
1159  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1160              headers in a nonstandard directory <include dir>
1161  MPICC       C MPI Compiler
1162  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1163  ADD_CXXFLAGS
1164              Additional C++ compiler options
1165  DBG_CXXFLAGS
1166              Debug C++ compiler options
1167  OPT_CXXFLAGS
1168              Optimize C++ compiler options
1169  CXX         C++ compiler command
1170  CXXFLAGS    C++ compiler flags
1171  MPICXX      C++ MPI Compiler
1172  CPP         C preprocessor
1173  CXXCPP      C++ preprocessor
1174  F77         Fortran 77 compiler command
1175  FFLAGS      Fortran 77 compiler flags
1176
1177Use these variables to override the choices made by `configure' or to help
1178it to find libraries and programs with nonstandard names/locations.
1179
1180Report bugs to <coin-cbc@list.coin-or.org>.
1181_ACEOF
1182fi
1183
1184if test "$ac_init_help" = "recursive"; then
1185  # If there are subdirs, report their specific --help.
1186  ac_popdir=`pwd`
1187  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1188    test -d $ac_dir || continue
1189    ac_builddir=.
1190
1191if test "$ac_dir" != .; then
1192  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1193  # A "../" for each directory in $ac_dir_suffix.
1194  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1195else
1196  ac_dir_suffix= ac_top_builddir=
1197fi
1198
1199case $srcdir in
1200  .)  # No --srcdir option.  We are building in place.
1201    ac_srcdir=.
1202    if test -z "$ac_top_builddir"; then
1203       ac_top_srcdir=.
1204    else
1205       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1206    fi ;;
1207  [\\/]* | ?:[\\/]* )  # Absolute path.
1208    ac_srcdir=$srcdir$ac_dir_suffix;
1209    ac_top_srcdir=$srcdir ;;
1210  *) # Relative path.
1211    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1212    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1213esac
1214
1215# Do not use `cd foo && pwd` to compute absolute paths, because
1216# the directories may not exist.
1217case `pwd` in
1218.) ac_abs_builddir="$ac_dir";;
1219*)
1220  case "$ac_dir" in
1221  .) ac_abs_builddir=`pwd`;;
1222  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1223  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1224  esac;;
1225esac
1226case $ac_abs_builddir in
1227.) ac_abs_top_builddir=${ac_top_builddir}.;;
1228*)
1229  case ${ac_top_builddir}. in
1230  .) ac_abs_top_builddir=$ac_abs_builddir;;
1231  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1232  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1233  esac;;
1234esac
1235case $ac_abs_builddir in
1236.) ac_abs_srcdir=$ac_srcdir;;
1237*)
1238  case $ac_srcdir in
1239  .) ac_abs_srcdir=$ac_abs_builddir;;
1240  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1241  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1242  esac;;
1243esac
1244case $ac_abs_builddir in
1245.) ac_abs_top_srcdir=$ac_top_srcdir;;
1246*)
1247  case $ac_top_srcdir in
1248  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1249  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1250  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1251  esac;;
1252esac
1253
1254    cd $ac_dir
1255    # Check for guested configure; otherwise get Cygnus style configure.
1256    if test -f $ac_srcdir/configure.gnu; then
1257      echo
1258      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1259    elif test -f $ac_srcdir/configure; then
1260      echo
1261      $SHELL $ac_srcdir/configure  --help=recursive
1262    elif test -f $ac_srcdir/configure.ac ||
1263           test -f $ac_srcdir/configure.in; then
1264      echo
1265      $ac_configure --help
1266    else
1267      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1268    fi
1269    cd $ac_popdir
1270  done
1271fi
1272
1273test -n "$ac_init_help" && exit 0
1274if $ac_init_version; then
1275  cat <<\_ACEOF
1276Cbc configure 0.1
1277generated by GNU Autoconf 2.59
1278
1279Copyright (C) 2003 Free Software Foundation, Inc.
1280This configure script is free software; the Free Software Foundation
1281gives unlimited permission to copy, distribute and modify it.
1282
1283
1284Copyright 2006 International Business Machines and others.
1285All Rights Reserved.
1286This file is part of the open source package Coin which is distributed
1287under the Common Public License.
1288_ACEOF
1289  exit 0
1290fi
1291exec 5>config.log
1292cat >&5 <<_ACEOF
1293This file contains any messages produced by compilers while
1294running configure, to aid debugging if configure makes a mistake.
1295
1296It was created by Cbc $as_me 0.1, which was
1297generated by GNU Autoconf 2.59.  Invocation command line was
1298
1299  $ $0 $@
1300
1301_ACEOF
1302{
1303cat <<_ASUNAME
1304## --------- ##
1305## Platform. ##
1306## --------- ##
1307
1308hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1309uname -m = `(uname -m) 2>/dev/null || echo unknown`
1310uname -r = `(uname -r) 2>/dev/null || echo unknown`
1311uname -s = `(uname -s) 2>/dev/null || echo unknown`
1312uname -v = `(uname -v) 2>/dev/null || echo unknown`
1313
1314/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1315/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1316
1317/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1318/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1319/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1320hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1321/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1322/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1323/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1324
1325_ASUNAME
1326
1327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328for as_dir in $PATH
1329do
1330  IFS=$as_save_IFS
1331  test -z "$as_dir" && as_dir=.
1332  echo "PATH: $as_dir"
1333done
1334
1335} >&5
1336
1337cat >&5 <<_ACEOF
1338
1339
1340## ----------- ##
1341## Core tests. ##
1342## ----------- ##
1343
1344_ACEOF
1345
1346
1347# Keep a trace of the command line.
1348# Strip out --no-create and --no-recursion so they do not pile up.
1349# Strip out --silent because we don't want to record it for future runs.
1350# Also quote any args containing shell meta-characters.
1351# Make two passes to allow for proper duplicate-argument suppression.
1352ac_configure_args=
1353ac_configure_args0=
1354ac_configure_args1=
1355ac_sep=
1356ac_must_keep_next=false
1357for ac_pass in 1 2
1358do
1359  for ac_arg
1360  do
1361    case $ac_arg in
1362    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1363    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1364    | -silent | --silent | --silen | --sile | --sil)
1365      continue ;;
1366    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1367      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1368    esac
1369    case $ac_pass in
1370    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1371    2)
1372      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1373      if test $ac_must_keep_next = true; then
1374        ac_must_keep_next=false # Got value, back to normal.
1375      else
1376        case $ac_arg in
1377          *=* | --config-cache | -C | -disable-* | --disable-* \
1378          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1379          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1380          | -with-* | --with-* | -without-* | --without-* | --x)
1381            case "$ac_configure_args0 " in
1382              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1383            esac
1384            ;;
1385          -* ) ac_must_keep_next=true ;;
1386        esac
1387      fi
1388      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1389      # Get rid of the leading space.
1390      ac_sep=" "
1391      ;;
1392    esac
1393  done
1394done
1395$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1396$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1397
1398# When interrupted or exit'd, cleanup temporary files, and complete
1399# config.log.  We remove comments because anyway the quotes in there
1400# would cause problems or look ugly.
1401# WARNING: Be sure not to use single quotes in there, as some shells,
1402# such as our DU 5.0 friend, will then `close' the trap.
1403trap 'exit_status=$?
1404  # Save into config.log some information that might help in debugging.
1405  {
1406    echo
1407
1408    cat <<\_ASBOX
1409## ---------------- ##
1410## Cache variables. ##
1411## ---------------- ##
1412_ASBOX
1413    echo
1414    # The following way of writing the cache mishandles newlines in values,
1415{
1416  (set) 2>&1 |
1417    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1418    *ac_space=\ *)
1419      sed -n \
1420        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1421          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1422      ;;
1423    *)
1424      sed -n \
1425        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1426      ;;
1427    esac;
1428}
1429    echo
1430
1431    cat <<\_ASBOX
1432## ----------------- ##
1433## Output variables. ##
1434## ----------------- ##
1435_ASBOX
1436    echo
1437    for ac_var in $ac_subst_vars
1438    do
1439      eval ac_val=$`echo $ac_var`
1440      echo "$ac_var='"'"'$ac_val'"'"'"
1441    done | sort
1442    echo
1443
1444    if test -n "$ac_subst_files"; then
1445      cat <<\_ASBOX
1446## ------------- ##
1447## Output files. ##
1448## ------------- ##
1449_ASBOX
1450      echo
1451      for ac_var in $ac_subst_files
1452      do
1453        eval ac_val=$`echo $ac_var`
1454        echo "$ac_var='"'"'$ac_val'"'"'"
1455      done | sort
1456      echo
1457    fi
1458
1459    if test -s confdefs.h; then
1460      cat <<\_ASBOX
1461## ----------- ##
1462## confdefs.h. ##
1463## ----------- ##
1464_ASBOX
1465      echo
1466      sed "/^$/d" confdefs.h | sort
1467      echo
1468    fi
1469    test "$ac_signal" != 0 &&
1470      echo "$as_me: caught signal $ac_signal"
1471    echo "$as_me: exit $exit_status"
1472  } >&5
1473  rm -f core *.core &&
1474  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1475    exit $exit_status
1476     ' 0
1477for ac_signal in 1 2 13 15; do
1478  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1479done
1480ac_signal=0
1481
1482# confdefs.h avoids OS command line length limits that DEFS can exceed.
1483rm -rf conftest* confdefs.h
1484# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1485echo >confdefs.h
1486
1487# Predefined preprocessor variables.
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_NAME "$PACKAGE_NAME"
1491_ACEOF
1492
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define PACKAGE_VERSION "$PACKAGE_VERSION"
1501_ACEOF
1502
1503
1504cat >>confdefs.h <<_ACEOF
1505#define PACKAGE_STRING "$PACKAGE_STRING"
1506_ACEOF
1507
1508
1509cat >>confdefs.h <<_ACEOF
1510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1511_ACEOF
1512
1513
1514# Let the site file select an alternate cache file if it wants to.
1515# Prefer explicitly selected file to automatically selected ones.
1516if test -z "$CONFIG_SITE"; then
1517  if test "x$prefix" != xNONE; then
1518    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1519  else
1520    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1521  fi
1522fi
1523for ac_site_file in $CONFIG_SITE; do
1524  if test -r "$ac_site_file"; then
1525    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1526echo "$as_me: loading site script $ac_site_file" >&6;}
1527    sed 's/^/| /' "$ac_site_file" >&5
1528    . "$ac_site_file"
1529  fi
1530done
1531
1532if test -r "$cache_file"; then
1533  # Some versions of bash will fail to source /dev/null (special
1534  # files actually), so we avoid doing that.
1535  if test -f "$cache_file"; then
1536    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1537echo "$as_me: loading cache $cache_file" >&6;}
1538    case $cache_file in
1539      [\\/]* | ?:[\\/]* ) . $cache_file;;
1540      *)                      . ./$cache_file;;
1541    esac
1542  fi
1543else
1544  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1545echo "$as_me: creating cache $cache_file" >&6;}
1546  >$cache_file
1547fi
1548
1549# Check that the precious variables saved in the cache have kept the same
1550# value.
1551ac_cache_corrupted=false
1552for ac_var in `(set) 2>&1 |
1553               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1554  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1555  eval ac_new_set=\$ac_env_${ac_var}_set
1556  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1557  eval ac_new_val="\$ac_env_${ac_var}_value"
1558  case $ac_old_set,$ac_new_set in
1559    set,)
1560      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1561echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1562      ac_cache_corrupted=: ;;
1563    ,set)
1564      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1565echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1566      ac_cache_corrupted=: ;;
1567    ,);;
1568    *)
1569      if test "x$ac_old_val" != "x$ac_new_val"; then
1570        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1571echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1572        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1573echo "$as_me:   former value:  $ac_old_val" >&2;}
1574        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1575echo "$as_me:   current value: $ac_new_val" >&2;}
1576        ac_cache_corrupted=:
1577      fi;;
1578  esac
1579  # Pass precious variables to config.status.
1580  if test "$ac_new_set" = set; then
1581    case $ac_new_val in
1582    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1583      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1584    *) ac_arg=$ac_var=$ac_new_val ;;
1585    esac
1586    case " $ac_configure_args " in
1587      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1588      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1589    esac
1590  fi
1591done
1592if $ac_cache_corrupted; then
1593  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1594echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1595  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1596echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1597   { (exit 1); exit 1; }; }
1598fi
1599
1600ac_ext=c
1601ac_cpp='$CPP $CPPFLAGS'
1602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635# List one file in the package so that the configure script can test
1636# whether the package is actually there
1637
1638
1639# Where should everything be installed by default?  Here, we want it
1640# to be installed directly in 'bin', 'lib', 'include' subdirectories
1641# of the directory where configure is run.  The default would be
1642# /usr/local.
1643
1644
1645#############################################################################
1646#                         Standard build tool stuff                         #
1647#############################################################################
1648
1649# Get the system type
1650ac_aux_dir=
1651for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1652  if test -f $ac_dir/install-sh; then
1653    ac_aux_dir=$ac_dir
1654    ac_install_sh="$ac_aux_dir/install-sh -c"
1655    break
1656  elif test -f $ac_dir/install.sh; then
1657    ac_aux_dir=$ac_dir
1658    ac_install_sh="$ac_aux_dir/install.sh -c"
1659    break
1660  elif test -f $ac_dir/shtool; then
1661    ac_aux_dir=$ac_dir
1662    ac_install_sh="$ac_aux_dir/shtool install -c"
1663    break
1664  fi
1665done
1666if test -z "$ac_aux_dir"; then
1667  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1668echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1669   { (exit 1); exit 1; }; }
1670fi
1671ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1672ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1673ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1674
1675# Make sure we can run config.sub.
1676$ac_config_sub sun4 >/dev/null 2>&1 ||
1677  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1678echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1679   { (exit 1); exit 1; }; }
1680
1681echo "$as_me:$LINENO: checking build system type" >&5
1682echo $ECHO_N "checking build system type... $ECHO_C" >&6
1683if test "${ac_cv_build+set}" = set; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  ac_cv_build_alias=$build_alias
1687test -z "$ac_cv_build_alias" &&
1688  ac_cv_build_alias=`$ac_config_guess`
1689test -z "$ac_cv_build_alias" &&
1690  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1691echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1692   { (exit 1); exit 1; }; }
1693ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1694  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1695echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1696   { (exit 1); exit 1; }; }
1697
1698fi
1699echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1700echo "${ECHO_T}$ac_cv_build" >&6
1701build=$ac_cv_build
1702build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705
1706
1707
1708# If this project depends on external projects, the Externals file in
1709# the source root directory contains definition of where to find those
1710# externals.  The following macro ensures that those externals are
1711# retrieved by svn if they are not there yet.
1712# Initialize the ADDLIBS variable
1713ADDLIBS="-lm $LIBS"
1714
1715
1716# Initialize the FADDLIBS variable (which is to be used with a fortran
1717# compiler and will not include FLIBS)
1718FADDLIBS="$LIBS"
1719
1720
1721# A useful makefile conditional that is always false
1722
1723
1724if false; then
1725  ALWAYS_FALSE_TRUE=
1726  ALWAYS_FALSE_FALSE='#'
1727else
1728  ALWAYS_FALSE_TRUE='#'
1729  ALWAYS_FALSE_FALSE=
1730fi
1731
1732
1733# We set the following variable so that we know later in AC_COIN_FINALIZE
1734# that we are in a project main directory
1735coin_projectdir=yes
1736
1737
1738# Check if user wants to produce debugging code
1739
1740echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1741echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1742
1743# Check whether --enable-debug or --disable-debug was given.
1744if test "${enable_debug+set}" = set; then
1745  enableval="$enable_debug"
1746  case "${enableval}" in
1747   yes) coin_debug_compile=true
1748        enable_shared=no
1749        ;;
1750   no)  coin_debug_compile=false
1751        ;;
1752   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1753echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1754   { (exit 1); exit 1; }; }
1755        ;;
1756esac
1757else
1758  coin_debug_compile=false
1759fi;
1760
1761# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1762if test "${enable_debug_cbc+set}" = set; then
1763  enableval="$enable_debug_cbc"
1764  case "${enableval}" in
1765    yes) coin_debug_compile=true
1766         enable_shared=no
1767         ;;
1768    no)  coin_debug_compile=false
1769         ;;
1770    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1771echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1772   { (exit 1); exit 1; }; }
1773         ;;
1774 esac
1775else
1776  :
1777fi;
1778
1779 # m4_ifvaln([Cbc],
1780
1781if test $coin_debug_compile = true; then
1782  echo "$as_me:$LINENO: result: yes" >&5
1783echo "${ECHO_T}yes" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789
1790# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1791if test "${with_cbc_verbosity+set}" = set; then
1792  withval="$with_cbc_verbosity"
1793  if test "$withval" = yes; then
1794                withval=1
1795              fi
1796              coin_cbc_verbosity=$withval
1797else
1798  coin_cbc_verbosity=0
1799fi;
1800
1801cat >>confdefs.h <<_ACEOF
1802#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1803_ACEOF
1804
1805
1806
1807# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1808if test "${with_cbc_checklevel+set}" = set; then
1809  withval="$with_cbc_checklevel"
1810  if test "$withval" = yes; then
1811                withval=1
1812              fi
1813              coin_cbc_checklevel=$withval
1814else
1815  coin_cbc_checklevel=0
1816fi;
1817
1818cat >>confdefs.h <<_ACEOF
1819#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1820_ACEOF
1821
1822
1823# We use the following variable to have a string with the upper case
1824# version of the project name
1825COIN_PRJCT=CBC
1826
1827
1828 # m4_ifvaln([Cbc],
1829
1830
1831
1832# Get the name of the C++ compiler and appropriate compiler options
1833case $build in
1834  *-mingw*)
1835    if test "${LD+set}" = set; then :; else
1836      LD=link
1837    fi
1838    ;;
1839 esac
1840 case $enable_doscompile in
1841   msvc)
1842     if test "x${LD+set}" = xset; then :; else
1843       LD=link
1844     fi
1845     ;;
1846 esac
1847
1848
1849 # Check whether --enable-doscompile or --disable-doscompile was given.
1850if test "${enable_doscompile+set}" = set; then
1851  enableval="$enable_doscompile"
1852  if test "$enable_doscompile" != no; then
1853     case $build in
1854       *-cygwin*) ;;
1855       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1856echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1857   { (exit 1); exit 1; }; } ;;
1858     esac
1859   fi
1860else
1861  enable_doscompile=no
1862fi;
1863 case "$enable_doscompile" in
1864   msvc|mingw|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'
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"
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# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3477case "$CXX" in
3478  cl* | */cl* | CL* | */CL* )
3479    if test "$ac_cv_prog_cxx_g" = yes ; then
3480      ac_cv_prog_cxx_g=no
3481      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3482echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3483    fi ;;
3484esac
3485CXXFLAGS="$save_cxxflags"
3486
3487# Check if a project specific CXXFLAGS variable has been set
3488if test x$COIN_PRJCT != x; then
3489  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3490  if test x$coin_tmp = xset; then
3491    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3492  fi
3493fi
3494
3495if test x"$CXXFLAGS" = x; then
3496
3497# ToDo decide whether we want -DNDEBUG for optimization
3498  coin_add_cxxflags=
3499  coin_opt_cxxflags=
3500  coin_dbg_cxxflags=
3501  coin_warn_cxxflags=
3502
3503  if test "$GXX" = "yes"; then
3504    case "$CXX" in
3505      icpc* | */icpc*)
3506        ;;
3507      *)
3508# ToDo decide about unroll-loops
3509        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3510        coin_add_cxxflags="-pipe"
3511        coin_dbg_cxxflags="-g"
3512        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3513        case $enable_doscompile in
3514          mingw)
3515            CXXFLAGS="-mno-cygwin"
3516            cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h.  */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h.  */
3522
3523int
3524main ()
3525{
3526int i=0; i++;
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext conftest$ac_exeext
3532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3533  (eval $ac_link) 2>conftest.er1
3534  ac_status=$?
3535  grep -v '^ *+' conftest.er1 >conftest.err
3536  rm -f conftest.er1
3537  cat conftest.err >&5
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); } &&
3540         { ac_try='test -z "$ac_cxx_werror_flag"
3541                         || test ! -s conftest.err'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; } &&
3547         { ac_try='test -s conftest$ac_exeext'
3548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549  (eval $ac_try) 2>&5
3550  ac_status=$?
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); }; }; then
3553  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558fi
3559rm -f conftest.err conftest.$ac_objext \
3560      conftest$ac_exeext conftest.$ac_ext
3561            CXXFLAGS=
3562            ;;
3563        esac
3564    esac
3565  fi
3566
3567# Note that we do not need to cover GCC in the following tests.
3568
3569  if test -z "$coin_opt_cxxflags"; then
3570    case $build in
3571      *-cygwin* | *-mingw*)
3572        case "$CXX" in
3573          cl* | */cl* | CL* | */CL*)
3574            # The MT and MTd options are mutually exclusive
3575            coin_opt_cxxflags='-MT -O2'
3576            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
3577            coin_dbg_cxxflags='-MTd'
3578            ;;
3579        esac
3580        ;;
3581      *-linux-*)
3582        case "$CXX" in
3583          icpc* | */icpc*)
3584            coin_opt_cxxflags="-O3 -ip"
3585            coin_add_cxxflags=""
3586            coin_dbg_cxxflags="-g"
3587            # Check if -i_dynamic is necessary (for new glibc library)
3588            CXXFLAGS=
3589            cat >conftest.$ac_ext <<_ACEOF
3590/* confdefs.h.  */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h.  */
3595
3596int
3597main ()
3598{
3599int i=0; i++;
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext conftest$ac_exeext
3605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3606  (eval $ac_link) 2>conftest.er1
3607  ac_status=$?
3608  grep -v '^ *+' conftest.er1 >conftest.err
3609  rm -f conftest.er1
3610  cat conftest.err >&5
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); } &&
3613         { ac_try='test -z "$ac_cxx_werror_flag"
3614                         || test ! -s conftest.err'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; } &&
3620         { ac_try='test -s conftest$ac_exeext'
3621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622  (eval $ac_try) 2>&5
3623  ac_status=$?
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); }; }; then
3626  :
3627else
3628  echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3632fi
3633rm -f conftest.err conftest.$ac_objext \
3634      conftest$ac_exeext conftest.$ac_ext
3635            ;;
3636          pgCC* | */pgCC*)
3637            coin_opt_cxxflags="-fast"
3638            coin_add_cxxflags="-Kieee -pc 64"
3639            coin_dbg_cxxflags="-g"
3640            ;;
3641        esac
3642        ;;
3643      *-ibm-*)
3644        case "$CXX" in
3645          xlC* | */xlC* | mpxlC* | */mpxlC*)
3646            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3647            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3648            coin_dbg_cxxflags="-g"
3649            ;;
3650        esac
3651        ;;
3652      *-hp-*)
3653        case "$CXX" in
3654          aCC* | */aCC* )
3655            coin_opt_cxxflags="-O"
3656            coin_add_cxxflags="-AA"
3657            coin_dbg_cxxflags="-g"
3658            ;;
3659        esac
3660        ;;
3661      *-sun-*)
3662          coin_opt_cxxflags="-O4"
3663          coin_dbg_cxxflags="-g"
3664        ;;
3665    esac
3666  fi
3667
3668# Generic flag settings. If these don't work, add a case above.
3669
3670  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3671    coin_dbg_cxxflags="-g"
3672  fi
3673
3674  if test -z "$coin_opt_cxxflags"; then
3675    # Try if -O option works if nothing else is set
3676    CXXFLAGS=-O
3677    cat >conftest.$ac_ext <<_ACEOF
3678/* confdefs.h.  */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
3682/* end confdefs.h.  */
3683
3684int
3685main ()
3686{
3687int i=0; i++;
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext conftest$ac_exeext
3693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3694  (eval $ac_link) 2>conftest.er1
3695  ac_status=$?
3696  grep -v '^ *+' conftest.er1 >conftest.err
3697  rm -f conftest.er1
3698  cat conftest.err >&5
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); } &&
3701         { ac_try='test -z "$ac_cxx_werror_flag"
3702                         || test ! -s conftest.err'
3703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  (eval $ac_try) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; } &&
3708         { ac_try='test -s conftest$ac_exeext'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; }; then
3714  coin_opt_cxxflags="-O"
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719fi
3720rm -f conftest.err conftest.$ac_objext \
3721      conftest$ac_exeext conftest.$ac_ext
3722  fi
3723
3724  # if PM doesn't want the warning messages, take them out
3725  if test x"$coin_skip_warn_cxxflags" = xyes; then
3726    coin_warn_cxxflags=
3727  fi
3728
3729# Do final setup of flags based on values determined above.
3730
3731  if test x${DBG_CXXFLAGS+set} != xset; then
3732    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3733  fi
3734  if test x${OPT_CXXFLAGS+set} != xset; then
3735    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3736  fi
3737
3738  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3739  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3740
3741  if test "$coin_debug_compile" = "true"; then
3742    CXXFLAGS="$DBG_CXXFLAGS"
3743  else
3744    CXXFLAGS="$OPT_CXXFLAGS"
3745  fi
3746
3747# Handle the case where CXXFLAGS was set externally.
3748else
3749  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3750  if test x${DBG_CXXFLAGS+set} != xset; then
3751    DBG_CXXFLAGS="$CXXFLAGS"
3752  fi
3753  if test x${OPT_CXXFLAGS+set} != xset; then
3754    OPT_CXXFLAGS="$CXXFLAGS"
3755  fi
3756fi
3757
3758# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3759
3760case "$CXXFLAGS" in
3761  *-mno-cygwin*)
3762    if test x${CPPFLAGS+set} != xset ; then
3763      CPPFLAGS="-mno-cygwin"
3764    else
3765      case "$CPPFLAGS" in
3766        *-mno-cygwin*)
3767          ;;
3768        *)
3769          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3770          ;;
3771      esac
3772    fi ;;
3773esac
3774
3775# Try if CXXFLAGS works
3776save_CXXFLAGS="$CXXFLAGS"
3777cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h.  */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h.  */
3783
3784int
3785main ()
3786{
3787int i=0; i++;
3788  ;
3789  return 0;
3790}
3791_ACEOF
3792rm -f conftest.$ac_objext conftest$ac_exeext
3793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794  (eval $ac_link) 2>conftest.er1
3795  ac_status=$?
3796  grep -v '^ *+' conftest.er1 >conftest.err
3797  rm -f conftest.er1
3798  cat conftest.err >&5
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); } &&
3801         { ac_try='test -z "$ac_cxx_werror_flag"
3802                         || test ! -s conftest.err'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; } &&
3808         { ac_try='test -s conftest$ac_exeext'
3809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810  (eval $ac_try) 2>&5
3811  ac_status=$?
3812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813  (exit $ac_status); }; }; then
3814  :
3815else
3816  echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819CXXFLAGS=
3820fi
3821rm -f conftest.err conftest.$ac_objext \
3822      conftest$ac_exeext conftest.$ac_ext
3823if test -z "$CXXFLAGS"; then
3824  { 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
3825echo "$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;}
3826  CXXFLAGS='-O'
3827  cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h.  */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h.  */
3833
3834int
3835main ()
3836{
3837int i=0; i++;
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844  (eval $ac_link) 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } &&
3851         { ac_try='test -z "$ac_cxx_werror_flag"
3852                         || test ! -s conftest.err'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; } &&
3858         { ac_try='test -s conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  :
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869CXXFLAGS=
3870fi
3871rm -f conftest.err conftest.$ac_objext \
3872      conftest$ac_exeext conftest.$ac_ext
3873  if test -z "$CXXFLAGS"; then
3874    { 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
3875echo "$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;}
3876  fi
3877fi
3878
3879{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3880echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3881
3882
3883if test x"$MPICXX" = x; then :; else
3884  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3885echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3886  CXX="$MPICXX"
3887fi
3888
3889case "$CXX" in
3890  cl* | */cl* | CL* | */CL* )
3891    case $build in
3892  *-mingw*)
3893    if test "${LD+set}" = set; then :; else
3894      LD=link
3895    fi
3896    ;;
3897 esac
3898 case $enable_doscompile in
3899   msvc)
3900     if test "x${LD+set}" = xset; then :; else
3901       LD=link
3902     fi
3903     ;;
3904 esac
3905
3906    ;;
3907esac
3908
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
3916
3917# Initialize automake and libtool
3918{
3919
3920
3921
3922# START
3923
3924# On Cygwin, building DLLs doesn't work
3925case $build in
3926  *-cygwin*)
3927    coin_disable_shared=yes
3928    platform=Cygwin
3929  ;;
3930  *-mingw*)
3931    coin_disable_shared=yes
3932    platform="Msys"
3933#    case "$CXX" in
3934#      cl*)
3935#        coin_disable_shared=yes
3936#        platform="Msys with cl"
3937#    ;;
3938#    esac
3939  ;;
3940esac
3941if test x"$coin_disable_shared" = xyes; then
3942  if test x"$enable_shared" = xyes; then
3943    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3944echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3945  fi
3946  enable_shared=no
3947fi
3948# By default, we only want the shared objects to be compiled
3949# Check whether --enable-static or --disable-static was given.
3950if test "${enable_static+set}" = set; then
3951  enableval="$enable_static"
3952  p=${PACKAGE-default}
3953    case $enableval in
3954    yes) enable_static=yes ;;
3955    no) enable_static=no ;;
3956    *)
3957     enable_static=no
3958      # Look at the argument we got.  We use all the common list separators.
3959      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3960      for pkg in $enableval; do
3961        IFS="$lt_save_ifs"
3962        if test "X$pkg" = "X$p"; then
3963          enable_static=yes
3964        fi
3965      done
3966      IFS="$lt_save_ifs"
3967      ;;
3968    esac
3969else
3970  enable_static=no
3971fi;
3972
3973
3974
3975
3976# Initialize automake
3977echo "$as_me:$LINENO: checking for egrep" >&5
3978echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3979if test "${ac_cv_prog_egrep+set}" = set; then
3980  echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3983    then ac_cv_prog_egrep='grep -E'
3984    else ac_cv_prog_egrep='egrep'
3985    fi
3986fi
3987echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3988echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3989 EGREP=$ac_cv_prog_egrep
3990
3991
3992am__api_version="1.9"
3993# Find a good install program.  We prefer a C program (faster),
3994# so one script is as good as another.  But avoid the broken or
3995# incompatible versions:
3996# SysV /etc/install, /usr/sbin/install
3997# SunOS /usr/etc/install
3998# IRIX /sbin/install
3999# AIX /bin/install
4000# AmigaOS /C/install, which installs bootblocks on floppy discs
4001# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4002# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4003# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4004# OS/2's system install, which has a completely different semantic
4005# ./install, which can be erroneously created by make from ./install.sh.
4006echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4007echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4008if test -z "$INSTALL"; then
4009if test "${ac_cv_path_install+set}" = set; then
4010  echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017  # Account for people who put trailing slashes in PATH elements.
4018case $as_dir/ in
4019  ./ | .// | /cC/* | \
4020  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4021  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4022  /usr/ucb/* ) ;;
4023  *)
4024    # OSF1 and SCO ODT 3.0 have their own names for install.
4025    # Don't use installbsd from OSF since it installs stuff as root
4026    # by default.
4027    for ac_prog in ginstall scoinst install; do
4028      for ac_exec_ext in '' $ac_executable_extensions; do
4029        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4030          if test $ac_prog = install &&
4031            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4032            # AIX install.  It has an incompatible calling convention.
4033            :
4034          elif test $ac_prog = install &&
4035            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4036            # program-specific install script used by HP pwplus--don't use.
4037            :
4038          else
4039            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4040            break 3
4041          fi
4042        fi
4043      done
4044    done
4045    ;;
4046esac
4047done
4048
4049
4050fi
4051  if test "${ac_cv_path_install+set}" = set; then
4052    INSTALL=$ac_cv_path_install
4053  else
4054    # As a last resort, use the slow shell script.  We don't cache a
4055    # path for INSTALL within a source directory, because that will
4056    # break other packages using the cache if that directory is
4057    # removed, or if the path is relative.
4058    INSTALL=$ac_install_sh
4059  fi
4060fi
4061echo "$as_me:$LINENO: result: $INSTALL" >&5
4062echo "${ECHO_T}$INSTALL" >&6
4063
4064# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4065# It thinks the first close brace ends the variable substitution.
4066test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4067
4068test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4069
4070test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4071
4072echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4073echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4074# Just in case
4075sleep 1
4076echo timestamp > conftest.file
4077# Do `set' in a subshell so we don't clobber the current shell's
4078# arguments.  Must try -L first in case configure is actually a
4079# symlink; some systems play weird games with the mod time of symlinks
4080# (eg FreeBSD returns the mod time of the symlink's containing
4081# directory).
4082if (
4083   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4084   if test "$*" = "X"; then
4085      # -L didn't work.
4086      set X `ls -t $srcdir/configure conftest.file`
4087   fi
4088   rm -f conftest.file
4089   if test "$*" != "X $srcdir/configure conftest.file" \
4090      && test "$*" != "X conftest.file $srcdir/configure"; then
4091
4092      # If neither matched, then we have a broken ls.  This can happen
4093      # if, for instance, CONFIG_SHELL is bash and it inherits a
4094      # broken ls alias from the environment.  This has actually
4095      # happened.  Such a system could not be considered "sane".
4096      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4097alias in your environment" >&5
4098echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4099alias in your environment" >&2;}
4100   { (exit 1); exit 1; }; }
4101   fi
4102
4103   test "$2" = conftest.file
4104   )
4105then
4106   # Ok.
4107   :
4108else
4109   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4110Check your system clock" >&5
4111echo "$as_me: error: newly created file is older than distributed files!
4112Check your system clock" >&2;}
4113   { (exit 1); exit 1; }; }
4114fi
4115echo "$as_me:$LINENO: result: yes" >&5
4116echo "${ECHO_T}yes" >&6
4117test "$program_prefix" != NONE &&
4118  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4119# Use a double $ so make ignores it.
4120test "$program_suffix" != NONE &&
4121  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4122# Double any \ or $.  echo might interpret backslashes.
4123# By default was `s,x,x', remove it if useless.
4124cat <<\_ACEOF >conftest.sed
4125s/[\\$]/&&/g;s/;s,x,x,$//
4126_ACEOF
4127program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4128rm conftest.sed
4129
4130# expand $ac_aux_dir to an absolute path
4131am_aux_dir=`cd $ac_aux_dir && pwd`
4132
4133test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4134# Use eval to expand $SHELL
4135if eval "$MISSING --run true"; then
4136  am_missing_run="$MISSING --run "
4137else
4138  am_missing_run=
4139  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4140echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4141fi
4142
4143if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4144  # We used to keeping the `.' as first argument, in order to
4145  # allow $(mkdir_p) to be used without argument.  As in
4146  #   $(mkdir_p) $(somedir)
4147  # where $(somedir) is conditionally defined.  However this is wrong
4148  # for two reasons:
4149  #  1. if the package is installed by a user who cannot write `.'
4150  #     make install will fail,
4151  #  2. the above comment should most certainly read
4152  #     $(mkdir_p) $(DESTDIR)$(somedir)
4153  #     so it does not work when $(somedir) is undefined and
4154  #     $(DESTDIR) is not.
4155  #  To support the latter case, we have to write
4156  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4157  #  so the `.' trick is pointless.
4158  mkdir_p='mkdir -p --'
4159else
4160  # On NextStep and OpenStep, the `mkdir' command does not
4161  # recognize any option.  It will interpret all options as
4162  # directories to create, and then abort because `.' already
4163  # exists.
4164  for d in ./-p ./--version;
4165  do
4166    test -d $d && rmdir $d
4167  done
4168  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4169  if test -f "$ac_aux_dir/mkinstalldirs"; then
4170    mkdir_p='$(mkinstalldirs)'
4171  else
4172    mkdir_p='$(install_sh) -d'
4173  fi
4174fi
4175
4176for ac_prog in gawk mawk nawk awk
4177do
4178  # Extract the first word of "$ac_prog", so it can be a program name with args.
4179set dummy $ac_prog; ac_word=$2
4180echo "$as_me:$LINENO: checking for $ac_word" >&5
4181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182if test "${ac_cv_prog_AWK+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185  if test -n "$AWK"; then
4186  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193  for ac_exec_ext in '' $ac_executable_extensions; do
4194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195    ac_cv_prog_AWK="$ac_prog"
4196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197    break 2
4198  fi
4199done
4200done
4201
4202fi
4203fi
4204AWK=$ac_cv_prog_AWK
4205if test -n "$AWK"; then
4206  echo "$as_me:$LINENO: result: $AWK" >&5
4207echo "${ECHO_T}$AWK" >&6
4208else
4209  echo "$as_me:$LINENO: result: no" >&5
4210echo "${ECHO_T}no" >&6
4211fi
4212
4213  test -n "$AWK" && break
4214done
4215
4216echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4217echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4218set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4219if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4220  echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222  cat >conftest.make <<\_ACEOF
4223all:
4224        @echo 'ac_maketemp="$(MAKE)"'
4225_ACEOF
4226# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4227eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4228if test -n "$ac_maketemp"; then
4229  eval ac_cv_prog_make_${ac_make}_set=yes
4230else
4231  eval ac_cv_prog_make_${ac_make}_set=no
4232fi
4233rm -f conftest.make
4234fi
4235if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4236  echo "$as_me:$LINENO: result: yes" >&5
4237echo "${ECHO_T}yes" >&6
4238  SET_MAKE=
4239else
4240  echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
4242  SET_MAKE="MAKE=${MAKE-make}"
4243fi
4244
4245rm -rf .tst 2>/dev/null
4246mkdir .tst 2>/dev/null
4247if test -d .tst; then
4248  am__leading_dot=.
4249else
4250  am__leading_dot=_
4251fi
4252rmdir .tst 2>/dev/null
4253
4254DEPDIR="${am__leading_dot}deps"
4255
4256          ac_config_commands="$ac_config_commands depfiles"
4257
4258
4259am_make=${MAKE-make}
4260cat > confinc << 'END'
4261am__doit:
4262        @echo done
4263.PHONY: am__doit
4264END
4265# If we don't find an include directive, just comment out the code.
4266echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4267echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4268am__include="#"
4269am__quote=
4270_am_result=none
4271# First try GNU make style include.
4272echo "include confinc" > confmf
4273# We grep out `Entering directory' and `Leaving directory'
4274# messages which can occur if `w' ends up in MAKEFLAGS.
4275# In particular we don't look at `^make:' because GNU make might
4276# be invoked under some other name (usually "gmake"), in which
4277# case it prints its new name instead of `make'.
4278if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4279   am__include=include
4280   am__quote=
4281   _am_result=GNU
4282fi
4283# Now try BSD make style include.
4284if test "$am__include" = "#"; then
4285   echo '.include "confinc"' > confmf
4286   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4287      am__include=.include
4288      am__quote="\""
4289      _am_result=BSD
4290   fi
4291fi
4292
4293
4294echo "$as_me:$LINENO: result: $_am_result" >&5
4295echo "${ECHO_T}$_am_result" >&6
4296rm -f confinc confmf
4297
4298# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4299if test "${enable_dependency_tracking+set}" = set; then
4300  enableval="$enable_dependency_tracking"
4301
4302fi;
4303if test "x$enable_dependency_tracking" != xno; then
4304  am_depcomp="$ac_aux_dir/depcomp"
4305  AMDEPBACKSLASH='\'
4306fi
4307
4308
4309if test "x$enable_dependency_tracking" != xno; then
4310  AMDEP_TRUE=
4311  AMDEP_FALSE='#'
4312else
4313  AMDEP_TRUE='#'
4314  AMDEP_FALSE=
4315fi
4316
4317
4318
4319
4320
4321# AC_MSG_NOTICE([Beginning automake initialisation.])
4322# Stuff for automake
4323# test to see if srcdir already configured
4324if test "`cd $srcdir && pwd`" != "`pwd`" &&
4325   test -f $srcdir/config.status; then
4326  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4327echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4328   { (exit 1); exit 1; }; }
4329fi
4330
4331# test whether we have cygpath
4332if test -z "$CYGPATH_W"; then
4333  if (cygpath --version) >/dev/null 2>/dev/null; then
4334    CYGPATH_W='cygpath -w'
4335  else
4336    CYGPATH_W=echo
4337  fi
4338fi
4339
4340
4341# Define the identity of the package.
4342 PACKAGE='cbc'
4343 VERSION='0.1'
4344
4345
4346cat >>confdefs.h <<_ACEOF
4347#define PACKAGE "$PACKAGE"
4348_ACEOF
4349
4350
4351cat >>confdefs.h <<_ACEOF
4352#define VERSION "$VERSION"
4353_ACEOF
4354
4355# Some tools Automake needs.
4356
4357ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4358
4359
4360AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4361
4362
4363AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4364
4365
4366AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4367
4368
4369MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4370
4371install_sh=${install_sh-"$am_aux_dir/install-sh"}
4372
4373# Installed binaries are usually stripped using `strip' when the user
4374# run `make install-strip'.  However `strip' might not be the right
4375# tool to use in cross-compilation environments, therefore Automake
4376# will honor the `STRIP' environment variable to overrule this program.
4377if test "$cross_compiling" != no; then
4378  if test -n "$ac_tool_prefix"; then
4379  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4380set dummy ${ac_tool_prefix}strip; ac_word=$2
4381echo "$as_me:$LINENO: checking for $ac_word" >&5
4382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383if test "${ac_cv_prog_STRIP+set}" = set; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  if test -n "$STRIP"; then
4387  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394  for ac_exec_ext in '' $ac_executable_extensions; do
4395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398    break 2
4399  fi
4400done
4401done
4402
4403fi
4404fi
4405STRIP=$ac_cv_prog_STRIP
4406if test -n "$STRIP"; then
4407  echo "$as_me:$LINENO: result: $STRIP" >&5
4408echo "${ECHO_T}$STRIP" >&6
4409else
4410  echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6
4412fi
4413
4414fi
4415if test -z "$ac_cv_prog_STRIP"; then
4416  ac_ct_STRIP=$STRIP
4417  # Extract the first word of "strip", so it can be a program name with args.
4418set dummy strip; ac_word=$2
4419echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  if test -n "$ac_ct_STRIP"; then
4425  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432  for ac_exec_ext in '' $ac_executable_extensions; do
4433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434    ac_cv_prog_ac_ct_STRIP="strip"
4435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436    break 2
4437  fi
4438done
4439done
4440
4441  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4442fi
4443fi
4444ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4445if test -n "$ac_ct_STRIP"; then
4446  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4447echo "${ECHO_T}$ac_ct_STRIP" >&6
4448else
4449  echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6
4451fi
4452
4453  STRIP=$ac_ct_STRIP
4454else
4455  STRIP="$ac_cv_prog_STRIP"
4456fi
4457
4458fi
4459INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4460
4461# We need awk for the "check" target.  The system "awk" is bad on
4462# some platforms.
4463# Always define AMTAR for backward compatibility.
4464
4465AMTAR=${AMTAR-"${am_missing_run}tar"}
4466
4467am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4468
4469
4470
4471
4472depcc="$CC"   am_compiler_list=
4473
4474echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4475echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4476if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4477  echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4480  # We make a subdir and do the tests there.  Otherwise we can end up
4481  # making bogus files that we don't know about and never remove.  For
4482  # instance it was reported that on HP-UX the gcc test will end up
4483  # making a dummy file named `D' -- because `-MD' means `put the output
4484  # in D'.
4485  mkdir conftest.dir
4486  # Copy depcomp to subdir because otherwise we won't find it if we're
4487  # using a relative directory.
4488  cp "$am_depcomp" conftest.dir
4489  cd conftest.dir
4490  # We will build objects and dependencies in a subdirectory because
4491  # it helps to detect inapplicable dependency modes.  For instance
4492  # both Tru64's cc and ICC support -MD to output dependencies as a
4493  # side effect of compilation, but ICC will put the dependencies in
4494  # the current directory while Tru64 will put them in the object
4495  # directory.
4496  mkdir sub
4497
4498  am_cv_CC_dependencies_compiler_type=none
4499  if test "$am_compiler_list" = ""; then
4500     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4501  fi
4502  for depmode in $am_compiler_list; do
4503    # Setup a source with many dependencies, because some compilers
4504    # like to wrap large dependency lists on column 80 (with \), and
4505    # we should not choose a depcomp mode which is confused by this.
4506    #
4507    # We need to recreate these files for each test, as the compiler may
4508    # overwrite some of them when testing with obscure command lines.
4509    # This happens at least with the AIX C compiler.
4510    : > sub/conftest.c
4511    for i in 1 2 3 4 5 6; do
4512      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4513      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4514      # Solaris 8's {/usr,}/bin/sh.
4515      touch sub/conftst$i.h
4516    done
4517    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4518
4519    case $depmode in
4520    nosideeffect)
4521      # after this tag, mechanisms are not by side-effect, so they'll
4522      # only be used when explicitly requested
4523      if test "x$enable_dependency_tracking" = xyes; then
4524        continue
4525      else
4526        break
4527      fi
4528      ;;
4529    none) break ;;
4530    esac
4531    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4532    # mode.  It turns out that the SunPro C++ compiler does not properly
4533    # handle `-M -o', and we need to detect this.
4534    if depmode=$depmode \
4535       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4536       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4538         >/dev/null 2>conftest.err &&
4539       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4540       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4541       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4542      # icc doesn't choke on unknown options, it will just issue warnings
4543      # or remarks (even with -Werror).  So we grep stderr for any message
4544      # that says an option was ignored or not supported.
4545      # When given -MP, icc 7.0 and 7.1 complain thusly:
4546      #   icc: Command line warning: ignoring option '-M'; no argument required
4547      # The diagnosis changed in icc 8.0:
4548      #   icc: Command line remark: option '-MP' not supported
4549      if (grep 'ignoring option' conftest.err ||
4550          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4551        am_cv_CC_dependencies_compiler_type=$depmode
4552        break
4553      fi
4554    fi
4555  done
4556
4557  cd ..
4558  rm -rf conftest.dir
4559else
4560  am_cv_CC_dependencies_compiler_type=none
4561fi
4562
4563fi
4564echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4565echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4566CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4567
4568
4569
4570if
4571  test "x$enable_dependency_tracking" != xno \
4572  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573  am__fastdepCC_TRUE=
4574  am__fastdepCC_FALSE='#'
4575else
4576  am__fastdepCC_TRUE='#'
4577  am__fastdepCC_FALSE=
4578fi
4579
4580
4581depcc="$CXX"  am_compiler_list=
4582
4583echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4584echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4585if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4589  # We make a subdir and do the tests there.  Otherwise we can end up
4590  # making bogus files that we don't know about and never remove.  For
4591  # instance it was reported that on HP-UX the gcc test will end up
4592  # making a dummy file named `D' -- because `-MD' means `put the output
4593  # in D'.
4594  mkdir conftest.dir
4595  # Copy depcomp to subdir because otherwise we won't find it if we're
4596  # using a relative directory.
4597  cp "$am_depcomp" conftest.dir
4598  cd conftest.dir
4599  # We will build objects and dependencies in a subdirectory because
4600  # it helps to detect inapplicable dependency modes.  For instance
4601  # both Tru64's cc and ICC support -MD to output dependencies as a
4602  # side effect of compilation, but ICC will put the dependencies in
4603  # the current directory while Tru64 will put them in the object
4604  # directory.
4605  mkdir sub
4606
4607  am_cv_CXX_dependencies_compiler_type=none
4608  if test "$am_compiler_list" = ""; then
4609     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4610  fi
4611  for depmode in $am_compiler_list; do
4612    # Setup a source with many dependencies, because some compilers
4613    # like to wrap large dependency lists on column 80 (with \), and
4614    # we should not choose a depcomp mode which is confused by this.
4615    #
4616    # We need to recreate these files for each test, as the compiler may
4617    # overwrite some of them when testing with obscure command lines.
4618    # This happens at least with the AIX C compiler.
4619    : > sub/conftest.c
4620    for i in 1 2 3 4 5 6; do
4621      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4622      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4623      # Solaris 8's {/usr,}/bin/sh.
4624      touch sub/conftst$i.h
4625    done
4626    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4627
4628    case $depmode in
4629    nosideeffect)
4630      # after this tag, mechanisms are not by side-effect, so they'll
4631      # only be used when explicitly requested
4632      if test "x$enable_dependency_tracking" = xyes; then
4633        continue
4634      else
4635        break
4636      fi
4637      ;;
4638    none) break ;;
4639    esac
4640    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4641    # mode.  It turns out that the SunPro C++ compiler does not properly
4642    # handle `-M -o', and we need to detect this.
4643    if depmode=$depmode \
4644       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4645       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4646       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4647         >/dev/null 2>conftest.err &&
4648       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4649       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4650       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4651      # icc doesn't choke on unknown options, it will just issue warnings
4652      # or remarks (even with -Werror).  So we grep stderr for any message
4653      # that says an option was ignored or not supported.
4654      # When given -MP, icc 7.0 and 7.1 complain thusly:
4655      #   icc: Command line warning: ignoring option '-M'; no argument required
4656      # The diagnosis changed in icc 8.0:
4657      #   icc: Command line remark: option '-MP' not supported
4658      if (grep 'ignoring option' conftest.err ||
4659          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4660        am_cv_CXX_dependencies_compiler_type=$depmode
4661        break
4662      fi
4663    fi
4664  done
4665
4666  cd ..
4667  rm -rf conftest.dir
4668else
4669  am_cv_CXX_dependencies_compiler_type=none
4670fi
4671
4672fi
4673echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4674echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4675CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4676
4677
4678
4679if
4680  test "x$enable_dependency_tracking" != xno \
4681  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4682  am__fastdepCXX_TRUE=
4683  am__fastdepCXX_FALSE='#'
4684else
4685  am__fastdepCXX_TRUE='#'
4686  am__fastdepCXX_FALSE=
4687fi
4688
4689
4690
4691echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4692echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4693    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4694if test "${enable_maintainer_mode+set}" = set; then
4695  enableval="$enable_maintainer_mode"
4696  USE_MAINTAINER_MODE=$enableval
4697else
4698  USE_MAINTAINER_MODE=no
4699fi;
4700  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4701echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4702
4703
4704if test $USE_MAINTAINER_MODE = yes; then
4705  MAINTAINER_MODE_TRUE=
4706  MAINTAINER_MODE_FALSE='#'
4707else
4708  MAINTAINER_MODE_TRUE='#'
4709  MAINTAINER_MODE_FALSE=
4710fi
4711
4712  MAINT=$MAINTAINER_MODE_TRUE
4713
4714
4715
4716coin_have_externals=no
4717if test "$enable_maintainer_mode" = yes; then
4718
4719  # If maintainer mode is chosen, we make sure that the correct versions
4720  # of the tools are used, and that we know where libtool.m4 is (to
4721  # recreate acinclude.m4)
4722
4723
4724  LIBTOOLM4=
4725  # Normally, $HOME
4726  AUTOTOOLS_DFLT=$HOME
4727
4728  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4729echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4730if test "${ac_cv_use_correct_autotools+set}" = set; then
4731  echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733  ac_cv_use_correct_autotools=check
4734fi
4735echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4736echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4737
4738  if test $ac_cv_use_correct_autotools = check; then
4739    ac_cv_use_correct_autotools=yes
4740    # Check if we have autoconf
4741    # Extract the first word of "autoconf", so it can be a program name with args.
4742set dummy autoconf; ac_word=$2
4743echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745if test "${ac_cv_prog_have_autoconf+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  if test -n "$have_autoconf"; then
4749  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754  IFS=$as_save_IFS
4755  test -z "$as_dir" && as_dir=.
4756  for ac_exec_ext in '' $ac_executable_extensions; do
4757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758    ac_cv_prog_have_autoconf="yes"
4759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760    break 2
4761  fi
4762done
4763done
4764
4765  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4766fi
4767fi
4768have_autoconf=$ac_cv_prog_have_autoconf
4769if test -n "$have_autoconf"; then
4770  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4771echo "${ECHO_T}$have_autoconf" >&6
4772else
4773  echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777    if test $have_autoconf = no; then
4778      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4779echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4780   { (exit 1); exit 1; }; }
4781    fi
4782
4783    # Check whether autoconf is the correct version
4784    correct_version='2.59'
4785    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4786    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4787echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4788    autoconf --version > confauto.out 2>&1
4789    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4790      echo "$as_me:$LINENO: result: yes" >&5
4791echo "${ECHO_T}yes" >&6
4792    else
4793      rm -f confauto.out
4794      echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4797echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4798   { (exit 1); exit 1; }; }
4799    fi
4800    rm -f confauto.out
4801
4802    # Check if the executable autoconf is picked up from the correct location
4803    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4804echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4805    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4806    autoconf_dir=`cd $autoconf_dir; pwd`
4807    if test x$AUTOTOOLS_DIR = x; then
4808      want_dir=$AUTOTOOLS_DFLT/bin
4809    else
4810      want_dir=$AUTOTOOLS_DIR/bin
4811    fi
4812    if test $autoconf_dir = `cd $want_dir; pwd`; then
4813      echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
4815    else
4816      rm -f confauto.out
4817      echo "$as_me:$LINENO: result: no" >&5
4818echo "${ECHO_T}no" >&6
4819      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4820echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4821   { (exit 1); exit 1; }; }
4822    fi
4823
4824    # Check if we have automake
4825    # Extract the first word of "automake", so it can be a program name with args.
4826set dummy automake; ac_word=$2
4827echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829if test "${ac_cv_prog_have_automake+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  if test -n "$have_automake"; then
4833  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for ac_exec_ext in '' $ac_executable_extensions; do
4841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842    ac_cv_prog_have_automake="yes"
4843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847done
4848
4849  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4850fi
4851fi
4852have_automake=$ac_cv_prog_have_automake
4853if test -n "$have_automake"; then
4854  echo "$as_me:$LINENO: result: $have_automake" >&5
4855echo "${ECHO_T}$have_automake" >&6
4856else
4857  echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859fi
4860
4861    if test $have_automake = no; then
4862      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4863echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4864   { (exit 1); exit 1; }; }
4865    fi
4866
4867    # Check whether automake is the correct version
4868    correct_version='1.9.6'
4869    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4870    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4871echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4872    automake --version > confauto.out 2>&1
4873    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4874      echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876    else
4877      rm -f confauto.out
4878      echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4881echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4882   { (exit 1); exit 1; }; }
4883    fi
4884    rm -f confauto.out
4885
4886    # Check if the executable automake is picked up from the correct location
4887    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4888echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4889    automake_dir=`which automake | sed -e 's=/automake=='`
4890    automake_dir=`cd $automake_dir; pwd`
4891    if test x$AUTOTOOLS_DIR = x; then
4892      want_dir=$AUTOTOOLS_DFLT/bin
4893    else
4894      want_dir=$AUTOTOOLS_DIR/bin
4895    fi
4896    if test $automake_dir = `cd $want_dir; pwd`; then
4897      echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899    else
4900      rm -f confauto.out
4901      echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4904echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4905   { (exit 1); exit 1; }; }
4906    fi
4907
4908    # Check if this is the correct version of libtool (with escaped dots)
4909    if test x$AUTOTOOLS_DIR = x; then
4910      want_dir=$AUTOTOOLS_DFLT/share
4911    else
4912      want_dir=$AUTOTOOLS_DIR/share
4913    fi
4914    correct_version='1.5.22'
4915    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4916    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4917echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4918echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4919if eval "test \"\${$as_ac_File+set}\" = set"; then
4920  echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922  test "$cross_compiling" = yes &&
4923  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4924echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4925   { (exit 1); exit 1; }; }
4926if test -r "$want_dir/libtool/ltmain.sh"; then
4927  eval "$as_ac_File=yes"
4928else
4929  eval "$as_ac_File=no"
4930fi
4931fi
4932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4933echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4934if test `eval echo '${'$as_ac_File'}'` = yes; then
4935  have_ltmain=yes
4936else
4937  have_ltmain=no
4938fi
4939
4940    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4941echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4942    if test $have_ltmain = yes; then
4943    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4944        echo "$as_me:$LINENO: result: yes" >&5
4945echo "${ECHO_T}yes" >&6
4946      else
4947        echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6
4949        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4950echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4951   { (exit 1); exit 1; }; }
4952      fi
4953    else
4954      echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
4956      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4957echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4958   { (exit 1); exit 1; }; }
4959    fi
4960  fi
4961
4962  # Check if we can find the libtool file
4963  if test x$AUTOTOOLS_DIR = x; then
4964    want_dir=$AUTOTOOLS_DFLT/share
4965  else
4966    want_dir=$AUTOTOOLS_DIR/share
4967  fi
4968  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4969echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4970echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4971if eval "test \"\${$as_ac_File+set}\" = set"; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974  test "$cross_compiling" = yes &&
4975  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4976echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4977   { (exit 1); exit 1; }; }
4978if test -r "$want_dir/aclocal/libtool.m4"; then
4979  eval "$as_ac_File=yes"
4980else
4981  eval "$as_ac_File=no"
4982fi
4983fi
4984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4985echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4986if test `eval echo '${'$as_ac_File'}'` = yes; then
4987  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4988else
4989  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4990echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4991   { (exit 1); exit 1; }; }
4992fi
4993
4994
4995  # Check if we have an Externals file
4996  if test -r $srcdir/Externals; then
4997    coin_have_externals=yes
4998  fi
4999  # Check if subversion is installed and understands https
5000  # Extract the first word of "svn", so it can be a program name with args.
5001set dummy svn; ac_word=$2
5002echo "$as_me:$LINENO: checking for $ac_word" >&5
5003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004if test "${ac_cv_prog_have_svn+set}" = set; then
5005  echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007  if test -n "$have_svn"; then
5008  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013  IFS=$as_save_IFS
5014  test -z "$as_dir" && as_dir=.
5015  for ac_exec_ext in '' $ac_executable_extensions; do
5016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017    ac_cv_prog_have_svn="yes"
5018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019    break 2
5020  fi
5021done
5022done
5023
5024  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5025fi
5026fi
5027have_svn=$ac_cv_prog_have_svn
5028if test -n "$have_svn"; then
5029  echo "$as_me:$LINENO: result: $have_svn" >&5
5030echo "${ECHO_T}$have_svn" >&6
5031else
5032  echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
5034fi
5035
5036  if test x$have_svn = xyes; then
5037    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5038echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5039if test "${ac_cv_svn_understands_https+set}" = set; then
5040  echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042  svn --version > confauto.out 2>&1
5043                    if $EGREP https confauto.out >/dev/null 2>&1; then
5044                      ac_cv_svn_understands_https=yes
5045                    else
5046                      ac_cv_svn_understands_https=no
5047                      have_svn=no
5048                      ac_cv_prog_have_svn=no
5049                    fi
5050                    rm -f confauto.out
5051fi
5052echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5053echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5054  fi
5055
5056  # Find the location of the BuildTools directory
5057  BUILDTOOLSDIR=
5058  if test -r $srcdir/BuildTools/coin.m4; then
5059    BUILDTOOLSDIR=$srcdir/BuildTools
5060  else
5061    if test -r $srcdir/../BuildTools/coin.m4; then
5062      BUILDTOOLSDIR=$srcdir/../BuildTools
5063    else
5064      if test -r $srcdir/../../BuildTools/coin.m4; then
5065        BUILDTOOLSDIR=$srcdir/../../BuildTools
5066      else
5067        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5068echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5069   { (exit 1); exit 1; }; }
5070      fi
5071    fi
5072  fi
5073
5074
5075  # The following variable is set to the name of the directory where
5076  # the autotool scripts are located
5077
5078  AUX_DIR=$ac_aux_dir
5079fi
5080
5081# helpful variable for the base directory of this package
5082abs_source_dir=`cd $srcdir; pwd`
5083
5084
5085# Stuff for example Makefiles
5086if test x$prefix = xNONE; then
5087  full_prefix=$ac_default_prefix
5088else
5089  full_prefix=$prefix
5090fi
5091full_prefix=`cd $full_prefix ; pwd`
5092
5093abs_lib_dir=$full_prefix/lib
5094
5095abs_include_dir=$full_prefix/include
5096
5097abs_bin_dir=$full_prefix/bin
5098
5099
5100
5101if test $coin_have_externals = yes && test x$have_svn = xyes; then
5102  HAVE_EXTERNALS_TRUE=
5103  HAVE_EXTERNALS_FALSE='#'
5104else
5105  HAVE_EXTERNALS_TRUE='#'
5106  HAVE_EXTERNALS_FALSE=
5107fi
5108
5109
5110# AC_MSG_NOTICE([End automake initialisation.])
5111
5112
5113
5114LIBTOOL=
5115if test -r ../libtool; then
5116  coin_config_dir=..
5117  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5118fi
5119if test "x$LIBTOOL" = x; then
5120  if test -r ../../libtool; then
5121    coin_config_dir=../..
5122    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5123  fi
5124fi
5125
5126if test "x$LIBTOOL" = x; then
5127# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5128  # Stuff for libtool
5129  # Check whether --enable-shared or --disable-shared was given.
5130if test "${enable_shared+set}" = set; then
5131  enableval="$enable_shared"
5132  p=${PACKAGE-default}
5133    case $enableval in
5134    yes) enable_shared=yes ;;
5135    no) enable_shared=no ;;
5136    *)
5137      enable_shared=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_shared=yes
5144        fi
5145      done
5146      IFS="$lt_save_ifs"
5147      ;;
5148    esac
5149else
5150  enable_shared=yes
5151fi;
5152
5153# Check whether --enable-fast-install or --disable-fast-install was given.
5154if test "${enable_fast_install+set}" = set; then
5155  enableval="$enable_fast_install"
5156  p=${PACKAGE-default}
5157    case $enableval in
5158    yes) enable_fast_install=yes ;;
5159    no) enable_fast_install=no ;;
5160    *)
5161      enable_fast_install=no
5162      # Look at the argument we got.  We use all the common list separators.
5163      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5164      for pkg in $enableval; do
5165        IFS="$lt_save_ifs"
5166        if test "X$pkg" = "X$p"; then
5167          enable_fast_install=yes
5168        fi
5169      done
5170      IFS="$lt_save_ifs"
5171      ;;
5172    esac
5173else
5174  enable_fast_install=yes
5175fi;
5176
5177echo "$as_me:$LINENO: checking host system type" >&5
5178echo $ECHO_N "checking host system type... $ECHO_C" >&6
5179if test "${ac_cv_host+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  ac_cv_host_alias=$host_alias
5183test -z "$ac_cv_host_alias" &&
5184  ac_cv_host_alias=$ac_cv_build_alias
5185ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5186  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5187echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5188   { (exit 1); exit 1; }; }
5189
5190fi
5191echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5192echo "${ECHO_T}$ac_cv_host" >&6
5193host=$ac_cv_host
5194host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5195host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5196host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5197
5198
5199echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5200echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5201if test "${lt_cv_path_SED+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  # Loop through the user's path and test for sed and gsed.
5205# Then use that list of sed's as ones to test for truncation.
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209  IFS=$as_save_IFS
5210  test -z "$as_dir" && as_dir=.
5211  for lt_ac_prog in sed gsed; do
5212    for ac_exec_ext in '' $ac_executable_extensions; do
5213      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5214        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5215      fi
5216    done
5217  done
5218done
5219lt_ac_max=0
5220lt_ac_count=0
5221# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5222# along with /bin/sed that truncates output.
5223for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5224  test ! -f $lt_ac_sed && continue
5225  cat /dev/null > conftest.in
5226  lt_ac_count=0
5227  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5228  # Check for GNU sed and select it if it is found.
5229  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5230    lt_cv_path_SED=$lt_ac_sed
5231    break
5232  fi
5233  while true; do
5234    cat conftest.in conftest.in >conftest.tmp
5235    mv conftest.tmp conftest.in
5236    cp conftest.in conftest.nl
5237    echo >>conftest.nl
5238    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5239    cmp -s conftest.out conftest.nl || break
5240    # 10000 chars as input seems more than enough
5241    test $lt_ac_count -gt 10 && break
5242    lt_ac_count=`expr $lt_ac_count + 1`
5243    if test $lt_ac_count -gt $lt_ac_max; then
5244      lt_ac_max=$lt_ac_count
5245      lt_cv_path_SED=$lt_ac_sed
5246    fi
5247  done
5248done
5249
5250fi
5251
5252SED=$lt_cv_path_SED
5253echo "$as_me:$LINENO: result: $SED" >&5
5254echo "${ECHO_T}$SED" >&6
5255
5256
5257# Check whether --with-gnu-ld or --without-gnu-ld was given.
5258if test "${with_gnu_ld+set}" = set; then
5259  withval="$with_gnu_ld"
5260  test "$withval" = no || with_gnu_ld=yes
5261else
5262  with_gnu_ld=no
5263fi;
5264ac_prog=ld
5265if test "$GCC" = yes; then
5266  # Check if gcc -print-prog-name=ld gives a path.
5267  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5268echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5269  case $host in
5270  *-*-mingw*)
5271    # gcc leaves a trailing carriage return which upsets mingw
5272    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273  *)
5274    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5275  esac
5276  case $ac_prog in
5277    # Accept absolute paths.
5278    [\\/]* | ?:[\\/]*)
5279      re_direlt='/[^/][^/]*/\.\./'
5280      # Canonicalize the pathname of ld
5281      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5282      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5283        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5284      done
5285      test -z "$LD" && LD="$ac_prog"
5286      ;;
5287  "")
5288    # If it fails, then pretend we aren't using GCC.
5289    ac_prog=ld
5290    ;;
5291  *)
5292    # If it is relative, then search for the first ld in PATH.
5293    with_gnu_ld=unknown
5294    ;;
5295  esac
5296elif test "$with_gnu_ld" = yes; then
5297  echo "$as_me:$LINENO: checking for GNU ld" >&5
5298echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5299else
5300  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5301echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5302fi
5303if test "${lt_cv_path_LD+set}" = set; then
5304  echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306  if test -z "$LD"; then
5307  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5308  for ac_dir in $PATH; do
5309    IFS="$lt_save_ifs"
5310    test -z "$ac_dir" && ac_dir=.
5311    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5312      lt_cv_path_LD="$ac_dir/$ac_prog"
5313      # Check to see if the program is GNU ld.  I'd rather use --version,
5314      # but apparently some variants of GNU ld only accept -v.
5315      # Break only if it was the GNU/non-GNU ld that we prefer.
5316      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5317      *GNU* | *'with BFD'*)
5318        test "$with_gnu_ld" != no && break
5319        ;;
5320      *)
5321        test "$with_gnu_ld" != yes && break
5322        ;;
5323      esac
5324    fi
5325  done
5326  IFS="$lt_save_ifs"
5327else
5328  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5329fi
5330fi
5331
5332LD="$lt_cv_path_LD"
5333if test -n "$LD"; then
5334  echo "$as_me:$LINENO: result: $LD" >&5
5335echo "${ECHO_T}$LD" >&6
5336else
5337  echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6
5339fi
5340test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5341echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5342   { (exit 1); exit 1; }; }
5343echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5344echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5345if test "${lt_cv_prog_gnu_ld+set}" = set; then
5346  echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5349case `$LD -v 2>&1 </dev/null` in
5350*GNU* | *'with BFD'*)
5351  lt_cv_prog_gnu_ld=yes
5352  ;;
5353*)
5354  lt_cv_prog_gnu_ld=no
5355  ;;
5356esac
5357fi
5358echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5359echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5360with_gnu_ld=$lt_cv_prog_gnu_ld
5361
5362
5363echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5364echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5365if test "${lt_cv_ld_reload_flag+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  lt_cv_ld_reload_flag='-r'
5369fi
5370echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5371echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5372reload_flag=$lt_cv_ld_reload_flag
5373case $reload_flag in
5374"" | " "*) ;;
5375*) reload_flag=" $reload_flag" ;;
5376esac
5377reload_cmds='$LD$reload_flag -o $output$reload_objs'
5378case $host_os in
5379  darwin*)
5380    if test "$GCC" = yes; then
5381      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5382    else
5383      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384    fi
5385    ;;
5386esac
5387
5388echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5389echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5390if test "${lt_cv_path_NM+set}" = set; then
5391  echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393  if test -n "$NM"; then
5394  # Let the user override the test.
5395  lt_cv_path_NM="$NM"
5396else
5397  lt_nm_to_check="${ac_tool_prefix}nm"
5398  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5399    lt_nm_to_check="$lt_nm_to_check nm"
5400  fi
5401  for lt_tmp_nm in $lt_nm_to_check; do
5402    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5403    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5404      IFS="$lt_save_ifs"
5405      test -z "$ac_dir" && ac_dir=.
5406      tmp_nm="$ac_dir/$lt_tmp_nm"
5407      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5408        # Check to see if the nm accepts a BSD-compat flag.
5409        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5410        #   nm: unknown option "B" ignored
5411        # Tru64's nm complains that /dev/null is an invalid object file
5412        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5413        */dev/null* | *'Invalid file or object type'*)
5414          lt_cv_path_NM="$tmp_nm -B"
5415          break
5416          ;;
5417        *)
5418          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5419          */dev/null*)
5420            lt_cv_path_NM="$tmp_nm -p"
5421            break
5422            ;;
5423          *)
5424            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5425            continue # so that we can try to find one that supports BSD flags
5426            ;;
5427          esac
5428          ;;
5429        esac
5430      fi
5431    done
5432    IFS="$lt_save_ifs"
5433  done
5434  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5435fi
5436fi
5437echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5438echo "${ECHO_T}$lt_cv_path_NM" >&6
5439NM="$lt_cv_path_NM"
5440
5441echo "$as_me:$LINENO: checking whether ln -s works" >&5
5442echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5443LN_S=$as_ln_s
5444if test "$LN_S" = "ln -s"; then
5445  echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6
5447else
5448  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5449echo "${ECHO_T}no, using $LN_S" >&6
5450fi
5451
5452echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5453echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5454if test "${lt_cv_deplibs_check_method+set}" = set; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457  lt_cv_file_magic_cmd='$MAGIC_CMD'
5458lt_cv_file_magic_test_file=
5459lt_cv_deplibs_check_method='unknown'
5460# Need to set the preceding variable on all platforms that support
5461# interlibrary dependencies.
5462# 'none' -- dependencies not supported.
5463# `unknown' -- same as none, but documents that we really don't know.
5464# 'pass_all' -- all dependencies passed with no checks.
5465# 'test_compile' -- check by making test program.
5466# 'file_magic [[regex]]' -- check by looking for files in library path
5467# which responds to the $file_magic_cmd with a given extended regex.
5468# If you have `file' or equivalent on your system and you're not sure
5469# whether `pass_all' will *always* work, you probably want this one.
5470
5471case $host_os in
5472aix4* | aix5*)
5473  lt_cv_deplibs_check_method=pass_all
5474  ;;
5475
5476beos*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480bsdi[45]*)
5481  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5482  lt_cv_file_magic_cmd='/usr/bin/file -L'
5483  lt_cv_file_magic_test_file=/shlib/libc.so
5484  ;;
5485
5486cygwin*)
5487  # func_win32_libid is a shell function defined in ltmain.sh
5488  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5489  lt_cv_file_magic_cmd='func_win32_libid'
5490  ;;
5491
5492mingw* | pw32*)
5493  # Base MSYS/MinGW do not provide the 'file' command needed by
5494  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5495  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5496  lt_cv_file_magic_cmd='$OBJDUMP -f'
5497  ;;
5498
5499darwin* | rhapsody*)
5500  lt_cv_deplibs_check_method=pass_all
5501  ;;
5502
5503freebsd* | kfreebsd*-gnu | dragonfly*)
5504  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5505    case $host_cpu in
5506    i*86 )
5507      # Not sure whether the presence of OpenBSD here was a mistake.
5508      # Let's accept both of them until this is cleared up.
5509      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5510      lt_cv_file_magic_cmd=/usr/bin/file
5511      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5512      ;;
5513    esac
5514  else
5515    lt_cv_deplibs_check_method=pass_all
5516  fi
5517  ;;
5518
5519gnu*)
5520  lt_cv_deplibs_check_method=pass_all
5521  ;;
5522
5523hpux10.20* | hpux11*)
5524  lt_cv_file_magic_cmd=/usr/bin/file
5525  case $host_cpu in
5526  ia64*)
5527    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5528    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5529    ;;
5530  hppa*64*)
5531    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]'
5532    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5533    ;;
5534  *)
5535    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5536    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5537    ;;
5538  esac
5539  ;;
5540
5541interix3*)
5542  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5543  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5544  ;;
5545
5546irix5* | irix6* | nonstopux*)
5547  case $LD in
5548  *-32|*"-32 ") libmagic=32-bit;;
5549  *-n32|*"-n32 ") libmagic=N32;;
5550  *-64|*"-64 ") libmagic=64-bit;;
5551  *) libmagic=never-match;;
5552  esac
5553  lt_cv_deplibs_check_method=pass_all
5554  ;;
5555
5556# This must be Linux ELF.
5557linux*)
5558  lt_cv_deplibs_check_method=pass_all
5559  ;;
5560
5561netbsd*)
5562  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5563    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5564  else
5565    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5566  fi
5567  ;;
5568
5569newos6*)
5570  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5571  lt_cv_file_magic_cmd=/usr/bin/file
5572  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5573  ;;
5574
5575nto-qnx*)
5576  lt_cv_deplibs_check_method=unknown
5577  ;;
5578
5579openbsd*)
5580  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5581    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5582  else
5583    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5584  fi
5585  ;;
5586
5587osf3* | osf4* | osf5*)
5588  lt_cv_deplibs_check_method=pass_all
5589  ;;
5590
5591solaris*)
5592  lt_cv_deplibs_check_method=pass_all
5593  ;;
5594
5595sysv4 | sysv4.3*)
5596  case $host_vendor in
5597  motorola)
5598    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]'
5599    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5600    ;;
5601  ncr)
5602    lt_cv_deplibs_check_method=pass_all
5603    ;;
5604  sequent)
5605    lt_cv_file_magic_cmd='/bin/file'
5606    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5607    ;;
5608  sni)
5609    lt_cv_file_magic_cmd='/bin/file'
5610    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5611    lt_cv_file_magic_test_file=/lib/libc.so
5612    ;;
5613  siemens)
5614    lt_cv_deplibs_check_method=pass_all
5615    ;;
5616  pc)
5617    lt_cv_deplibs_check_method=pass_all
5618    ;;
5619  esac
5620  ;;
5621
5622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5623  lt_cv_deplibs_check_method=pass_all
5624  ;;
5625esac
5626
5627fi
5628echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5629echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5630file_magic_cmd=$lt_cv_file_magic_cmd
5631deplibs_check_method=$lt_cv_deplibs_check_method
5632test -z "$deplibs_check_method" && deplibs_check_method=unknown
5633
5634
5635
5636
5637# If no C compiler was specified, use CC.
5638LTCC=${LTCC-"$CC"}
5639
5640# If no C compiler flags were specified, use CFLAGS.
5641LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5642
5643# Allow CC to be a program name with arguments.
5644compiler=$CC
5645
5646# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5647if test "${enable_libtool_lock+set}" = set; then
5648  enableval="$enable_libtool_lock"
5649
5650fi;
5651test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5652
5653# Some flags need to be propagated to the compiler or linker for good
5654# libtool support.
5655case $host in
5656ia64-*-hpux*)
5657  # Find out which ABI we are using.
5658  echo 'int i;' > conftest.$ac_ext
5659  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660  (eval $ac_compile) 2>&5
5661  ac_status=$?
5662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663  (exit $ac_status); }; then
5664    case `/usr/bin/file conftest.$ac_objext` in
5665    *ELF-32*)
5666      HPUX_IA64_MODE="32"
5667      ;;
5668    *ELF-64*)
5669      HPUX_IA64_MODE="64"
5670      ;;
5671    esac
5672  fi
5673  rm -rf conftest*
5674  ;;
5675*-*-irix6*)
5676  # Find out which ABI we are using.
5677  echo '#line 5677 "configure"' > conftest.$ac_ext
5678  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679  (eval $ac_compile) 2>&5
5680  ac_status=$?
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); }; then
5683   if test "$lt_cv_prog_gnu_ld" = yes; then
5684    case `/usr/bin/file conftest.$ac_objext` in
5685    *32-bit*)
5686      LD="${LD-ld} -melf32bsmip"
5687      ;;
5688    *N32*)
5689      LD="${LD-ld} -melf32bmipn32"
5690      ;;
5691    *64-bit*)
5692      LD="${LD-ld} -melf64bmip"
5693      ;;
5694    esac
5695   else
5696    case `/usr/bin/file conftest.$ac_objext` in
5697    *32-bit*)
5698      LD="${LD-ld} -32"
5699      ;;
5700    *N32*)
5701      LD="${LD-ld} -n32"
5702      ;;
5703    *64-bit*)
5704      LD="${LD-ld} -64"
5705      ;;
5706    esac
5707   fi
5708  fi
5709  rm -rf conftest*
5710  ;;
5711
5712x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5713  # Find out which ABI we are using.
5714  echo 'int i;' > conftest.$ac_ext
5715  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716  (eval $ac_compile) 2>&5
5717  ac_status=$?
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); }; then
5720    case `/usr/bin/file conftest.o` in
5721    *32-bit*)
5722      case $host in
5723        x86_64-*linux*)
5724          LD="${LD-ld} -m elf_i386"
5725          ;;
5726        ppc64-*linux*|powerpc64-*linux*)
5727          LD="${LD-ld} -m elf32ppclinux"
5728          ;;
5729        s390x-*linux*)
5730          LD="${LD-ld} -m elf_s390"
5731          ;;
5732        sparc64-*linux*)
5733          LD="${LD-ld} -m elf32_sparc"
5734          ;;
5735      esac
5736      ;;
5737    *64-bit*)
5738      case $host in
5739        x86_64-*linux*)
5740          LD="${LD-ld} -m elf_x86_64"
5741          ;;
5742        ppc*-*linux*|powerpc*-*linux*)
5743          LD="${LD-ld} -m elf64ppc"
5744          ;;
5745        s390*-*linux*)
5746          LD="${LD-ld} -m elf64_s390"
5747          ;;
5748        sparc*-*linux*)
5749          LD="${LD-ld} -m elf64_sparc"
5750          ;;
5751      esac
5752      ;;
5753    esac
5754  fi
5755  rm -rf conftest*
5756  ;;
5757
5758*-*-sco3.2v5*)
5759  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5760  SAVE_CFLAGS="$CFLAGS"
5761  CFLAGS="$CFLAGS -belf"
5762  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5763echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5764if test "${lt_cv_cc_needs_belf+set}" = set; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767  ac_ext=c
5768ac_cpp='$CPP $CPPFLAGS'
5769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
5773     cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h.  */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h.  */
5779
5780int
5781main ()
5782{
5783
5784  ;
5785  return 0;
5786}
5787_ACEOF
5788rm -f conftest.$ac_objext conftest$ac_exeext
5789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790  (eval $ac_link) 2>conftest.er1
5791  ac_status=$?
5792  grep -v '^ *+' conftest.er1 >conftest.err
5793  rm -f conftest.er1
5794  cat conftest.err >&5
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); } &&
5797         { ac_try='test -z "$ac_c_werror_flag"
5798                         || test ! -s conftest.err'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; } &&
5804         { ac_try='test -s conftest$ac_exeext'
5805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806  (eval $ac_try) 2>&5
5807  ac_status=$?
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); }; }; then
5810  lt_cv_cc_needs_belf=yes
5811else
5812  echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815lt_cv_cc_needs_belf=no
5816fi
5817rm -f conftest.err conftest.$ac_objext \
5818      conftest$ac_exeext conftest.$ac_ext
5819     ac_ext=c
5820ac_cpp='$CPP $CPPFLAGS'
5821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824
5825fi
5826echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5827echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5828  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5829    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5830    CFLAGS="$SAVE_CFLAGS"
5831  fi
5832  ;;
5833sparc*-*solaris*)
5834  # Find out which ABI we are using.
5835  echo 'int i;' > conftest.$ac_ext
5836  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837  (eval $ac_compile) 2>&5
5838  ac_status=$?
5839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840  (exit $ac_status); }; then
5841    case `/usr/bin/file conftest.o` in
5842    *64-bit*)
5843      case $lt_cv_prog_gnu_ld in
5844      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5845      *)    LD="${LD-ld} -64" ;;
5846      esac
5847      ;;
5848    esac
5849  fi
5850  rm -rf conftest*
5851  ;;
5852
5853
5854esac
5855
5856need_locks="$enable_libtool_lock"
5857
5858
5859ac_ext=c
5860ac_cpp='$CPP $CPPFLAGS'
5861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5865echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5866# On Suns, sometimes $CPP names a directory.
5867if test -n "$CPP" && test -d "$CPP"; then
5868  CPP=
5869fi
5870if test -z "$CPP"; then
5871  if test "${ac_cv_prog_CPP+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874      # Double quotes because CPP needs to be expanded
5875    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5876    do
5877      ac_preproc_ok=false
5878for ac_c_preproc_warn_flag in '' yes
5879do
5880  # Use a header file that comes with gcc, so configuring glibc
5881  # with a fresh cross-compiler works.
5882  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5883  # <limits.h> exists even on freestanding compilers.
5884  # On the NeXT, cc -E runs the code through the compiler's parser,
5885  # not just through cpp. "Syntax error" is here to catch this case.
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#ifdef __STDC__
5893# include <limits.h>
5894#else
5895# include <assert.h>
5896#endif
5897                     Syntax error
5898_ACEOF
5899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5900  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5901  ac_status=$?
5902  grep -v '^ *+' conftest.er1 >conftest.err
5903  rm -f conftest.er1
5904  cat conftest.err >&5
5905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906  (exit $ac_status); } >/dev/null; then
5907  if test -s conftest.err; then
5908    ac_cpp_err=$ac_c_preproc_warn_flag
5909    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5910  else
5911    ac_cpp_err=
5912  fi
5913else
5914  ac_cpp_err=yes
5915fi
5916if test -z "$ac_cpp_err"; then
5917  :
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922  # Broken: fails on valid input.
5923continue
5924fi
5925rm -f conftest.err conftest.$ac_ext
5926
5927  # OK, works on sane cases.  Now check whether non-existent headers
5928  # can be detected and how.
5929  cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h.  */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h.  */
5935#include <ac_nonexistent.h>
5936_ACEOF
5937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5938  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5939  ac_status=$?
5940  grep -v '^ *+' conftest.er1 >conftest.err
5941  rm -f conftest.er1
5942  cat conftest.err >&5
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); } >/dev/null; then
5945  if test -s conftest.err; then
5946    ac_cpp_err=$ac_c_preproc_warn_flag
5947    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5948  else
5949    ac_cpp_err=
5950  fi
5951else
5952  ac_cpp_err=yes
5953fi
5954if test -z "$ac_cpp_err"; then
5955  # Broken: success on invalid input.
5956continue
5957else
5958  echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961  # Passes both tests.
5962ac_preproc_ok=:
5963break
5964fi
5965rm -f conftest.err conftest.$ac_ext
5966
5967done
5968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969rm -f conftest.err conftest.$ac_ext
5970if $ac_preproc_ok; then
5971  break
5972fi
5973
5974    done
5975    ac_cv_prog_CPP=$CPP
5976
5977fi
5978  CPP=$ac_cv_prog_CPP
5979else
5980  ac_cv_prog_CPP=$CPP
5981fi
5982echo "$as_me:$LINENO: result: $CPP" >&5
5983echo "${ECHO_T}$CPP" >&6
5984ac_preproc_ok=false
5985for ac_c_preproc_warn_flag in '' yes
5986do
5987  # Use a header file that comes with gcc, so configuring glibc
5988  # with a fresh cross-compiler works.
5989  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990  # <limits.h> exists even on freestanding compilers.
5991  # On the NeXT, cc -E runs the code through the compiler's parser,
5992  # not just through cpp. "Syntax error" is here to catch this case.
5993  cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h.  */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h.  */
5999#ifdef __STDC__
6000# include <limits.h>
6001#else
6002# include <assert.h>
6003#endif
6004                     Syntax error
6005_ACEOF
6006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6007  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } >/dev/null; then
6014  if test -s conftest.err; then
6015    ac_cpp_err=$ac_c_preproc_warn_flag
6016    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6017  else
6018    ac_cpp_err=
6019  fi
6020else
6021  ac_cpp_err=yes
6022fi
6023if test -z "$ac_cpp_err"; then
6024  :
6025else
6026  echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029  # Broken: fails on valid input.
6030continue
6031fi
6032rm -f conftest.err conftest.$ac_ext
6033
6034  # OK, works on sane cases.  Now check whether non-existent headers
6035  # can be detected and how.
6036  cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h.  */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h.  */
6042#include <ac_nonexistent.h>
6043_ACEOF
6044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046  ac_status=$?
6047  grep -v '^ *+' conftest.er1 >conftest.err
6048  rm -f conftest.er1
6049  cat conftest.err >&5
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); } >/dev/null; then
6052  if test -s conftest.err; then
6053    ac_cpp_err=$ac_c_preproc_warn_flag
6054    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055  else
6056    ac_cpp_err=
6057  fi
6058else
6059  ac_cpp_err=yes
6060fi
6061if test -z "$ac_cpp_err"; then
6062  # Broken: success on invalid input.
6063continue
6064else
6065  echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068  # Passes both tests.
6069ac_preproc_ok=:
6070break
6071fi
6072rm -f conftest.err conftest.$ac_ext
6073
6074done
6075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076rm -f conftest.err conftest.$ac_ext
6077if $ac_preproc_ok; then
6078  :
6079else
6080  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6081See \`config.log' for more details." >&5
6082echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6083See \`config.log' for more details." >&2;}
6084   { (exit 1); exit 1; }; }
6085fi
6086
6087ac_ext=c
6088ac_cpp='$CPP $CPPFLAGS'
6089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092
6093
6094echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6095echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6096if test "${ac_cv_header_stdc+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  cat >conftest.$ac_ext <<_ACEOF
6100/* confdefs.h.  */
6101_ACEOF
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
6104/* end confdefs.h.  */
6105#include <stdlib.h>
6106#include <stdarg.h>
6107#include <string.h>
6108#include <float.h>
6109
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120  (eval $ac_compile) 2>conftest.er1
6121  ac_status=$?
6122  grep -v '^ *+' conftest.er1 >conftest.err
6123  rm -f conftest.er1
6124  cat conftest.err >&5
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); } &&
6127         { ac_try='test -z "$ac_c_werror_flag"
6128                         || test ! -s conftest.err'
6129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130  (eval $ac_try) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; } &&
6134         { ac_try='test -s conftest.$ac_objext'
6135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136  (eval $ac_try) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; }; then
6140  ac_cv_header_stdc=yes
6141else
6142  echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145ac_cv_header_stdc=no
6146fi
6147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148
6149if test $ac_cv_header_stdc = yes; then
6150  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6151  cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157#include <string.h>
6158
6159_ACEOF
6160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161  $EGREP "memchr" >/dev/null 2>&1; then
6162  :
6163else
6164  ac_cv_header_stdc=no
6165fi
6166rm -f conftest*
6167
6168fi
6169
6170if test $ac_cv_header_stdc = yes; then
6171  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
6179
6180_ACEOF
6181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182  $EGREP "free" >/dev/null 2>&1; then
6183  :
6184else
6185  ac_cv_header_stdc=no
6186fi
6187rm -f conftest*
6188
6189fi
6190
6191if test $ac_cv_header_stdc = yes; then
6192  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6193  if test "$cross_compiling" = yes; then
6194  :
6195else
6196  cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h.  */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h.  */
6202#include <ctype.h>
6203#if ((' ' & 0x0FF) == 0x020)
6204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6206#else
6207# define ISLOWER(c) \
6208                   (('a' <= (c) && (c) <= 'i') \
6209                     || ('j' <= (c) && (c) <= 'r') \
6210                     || ('s' <= (c) && (c) <= 'z'))
6211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6212#endif
6213
6214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6215int
6216main ()
6217{
6218  int i;
6219  for (i = 0; i < 256; i++)
6220    if (XOR (islower (i), ISLOWER (i))
6221        || toupper (i) != TOUPPER (i))
6222      exit(2);
6223  exit (0);
6224}
6225_ACEOF
6226rm -f conftest$ac_exeext
6227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228  (eval $ac_link) 2>&5
6229  ac_status=$?
6230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233  (eval $ac_try) 2>&5
6234  ac_status=$?
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); }; }; then
6237  :
6238else
6239  echo "$as_me: program exited with status $ac_status" >&5
6240echo "$as_me: failed program was:" >&5
6241sed 's/^/| /' conftest.$ac_ext >&5
6242
6243( exit $ac_status )
6244ac_cv_header_stdc=no
6245fi
6246rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6247fi
6248fi
6249fi
6250echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6251echo "${ECHO_T}$ac_cv_header_stdc" >&6
6252if test $ac_cv_header_stdc = yes; then
6253
6254cat >>confdefs.h <<\_ACEOF
6255#define STDC_HEADERS 1
6256_ACEOF
6257
6258fi
6259
6260# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6271                  inttypes.h stdint.h unistd.h
6272do
6273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6274echo "$as_me:$LINENO: checking for $ac_header" >&5
6275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6276if eval "test \"\${$as_ac_Header+set}\" = set"; then
6277  echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279  cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h.  */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h.  */
6285$ac_includes_default
6286
6287#include <$ac_header>
6288_ACEOF
6289rm -f conftest.$ac_objext
6290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291  (eval $ac_compile) 2>conftest.er1
6292  ac_status=$?
6293  grep -v '^ *+' conftest.er1 >conftest.err
6294  rm -f conftest.er1
6295  cat conftest.err >&5
6296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297  (exit $ac_status); } &&
6298         { ac_try='test -z "$ac_c_werror_flag"
6299                         || test ! -s conftest.err'
6300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301  (eval $ac_try) 2>&5
6302  ac_status=$?
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); }; } &&
6305         { ac_try='test -s conftest.$ac_objext'
6306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307  (eval $ac_try) 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; }; then
6311  eval "$as_ac_Header=yes"
6312else
6313  echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316eval "$as_ac_Header=no"
6317fi
6318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6322if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323  cat >>confdefs.h <<_ACEOF
6324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6325_ACEOF
6326
6327fi
6328
6329done
6330
6331
6332
6333for ac_header in dlfcn.h
6334do
6335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6336if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337  echo "$as_me:$LINENO: checking for $ac_header" >&5
6338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6339if eval "test \"\${$as_ac_Header+set}\" = set"; then
6340  echo $ECHO_N "(cached) $ECHO_C" >&6
6341fi
6342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6344else
6345  # Is the header compilable?
6346echo "$as_me:$LINENO: checking $ac_header usability" >&5
6347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6348cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h.  */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h.  */
6354$ac_includes_default
6355#include <$ac_header>
6356_ACEOF
6357rm -f conftest.$ac_objext
6358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6359  (eval $ac_compile) 2>conftest.er1
6360  ac_status=$?
6361  grep -v '^ *+' conftest.er1 >conftest.err
6362  rm -f conftest.er1
6363  cat conftest.err >&5
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } &&
6366         { ac_try='test -z "$ac_c_werror_flag"
6367                         || test ! -s conftest.err'
6368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369  (eval $ac_try) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; } &&
6373         { ac_try='test -s conftest.$ac_objext'
6374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375  (eval $ac_try) 2>&5
6376  ac_status=$?
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); }; }; then
6379  ac_header_compiler=yes
6380else
6381  echo "$as_me: failed program was:" >&5
6382sed 's/^/| /' conftest.$ac_ext >&5
6383
6384ac_header_compiler=no
6385fi
6386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6388echo "${ECHO_T}$ac_header_compiler" >&6
6389
6390# Is the header present?
6391echo "$as_me:$LINENO: checking $ac_header presence" >&5
6392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6393cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399#include <$ac_header>
6400_ACEOF
6401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6402  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } >/dev/null; then
6409  if test -s conftest.err; then
6410    ac_cpp_err=$ac_c_preproc_warn_flag
6411    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412  else
6413    ac_cpp_err=
6414  fi
6415else
6416  ac_cpp_err=yes
6417fi
6418if test -z "$ac_cpp_err"; then
6419  ac_header_preproc=yes
6420else
6421  echo "$as_me: failed program was:" >&5
6422sed 's/^/| /' conftest.$ac_ext >&5
6423
6424  ac_header_preproc=no
6425fi
6426rm -f conftest.err conftest.$ac_ext
6427echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6428echo "${ECHO_T}$ac_header_preproc" >&6
6429
6430# So?  What about this header?
6431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6432  yes:no: )
6433    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6435    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6437    ac_header_preproc=yes
6438    ;;
6439  no:yes:* )
6440    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6442    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6443echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6444    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6446    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6447echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6450    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6452    (
6453      cat <<\_ASBOX
6454## ---------------------------------------- ##
6455## Report this to coin-cbc@list.coin-or.org ##
6456## ---------------------------------------- ##
6457_ASBOX
6458    ) |
6459      sed "s/^/$as_me: WARNING:     /" >&2
6460    ;;
6461esac
6462echo "$as_me:$LINENO: checking for $ac_header" >&5
6463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6464if eval "test \"\${$as_ac_Header+set}\" = set"; then
6465  echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467  eval "$as_ac_Header=\$ac_header_preproc"
6468fi
6469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6471
6472fi
6473if test `eval echo '${'$as_ac_Header'}'` = yes; then
6474  cat >>confdefs.h <<_ACEOF
6475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6476_ACEOF
6477
6478fi
6479
6480done
6481
6482
6483
6484if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6485    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6486    (test "X$CXX" != "Xg++"))) ; then
6487  ac_ext=cc
6488ac_cpp='$CXXCPP $CPPFLAGS'
6489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6493echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6494if test -z "$CXXCPP"; then
6495  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498      # Double quotes because CXXCPP needs to be expanded
6499    for CXXCPP in "$CXX -E" "/lib/cpp"
6500    do
6501      ac_preproc_ok=false
6502for ac_cxx_preproc_warn_flag in '' yes
6503do
6504  # Use a header file that comes with gcc, so configuring glibc
6505  # with a fresh cross-compiler works.
6506  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6507  # <limits.h> exists even on freestanding compilers.
6508  # On the NeXT, cc -E runs the code through the compiler's parser,
6509  # not just through cpp. "Syntax error" is here to catch this case.
6510  cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516#ifdef __STDC__
6517# include <limits.h>
6518#else
6519# include <assert.h>
6520#endif
6521                     Syntax error
6522_ACEOF
6523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } >/dev/null; then
6531  if test -s conftest.err; then
6532    ac_cpp_err=$ac_cxx_preproc_warn_flag
6533    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6534  else
6535    ac_cpp_err=
6536  fi
6537else
6538  ac_cpp_err=yes
6539fi
6540if test -z "$ac_cpp_err"; then
6541  :
6542else
6543  echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546  # Broken: fails on valid input.
6547continue
6548fi
6549rm -f conftest.err conftest.$ac_ext
6550
6551  # OK, works on sane cases.  Now check whether non-existent headers
6552  # can be detected and how.
6553  cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h.  */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h.  */
6559#include <ac_nonexistent.h>
6560_ACEOF
6561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6562  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6563  ac_status=$?
6564  grep -v '^ *+' conftest.er1 >conftest.err
6565  rm -f conftest.er1
6566  cat conftest.err >&5
6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); } >/dev/null; then
6569  if test -s conftest.err; then
6570    ac_cpp_err=$ac_cxx_preproc_warn_flag
6571    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6572  else
6573    ac_cpp_err=
6574  fi
6575else
6576  ac_cpp_err=yes
6577fi
6578if test -z "$ac_cpp_err"; then
6579  # Broken: success on invalid input.
6580continue
6581else
6582  echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585  # Passes both tests.
6586ac_preproc_ok=:
6587break
6588fi
6589rm -f conftest.err conftest.$ac_ext
6590
6591done
6592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6593rm -f conftest.err conftest.$ac_ext
6594if $ac_preproc_ok; then
6595  break
6596fi
6597
6598    done
6599    ac_cv_prog_CXXCPP=$CXXCPP
6600
6601fi
6602  CXXCPP=$ac_cv_prog_CXXCPP
6603else
6604  ac_cv_prog_CXXCPP=$CXXCPP
6605fi
6606echo "$as_me:$LINENO: result: $CXXCPP" >&5
6607echo "${ECHO_T}$CXXCPP" >&6
6608ac_preproc_ok=false
6609for ac_cxx_preproc_warn_flag in '' yes
6610do
6611  # Use a header file that comes with gcc, so configuring glibc
6612  # with a fresh cross-compiler works.
6613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6614  # <limits.h> exists even on freestanding compilers.
6615  # On the NeXT, cc -E runs the code through the compiler's parser,
6616  # not just through cpp. "Syntax error" is here to catch this case.
6617  cat >conftest.$ac_ext <<_ACEOF
6618/* confdefs.h.  */
6619_ACEOF
6620cat confdefs.h >>conftest.$ac_ext
6621cat >>conftest.$ac_ext <<_ACEOF
6622/* end confdefs.h.  */
6623#ifdef __STDC__
6624# include <limits.h>
6625#else
6626# include <assert.h>
6627#endif
6628                     Syntax error
6629_ACEOF
6630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6631  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6632  ac_status=$?
6633  grep -v '^ *+' conftest.er1 >conftest.err
6634  rm -f conftest.er1
6635  cat conftest.err >&5
6636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637  (exit $ac_status); } >/dev/null; then
6638  if test -s conftest.err; then
6639    ac_cpp_err=$ac_cxx_preproc_warn_flag
6640    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6641  else
6642    ac_cpp_err=
6643  fi
6644else
6645  ac_cpp_err=yes
6646fi
6647if test -z "$ac_cpp_err"; then
6648  :
6649else
6650  echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653  # Broken: fails on valid input.
6654continue
6655fi
6656rm -f conftest.err conftest.$ac_ext
6657
6658  # OK, works on sane cases.  Now check whether non-existent headers
6659  # can be detected and how.
6660  cat >conftest.$ac_ext <<_ACEOF
6661/* confdefs.h.  */
6662_ACEOF
6663cat confdefs.h >>conftest.$ac_ext
6664cat >>conftest.$ac_ext <<_ACEOF
6665/* end confdefs.h.  */
6666#include <ac_nonexistent.h>
6667_ACEOF
6668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6669  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6670  ac_status=$?
6671  grep -v '^ *+' conftest.er1 >conftest.err
6672  rm -f conftest.er1
6673  cat conftest.err >&5
6674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675  (exit $ac_status); } >/dev/null; then
6676  if test -s conftest.err; then
6677    ac_cpp_err=$ac_cxx_preproc_warn_flag
6678    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6679  else
6680    ac_cpp_err=
6681  fi
6682else
6683  ac_cpp_err=yes
6684fi
6685if test -z "$ac_cpp_err"; then
6686  # Broken: success on invalid input.
6687continue
6688else
6689  echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692  # Passes both tests.
6693ac_preproc_ok=:
6694break
6695fi
6696rm -f conftest.err conftest.$ac_ext
6697
6698done
6699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6700rm -f conftest.err conftest.$ac_ext
6701if $ac_preproc_ok; then
6702  :
6703else
6704  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6705See \`config.log' for more details." >&5
6706echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6707See \`config.log' for more details." >&2;}
6708   { (exit 1); exit 1; }; }
6709fi
6710
6711ac_ext=cc
6712ac_cpp='$CXXCPP $CPPFLAGS'
6713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6716
6717fi
6718
6719ac_ext=f
6720ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6721ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6723if test -n "$ac_tool_prefix"; then
6724  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6725  do
6726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6728echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730if test "${ac_cv_prog_F77+set}" = set; then
6731  echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733  if test -n "$F77"; then
6734  ac_cv_prog_F77="$F77" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  test -z "$as_dir" && as_dir=.
6741  for ac_exec_ext in '' $ac_executable_extensions; do
6742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745    break 2
6746  fi
6747done
6748done
6749
6750fi
6751fi
6752F77=$ac_cv_prog_F77
6753if test -n "$F77"; then
6754  echo "$as_me:$LINENO: result: $F77" >&5
6755echo "${ECHO_T}$F77" >&6
6756else
6757  echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759fi
6760
6761    test -n "$F77" && break
6762  done
6763fi
6764if test -z "$F77"; then
6765  ac_ct_F77=$F77
6766  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6767do
6768  # Extract the first word of "$ac_prog", so it can be a program name with args.
6769set dummy $ac_prog; ac_word=$2
6770echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  if test -n "$ac_ct_F77"; then
6776  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783  for ac_exec_ext in '' $ac_executable_extensions; do
6784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785    ac_cv_prog_ac_ct_F77="$ac_prog"
6786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790done
6791
6792fi
6793fi
6794ac_ct_F77=$ac_cv_prog_ac_ct_F77
6795if test -n "$ac_ct_F77"; then
6796  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6797echo "${ECHO_T}$ac_ct_F77" >&6
6798else
6799  echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6
6801fi
6802
6803  test -n "$ac_ct_F77" && break
6804done
6805
6806  F77=$ac_ct_F77
6807fi
6808
6809
6810# Provide some information about the compiler.
6811echo "$as_me:6811:" \
6812     "checking for Fortran 77 compiler version" >&5
6813ac_compiler=`set X $ac_compile; echo $2`
6814{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6815  (eval $ac_compiler --version </dev/null >&5) 2>&5
6816  ac_status=$?
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); }
6819{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6820  (eval $ac_compiler -v </dev/null >&5) 2>&5
6821  ac_status=$?
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); }
6824{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6825  (eval $ac_compiler -V </dev/null >&5) 2>&5
6826  ac_status=$?
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); }
6829rm -f a.out
6830
6831# If we don't use `.F' as extension, the preprocessor is not run on the
6832# input file.  (Note that this only needs to work for GNU compilers.)
6833ac_save_ext=$ac_ext
6834ac_ext=F
6835echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6836echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6837if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6838  echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840  cat >conftest.$ac_ext <<_ACEOF
6841      program main
6842#ifndef __GNUC__
6843       choke me
6844#endif
6845
6846      end
6847_ACEOF
6848rm -f conftest.$ac_objext
6849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850  (eval $ac_compile) 2>conftest.er1
6851  ac_status=$?
6852  grep -v '^ *+' conftest.er1 >conftest.err
6853  rm -f conftest.er1
6854  cat conftest.err >&5
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); } &&
6857         { ac_try='test -z "$ac_f77_werror_flag"
6858                         || test ! -s conftest.err'
6859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860  (eval $ac_try) 2>&5
6861  ac_status=$?
6862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863  (exit $ac_status); }; } &&
6864         { ac_try='test -s conftest.$ac_objext'
6865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866  (eval $ac_try) 2>&5
6867  ac_status=$?
6868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869  (exit $ac_status); }; }; then
6870  ac_compiler_gnu=yes
6871else
6872  echo "$as_me: failed program was:" >&5
6873sed 's/^/| /' conftest.$ac_ext >&5
6874
6875ac_compiler_gnu=no
6876fi
6877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6879
6880fi
6881echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6882echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6883ac_ext=$ac_save_ext
6884ac_test_FFLAGS=${FFLAGS+set}
6885ac_save_FFLAGS=$FFLAGS
6886FFLAGS=
6887echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6888echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6889if test "${ac_cv_prog_f77_g+set}" = set; then
6890  echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892  FFLAGS=-g
6893cat >conftest.$ac_ext <<_ACEOF
6894      program main
6895
6896      end
6897_ACEOF
6898rm -f conftest.$ac_objext
6899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900  (eval $ac_compile) 2>conftest.er1
6901  ac_status=$?
6902  grep -v '^ *+' conftest.er1 >conftest.err
6903  rm -f conftest.er1
6904  cat conftest.err >&5
6905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906  (exit $ac_status); } &&
6907         { ac_try='test -z "$ac_f77_werror_flag"
6908                         || test ! -s conftest.err'
6909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910  (eval $ac_try) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); }; } &&
6914         { ac_try='test -s conftest.$ac_objext'
6915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916  (eval $ac_try) 2>&5
6917  ac_status=$?
6918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919  (exit $ac_status); }; }; then
6920  ac_cv_prog_f77_g=yes
6921else
6922  echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925ac_cv_prog_f77_g=no
6926fi
6927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928
6929fi
6930echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6931echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6932if test "$ac_test_FFLAGS" = set; then
6933  FFLAGS=$ac_save_FFLAGS
6934elif test $ac_cv_prog_f77_g = yes; then
6935  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6936    FFLAGS="-g -O2"
6937  else
6938    FFLAGS="-g"
6939  fi
6940else
6941  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6942    FFLAGS="-O2"
6943  else
6944    FFLAGS=
6945  fi
6946fi
6947
6948G77=`test $ac_compiler_gnu = yes && echo yes`
6949ac_ext=c
6950ac_cpp='$CPP $CPPFLAGS'
6951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954
6955
6956
6957# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6958
6959# find the maximum length of command line arguments
6960echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6961echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6962if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6963  echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965    i=0
6966  teststring="ABCD"
6967
6968  case $build_os in
6969  msdosdjgpp*)
6970    # On DJGPP, this test can blow up pretty badly due to problems in libc
6971    # (any single argument exceeding 2000 bytes causes a buffer overrun
6972    # during glob expansion).  Even if it were fixed, the result of this
6973    # check would be larger than it should be.
6974    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6975    ;;
6976
6977  gnu*)
6978    # Under GNU Hurd, this test is not required because there is
6979    # no limit to the length of command line arguments.
6980    # Libtool will interpret -1 as no limit whatsoever
6981    lt_cv_sys_max_cmd_len=-1;
6982    ;;
6983
6984  cygwin* | mingw*)
6985    # On Win9x/ME, this test blows up -- it succeeds, but takes
6986    # about 5 minutes as the teststring grows exponentially.
6987    # Worse, since 9x/ME are not pre-emptively multitasking,
6988    # you end up with a "frozen" computer, even though with patience
6989    # the test eventually succeeds (with a max line length of 256k).
6990    # Instead, let's just punt: use the minimum linelength reported by
6991    # all of the supported platforms: 8192 (on NT/2K/XP).
6992    lt_cv_sys_max_cmd_len=8192;
6993    ;;
6994
6995  amigaos*)
6996    # On AmigaOS with pdksh, this test takes hours, literally.
6997    # So we just punt and use a minimum line length of 8192.
6998    lt_cv_sys_max_cmd_len=8192;
6999    ;;
7000
7001  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7002    # This has been around since 386BSD, at least.  Likely further.
7003    if test -x /sbin/sysctl; then
7004      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7005    elif test -x /usr/sbin/sysctl; then
7006      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7007    else
7008      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7009    fi
7010    # And add a safety zone
7011    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7012    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7013    ;;
7014
7015  interix*)
7016    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7017    lt_cv_sys_max_cmd_len=196608
7018    ;;
7019
7020  osf*)
7021    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7022    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7023    # nice to cause kernel panics so lets avoid the loop below.
7024    # First set a reasonable default.
7025    lt_cv_sys_max_cmd_len=16384
7026    #
7027    if test -x /sbin/sysconfig; then
7028      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7029        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7030      esac
7031    fi
7032    ;;
7033  sco3.2v5*)
7034    lt_cv_sys_max_cmd_len=102400
7035    ;;
7036  sysv5* | sco5v6* | sysv4.2uw2*)
7037    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7038    if test -n "$kargmax"; then
7039      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7040    else
7041      lt_cv_sys_max_cmd_len=32768
7042    fi
7043    ;;
7044  *)
7045    # If test is not a shell built-in, we'll probably end up computing a
7046    # maximum length that is only half of the actual maximum length, but
7047    # we can't tell.
7048    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7049    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7050               = "XX$teststring") >/dev/null 2>&1 &&
7051            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7052            lt_cv_sys_max_cmd_len=$new_result &&
7053            test $i != 17 # 1/2 MB should be enough
7054    do
7055      i=`expr $i + 1`
7056      teststring=$teststring$teststring
7057    done
7058    teststring=
7059    # Add a significant safety factor because C++ compilers can tack on massive
7060    # amounts of additional arguments before passing them to the linker.
7061    # It appears as though 1/2 is a usable value.
7062    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7063    ;;
7064  esac
7065
7066fi
7067
7068if test -n $lt_cv_sys_max_cmd_len ; then
7069  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7070echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7071else
7072  echo "$as_me:$LINENO: result: none" >&5
7073echo "${ECHO_T}none" >&6
7074fi
7075
7076
7077
7078
7079# Check for command to grab the raw symbol name followed by C symbol from nm.
7080echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7081echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7082if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7083  echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085
7086# These are sane defaults that work on at least a few old systems.
7087# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7088
7089# Character class describing NM global symbol codes.
7090symcode='[BCDEGRST]'
7091
7092# Regexp to match symbols that can be accessed directly from C.
7093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7094
7095# Transform an extracted symbol line into a proper C declaration
7096lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7097
7098# Transform an extracted symbol line into symbol name and symbol address
7099lt_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'"
7100
7101# Define system-specific variables.
7102case $host_os in
7103aix*)
7104  symcode='[BCDT]'
7105  ;;
7106cygwin* | mingw* | pw32*)
7107  symcode='[ABCDGISTW]'
7108  ;;
7109hpux*) # Its linker distinguishes data from code symbols
7110  if test "$host_cpu" = ia64; then
7111    symcode='[ABCDEGRST]'
7112  fi
7113  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7114  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'"
7115  ;;
7116linux*)
7117  if test "$host_cpu" = ia64; then
7118    symcode='[ABCDGIRSTW]'
7119    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7120    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'"
7121  fi
7122  ;;
7123irix* | nonstopux*)
7124  symcode='[BCDEGRST]'
7125  ;;
7126osf*)
7127  symcode='[BCDEGQRST]'
7128  ;;
7129solaris*)
7130  symcode='[BDRT]'
7131  ;;
7132sco3.2v5*)
7133  symcode='[DT]'
7134  ;;
7135sysv4.2uw2*)
7136  symcode='[DT]'
7137  ;;
7138sysv5* | sco5v6* | unixware* | OpenUNIX*)
7139  symcode='[ABDT]'
7140  ;;
7141sysv4)
7142  symcode='[DFNSTU]'
7143  ;;
7144esac
7145
7146# Handle CRLF in mingw tool chain
7147opt_cr=
7148case $build_os in
7149mingw*)
7150  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7151  ;;
7152esac
7153
7154# If we're using GNU nm, then use its standard symbol codes.
7155case `$NM -V 2>&1` in
7156*GNU* | *'with BFD'*)
7157  symcode='[ABCDGIRSTW]' ;;
7158esac
7159
7160# Try without a prefix undercore, then with it.
7161for ac_symprfx in "" "_"; do
7162
7163  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7164  symxfrm="\\1 $ac_symprfx\\2 \\2"
7165
7166  # Write the raw and C identifiers.
7167  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7168
7169  # Check to see that the pipe works correctly.
7170  pipe_works=no
7171
7172  rm -f conftest*
7173  cat > conftest.$ac_ext <<EOF
7174#ifdef __cplusplus
7175extern "C" {
7176#endif
7177char nm_test_var;
7178void nm_test_func(){}
7179#ifdef __cplusplus
7180}
7181#endif
7182int main(){nm_test_var='a';nm_test_func();return(0);}
7183EOF
7184
7185  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186  (eval $ac_compile) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; then
7190    # Now try to grab the symbols.
7191    nlist=conftest.nm
7192    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7193  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7194  ac_status=$?
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); } && test -s "$nlist"; then
7197      # Try sorting and uniquifying the output.
7198      if sort "$nlist" | uniq > "$nlist"T; then
7199        mv -f "$nlist"T "$nlist"
7200      else
7201        rm -f "$nlist"T
7202      fi
7203
7204      # Make sure that we snagged all the symbols we need.
7205      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7206        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7207          cat <<EOF > conftest.$ac_ext
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211
7212EOF
7213          # Now generate the symbol file.
7214          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7215
7216          cat <<EOF >> conftest.$ac_ext
7217#if defined (__STDC__) && __STDC__
7218# define lt_ptr_t void *
7219#else
7220# define lt_ptr_t char *
7221# define const
7222#endif
7223
7224/* The mapping between symbol names and symbols. */
7225const struct {
7226  const char *name;
7227  lt_ptr_t address;
7228}
7229lt_preloaded_symbols[] =
7230{
7231EOF
7232          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7233          cat <<\EOF >> conftest.$ac_ext
7234  {0, (lt_ptr_t) 0}
7235};
7236
7237#ifdef __cplusplus
7238}
7239#endif
7240EOF
7241          # Now try linking the two files.
7242          mv conftest.$ac_objext conftstm.$ac_objext
7243          lt_save_LIBS="$LIBS"
7244          lt_save_CFLAGS="$CFLAGS"
7245          LIBS="conftstm.$ac_objext"
7246          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7247          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248  (eval $ac_link) 2>&5
7249  ac_status=$?
7250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7252            pipe_works=yes
7253          fi
7254          LIBS="$lt_save_LIBS"
7255          CFLAGS="$lt_save_CFLAGS"
7256        else
7257          echo "cannot find nm_test_func in $nlist" >&5
7258        fi
7259      else
7260        echo "cannot find nm_test_var in $nlist" >&5
7261      fi
7262    else
7263      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7264    fi
7265  else
7266    echo "$progname: failed program was:" >&5
7267    cat conftest.$ac_ext >&5
7268  fi
7269  rm -f conftest* conftst*
7270
7271  # Do not use the global_symbol_pipe unless it works.
7272  if test "$pipe_works" = yes; then
7273    break
7274  else
7275    lt_cv_sys_global_symbol_pipe=
7276  fi
7277done
7278
7279fi
7280
7281if test -z "$lt_cv_sys_global_symbol_pipe"; then
7282  lt_cv_sys_global_symbol_to_cdecl=
7283fi
7284if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7285  echo "$as_me:$LINENO: result: failed" >&5
7286echo "${ECHO_T}failed" >&6
7287else
7288  echo "$as_me:$LINENO: result: ok" >&5
7289echo "${ECHO_T}ok" >&6
7290fi
7291
7292echo "$as_me:$LINENO: checking for objdir" >&5
7293echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7294if test "${lt_cv_objdir+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  rm -f .libs 2>/dev/null
7298mkdir .libs 2>/dev/null
7299if test -d .libs; then
7300  lt_cv_objdir=.libs
7301else
7302  # MS-DOS does not allow filenames that begin with a dot.
7303  lt_cv_objdir=_libs
7304fi
7305rmdir .libs 2>/dev/null
7306fi
7307echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7308echo "${ECHO_T}$lt_cv_objdir" >&6
7309objdir=$lt_cv_objdir
7310
7311
7312
7313
7314
7315case $host_os in
7316aix3*)
7317  # AIX sometimes has problems with the GCC collect2 program.  For some
7318  # reason, if we set the COLLECT_NAMES environment variable, the problems
7319  # vanish in a puff of smoke.
7320  if test "X${COLLECT_NAMES+set}" != Xset; then
7321    COLLECT_NAMES=
7322    export COLLECT_NAMES
7323  fi
7324  ;;
7325esac
7326
7327# Sed substitution that helps us do robust quoting.  It backslashifies
7328# metacharacters that are still active within double-quoted strings.
7329Xsed='sed -e 1s/^X//'
7330sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7331
7332# Same as above, but do not quote variable references.
7333double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7334
7335# Sed substitution to delay expansion of an escaped shell variable in a
7336# double_quote_subst'ed string.
7337delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7338
7339# Sed substitution to avoid accidental globbing in evaled expressions
7340no_glob_subst='s/\*/\\\*/g'
7341
7342# Constants:
7343rm="rm -f"
7344
7345# Global variables:
7346default_ofile=libtool
7347can_build_shared=yes
7348
7349# All known linkers require a `.a' archive for static linking (except MSVC,
7350# which needs '.lib').
7351libext=a
7352ltmain="$ac_aux_dir/ltmain.sh"
7353ofile="$default_ofile"
7354with_gnu_ld="$lt_cv_prog_gnu_ld"
7355
7356if test -n "$ac_tool_prefix"; then
7357  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7358set dummy ${ac_tool_prefix}ar; ac_word=$2
7359echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361if test "${ac_cv_prog_AR+set}" = set; then
7362  echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364  if test -n "$AR"; then
7365  ac_cv_prog_AR="$AR" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370  IFS=$as_save_IFS
7371  test -z "$as_dir" && as_dir=.
7372  for ac_exec_ext in '' $ac_executable_extensions; do
7373  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374    ac_cv_prog_AR="${ac_tool_prefix}ar"
7375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376    break 2
7377  fi
7378done
7379done
7380
7381fi
7382fi
7383AR=$ac_cv_prog_AR
7384if test -n "$AR"; then
7385  echo "$as_me:$LINENO: result: $AR" >&5
7386echo "${ECHO_T}$AR" >&6
7387else
7388  echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
7390fi
7391
7392fi
7393if test -z "$ac_cv_prog_AR"; then
7394  ac_ct_AR=$AR
7395  # Extract the first word of "ar", so it can be a program name with args.
7396set dummy ar; ac_word=$2
7397echo "$as_me:$LINENO: checking for $ac_word" >&5
7398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7400  echo $ECHO_N "(cached) $ECHO_C" >&6
7401else
7402  if test -n "$ac_ct_AR"; then
7403  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408  IFS=$as_save_IFS
7409  test -z "$as_dir" && as_dir=.
7410  for ac_exec_ext in '' $ac_executable_extensions; do
7411  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412    ac_cv_prog_ac_ct_AR="ar"
7413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414    break 2
7415  fi
7416done
7417done
7418
7419  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7420fi
7421fi
7422ac_ct_AR=$ac_cv_prog_ac_ct_AR
7423if test -n "$ac_ct_AR"; then
7424  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7425echo "${ECHO_T}$ac_ct_AR" >&6
7426else
7427  echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429fi
7430
7431  AR=$ac_ct_AR
7432else
7433  AR="$ac_cv_prog_AR"
7434fi
7435
7436if test -n "$ac_tool_prefix"; then
7437  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7438set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7439echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441if test "${ac_cv_prog_RANLIB+set}" = set; then
7442  echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444  if test -n "$RANLIB"; then
7445  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7446else
7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450  IFS=$as_save_IFS
7451  test -z "$as_dir" && as_dir=.
7452  for ac_exec_ext in '' $ac_executable_extensions; do
7453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456    break 2
7457  fi
7458done
7459done
7460
7461fi
7462fi
7463RANLIB=$ac_cv_prog_RANLIB
7464if test -n "$RANLIB"; then
7465  echo "$as_me:$LINENO: result: $RANLIB" >&5
7466echo "${ECHO_T}$RANLIB" >&6
7467else
7468  echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
7470fi
7471
7472fi
7473if test -z "$ac_cv_prog_RANLIB"; then
7474  ac_ct_RANLIB=$RANLIB
7475  # Extract the first word of "ranlib", so it can be a program name with args.
7476set dummy ranlib; ac_word=$2
7477echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7480  echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482  if test -n "$ac_ct_RANLIB"; then
7483  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7484else
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488  IFS=$as_save_IFS
7489  test -z "$as_dir" && as_dir=.
7490  for ac_exec_ext in '' $ac_executable_extensions; do
7491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492    ac_cv_prog_ac_ct_RANLIB="ranlib"
7493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494    break 2
7495  fi
7496done
7497done
7498
7499  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7500fi
7501fi
7502ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7503if test -n "$ac_ct_RANLIB"; then
7504  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7505echo "${ECHO_T}$ac_ct_RANLIB" >&6
7506else
7507  echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509fi
7510
7511  RANLIB=$ac_ct_RANLIB
7512else
7513  RANLIB="$ac_cv_prog_RANLIB"
7514fi
7515
7516if test -n "$ac_tool_prefix"; then
7517  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7518set dummy ${ac_tool_prefix}strip; ac_word=$2
7519echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521if test "${ac_cv_prog_STRIP+set}" = set; then
7522  echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524  if test -n "$STRIP"; then
7525  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530  IFS=$as_save_IFS
7531  test -z "$as_dir" && as_dir=.
7532  for ac_exec_ext in '' $ac_executable_extensions; do
7533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536    break 2
7537  fi
7538done
7539done
7540
7541fi
7542fi
7543STRIP=$ac_cv_prog_STRIP
7544if test -n "$STRIP"; then
7545  echo "$as_me:$LINENO: result: $STRIP" >&5
7546echo "${ECHO_T}$STRIP" >&6
7547else
7548  echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550fi
7551
7552fi
7553if test -z "$ac_cv_prog_STRIP"; then
7554  ac_ct_STRIP=$STRIP
7555  # Extract the first word of "strip", so it can be a program name with args.
7556set dummy strip; ac_word=$2
7557echo "$as_me:$LINENO: checking for $ac_word" >&5
7558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7560  echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562  if test -n "$ac_ct_STRIP"; then
7563  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568  IFS=$as_save_IFS
7569  test -z "$as_dir" && as_dir=.
7570  for ac_exec_ext in '' $ac_executable_extensions; do
7571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572    ac_cv_prog_ac_ct_STRIP="strip"
7573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574    break 2
7575  fi
7576done
7577done
7578
7579  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7580fi
7581fi
7582ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7583if test -n "$ac_ct_STRIP"; then
7584  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7585echo "${ECHO_T}$ac_ct_STRIP" >&6
7586else
7587  echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
7589fi
7590
7591  STRIP=$ac_ct_STRIP
7592else
7593  STRIP="$ac_cv_prog_STRIP"
7594fi
7595
7596
7597old_CC="$CC"
7598old_CFLAGS="$CFLAGS"
7599
7600# Set sane defaults for various variables
7601test -z "$AR" && AR=ar
7602test -z "$AR_FLAGS" && AR_FLAGS=cru
7603test -z "$AS" && AS=as
7604test -z "$CC" && CC=cc
7605test -z "$LTCC" && LTCC=$CC
7606test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7607test -z "$DLLTOOL" && DLLTOOL=dlltool
7608test -z "$LD" && LD=ld
7609test -z "$LN_S" && LN_S="ln -s"
7610test -z "$MAGIC_CMD" && MAGIC_CMD=file
7611test -z "$NM" && NM=nm
7612test -z "$SED" && SED=sed
7613test -z "$OBJDUMP" && OBJDUMP=objdump
7614test -z "$RANLIB" && RANLIB=:
7615test -z "$STRIP" && STRIP=:
7616test -z "$ac_objext" && ac_objext=o
7617
7618# Determine commands to create old-style static archives.
7619old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7620old_postinstall_cmds='chmod 644 $oldlib'
7621old_postuninstall_cmds=
7622
7623if test -n "$RANLIB"; then
7624  case $host_os in
7625  openbsd*)
7626    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7627    ;;
7628  *)
7629    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7630    ;;
7631  esac
7632  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7633fi
7634
7635for cc_temp in $compiler""; do
7636  case $cc_temp in
7637    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7638    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7639    \-*) ;;
7640    *) break;;
7641  esac
7642done
7643cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7644
7645
7646# Only perform the check for file, if the check method requires it
7647case $deplibs_check_method in
7648file_magic*)
7649  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7650    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7651echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7652if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7653  echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655  case $MAGIC_CMD in
7656[\\/*] |  ?:[\\/]*)
7657  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658  ;;
7659*)
7660  lt_save_MAGIC_CMD="$MAGIC_CMD"
7661  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663  for ac_dir in $ac_dummy; do
7664    IFS="$lt_save_ifs"
7665    test -z "$ac_dir" && ac_dir=.
7666    if test -f $ac_dir/${ac_tool_prefix}file; then
7667      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7668      if test -n "$file_magic_test_file"; then
7669        case $deplibs_check_method in
7670        "file_magic "*)
7671          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674            $EGREP "$file_magic_regex" > /dev/null; then
7675            :
7676          else
7677            cat <<EOF 1>&2
7678
7679*** Warning: the command libtool uses to detect shared libraries,
7680*** $file_magic_cmd, produces output that libtool cannot recognize.
7681*** The result is that libtool may fail to recognize shared libraries
7682*** as such.  This will affect the creation of libtool libraries that
7683*** depend on shared libraries, but programs linked with such libtool
7684*** libraries will work regardless of this problem.  Nevertheless, you
7685*** may want to report the problem to your system manager and/or to
7686*** bug-libtool@gnu.org
7687
7688EOF
7689          fi ;;
7690        esac
7691      fi
7692      break
7693    fi
7694  done
7695  IFS="$lt_save_ifs"
7696  MAGIC_CMD="$lt_save_MAGIC_CMD"
7697  ;;
7698esac
7699fi
7700
7701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702if test -n "$MAGIC_CMD"; then
7703  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7704echo "${ECHO_T}$MAGIC_CMD" >&6
7705else
7706  echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6
7708fi
7709
7710if test -z "$lt_cv_path_MAGIC_CMD"; then
7711  if test -n "$ac_tool_prefix"; then
7712    echo "$as_me:$LINENO: checking for file" >&5
7713echo $ECHO_N "checking for file... $ECHO_C" >&6
7714if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  case $MAGIC_CMD in
7718[\\/*] |  ?:[\\/]*)
7719  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7720  ;;
7721*)
7722  lt_save_MAGIC_CMD="$MAGIC_CMD"
7723  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7724  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7725  for ac_dir in $ac_dummy; do
7726    IFS="$lt_save_ifs"
7727    test -z "$ac_dir" && ac_dir=.
7728    if test -f $ac_dir/file; then
7729      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7730      if test -n "$file_magic_test_file"; then
7731        case $deplibs_check_method in
7732        "file_magic "*)
7733          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7734          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7735          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7736            $EGREP "$file_magic_regex" > /dev/null; then
7737            :
7738          else
7739            cat <<EOF 1>&2
7740
7741*** Warning: the command libtool uses to detect shared libraries,
7742*** $file_magic_cmd, produces output that libtool cannot recognize.
7743*** The result is that libtool may fail to recognize shared libraries
7744*** as such.  This will affect the creation of libtool libraries that
7745*** depend on shared libraries, but programs linked with such libtool
7746*** libraries will work regardless of this problem.  Nevertheless, you
7747*** may want to report the problem to your system manager and/or to
7748*** bug-libtool@gnu.org
7749
7750EOF
7751          fi ;;
7752        esac
7753      fi
7754      break
7755    fi
7756  done
7757  IFS="$lt_save_ifs"
7758  MAGIC_CMD="$lt_save_MAGIC_CMD"
7759  ;;
7760esac
7761fi
7762
7763MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764if test -n "$MAGIC_CMD"; then
7765  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7766echo "${ECHO_T}$MAGIC_CMD" >&6
7767else
7768  echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770fi
7771
7772  else
7773    MAGIC_CMD=:
7774  fi
7775fi
7776
7777  fi
7778  ;;
7779esac
7780
7781enable_dlopen=no
7782enable_win32_dll=no
7783
7784# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7785if test "${enable_libtool_lock+set}" = set; then
7786  enableval="$enable_libtool_lock"
7787
7788fi;
7789test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7790
7791
7792# Check whether --with-pic or --without-pic was given.
7793if test "${with_pic+set}" = set; then
7794  withval="$with_pic"
7795  pic_mode="$withval"
7796else
7797  pic_mode=default
7798fi;
7799test -z "$pic_mode" && pic_mode=default
7800
7801# Use C for the default configuration in the libtool script
7802tagname=
7803lt_save_CC="$CC"
7804ac_ext=c
7805ac_cpp='$CPP $CPPFLAGS'
7806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
7810
7811# Source file extension for C test sources.
7812ac_ext=c
7813
7814# Object file extension for compiled C test sources.
7815objext=o
7816objext=$objext
7817
7818# Code to be used in simple compile tests
7819lt_simple_compile_test_code="int some_variable = 0;\n"
7820
7821# Code to be used in simple link tests
7822lt_simple_link_test_code='int main(){return(0);}\n'
7823
7824
7825# If no C compiler was specified, use CC.
7826LTCC=${LTCC-"$CC"}
7827
7828# If no C compiler flags were specified, use CFLAGS.
7829LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7830
7831# Allow CC to be a program name with arguments.
7832compiler=$CC
7833
7834
7835# save warnings/boilerplate of simple test code
7836ac_outfile=conftest.$ac_objext
7837printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7838eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7839_lt_compiler_boilerplate=`cat conftest.err`
7840$rm conftest*
7841
7842ac_outfile=conftest.$ac_objext
7843printf "$lt_simple_link_test_code" >conftest.$ac_ext
7844eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7845_lt_linker_boilerplate=`cat conftest.err`
7846$rm conftest*
7847
7848
7849## CAVEAT EMPTOR:
7850## There is no encapsulation within the following macros, do not change
7851## the running order or otherwise move them around unless you know exactly
7852## what you are doing...
7853
7854lt_prog_compiler_no_builtin_flag=
7855
7856if test "$GCC" = yes; then
7857  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7858
7859
7860echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7861echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7862if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7863  echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865  lt_cv_prog_compiler_rtti_exceptions=no
7866  ac_outfile=conftest.$ac_objext
7867   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7868   lt_compiler_flag="-fno-rtti -fno-exceptions"
7869   # Insert the option either (1) after the last *FLAGS variable, or
7870   # (2) before a word containing "conftest.", or (3) at the end.
7871   # Note that $ac_compile itself does not contain backslashes and begins
7872   # with a dollar sign (not a hyphen), so the echo should work correctly.
7873   # The option is referenced via a variable to avoid confusing sed.
7874   lt_compile=`echo "$ac_compile" | $SED \
7875   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7876   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7877   -e 's:$: $lt_compiler_flag:'`
7878   (eval echo "\"\$as_me:7878: $lt_compile\"" >&5)
7879   (eval "$lt_compile" 2>conftest.err)
7880   ac_status=$?
7881   cat conftest.err >&5
7882   echo "$as_me:7882: \$? = $ac_status" >&5
7883   if (exit $ac_status) && test -s "$ac_outfile"; then
7884     # The compiler can only warn and ignore the option if not recognized
7885     # So say no if there are warnings other than the usual output.
7886     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7887     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7888     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7889       lt_cv_prog_compiler_rtti_exceptions=yes
7890     fi
7891   fi
7892   $rm conftest*
7893
7894fi
7895echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7896echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7897
7898if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7899    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7900else
7901    :
7902fi
7903
7904fi
7905
7906lt_prog_compiler_wl=
7907lt_prog_compiler_pic=
7908lt_prog_compiler_static=
7909
7910echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7911echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7912
7913  if test "$GCC" = yes; then
7914    lt_prog_compiler_wl='-Wl,'
7915    lt_prog_compiler_static='-static'
7916
7917    case $host_os in
7918      aix*)
7919      # All AIX code is PIC.
7920      if test "$host_cpu" = ia64; then
7921        # AIX 5 now supports IA64 processor
7922        lt_prog_compiler_static='-Bstatic'
7923      fi
7924      ;;
7925
7926    amigaos*)
7927      # FIXME: we need at least 68020 code to build shared libraries, but
7928      # adding the `-m68020' flag to GCC prevents building anything better,
7929      # like `-m68040'.
7930      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7931      ;;
7932
7933    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7934      # PIC is the default for these OSes.
7935      ;;
7936
7937    mingw* | pw32* | os2*)
7938      # This hack is so that the source file can tell whether it is being
7939      # built for inclusion in a dll (and should export symbols for example).
7940      lt_prog_compiler_pic='-DDLL_EXPORT'
7941      ;;
7942
7943    darwin* | rhapsody*)
7944      # PIC is the default on this platform
7945      # Common symbols not allowed in MH_DYLIB files
7946      lt_prog_compiler_pic='-fno-common'
7947      ;;
7948
7949    interix3*)
7950      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7951      # Instead, we relocate shared libraries at runtime.
7952      ;;
7953
7954    msdosdjgpp*)
7955      # Just because we use GCC doesn't mean we suddenly get shared libraries
7956      # on systems that don't support them.
7957      lt_prog_compiler_can_build_shared=no
7958      enable_shared=no
7959      ;;
7960
7961    sysv4*MP*)
7962      if test -d /usr/nec; then
7963        lt_prog_compiler_pic=-Kconform_pic
7964      fi
7965      ;;
7966
7967    hpux*)
7968      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7969      # not for PA HP-UX.
7970      case $host_cpu in
7971      hppa*64*|ia64*)
7972        # +Z the default
7973        ;;
7974      *)
7975        lt_prog_compiler_pic='-fPIC'
7976        ;;
7977      esac
7978      ;;
7979
7980    *)
7981      lt_prog_compiler_pic='-fPIC'
7982      ;;
7983    esac
7984  else
7985    # PORTME Check for flag to pass linker flags through the system compiler.
7986    case $host_os in
7987    aix*)
7988      lt_prog_compiler_wl='-Wl,'
7989      if test "$host_cpu" = ia64; then
7990        # AIX 5 now supports IA64 processor
7991        lt_prog_compiler_static='-Bstatic'
7992      else
7993        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7994      fi
7995      ;;
7996      darwin*)
7997        # PIC is the default on this platform
7998        # Common symbols not allowed in MH_DYLIB files
7999       case $cc_basename in
8000         xlc*)
8001         lt_prog_compiler_pic='-qnocommon'
8002         lt_prog_compiler_wl='-Wl,'
8003         ;;
8004       esac
8005       ;;
8006
8007    mingw* | pw32* | os2*)
8008      # This hack is so that the source file can tell whether it is being
8009      # built for inclusion in a dll (and should export symbols for example).
8010      lt_prog_compiler_pic='-DDLL_EXPORT'
8011      ;;
8012
8013    hpux9* | hpux10* | hpux11*)
8014      lt_prog_compiler_wl='-Wl,'
8015      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8016      # not for PA HP-UX.
8017      case $host_cpu in
8018      hppa*64*|ia64*)
8019        # +Z the default
8020        ;;
8021      *)
8022        lt_prog_compiler_pic='+Z'
8023        ;;
8024      esac
8025      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8026      lt_prog_compiler_static='${wl}-a ${wl}archive'
8027      ;;
8028
8029    irix5* | irix6* | nonstopux*)
8030      lt_prog_compiler_wl='-Wl,'
8031      # PIC (with -KPIC) is the default.
8032      lt_prog_compiler_static='-non_shared'
8033      ;;
8034
8035    newsos6)
8036      lt_prog_compiler_pic='-KPIC'
8037      lt_prog_compiler_static='-Bstatic'
8038      ;;
8039
8040    linux*)
8041      case $cc_basename in
8042      icc* | ecc*)
8043        lt_prog_compiler_wl='-Wl,'
8044        lt_prog_compiler_pic='-KPIC'
8045        lt_prog_compiler_static='-static'
8046        ;;
8047      pgcc* | pgf77* | pgf90* | pgf95*)
8048        # Portland Group compilers (*not* the Pentium gcc compiler,
8049        # which looks to be a dead project)
8050        lt_prog_compiler_wl='-Wl,'
8051        lt_prog_compiler_pic='-fpic'
8052        lt_prog_compiler_static='-Bstatic'
8053        ;;
8054      ccc*)
8055        lt_prog_compiler_wl='-Wl,'
8056        # All Alpha code is PIC.
8057        lt_prog_compiler_static='-non_shared'
8058        ;;
8059      esac
8060      ;;
8061
8062    osf3* | osf4* | osf5*)
8063      lt_prog_compiler_wl='-Wl,'
8064      # All OSF/1 code is PIC.
8065      lt_prog_compiler_static='-non_shared'
8066      ;;
8067
8068    solaris*)
8069      lt_prog_compiler_pic='-KPIC'
8070      lt_prog_compiler_static='-Bstatic'
8071      case $cc_basename in
8072      f77* | f90* | f95*)
8073        lt_prog_compiler_wl='-Qoption ld ';;
8074      *)
8075        lt_prog_compiler_wl='-Wl,';;
8076      esac
8077      ;;
8078
8079    sunos4*)
8080      lt_prog_compiler_wl='-Qoption ld '
8081      lt_prog_compiler_pic='-PIC'
8082      lt_prog_compiler_static='-Bstatic'
8083      ;;
8084
8085    sysv4 | sysv4.2uw2* | sysv4.3*)
8086      lt_prog_compiler_wl='-Wl,'
8087      lt_prog_compiler_pic='-KPIC'
8088      lt_prog_compiler_static='-Bstatic'
8089      ;;
8090
8091    sysv4*MP*)
8092      if test -d /usr/nec ;then
8093        lt_prog_compiler_pic='-Kconform_pic'
8094        lt_prog_compiler_static='-Bstatic'
8095      fi
8096      ;;
8097
8098    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8099      lt_prog_compiler_wl='-Wl,'
8100      lt_prog_compiler_pic='-KPIC'
8101      lt_prog_compiler_static='-Bstatic'
8102      ;;
8103
8104    unicos*)
8105      lt_prog_compiler_wl='-Wl,'
8106      lt_prog_compiler_can_build_shared=no
8107      ;;
8108
8109    uts4*)
8110      lt_prog_compiler_pic='-pic'
8111      lt_prog_compiler_static='-Bstatic'
8112      ;;
8113
8114    *)
8115      lt_prog_compiler_can_build_shared=no
8116      ;;
8117    esac
8118  fi
8119
8120echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8121echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8122
8123#
8124# Check to make sure the PIC flag actually works.
8125#
8126if test -n "$lt_prog_compiler_pic"; then
8127
8128echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8129echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8130if test "${lt_prog_compiler_pic_works+set}" = set; then
8131  echo $ECHO_N "(cached) $ECHO_C" >&6
8132else
8133  lt_prog_compiler_pic_works=no
8134  ac_outfile=conftest.$ac_objext
8135   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8136   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8137   # Insert the option either (1) after the last *FLAGS variable, or
8138   # (2) before a word containing "conftest.", or (3) at the end.
8139   # Note that $ac_compile itself does not contain backslashes and begins
8140   # with a dollar sign (not a hyphen), so the echo should work correctly.
8141   # The option is referenced via a variable to avoid confusing sed.
8142   lt_compile=`echo "$ac_compile" | $SED \
8143   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8145   -e 's:$: $lt_compiler_flag:'`
8146   (eval echo "\"\$as_me:8146: $lt_compile\"" >&5)
8147   (eval "$lt_compile" 2>conftest.err)
8148   ac_status=$?
8149   cat conftest.err >&5
8150   echo "$as_me:8150: \$? = $ac_status" >&5
8151   if (exit $ac_status) && test -s "$ac_outfile"; then
8152     # The compiler can only warn and ignore the option if not recognized
8153     # So say no if there are warnings other than the usual output.
8154     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8155     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8156     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8157       lt_prog_compiler_pic_works=yes
8158     fi
8159   fi
8160   $rm conftest*
8161
8162fi
8163echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8164echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8165
8166if test x"$lt_prog_compiler_pic_works" = xyes; then
8167    case $lt_prog_compiler_pic in
8168     "" | " "*) ;;
8169     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8170     esac
8171else
8172    lt_prog_compiler_pic=
8173     lt_prog_compiler_can_build_shared=no
8174fi
8175
8176fi
8177case $host_os in
8178  # For platforms which do not support PIC, -DPIC is meaningless:
8179  *djgpp*)
8180    lt_prog_compiler_pic=
8181    ;;
8182  *)
8183    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8184    ;;
8185esac
8186
8187#
8188# Check to make sure the static flag actually works.
8189#
8190wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8191echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8192echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8193if test "${lt_prog_compiler_static_works+set}" = set; then
8194  echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196  lt_prog_compiler_static_works=no
8197   save_LDFLAGS="$LDFLAGS"
8198   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8199   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8200   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8201     # The linker can only warn and ignore the option if not recognized
8202     # So say no if there are warnings
8203     if test -s conftest.err; then
8204       # Append any errors to the config.log.
8205       cat conftest.err 1>&5
8206       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8207       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8208       if diff conftest.exp conftest.er2 >/dev/null; then
8209         lt_prog_compiler_static_works=yes
8210       fi
8211     else
8212       lt_prog_compiler_static_works=yes
8213     fi
8214   fi
8215   $rm conftest*
8216   LDFLAGS="$save_LDFLAGS"
8217
8218fi
8219echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8220echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8221
8222if test x"$lt_prog_compiler_static_works" = xyes; then
8223    :
8224else
8225    lt_prog_compiler_static=
8226fi
8227
8228
8229echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8230echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8231if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234  lt_cv_prog_compiler_c_o=no
8235   $rm -r conftest 2>/dev/null
8236   mkdir conftest
8237   cd conftest
8238   mkdir out
8239   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
8241   lt_compiler_flag="-o out/conftest2.$ac_objext"
8242   # Insert the option either (1) after the last *FLAGS variable, or
8243   # (2) before a word containing "conftest.", or (3) at the end.
8244   # Note that $ac_compile itself does not contain backslashes and begins
8245   # with a dollar sign (not a hyphen), so the echo should work correctly.
8246   lt_compile=`echo "$ac_compile" | $SED \
8247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249   -e 's:$: $lt_compiler_flag:'`
8250   (eval echo "\"\$as_me:8250: $lt_compile\"" >&5)
8251   (eval "$lt_compile" 2>out/conftest.err)
8252   ac_status=$?
8253   cat out/conftest.err >&5
8254   echo "$as_me:8254: \$? = $ac_status" >&5
8255   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256   then
8257     # The compiler can only warn and ignore the option if not recognized
8258     # So say no if there are warnings
8259     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8260     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262       lt_cv_prog_compiler_c_o=yes
8263     fi
8264   fi
8265   chmod u+w . 2>&5
8266   $rm conftest*
8267   # SGI C++ compiler will create directory out/ii_files/ for
8268   # template instantiation
8269   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8270   $rm out/* && rmdir out
8271   cd ..
8272   rmdir conftest
8273   $rm conftest*
8274
8275fi
8276echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8277echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8278
8279
8280hard_links="nottested"
8281if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8282  # do not overwrite the value of need_locks provided by the user
8283  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8284echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8285  hard_links=yes
8286  $rm conftest*
8287  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288  touch conftest.a
8289  ln conftest.a conftest.b 2>&5 || hard_links=no
8290  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291  echo "$as_me:$LINENO: result: $hard_links" >&5
8292echo "${ECHO_T}$hard_links" >&6
8293  if test "$hard_links" = no; then
8294    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8295echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8296    need_locks=warn
8297  fi
8298else
8299  need_locks=no
8300fi
8301
8302echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8303echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8304
8305  runpath_var=
8306  allow_undefined_flag=
8307  enable_shared_with_static_runtimes=no
8308  archive_cmds=
8309  archive_expsym_cmds=
8310  old_archive_From_new_cmds=
8311  old_archive_from_expsyms_cmds=
8312  export_dynamic_flag_spec=
8313  whole_archive_flag_spec=
8314  thread_safe_flag_spec=
8315  hardcode_libdir_flag_spec=
8316  hardcode_libdir_flag_spec_ld=
8317  hardcode_libdir_separator=
8318  hardcode_direct=no
8319  hardcode_minus_L=no
8320  hardcode_shlibpath_var=unsupported
8321  link_all_deplibs=unknown
8322  hardcode_automatic=no
8323  module_cmds=
8324  module_expsym_cmds=
8325  always_export_symbols=no
8326  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8327  # include_expsyms should be a list of space-separated symbols to be *always*
8328  # included in the symbol list
8329  include_expsyms=
8330  # exclude_expsyms can be an extended regexp of symbols to exclude
8331  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8332  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8333  # as well as any symbol that contains `d'.
8334  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8335  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8336  # platforms (ab)use it in PIC code, but their linkers get confused if
8337  # the symbol is explicitly referenced.  Since portable code cannot
8338  # rely on this symbol name, it's probably fine to never include it in
8339  # preloaded symbol tables.
8340  extract_expsyms_cmds=
8341  # Just being paranoid about ensuring that cc_basename is set.
8342  for cc_temp in $compiler""; do
8343  case $cc_temp in
8344    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8345    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8346    \-*) ;;
8347    *) break;;
8348  esac
8349done
8350cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8351
8352  case $host_os in
8353  cygwin* | mingw* | pw32*)
8354    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8355    # When not using gcc, we currently assume that we are using
8356    # Microsoft Visual C++.
8357    if test "$GCC" != yes; then
8358      with_gnu_ld=no
8359    fi
8360    ;;
8361  interix*)
8362    # we just hope/assume this is gcc and not c89 (= MSVC++)
8363    with_gnu_ld=yes
8364    ;;
8365  openbsd*)
8366    with_gnu_ld=no
8367    ;;
8368  esac
8369
8370  ld_shlibs=yes
8371  if test "$with_gnu_ld" = yes; then
8372    # If archive_cmds runs LD, not CC, wlarc should be empty
8373    wlarc='${wl}'
8374
8375    # Set some defaults for GNU ld with shared library support. These
8376    # are reset later if shared libraries are not supported. Putting them
8377    # here allows them to be overridden if necessary.
8378    runpath_var=LD_RUN_PATH
8379    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8380    export_dynamic_flag_spec='${wl}--export-dynamic'
8381    # ancient GNU ld didn't support --whole-archive et. al.
8382    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8383        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8384      else
8385        whole_archive_flag_spec=
8386    fi
8387    supports_anon_versioning=no
8388    case `$LD -v 2>/dev/null` in
8389      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8390      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8391      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8392      *\ 2.11.*) ;; # other 2.11 versions
8393      *) supports_anon_versioning=yes ;;
8394    esac
8395
8396    # See if GNU ld supports shared libraries.
8397    case $host_os in
8398    aix3* | aix4* | aix5*)
8399      # On AIX/PPC, the GNU linker is very broken
8400      if test "$host_cpu" != ia64; then
8401        ld_shlibs=no
8402        cat <<EOF 1>&2
8403
8404*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8405*** to be unable to reliably create shared libraries on AIX.
8406*** Therefore, libtool is disabling shared libraries support.  If you
8407*** really care for shared libraries, you may want to modify your PATH
8408*** so that a non-GNU linker is found, and then restart.
8409
8410EOF
8411      fi
8412      ;;
8413
8414    amigaos*)
8415      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)'
8416      hardcode_libdir_flag_spec='-L$libdir'
8417      hardcode_minus_L=yes
8418
8419      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8420      # that the semantics of dynamic libraries on AmigaOS, at least up
8421      # to version 4, is to share data among multiple programs linked
8422      # with the same dynamic library.  Since this doesn't match the
8423      # behavior of shared libraries on other platforms, we can't use
8424      # them.
8425      ld_shlibs=no
8426      ;;
8427
8428    beos*)
8429      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8430        allow_undefined_flag=unsupported
8431        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8432        # support --undefined.  This deserves some investigation.  FIXME
8433        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434      else
8435        ld_shlibs=no
8436      fi
8437      ;;
8438
8439    cygwin* | mingw* | pw32*)
8440      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8441      # as there is no search path for DLLs.
8442      hardcode_libdir_flag_spec='-L$libdir'
8443      allow_undefined_flag=unsupported
8444      always_export_symbols=no
8445      enable_shared_with_static_runtimes=yes
8446      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8447
8448      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8449        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8450        # If the export-symbols file already is a .def file (1st line
8451        # is EXPORTS), use it as is; otherwise, prepend...
8452        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8453          cp $export_symbols $output_objdir/$soname.def;
8454        else
8455          echo EXPORTS > $output_objdir/$soname.def;
8456          cat $export_symbols >> $output_objdir/$soname.def;
8457        fi~
8458        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8459      else
8460        ld_shlibs=no
8461      fi
8462      ;;
8463
8464    interix3*)
8465      hardcode_direct=no
8466      hardcode_shlibpath_var=no
8467      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8468      export_dynamic_flag_spec='${wl}-E'
8469      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8470      # Instead, shared libraries are loaded at an image base (0x10000000 by
8471      # default) and relocated if they conflict, which is a slow very memory
8472      # consuming and fragmenting process.  To avoid this, we pick a random,
8473      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8474      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8475      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8476      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'
8477      ;;
8478
8479    linux*)
8480      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8481        tmp_addflag=
8482        case $cc_basename,$host_cpu in
8483        pgcc*)                          # Portland Group C compiler
8484          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'
8485          tmp_addflag=' $pic_flag'
8486          ;;
8487        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8488          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'
8489          tmp_addflag=' $pic_flag -Mnomain' ;;
8490        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8491          tmp_addflag=' -i_dynamic' ;;
8492        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8493          tmp_addflag=' -i_dynamic -nofor_main' ;;
8494        ifc* | ifort*)                  # Intel Fortran compiler
8495          tmp_addflag=' -nofor_main' ;;
8496        esac
8497        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498
8499        if test $supports_anon_versioning = yes; then
8500          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8501  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8502  $echo "local: *; };" >> $output_objdir/$libname.ver~
8503          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8504        fi
8505      else
8506        ld_shlibs=no
8507      fi
8508      ;;
8509
8510    netbsd*)
8511      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8512        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8513        wlarc=
8514      else
8515        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8517      fi
8518      ;;
8519
8520    solaris*)
8521      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8522        ld_shlibs=no
8523        cat <<EOF 1>&2
8524
8525*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8526*** create shared libraries on Solaris systems.  Therefore, libtool
8527*** is disabling shared libraries support.  We urge you to upgrade GNU
8528*** binutils to release 2.9.1 or newer.  Another option is to modify
8529*** your PATH or compiler configuration so that the native linker is
8530*** used, and then restart.
8531
8532EOF
8533      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8534        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8535        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8536      else
8537        ld_shlibs=no
8538      fi
8539      ;;
8540
8541    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8542      case `$LD -v 2>&1` in
8543        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8544        ld_shlibs=no
8545        cat <<_LT_EOF 1>&2
8546
8547*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8548*** reliably create shared libraries on SCO systems.  Therefore, libtool
8549*** is disabling shared libraries support.  We urge you to upgrade GNU
8550*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8551*** your PATH or compiler configuration so that the native linker is
8552*** used, and then restart.
8553
8554_LT_EOF
8555        ;;
8556        *)
8557          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8558            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8559            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8560            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8561          else
8562            ld_shlibs=no
8563          fi
8564        ;;
8565      esac
8566      ;;
8567
8568    sunos4*)
8569      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8570      wlarc=
8571      hardcode_direct=yes
8572      hardcode_shlibpath_var=no
8573      ;;
8574
8575    *)
8576      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8577        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8579      else
8580        ld_shlibs=no
8581      fi
8582      ;;
8583    esac
8584
8585    if test "$ld_shlibs" = no; then
8586      runpath_var=
8587      hardcode_libdir_flag_spec=
8588      export_dynamic_flag_spec=
8589      whole_archive_flag_spec=
8590    fi
8591  else
8592    # PORTME fill in a description of your system's linker (not GNU ld)
8593    case $host_os in
8594    aix3*)
8595      allow_undefined_flag=unsupported
8596      always_export_symbols=yes
8597      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'
8598      # Note: this linker hardcodes the directories in LIBPATH if there
8599      # are no directories specified by -L.
8600      hardcode_minus_L=yes
8601      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8602        # Neither direct hardcoding nor static linking is supported with a
8603        # broken collect2.
8604        hardcode_direct=unsupported
8605      fi
8606      ;;
8607
8608    aix4* | aix5*)
8609      if test "$host_cpu" = ia64; then
8610        # On IA64, the linker does run time linking by default, so we don't
8611        # have to do anything special.
8612        aix_use_runtimelinking=no
8613        exp_sym_flag='-Bexport'
8614        no_entry_flag=""
8615      else
8616        # If we're using GNU nm, then we don't want the "-C" option.
8617        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8618        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8619          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'
8620        else
8621          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'
8622        fi
8623        aix_use_runtimelinking=no
8624
8625        # Test if we are trying to use run time linking or normal
8626        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8627        # need to do runtime linking.
8628        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8629          for ld_flag in $LDFLAGS; do
8630          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8631            aix_use_runtimelinking=yes
8632            break
8633          fi
8634          done
8635          ;;
8636        esac
8637
8638        exp_sym_flag='-bexport'
8639        no_entry_flag='-bnoentry'
8640      fi
8641
8642      # When large executables or shared objects are built, AIX ld can
8643      # have problems creating the table of contents.  If linking a library
8644      # or program results in "error TOC overflow" add -mminimal-toc to
8645      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8646      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8647
8648      archive_cmds=''
8649      hardcode_direct=yes
8650      hardcode_libdir_separator=':'
8651      link_all_deplibs=yes
8652
8653      if test "$GCC" = yes; then
8654        case $host_os in aix4.[012]|aix4.[012].*)
8655        # We only want to do this on AIX 4.2 and lower, the check
8656        # below for broken collect2 doesn't work under 4.3+
8657          collect2name=`${CC} -print-prog-name=collect2`
8658          if test -f "$collect2name" && \
8659           strings "$collect2name" | grep resolve_lib_name >/dev/null
8660          then
8661          # We have reworked collect2
8662          hardcode_direct=yes
8663          else
8664          # We have old collect2
8665          hardcode_direct=unsupported
8666          # It fails to find uninstalled libraries when the uninstalled
8667          # path is not listed in the libpath.  Setting hardcode_minus_L
8668          # to unsupported forces relinking
8669          hardcode_minus_L=yes
8670          hardcode_libdir_flag_spec='-L$libdir'
8671          hardcode_libdir_separator=
8672          fi
8673          ;;
8674        esac
8675        shared_flag='-shared'
8676        if test "$aix_use_runtimelinking" = yes; then
8677          shared_flag="$shared_flag "'${wl}-G'
8678        fi
8679      else
8680        # not using gcc
8681        if test "$host_cpu" = ia64; then
8682        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8683        # chokes on -Wl,-G. The following line is correct:
8684          shared_flag='-G'
8685        else
8686          if test "$aix_use_runtimelinking" = yes; then
8687            shared_flag='${wl}-G'
8688          else
8689            shared_flag='${wl}-bM:SRE'
8690          fi
8691        fi
8692      fi
8693
8694      # It seems that -bexpall does not export symbols beginning with
8695      # underscore (_), so it is better to generate a list of symbols to export.
8696      always_export_symbols=yes
8697      if test "$aix_use_runtimelinking" = yes; then
8698        # Warning - without using the other runtime loading flags (-brtl),
8699        # -berok will link without error, but may produce a broken library.
8700        allow_undefined_flag='-berok'
8701       # Determine the default libpath from the value encoded in an empty executable.
8702       cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h.  */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h.  */
8708
8709int
8710main ()
8711{
8712
8713  ;
8714  return 0;
8715}
8716_ACEOF
8717rm -f conftest.$ac_objext conftest$ac_exeext
8718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719  (eval $ac_link) 2>conftest.er1
8720  ac_status=$?
8721  grep -v '^ *+' conftest.er1 >conftest.err
8722  rm -f conftest.er1
8723  cat conftest.err >&5
8724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725  (exit $ac_status); } &&
8726         { ac_try='test -z "$ac_c_werror_flag"
8727                         || test ! -s conftest.err'
8728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729  (eval $ac_try) 2>&5
8730  ac_status=$?
8731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732  (exit $ac_status); }; } &&
8733         { ac_try='test -s conftest$ac_exeext'
8734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735  (eval $ac_try) 2>&5
8736  ac_status=$?
8737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738  (exit $ac_status); }; }; then
8739
8740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8741}'`
8742# Check for a 64-bit object if we didn't find anything.
8743if 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; }
8744}'`; fi
8745else
8746  echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749fi
8750rm -f conftest.err conftest.$ac_objext \
8751      conftest$ac_exeext conftest.$ac_ext
8752if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8753
8754       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8755        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"
8756       else
8757        if test "$host_cpu" = ia64; then
8758          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8759          allow_undefined_flag="-z nodefs"
8760          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"
8761        else
8762         # Determine the default libpath from the value encoded in an empty executable.
8763         cat >conftest.$ac_ext <<_ACEOF
8764/* confdefs.h.  */
8765_ACEOF
8766cat confdefs.h >>conftest.$ac_ext
8767cat >>conftest.$ac_ext <<_ACEOF
8768/* end confdefs.h.  */
8769
8770int
8771main ()
8772{
8773
8774  ;
8775  return 0;
8776}
8777_ACEOF
8778rm -f conftest.$ac_objext conftest$ac_exeext
8779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780  (eval $ac_link) 2>conftest.er1
8781  ac_status=$?
8782  grep -v '^ *+' conftest.er1 >conftest.err
8783  rm -f conftest.er1
8784  cat conftest.err >&5
8785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786  (exit $ac_status); } &&
8787         { ac_try='test -z "$ac_c_werror_flag"
8788                         || test ! -s conftest.err'
8789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790  (eval $ac_try) 2>&5
8791  ac_status=$?
8792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793  (exit $ac_status); }; } &&
8794         { ac_try='test -s conftest$ac_exeext'
8795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796  (eval $ac_try) 2>&5
8797  ac_status=$?
8798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799  (exit $ac_status); }; }; then
8800
8801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8802}'`
8803# Check for a 64-bit object if we didn't find anything.
8804if 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; }
8805}'`; fi
8806else
8807  echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810fi
8811rm -f conftest.err conftest.$ac_objext \
8812      conftest$ac_exeext conftest.$ac_ext
8813if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8814
8815         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8816          # Warning - without using the other run time loading flags,
8817          # -berok will link without error, but may produce a broken library.
8818          no_undefined_flag=' ${wl}-bernotok'
8819          allow_undefined_flag=' ${wl}-berok'
8820          # Exported symbols can be pulled into shared objects from archives
8821          whole_archive_flag_spec='$convenience'
8822          archive_cmds_need_lc=yes
8823          # This is similar to how AIX traditionally builds its shared libraries.
8824          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'
8825        fi
8826      fi
8827      ;;
8828
8829    amigaos*)
8830      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)'
8831      hardcode_libdir_flag_spec='-L$libdir'
8832      hardcode_minus_L=yes
8833      # see comment about different semantics on the GNU ld section
8834      ld_shlibs=no
8835      ;;
8836
8837    bsdi[45]*)
8838      export_dynamic_flag_spec=-rdynamic
8839      ;;
8840
8841    cygwin* | mingw* | pw32*)
8842      # When not using gcc, we currently assume that we are using
8843      # Microsoft Visual C++.
8844      # hardcode_libdir_flag_spec is actually meaningless, as there is
8845      # no search path for DLLs.
8846      hardcode_libdir_flag_spec=' '
8847      allow_undefined_flag=unsupported
8848      # Tell ltmain to make .lib files, not .a files.
8849      libext=lib
8850      # Tell ltmain to make .dll files, not .so files.
8851      shrext_cmds=".dll"
8852      # FIXME: Setting linknames here is a bad hack.
8853      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8854      # The linker will automatically build a .lib file if we build a DLL.
8855      old_archive_From_new_cmds='true'
8856      # FIXME: Should let the user specify the lib program.
8857      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8858      fix_srcfile_path='`cygpath -w "$srcfile"`'
8859      enable_shared_with_static_runtimes=yes
8860      ;;
8861
8862    darwin* | rhapsody*)
8863      case $host_os in
8864        rhapsody* | darwin1.[012])
8865         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8866         ;;
8867       *) # Darwin 1.3 on
8868         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8869           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8870         else
8871           case ${MACOSX_DEPLOYMENT_TARGET} in
8872             10.[012])
8873               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8874               ;;
8875             10.*)
8876               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8877               ;;
8878           esac
8879         fi
8880         ;;
8881      esac
8882      archive_cmds_need_lc=no
8883      hardcode_direct=no
8884      hardcode_automatic=yes
8885      hardcode_shlibpath_var=unsupported
8886      whole_archive_flag_spec=''
8887      link_all_deplibs=yes
8888    if test "$GCC" = yes ; then
8889        output_verbose_link_cmd='echo'
8890        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8891      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8892      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8893      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}'
8894      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}'
8895    else
8896      case $cc_basename in
8897        xlc*)
8898         output_verbose_link_cmd='echo'
8899         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8900         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8901          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8902         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}'
8903          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}'
8904          ;;
8905       *)
8906         ld_shlibs=no
8907          ;;
8908      esac
8909    fi
8910      ;;
8911
8912    dgux*)
8913      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914      hardcode_libdir_flag_spec='-L$libdir'
8915      hardcode_shlibpath_var=no
8916      ;;
8917
8918    freebsd1*)
8919      ld_shlibs=no
8920      ;;
8921
8922    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8923    # support.  Future versions do this automatically, but an explicit c++rt0.o
8924    # does not break anything, and helps significantly (at the cost of a little
8925    # extra space).
8926    freebsd2.2*)
8927      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8928      hardcode_libdir_flag_spec='-R$libdir'
8929      hardcode_direct=yes
8930      hardcode_shlibpath_var=no
8931      ;;
8932
8933    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8934    freebsd2*)
8935      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8936      hardcode_direct=yes
8937      hardcode_minus_L=yes
8938      hardcode_shlibpath_var=no
8939      ;;
8940
8941    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8942    freebsd* | kfreebsd*-gnu | dragonfly*)
8943      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8944      hardcode_libdir_flag_spec='-R$libdir'
8945      hardcode_direct=yes
8946      hardcode_shlibpath_var=no
8947      ;;
8948
8949    hpux9*)
8950      if test "$GCC" = yes; then
8951        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'
8952      else
8953        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'
8954      fi
8955      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8956      hardcode_libdir_separator=:
8957      hardcode_direct=yes
8958
8959      # hardcode_minus_L: Not really in the search PATH,
8960      # but as the default location of the library.
8961      hardcode_minus_L=yes
8962      export_dynamic_flag_spec='${wl}-E'
8963      ;;
8964
8965    hpux10*)
8966      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8967        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8968      else
8969        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8970      fi
8971      if test "$with_gnu_ld" = no; then
8972        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8973        hardcode_libdir_separator=:
8974
8975        hardcode_direct=yes
8976        export_dynamic_flag_spec='${wl}-E'
8977
8978        # hardcode_minus_L: Not really in the search PATH,
8979        # but as the default location of the library.
8980        hardcode_minus_L=yes
8981      fi
8982      ;;
8983
8984    hpux11*)
8985      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8986        case $host_cpu in
8987        hppa*64*)
8988          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8989          ;;
8990        ia64*)
8991          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8992          ;;
8993        *)
8994          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8995          ;;
8996        esac
8997      else
8998        case $host_cpu in
8999        hppa*64*)
9000          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001          ;;
9002        ia64*)
9003          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9004          ;;
9005        *)
9006          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9007          ;;
9008        esac
9009      fi
9010      if test "$with_gnu_ld" = no; then
9011        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9012        hardcode_libdir_separator=:
9013
9014        case $host_cpu in
9015        hppa*64*|ia64*)
9016          hardcode_libdir_flag_spec_ld='+b $libdir'
9017          hardcode_direct=no
9018          hardcode_shlibpath_var=no
9019          ;;
9020        *)
9021          hardcode_direct=yes
9022          export_dynamic_flag_spec='${wl}-E'
9023
9024          # hardcode_minus_L: Not really in the search PATH,
9025          # but as the default location of the library.
9026          hardcode_minus_L=yes
9027          ;;
9028        esac
9029      fi
9030      ;;
9031
9032    irix5* | irix6* | nonstopux*)
9033      if test "$GCC" = yes; then
9034        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'
9035      else
9036        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'
9037        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9038      fi
9039      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9040      hardcode_libdir_separator=:
9041      link_all_deplibs=yes
9042      ;;
9043
9044    netbsd*)
9045      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9046        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9047      else
9048        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9049      fi
9050      hardcode_libdir_flag_spec='-R$libdir'
9051      hardcode_direct=yes
9052      hardcode_shlibpath_var=no
9053      ;;
9054
9055    newsos6)
9056      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057      hardcode_direct=yes
9058      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059      hardcode_libdir_separator=:
9060      hardcode_shlibpath_var=no
9061      ;;
9062
9063    openbsd*)
9064      hardcode_direct=yes
9065      hardcode_shlibpath_var=no
9066      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9067        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9068        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9069        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9070        export_dynamic_flag_spec='${wl}-E'
9071      else
9072       case $host_os in
9073         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9074           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9075           hardcode_libdir_flag_spec='-R$libdir'
9076           ;;
9077         *)
9078           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9079           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9080           ;;
9081       esac
9082      fi
9083      ;;
9084
9085    os2*)
9086      hardcode_libdir_flag_spec='-L$libdir'
9087      hardcode_minus_L=yes
9088      allow_undefined_flag=unsupported
9089      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'
9090      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9091      ;;
9092
9093    osf3*)
9094      if test "$GCC" = yes; then
9095        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9096        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'
9097      else
9098        allow_undefined_flag=' -expect_unresolved \*'
9099        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'
9100      fi
9101      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102      hardcode_libdir_separator=:
9103      ;;
9104
9105    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9106      if test "$GCC" = yes; then
9107        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9108        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'
9109        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9110      else
9111        allow_undefined_flag=' -expect_unresolved \*'
9112        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'
9113        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9114        $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'
9115
9116        # Both c and cxx compiler support -rpath directly
9117        hardcode_libdir_flag_spec='-rpath $libdir'
9118      fi
9119      hardcode_libdir_separator=:
9120      ;;
9121
9122    solaris*)
9123      no_undefined_flag=' -z text'
9124      if test "$GCC" = yes; then
9125        wlarc='${wl}'
9126        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9127        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9128          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9129      else
9130        wlarc=''
9131        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9133        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9134      fi
9135      hardcode_libdir_flag_spec='-R$libdir'
9136      hardcode_shlibpath_var=no
9137      case $host_os in
9138      solaris2.[0-5] | solaris2.[0-5].*) ;;
9139      *)
9140        # The compiler driver will combine linker options so we
9141        # cannot just pass the convience library names through
9142        # without $wl, iff we do not link with $LD.
9143        # Luckily, gcc supports the same syntax we need for Sun Studio.
9144        # Supported since Solaris 2.6 (maybe 2.5.1?)
9145        case $wlarc in
9146        '')
9147          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9148        *)
9149          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' ;;
9150        esac ;;
9151      esac
9152      link_all_deplibs=yes
9153      ;;
9154
9155    sunos4*)
9156      if test "x$host_vendor" = xsequent; then
9157        # Use $CC to link under sequent, because it throws in some extra .o
9158        # files that make .init and .fini sections work.
9159        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9160      else
9161        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9162      fi
9163      hardcode_libdir_flag_spec='-L$libdir'
9164      hardcode_direct=yes
9165      hardcode_minus_L=yes
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    sysv4)
9170      case $host_vendor in
9171        sni)
9172          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173          hardcode_direct=yes # is this really true???
9174        ;;
9175        siemens)
9176          ## LD is ld it makes a PLAMLIB
9177          ## CC just makes a GrossModule.
9178          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9179          reload_cmds='$CC -r -o $output$reload_objs'
9180          hardcode_direct=no
9181        ;;
9182        motorola)
9183          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9185        ;;
9186      esac
9187      runpath_var='LD_RUN_PATH'
9188      hardcode_shlibpath_var=no
9189      ;;
9190
9191    sysv4.3*)
9192      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9193      hardcode_shlibpath_var=no
9194      export_dynamic_flag_spec='-Bexport'
9195      ;;
9196
9197    sysv4*MP*)
9198      if test -d /usr/nec; then
9199        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200        hardcode_shlibpath_var=no
9201        runpath_var=LD_RUN_PATH
9202        hardcode_runpath_var=yes
9203        ld_shlibs=yes
9204      fi
9205      ;;
9206
9207    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9208      no_undefined_flag='${wl}-z,text'
9209      archive_cmds_need_lc=no
9210      hardcode_shlibpath_var=no
9211      runpath_var='LD_RUN_PATH'
9212
9213      if test "$GCC" = yes; then
9214        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9216      else
9217        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9218        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9219      fi
9220      ;;
9221
9222    sysv5* | sco3.2v5* | sco5v6*)
9223      # Note: We can NOT use -z defs as we might desire, because we do not
9224      # link with -lc, and that would cause any symbols used from libc to
9225      # always be unresolved, which means just about no library would
9226      # ever link correctly.  If we're not using GNU ld we use -z text
9227      # though, which does catch some bad symbols but isn't as heavy-handed
9228      # as -z defs.
9229      no_undefined_flag='${wl}-z,text'
9230      allow_undefined_flag='${wl}-z,nodefs'
9231      archive_cmds_need_lc=no
9232      hardcode_shlibpath_var=no
9233      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9234      hardcode_libdir_separator=':'
9235      link_all_deplibs=yes
9236      export_dynamic_flag_spec='${wl}-Bexport'
9237      runpath_var='LD_RUN_PATH'
9238
9239      if test "$GCC" = yes; then
9240        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9241        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9242      else
9243        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9244        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9245      fi
9246      ;;
9247
9248    uts4*)
9249      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9250      hardcode_libdir_flag_spec='-L$libdir'
9251      hardcode_shlibpath_var=no
9252      ;;
9253
9254    *)
9255      ld_shlibs=no
9256      ;;
9257    esac
9258  fi
9259
9260echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9261echo "${ECHO_T}$ld_shlibs" >&6
9262test "$ld_shlibs" = no && can_build_shared=no
9263
9264#
9265# Do we need to explicitly link libc?
9266#
9267case "x$archive_cmds_need_lc" in
9268x|xyes)
9269  # Assume -lc should be added
9270  archive_cmds_need_lc=yes
9271
9272  if test "$enable_shared" = yes && test "$GCC" = yes; then
9273    case $archive_cmds in
9274    *'~'*)
9275      # FIXME: we may have to deal with multi-command sequences.
9276      ;;
9277    '$CC '*)
9278      # Test whether the compiler implicitly links with -lc since on some
9279      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9280      # to ld, don't add -lc before -lgcc.
9281      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9282echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9283      $rm conftest*
9284      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9285
9286      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287  (eval $ac_compile) 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); } 2>conftest.err; then
9291        soname=conftest
9292        lib=conftest
9293        libobjs=conftest.$ac_objext
9294        deplibs=
9295        wl=$lt_prog_compiler_wl
9296        pic_flag=$lt_prog_compiler_pic
9297        compiler_flags=-v
9298        linker_flags=-v
9299        verstring=
9300        output_objdir=.
9301        libname=conftest
9302        lt_save_allow_undefined_flag=$allow_undefined_flag
9303        allow_undefined_flag=
9304        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9305  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9306  ac_status=$?
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); }
9309        then
9310          archive_cmds_need_lc=no
9311        else
9312          archive_cmds_need_lc=yes
9313        fi
9314        allow_undefined_flag=$lt_save_allow_undefined_flag
9315      else
9316        cat conftest.err 1>&5
9317      fi
9318      $rm conftest*
9319      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9320echo "${ECHO_T}$archive_cmds_need_lc" >&6
9321      ;;
9322    esac
9323  fi
9324  ;;
9325esac
9326
9327echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9328echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9329library_names_spec=
9330libname_spec='lib$name'
9331soname_spec=
9332shrext_cmds=".so"
9333postinstall_cmds=
9334postuninstall_cmds=
9335finish_cmds=
9336finish_eval=
9337shlibpath_var=
9338shlibpath_overrides_runpath=unknown
9339version_type=none
9340dynamic_linker="$host_os ld.so"
9341sys_lib_dlsearch_path_spec="/lib /usr/lib"
9342if test "$GCC" = yes; then
9343  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9344  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9345    # if the path contains ";" then we assume it to be the separator
9346    # otherwise default to the standard path separator (i.e. ":") - it is
9347    # assumed that no part of a normal pathname contains ";" but that should
9348    # okay in the real world where ";" in dirpaths is itself problematic.
9349    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9350  else
9351    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9352  fi
9353else
9354  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9355fi
9356need_lib_prefix=unknown
9357hardcode_into_libs=no
9358
9359# when you set need_version to no, make sure it does not cause -set_version
9360# flags to be left without arguments
9361need_version=unknown
9362
9363case $host_os in
9364aix3*)
9365  version_type=linux
9366  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9367  shlibpath_var=LIBPATH
9368
9369  # AIX 3 has no versioning support, so we append a major version to the name.
9370  soname_spec='${libname}${release}${shared_ext}$major'
9371  ;;
9372
9373aix4* | aix5*)
9374  version_type=linux
9375  need_lib_prefix=no
9376  need_version=no
9377  hardcode_into_libs=yes
9378  if test "$host_cpu" = ia64; then
9379    # AIX 5 supports IA64
9380    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9381    shlibpath_var=LD_LIBRARY_PATH
9382  else
9383    # With GCC up to 2.95.x, collect2 would create an import file
9384    # for dependence libraries.  The import file would start with
9385    # the line `#! .'.  This would cause the generated library to
9386    # depend on `.', always an invalid library.  This was fixed in
9387    # development snapshots of GCC prior to 3.0.
9388    case $host_os in
9389      aix4 | aix4.[01] | aix4.[01].*)
9390      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9391           echo ' yes '
9392           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9393        :
9394      else
9395        can_build_shared=no
9396      fi
9397      ;;
9398    esac
9399    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9400    # soname into executable. Probably we can add versioning support to
9401    # collect2, so additional links can be useful in future.
9402    if test "$aix_use_runtimelinking" = yes; then
9403      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9404      # instead of lib<name>.a to let people know that these are not
9405      # typical AIX shared libraries.
9406      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407    else
9408      # We preserve .a as extension for shared libraries through AIX4.2
9409      # and later when we are not doing run time linking.
9410      library_names_spec='${libname}${release}.a $libname.a'
9411      soname_spec='${libname}${release}${shared_ext}$major'
9412    fi
9413    shlibpath_var=LIBPATH
9414  fi
9415  ;;
9416
9417amigaos*)
9418  library_names_spec='$libname.ixlibrary $libname.a'
9419  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9420  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'
9421  ;;
9422
9423beos*)
9424  library_names_spec='${libname}${shared_ext}'
9425  dynamic_linker="$host_os ld.so"
9426  shlibpath_var=LIBRARY_PATH
9427  ;;
9428
9429bsdi[45]*)
9430  version_type=linux
9431  need_version=no
9432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433  soname_spec='${libname}${release}${shared_ext}$major'
9434  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9437  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9438  # the default ld.so.conf also contains /usr/contrib/lib and
9439  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9440  # libtool to hard-code these into programs
9441  ;;
9442
9443cygwin* | mingw* | pw32*)
9444  version_type=windows
9445  shrext_cmds=".dll"
9446  need_version=no
9447  need_lib_prefix=no
9448
9449  case $GCC,$host_os in
9450  yes,cygwin* | yes,mingw* | yes,pw32*)
9451    library_names_spec='$libname.dll.a'
9452    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9453    postinstall_cmds='base_file=`basename \${file}`~
9454      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9455      dldir=$destdir/`dirname \$dlpath`~
9456      test -d \$dldir || mkdir -p \$dldir~
9457      $install_prog $dir/$dlname \$dldir/$dlname~
9458      chmod a+x \$dldir/$dlname'
9459    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9460      dlpath=$dir/\$dldll~
9461       $rm \$dlpath'
9462    shlibpath_overrides_runpath=yes
9463
9464    case $host_os in
9465    cygwin*)
9466      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9467      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9468      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9469      ;;
9470    mingw*)
9471      # MinGW DLLs use traditional 'lib' prefix
9472      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9473      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9474      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9475        # It is most probably a Windows format PATH printed by
9476        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9477        # path with ; separators, and with drive letters. We can handle the
9478        # drive letters (cygwin fileutils understands them), so leave them,
9479        # especially as we might pass files found there to a mingw objdump,
9480        # which wouldn't understand a cygwinified path. Ahh.
9481        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9482      else
9483        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9484      fi
9485      ;;
9486    pw32*)
9487      # pw32 DLLs use 'pw' prefix rather than 'lib'
9488      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9489      ;;
9490    esac
9491    ;;
9492
9493  *)
9494    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9495    ;;
9496  esac
9497  dynamic_linker='Win32 ld.exe'
9498  # FIXME: first we should search . and the directory the executable is in
9499  shlibpath_var=PATH
9500  ;;
9501
9502darwin* | rhapsody*)
9503  dynamic_linker="$host_os dyld"
9504  version_type=darwin
9505  need_lib_prefix=no
9506  need_version=no
9507  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9508  soname_spec='${libname}${release}${major}$shared_ext'
9509  shlibpath_overrides_runpath=yes
9510  shlibpath_var=DYLD_LIBRARY_PATH
9511  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9512  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9513  if test "$GCC" = yes; then
9514    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"`
9515  else
9516    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9517  fi
9518  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9519  ;;
9520
9521dgux*)
9522  version_type=linux
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  shlibpath_var=LD_LIBRARY_PATH
9528  ;;
9529
9530freebsd1*)
9531  dynamic_linker=no
9532  ;;
9533
9534kfreebsd*-gnu)
9535  version_type=linux
9536  need_lib_prefix=no
9537  need_version=no
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9539  soname_spec='${libname}${release}${shared_ext}$major'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=no
9542  hardcode_into_libs=yes
9543  dynamic_linker='GNU ld.so'
9544  ;;
9545
9546freebsd* | dragonfly*)
9547  # DragonFly does not have aout.  When/if they implement a new
9548  # versioning mechanism, adjust this.
9549  if test -x /usr/bin/objformat; then
9550    objformat=`/usr/bin/objformat`
9551  else
9552    case $host_os in
9553    freebsd[123]*) objformat=aout ;;
9554    *) objformat=elf ;;
9555    esac
9556  fi
9557  version_type=freebsd-$objformat
9558  case $version_type in
9559    freebsd-elf*)
9560      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9561      need_version=no
9562      need_lib_prefix=no
9563      ;;
9564    freebsd-*)
9565      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9566      need_version=yes
9567      ;;
9568  esac
9569  shlibpath_var=LD_LIBRARY_PATH
9570  case $host_os in
9571  freebsd2*)
9572    shlibpath_overrides_runpath=yes
9573    ;;
9574  freebsd3.[01]* | freebsdelf3.[01]*)
9575    shlibpath_overrides_runpath=yes
9576    hardcode_into_libs=yes
9577    ;;
9578  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9579  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9580    shlibpath_overrides_runpath=no
9581    hardcode_into_libs=yes
9582    ;;
9583  freebsd*) # from 4.6 on
9584    shlibpath_overrides_runpath=yes
9585    hardcode_into_libs=yes
9586    ;;
9587  esac
9588  ;;
9589
9590gnu*)
9591  version_type=linux
9592  need_lib_prefix=no
9593  need_version=no
9594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9595  soname_spec='${libname}${release}${shared_ext}$major'
9596  shlibpath_var=LD_LIBRARY_PATH
9597  hardcode_into_libs=yes
9598  ;;
9599
9600hpux9* | hpux10* | hpux11*)
9601  # Give a soname corresponding to the major version so that dld.sl refuses to
9602  # link against other versions.
9603  version_type=sunos
9604  need_lib_prefix=no
9605  need_version=no
9606  case $host_cpu in
9607  ia64*)
9608    shrext_cmds='.so'
9609    hardcode_into_libs=yes
9610    dynamic_linker="$host_os dld.so"
9611    shlibpath_var=LD_LIBRARY_PATH
9612    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9613    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614    soname_spec='${libname}${release}${shared_ext}$major'
9615    if test "X$HPUX_IA64_MODE" = X32; then
9616      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9617    else
9618      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9619    fi
9620    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9621    ;;
9622   hppa*64*)
9623     shrext_cmds='.sl'
9624     hardcode_into_libs=yes
9625     dynamic_linker="$host_os dld.sl"
9626     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629     soname_spec='${libname}${release}${shared_ext}$major'
9630     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9631     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9632     ;;
9633   *)
9634    shrext_cmds='.sl'
9635    dynamic_linker="$host_os dld.sl"
9636    shlibpath_var=SHLIB_PATH
9637    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9638    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639    soname_spec='${libname}${release}${shared_ext}$major'
9640    ;;
9641  esac
9642  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9643  postinstall_cmds='chmod 555 $lib'
9644  ;;
9645
9646interix3*)
9647  version_type=linux
9648  need_lib_prefix=no
9649  need_version=no
9650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9651  soname_spec='${libname}${release}${shared_ext}$major'
9652  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  shlibpath_overrides_runpath=no
9655  hardcode_into_libs=yes
9656  ;;
9657
9658irix5* | irix6* | nonstopux*)
9659  case $host_os in
9660    nonstopux*) version_type=nonstopux ;;
9661    *)
9662        if test "$lt_cv_prog_gnu_ld" = yes; then
9663                version_type=linux
9664        else
9665                version_type=irix
9666        fi ;;
9667  esac
9668  need_lib_prefix=no
9669  need_version=no
9670  soname_spec='${libname}${release}${shared_ext}$major'
9671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9672  case $host_os in
9673  irix5* | nonstopux*)
9674    libsuff= shlibsuff=
9675    ;;
9676  *)
9677    case $LD in # libtool.m4 will add one of these switches to LD
9678    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9679      libsuff= shlibsuff= libmagic=32-bit;;
9680    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9681      libsuff=32 shlibsuff=N32 libmagic=N32;;
9682    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9683      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9684    *) libsuff= shlibsuff= libmagic=never-match;;
9685    esac
9686    ;;
9687  esac
9688  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9689  shlibpath_overrides_runpath=no
9690  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9691  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9692  hardcode_into_libs=yes
9693  ;;
9694
9695# No shared lib support for Linux oldld, aout, or coff.
9696linux*oldld* | linux*aout* | linux*coff*)
9697  dynamic_linker=no
9698  ;;
9699
9700# This must be Linux ELF.
9701linux*)
9702  version_type=linux
9703  need_lib_prefix=no
9704  need_version=no
9705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706  soname_spec='${libname}${release}${shared_ext}$major'
9707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9708  shlibpath_var=LD_LIBRARY_PATH
9709  shlibpath_overrides_runpath=no
9710  # This implies no fast_install, which is unacceptable.
9711  # Some rework will be needed to allow for fast_install
9712  # before this can be enabled.
9713  hardcode_into_libs=yes
9714
9715  # Append ld.so.conf contents to the search path
9716  if test -f /etc/ld.so.conf; then
9717    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' ' '`
9718    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9719  fi
9720
9721  # We used to test for /lib/ld.so.1 and disable shared libraries on
9722  # powerpc, because MkLinux only supported shared libraries with the
9723  # GNU dynamic linker.  Since this was broken with cross compilers,
9724  # most powerpc-linux boxes support dynamic linking these days and
9725  # people can always --disable-shared, the test was removed, and we
9726  # assume the GNU/Linux dynamic linker is in use.
9727  dynamic_linker='GNU/Linux ld.so'
9728  ;;
9729
9730knetbsd*-gnu)
9731  version_type=linux
9732  need_lib_prefix=no
9733  need_version=no
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9735  soname_spec='${libname}${release}${shared_ext}$major'
9736  shlibpath_var=LD_LIBRARY_PATH
9737  shlibpath_overrides_runpath=no
9738  hardcode_into_libs=yes
9739  dynamic_linker='GNU ld.so'
9740  ;;
9741
9742netbsd*)
9743  version_type=sunos
9744  need_lib_prefix=no
9745  need_version=no
9746  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9747    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9748    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9749    dynamic_linker='NetBSD (a.out) ld.so'
9750  else
9751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9752    soname_spec='${libname}${release}${shared_ext}$major'
9753    dynamic_linker='NetBSD ld.elf_so'
9754  fi
9755  shlibpath_var=LD_LIBRARY_PATH
9756  shlibpath_overrides_runpath=yes
9757  hardcode_into_libs=yes
9758  ;;
9759
9760newsos6)
9761  version_type=linux
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763  shlibpath_var=LD_LIBRARY_PATH
9764  shlibpath_overrides_runpath=yes
9765  ;;
9766
9767nto-qnx*)
9768  version_type=linux
9769  need_lib_prefix=no
9770  need_version=no
9771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772  soname_spec='${libname}${release}${shared_ext}$major'
9773  shlibpath_var=LD_LIBRARY_PATH
9774  shlibpath_overrides_runpath=yes
9775  ;;
9776
9777openbsd*)
9778  version_type=sunos
9779  sys_lib_dlsearch_path_spec="/usr/lib"
9780  need_lib_prefix=no
9781  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9782  case $host_os in
9783    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9784    *)                         need_version=no  ;;
9785  esac
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9787  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9788  shlibpath_var=LD_LIBRARY_PATH
9789  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9790    case $host_os in
9791      openbsd2.[89] | openbsd2.[89].*)
9792        shlibpath_overrides_runpath=no
9793        ;;
9794      *)
9795        shlibpath_overrides_runpath=yes
9796        ;;
9797      esac
9798  else
9799    shlibpath_overrides_runpath=yes
9800  fi
9801  ;;
9802
9803os2*)
9804  libname_spec='$name'
9805  shrext_cmds=".dll"
9806  need_lib_prefix=no
9807  library_names_spec='$libname${shared_ext} $libname.a'
9808  dynamic_linker='OS/2 ld.exe'
9809  shlibpath_var=LIBPATH
9810  ;;
9811
9812osf3* | osf4* | osf5*)
9813  version_type=osf
9814  need_lib_prefix=no
9815  need_version=no
9816  soname_spec='${libname}${release}${shared_ext}$major'
9817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818  shlibpath_var=LD_LIBRARY_PATH
9819  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9820  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9821  ;;
9822
9823solaris*)
9824  version_type=linux
9825  need_lib_prefix=no
9826  need_version=no
9827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828  soname_spec='${libname}${release}${shared_ext}$major'
9829  shlibpath_var=LD_LIBRARY_PATH
9830  shlibpath_overrides_runpath=yes
9831  hardcode_into_libs=yes
9832  # ldd complains unless libraries are executable
9833  postinstall_cmds='chmod +x $lib'
9834  ;;
9835
9836sunos4*)
9837  version_type=sunos
9838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9839  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9840  shlibpath_var=LD_LIBRARY_PATH
9841  shlibpath_overrides_runpath=yes
9842  if test "$with_gnu_ld" = yes; then
9843    need_lib_prefix=no
9844  fi
9845  need_version=yes
9846  ;;
9847
9848sysv4 | sysv4.3*)
9849  version_type=linux
9850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851  soname_spec='${libname}${release}${shared_ext}$major'
9852  shlibpath_var=LD_LIBRARY_PATH
9853  case $host_vendor in
9854    sni)
9855      shlibpath_overrides_runpath=no
9856      need_lib_prefix=no
9857      export_dynamic_flag_spec='${wl}-Blargedynsym'
9858      runpath_var=LD_RUN_PATH
9859      ;;
9860    siemens)
9861      need_lib_prefix=no
9862      ;;
9863    motorola)
9864      need_lib_prefix=no
9865      need_version=no
9866      shlibpath_overrides_runpath=no
9867      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9868      ;;
9869  esac
9870  ;;
9871
9872sysv4*MP*)
9873  if test -d /usr/nec ;then
9874    version_type=linux
9875    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9876    soname_spec='$libname${shared_ext}.$major'
9877    shlibpath_var=LD_LIBRARY_PATH
9878  fi
9879  ;;
9880
9881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9882  version_type=freebsd-elf
9883  need_lib_prefix=no
9884  need_version=no
9885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9886  soname_spec='${libname}${release}${shared_ext}$major'
9887  shlibpath_var=LD_LIBRARY_PATH
9888  hardcode_into_libs=yes
9889  if test "$with_gnu_ld" = yes; then
9890    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9891    shlibpath_overrides_runpath=no
9892  else
9893    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9894    shlibpath_overrides_runpath=yes
9895    case $host_os in
9896      sco3.2v5*)
9897        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9898        ;;
9899    esac
9900  fi
9901  sys_lib_dlsearch_path_spec='/usr/lib'
9902  ;;
9903
9904uts4*)
9905  version_type=linux
9906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907  soname_spec='${libname}${release}${shared_ext}$major'
9908  shlibpath_var=LD_LIBRARY_PATH
9909  ;;
9910
9911*)
9912  dynamic_linker=no
9913  ;;
9914esac
9915echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9916echo "${ECHO_T}$dynamic_linker" >&6
9917test "$dynamic_linker" = no && can_build_shared=no
9918
9919variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9920if test "$GCC" = yes; then
9921  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9922fi
9923
9924echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9925echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9926hardcode_action=
9927if test -n "$hardcode_libdir_flag_spec" || \
9928   test -n "$runpath_var" || \
9929   test "X$hardcode_automatic" = "Xyes" ; then
9930
9931  # We can hardcode non-existant directories.
9932  if test "$hardcode_direct" != no &&
9933     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9934     # have to relink, otherwise we might link with an installed library
9935     # when we should be linking with a yet-to-be-installed one
9936     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9937     test "$hardcode_minus_L" != no; then
9938    # Linking always hardcodes the temporary library directory.
9939    hardcode_action=relink
9940  else
9941    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9942    hardcode_action=immediate
9943  fi
9944else
9945  # We cannot hardcode anything, or else we can only hardcode existing
9946  # directories.
9947  hardcode_action=unsupported
9948fi
9949echo "$as_me:$LINENO: result: $hardcode_action" >&5
9950echo "${ECHO_T}$hardcode_action" >&6
9951
9952if test "$hardcode_action" = relink; then
9953  # Fast installation is not supported
9954  enable_fast_install=no
9955elif test "$shlibpath_overrides_runpath" = yes ||
9956     test "$enable_shared" = no; then
9957  # Fast installation is not necessary
9958  enable_fast_install=needless
9959fi
9960
9961striplib=
9962old_striplib=
9963echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9964echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9965if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9966  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9967  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9968  echo "$as_me:$LINENO: result: yes" >&5
9969echo "${ECHO_T}yes" >&6
9970else
9971# FIXME - insert some real tests, host_os isn't really good enough
9972  case $host_os in
9973   darwin*)
9974       if test -n "$STRIP" ; then
9975         striplib="$STRIP -x"
9976         echo "$as_me:$LINENO: result: yes" >&5
9977echo "${ECHO_T}yes" >&6
9978       else
9979  echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
9981fi
9982       ;;
9983   *)
9984  echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
9986    ;;
9987  esac
9988fi
9989
9990if test "x$enable_dlopen" != xyes; then
9991  enable_dlopen=unknown
9992  enable_dlopen_self=unknown
9993  enable_dlopen_self_static=unknown
9994else
9995  lt_cv_dlopen=no
9996  lt_cv_dlopen_libs=
9997
9998  case $host_os in
9999  beos*)
10000    lt_cv_dlopen="load_add_on"
10001    lt_cv_dlopen_libs=
10002    lt_cv_dlopen_self=yes
10003    ;;
10004
10005  mingw* | pw32*)
10006    lt_cv_dlopen="LoadLibrary"
10007    lt_cv_dlopen_libs=
10008   ;;
10009
10010  cygwin*)
10011    lt_cv_dlopen="dlopen"
10012    lt_cv_dlopen_libs=
10013   ;;
10014
10015  darwin*)
10016  # if libdl is installed we need to link against it
10017    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10018echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10019if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10020  echo $ECHO_N "(cached) $ECHO_C" >&6
10021else
10022  ac_check_lib_save_LIBS=$LIBS
10023LIBS="-ldl  $LIBS"
10024cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h.  */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h.  */
10030
10031/* Override any gcc2 internal prototype to avoid an error.  */
10032#ifdef __cplusplus
10033extern "C"
10034#endif
10035/* We use char because int might match the return type of a gcc2
10036   builtin and then its argument prototype would still apply.  */
10037char dlopen ();
10038int
10039main ()
10040{
10041dlopen ();
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext conftest$ac_exeext
10047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048  (eval $ac_link) 2>conftest.er1
10049  ac_status=$?
10050  grep -v '^ *+' conftest.er1 >conftest.err
10051  rm -f conftest.er1
10052  cat conftest.err >&5
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); } &&
10055         { ac_try='test -z "$ac_c_werror_flag"
10056                         || test ! -s conftest.err'
10057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058  (eval $ac_try) 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; } &&
10062         { ac_try='test -s conftest$ac_exeext'
10063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064  (eval $ac_try) 2>&5
10065  ac_status=$?
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); }; }; then
10068  ac_cv_lib_dl_dlopen=yes
10069else
10070  echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073ac_cv_lib_dl_dlopen=no
10074fi
10075rm -f conftest.err conftest.$ac_objext \
10076      conftest$ac_exeext conftest.$ac_ext
10077LIBS=$ac_check_lib_save_LIBS
10078fi
10079echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10080echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10081if test $ac_cv_lib_dl_dlopen = yes; then
10082  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10083else
10084
10085    lt_cv_dlopen="dyld"
10086    lt_cv_dlopen_libs=
10087    lt_cv_dlopen_self=yes
10088
10089fi
10090
10091   ;;
10092
10093  *)
10094    echo "$as_me:$LINENO: checking for shl_load" >&5
10095echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10096if test "${ac_cv_func_shl_load+set}" = set; then
10097  echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099  cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h.  */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h.  */
10105/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10106   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10107#define shl_load innocuous_shl_load
10108
10109/* System header to define __stub macros and hopefully few prototypes,
10110    which can conflict with char shl_load (); below.
10111    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112    <limits.h> exists even on freestanding compilers.  */
10113
10114#ifdef __STDC__
10115# include <limits.h>
10116#else
10117# include <assert.h>
10118#endif
10119
10120#undef shl_load
10121
10122/* Override any gcc2 internal prototype to avoid an error.  */
10123#ifdef __cplusplus
10124extern "C"
10125{
10126#endif
10127/* We use char because int might match the return type of a gcc2
10128   builtin and then its argument prototype would still apply.  */
10129char shl_load ();
10130/* The GNU C library defines this for functions which it implements
10131    to always fail with ENOSYS.  Some functions are actually named
10132    something starting with __ and the normal name is an alias.  */
10133#if defined (__stub_shl_load) || defined (__stub___shl_load)
10134choke me
10135#else
10136char (*f) () = shl_load;
10137#endif
10138#ifdef __cplusplus
10139}
10140#endif
10141
10142int
10143main ()
10144{
10145return f != shl_load;
10146  ;
10147  return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
10151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152  (eval $ac_link) 2>conftest.er1
10153  ac_status=$?
10154  grep -v '^ *+' conftest.er1 >conftest.err
10155  rm -f conftest.er1
10156  cat conftest.err >&5
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); } &&
10159         { ac_try='test -z "$ac_c_werror_flag"
10160                         || test ! -s conftest.err'
10161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162  (eval $ac_try) 2>&5
10163  ac_status=$?
10164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165  (exit $ac_status); }; } &&
10166         { ac_try='test -s conftest$ac_exeext'
10167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168  (eval $ac_try) 2>&5
10169  ac_status=$?
10170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); }; }; then
10172  ac_cv_func_shl_load=yes
10173else
10174  echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177ac_cv_func_shl_load=no
10178fi
10179rm -f conftest.err conftest.$ac_objext \
10180      conftest$ac_exeext conftest.$ac_ext
10181fi
10182echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10183echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10184if test $ac_cv_func_shl_load = yes; then
10185  lt_cv_dlopen="shl_load"
10186else
10187  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10188echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10189if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10190  echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192  ac_check_lib_save_LIBS=$LIBS
10193LIBS="-ldld  $LIBS"
10194cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h.  */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h.  */
10200
10201/* Override any gcc2 internal prototype to avoid an error.  */
10202#ifdef __cplusplus
10203extern "C"
10204#endif
10205/* We use char because int might match the return type of a gcc2
10206   builtin and then its argument prototype would still apply.  */
10207char shl_load ();
10208int
10209main ()
10210{
10211shl_load ();
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext conftest$ac_exeext
10217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218  (eval $ac_link) 2>conftest.er1
10219  ac_status=$?
10220  grep -v '^ *+' conftest.er1 >conftest.err
10221  rm -f conftest.er1
10222  cat conftest.err >&5
10223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224  (exit $ac_status); } &&
10225         { ac_try='test -z "$ac_c_werror_flag"
10226                         || test ! -s conftest.err'
10227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228  (eval $ac_try) 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; } &&
10232         { ac_try='test -s conftest$ac_exeext'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; }; then
10238  ac_cv_lib_dld_shl_load=yes
10239else
10240  echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243ac_cv_lib_dld_shl_load=no
10244fi
10245rm -f conftest.err conftest.$ac_objext \
10246      conftest$ac_exeext conftest.$ac_ext
10247LIBS=$ac_check_lib_save_LIBS
10248fi
10249echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10250echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10251if test $ac_cv_lib_dld_shl_load = yes; then
10252  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10253else
10254  echo "$as_me:$LINENO: checking for dlopen" >&5
10255echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10256if test "${ac_cv_func_dlopen+set}" = set; then
10257  echo $ECHO_N "(cached) $ECHO_C" >&6
10258else
10259  cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h.  */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h.  */
10265/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10266   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10267#define dlopen innocuous_dlopen
10268
10269/* System header to define __stub macros and hopefully few prototypes,
10270    which can conflict with char dlopen (); below.
10271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10272    <limits.h> exists even on freestanding compilers.  */
10273
10274#ifdef __STDC__
10275# include <limits.h>
10276#else
10277# include <assert.h>
10278#endif
10279
10280#undef dlopen
10281
10282/* Override any gcc2 internal prototype to avoid an error.  */
10283#ifdef __cplusplus
10284extern "C"
10285{
10286#endif
10287/* We use char because int might match the return type of a gcc2
10288   builtin and then its argument prototype would still apply.  */
10289char dlopen ();
10290/* The GNU C library defines this for functions which it implements
10291    to always fail with ENOSYS.  Some functions are actually named
10292    something starting with __ and the normal name is an alias.  */
10293#if defined (__stub_dlopen) || defined (__stub___dlopen)
10294choke me
10295#else
10296char (*f) () = dlopen;
10297#endif
10298#ifdef __cplusplus
10299}
10300#endif
10301
10302int
10303main ()
10304{
10305return f != dlopen;
10306  ;
10307  return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
10311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312  (eval $ac_link) 2>conftest.er1
10313  ac_status=$?
10314  grep -v '^ *+' conftest.er1 >conftest.err
10315  rm -f conftest.er1
10316  cat conftest.err >&5
10317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318  (exit $ac_status); } &&
10319         { ac_try='test -z "$ac_c_werror_flag"
10320                         || test ! -s conftest.err'
10321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322  (eval $ac_try) 2>&5
10323  ac_status=$?
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); }; } &&
10326         { ac_try='test -s conftest$ac_exeext'
10327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328  (eval $ac_try) 2>&5
10329  ac_status=$?
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); }; }; then
10332  ac_cv_func_dlopen=yes
10333else
10334  echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337ac_cv_func_dlopen=no
10338fi
10339rm -f conftest.err conftest.$ac_objext \
10340      conftest$ac_exeext conftest.$ac_ext
10341fi
10342echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10343echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10344if test $ac_cv_func_dlopen = yes; then
10345  lt_cv_dlopen="dlopen"
10346else
10347  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10350  echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352  ac_check_lib_save_LIBS=$LIBS
10353LIBS="-ldl  $LIBS"
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h.  */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h.  */
10360
10361/* Override any gcc2 internal prototype to avoid an error.  */
10362#ifdef __cplusplus
10363extern "C"
10364#endif
10365/* We use char because int might match the return type of a gcc2
10366   builtin and then its argument prototype would still apply.  */
10367char dlopen ();
10368int
10369main ()
10370{
10371dlopen ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378  (eval $ac_link) 2>conftest.er1
10379  ac_status=$?
10380  grep -v '^ *+' conftest.er1 >conftest.err
10381  rm -f conftest.er1
10382  cat conftest.err >&5
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); } &&
10385         { ac_try='test -z "$ac_c_werror_flag"
10386                         || test ! -s conftest.err'
10387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388  (eval $ac_try) 2>&5
10389  ac_status=$?
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); }; } &&
10392         { ac_try='test -s conftest$ac_exeext'
10393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394  (eval $ac_try) 2>&5
10395  ac_status=$?
10396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397  (exit $ac_status); }; }; then
10398  ac_cv_lib_dl_dlopen=yes
10399else
10400  echo "$as_me: failed program was:" >&5
10401sed 's/^/| /' conftest.$ac_ext >&5
10402
10403ac_cv_lib_dl_dlopen=no
10404fi
10405rm -f conftest.err conftest.$ac_objext \
10406      conftest$ac_exeext conftest.$ac_ext
10407LIBS=$ac_check_lib_save_LIBS
10408fi
10409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10411if test $ac_cv_lib_dl_dlopen = yes; then
10412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10413else
10414  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10415echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10416if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10417  echo $ECHO_N "(cached) $ECHO_C" >&6
10418else
10419  ac_check_lib_save_LIBS=$LIBS
10420LIBS="-lsvld  $LIBS"
10421cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h.  */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h.  */
10427
10428/* Override any gcc2 internal prototype to avoid an error.  */
10429#ifdef __cplusplus
10430extern "C"
10431#endif
10432/* We use char because int might match the return type of a gcc2
10433   builtin and then its argument prototype would still apply.  */
10434char dlopen ();
10435int
10436main ()
10437{
10438dlopen ();
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext conftest$ac_exeext
10444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445  (eval $ac_link) 2>conftest.er1
10446  ac_status=$?
10447  grep -v '^ *+' conftest.er1 >conftest.err
10448  rm -f conftest.er1
10449  cat conftest.err >&5
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); } &&
10452         { ac_try='test -z "$ac_c_werror_flag"
10453                         || test ! -s conftest.err'
10454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455  (eval $ac_try) 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); }; } &&
10459         { ac_try='test -s conftest$ac_exeext'
10460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461  (eval $ac_try) 2>&5
10462  ac_status=$?
10463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464  (exit $ac_status); }; }; then
10465  ac_cv_lib_svld_dlopen=yes
10466else
10467  echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
10470ac_cv_lib_svld_dlopen=no
10471fi
10472rm -f conftest.err conftest.$ac_objext \
10473      conftest$ac_exeext conftest.$ac_ext
10474LIBS=$ac_check_lib_save_LIBS
10475fi
10476echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10477echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10478if test $ac_cv_lib_svld_dlopen = yes; then
10479  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10480else
10481  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10482echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10483if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486  ac_check_lib_save_LIBS=$LIBS
10487LIBS="-ldld  $LIBS"
10488cat >conftest.$ac_ext <<_ACEOF
10489/* confdefs.h.  */
10490_ACEOF
10491cat confdefs.h >>conftest.$ac_ext
10492cat >>conftest.$ac_ext <<_ACEOF
10493/* end confdefs.h.  */
10494
10495/* Override any gcc2 internal prototype to avoid an error.  */
10496#ifdef __cplusplus
10497extern "C"
10498#endif
10499/* We use char because int might match the return type of a gcc2
10500   builtin and then its argument prototype would still apply.  */
10501char dld_link ();
10502int
10503main ()
10504{
10505dld_link ();
10506  ;
10507  return 0;
10508}
10509_ACEOF
10510rm -f conftest.$ac_objext conftest$ac_exeext
10511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512  (eval $ac_link) 2>conftest.er1
10513  ac_status=$?
10514  grep -v '^ *+' conftest.er1 >conftest.err
10515  rm -f conftest.er1
10516  cat conftest.err >&5
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); } &&
10519         { ac_try='test -z "$ac_c_werror_flag"
10520                         || test ! -s conftest.err'
10521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522  (eval $ac_try) 2>&5
10523  ac_status=$?
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); }; } &&
10526         { ac_try='test -s conftest$ac_exeext'
10527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528  (eval $ac_try) 2>&5
10529  ac_status=$?
10530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531  (exit $ac_status); }; }; then
10532  ac_cv_lib_dld_dld_link=yes
10533else
10534  echo "$as_me: failed program was:" >&5
10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537ac_cv_lib_dld_dld_link=no
10538fi
10539rm -f conftest.err conftest.$ac_objext \
10540      conftest$ac_exeext conftest.$ac_ext
10541LIBS=$ac_check_lib_save_LIBS
10542fi
10543echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10544echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10545if test $ac_cv_lib_dld_dld_link = yes; then
10546  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10547fi
10548
10549
10550fi
10551
10552
10553fi
10554
10555
10556fi
10557
10558
10559fi
10560
10561
10562fi
10563
10564    ;;
10565  esac
10566
10567  if test "x$lt_cv_dlopen" != xno; then
10568    enable_dlopen=yes
10569  else
10570    enable_dlopen=no
10571  fi
10572
10573  case $lt_cv_dlopen in
10574  dlopen)
10575    save_CPPFLAGS="$CPPFLAGS"
10576    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10577
10578    save_LDFLAGS="$LDFLAGS"
10579    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10580
10581    save_LIBS="$LIBS"
10582    LIBS="$lt_cv_dlopen_libs $LIBS"
10583
10584    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10585echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10586if test "${lt_cv_dlopen_self+set}" = set; then
10587  echo $ECHO_N "(cached) $ECHO_C" >&6
10588else
10589          if test "$cross_compiling" = yes; then :
10590  lt_cv_dlopen_self=cross
10591else
10592  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10593  lt_status=$lt_dlunknown
10594  cat > conftest.$ac_ext <<EOF
10595#line 10595 "configure"
10596#include "confdefs.h"
10597
10598#if HAVE_DLFCN_H
10599#include <dlfcn.h>
10600#endif
10601
10602#include <stdio.h>
10603
10604#ifdef RTLD_GLOBAL
10605#  define LT_DLGLOBAL           RTLD_GLOBAL
10606#else
10607#  ifdef DL_GLOBAL
10608#    define LT_DLGLOBAL         DL_GLOBAL
10609#  else
10610#    define LT_DLGLOBAL         0
10611#  endif
10612#endif
10613
10614/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10615   find out it does not work in some platform. */
10616#ifndef LT_DLLAZY_OR_NOW
10617#  ifdef RTLD_LAZY
10618#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10619#  else
10620#    ifdef DL_LAZY
10621#      define LT_DLLAZY_OR_NOW          DL_LAZY
10622#    else
10623#      ifdef RTLD_NOW
10624#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10625#      else
10626#        ifdef DL_NOW
10627#          define LT_DLLAZY_OR_NOW      DL_NOW
10628#        else
10629#          define LT_DLLAZY_OR_NOW      0
10630#        endif
10631#      endif
10632#    endif
10633#  endif
10634#endif
10635
10636#ifdef __cplusplus
10637extern "C" void exit (int);
10638#endif
10639
10640void fnord() { int i=42;}
10641int main ()
10642{
10643  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10644  int status = $lt_dlunknown;
10645
10646  if (self)
10647    {
10648      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10649      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10650      /* dlclose (self); */
10651    }
10652  else
10653    puts (dlerror ());
10654
10655    exit (status);
10656}
10657EOF
10658  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659  (eval $ac_link) 2>&5
10660  ac_status=$?
10661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10663    (./conftest; exit; ) >&5 2>/dev/null
10664    lt_status=$?
10665    case x$lt_status in
10666      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10667      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10668      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10669    esac
10670  else :
10671    # compilation failed
10672    lt_cv_dlopen_self=no
10673  fi
10674fi
10675rm -fr conftest*
10676
10677
10678fi
10679echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10680echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10681
10682    if test "x$lt_cv_dlopen_self" = xyes; then
10683      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10684      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10685echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10686if test "${lt_cv_dlopen_self_static+set}" = set; then
10687  echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689          if test "$cross_compiling" = yes; then :
10690  lt_cv_dlopen_self_static=cross
10691else
10692  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10693  lt_status=$lt_dlunknown
10694  cat > conftest.$ac_ext <<EOF
10695#line 10695 "configure"
10696#include "confdefs.h"
10697
10698#if HAVE_DLFCN_H
10699#include <dlfcn.h>
10700#endif
10701
10702#include <stdio.h>
10703
10704#ifdef RTLD_GLOBAL
10705#  define LT_DLGLOBAL           RTLD_GLOBAL
10706#else
10707#  ifdef DL_GLOBAL
10708#    define LT_DLGLOBAL         DL_GLOBAL
10709#  else
10710#    define LT_DLGLOBAL         0
10711#  endif
10712#endif
10713
10714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10715   find out it does not work in some platform. */
10716#ifndef LT_DLLAZY_OR_NOW
10717#  ifdef RTLD_LAZY
10718#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10719#  else
10720#    ifdef DL_LAZY
10721#      define LT_DLLAZY_OR_NOW          DL_LAZY
10722#    else
10723#      ifdef RTLD_NOW
10724#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10725#      else
10726#        ifdef DL_NOW
10727#          define LT_DLLAZY_OR_NOW      DL_NOW
10728#        else
10729#          define LT_DLLAZY_OR_NOW      0
10730#        endif
10731#      endif
10732#    endif
10733#  endif
10734#endif
10735
10736#ifdef __cplusplus
10737extern "C" void exit (int);
10738#endif
10739
10740void fnord() { int i=42;}
10741int main ()
10742{
10743  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10744  int status = $lt_dlunknown;
10745
10746  if (self)
10747    {
10748      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10749      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10750      /* dlclose (self); */
10751    }
10752  else
10753    puts (dlerror ());
10754
10755    exit (status);
10756}
10757EOF
10758  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759  (eval $ac_link) 2>&5
10760  ac_status=$?
10761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10763    (./conftest; exit; ) >&5 2>/dev/null
10764    lt_status=$?
10765    case x$lt_status in
10766      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10767