source: stable/1.2/Cbc/configure @ 726

Last change on this file since 726 was 726, checked in by andreasw, 12 years ago

regenerated autotools files with latest stable/0.5

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