source: releases/2.8.5/configure @ 2213

Last change on this file since 2213 was 1964, checked in by tkr, 6 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 793.6 KB
<
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 2.8.5.
5#
6# Report bugs to <cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='2.8.5'
434PACKAGE_STRING='Cbc 2.8.5'
435PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484ac_subdirs_all="$ac_subdirs_all Data/miplib3"
485ac_subdirs_all="$ac_subdirs_all CoinUtils"
486ac_subdirs_all="$ac_subdirs_all Osi"
487ac_subdirs_all="$ac_subdirs_all Clp"
488ac_subdirs_all="$ac_subdirs_all DyLP"
489ac_subdirs_all="$ac_subdirs_all Vol"
490ac_subdirs_all="$ac_subdirs_all Cgl"
491ac_subdirs_all="$ac_subdirs_all Cbc"
492ac_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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
493ac_subst_files=''
494
495# Initialize some variables set by options.
496ac_init_help=
497ac_init_version=false
498# The variables have the same names as the options, with
499# dashes changed to underlines.
500cache_file=/dev/null
501exec_prefix=NONE
502no_create=
503no_recursion=
504prefix=NONE
505program_prefix=NONE
506program_suffix=NONE
507program_transform_name=s,x,x,
508silent=
509site=
510srcdir=
511verbose=
512x_includes=NONE
513x_libraries=NONE
514
515# Installation directory options.
516# These are left unexpanded so users can "make install exec_prefix=/foo"
517# and all the variables that are supposed to be based on exec_prefix
518# by default will actually change.
519# Use braces instead of parens because sh, perl, etc. also accept them.
520bindir='${exec_prefix}/bin'
521sbindir='${exec_prefix}/sbin'
522libexecdir='${exec_prefix}/libexec'
523datadir='${prefix}/share'
524sysconfdir='${prefix}/etc'
525sharedstatedir='${prefix}/com'
526localstatedir='${prefix}/var'
527libdir='${exec_prefix}/lib'
528includedir='${prefix}/include'
529oldincludedir='/usr/include'
530infodir='${prefix}/info'
531mandir='${prefix}/man'
532
533ac_prev=
534for ac_option
535do
536  # If the previous option needs an argument, assign it.
537  if test -n "$ac_prev"; then
538    eval "$ac_prev=\$ac_option"
539    ac_prev=
540    continue
541  fi
542
543  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545  # Accept the important Cygnus configure options, so we can diagnose typos.
546
547  case $ac_option in
548
549  -bindir | --bindir | --bindi | --bind | --bin | --bi)
550    ac_prev=bindir ;;
551  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552    bindir=$ac_optarg ;;
553
554  -build | --build | --buil | --bui | --bu)
555    ac_prev=build_alias ;;
556  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557    build_alias=$ac_optarg ;;
558
559  -cache-file | --cache-file | --cache-fil | --cache-fi \
560  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561    ac_prev=cache_file ;;
562  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564    cache_file=$ac_optarg ;;
565
566  --config-cache | -C)
567    cache_file=config.cache ;;
568
569  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570    ac_prev=datadir ;;
571  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572  | --da=*)
573    datadir=$ac_optarg ;;
574
575  -disable-* | --disable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    eval "enable_$ac_feature=no" ;;
583
584  -enable-* | --enable-*)
585    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589   { (exit 1); exit 1; }; }
590    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591    case $ac_option in
592      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593      *) ac_optarg=yes ;;
594    esac
595    eval "enable_$ac_feature='$ac_optarg'" ;;
596
597  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599  | --exec | --exe | --ex)
600    ac_prev=exec_prefix ;;
601  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603  | --exec=* | --exe=* | --ex=*)
604    exec_prefix=$ac_optarg ;;
605
606  -gas | --gas | --ga | --g)
607    # Obsolete; use --with-gas.
608    with_gas=yes ;;
609
610  -help | --help | --hel | --he | -h)
611    ac_init_help=long ;;
612  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613    ac_init_help=recursive ;;
614  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615    ac_init_help=short ;;
616
617  -host | --host | --hos | --ho)
618    ac_prev=host_alias ;;
619  -host=* | --host=* | --hos=* | --ho=*)
620    host_alias=$ac_optarg ;;
621
622  -includedir | --includedir | --includedi | --included | --include \
623  | --includ | --inclu | --incl | --inc)
624    ac_prev=includedir ;;
625  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626  | --includ=* | --inclu=* | --incl=* | --inc=*)
627    includedir=$ac_optarg ;;
628
629  -infodir | --infodir | --infodi | --infod | --info | --inf)
630    ac_prev=infodir ;;
631  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632    infodir=$ac_optarg ;;
633
634  -libdir | --libdir | --libdi | --libd)
635    ac_prev=libdir ;;
636  -libdir=* | --libdir=* | --libdi=* | --libd=*)
637    libdir=$ac_optarg ;;
638
639  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640  | --libexe | --libex | --libe)
641    ac_prev=libexecdir ;;
642  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643  | --libexe=* | --libex=* | --libe=*)
644    libexecdir=$ac_optarg ;;
645
646  -localstatedir | --localstatedir | --localstatedi | --localstated \
647  | --localstate | --localstat | --localsta | --localst \
648  | --locals | --local | --loca | --loc | --lo)
649    ac_prev=localstatedir ;;
650  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653    localstatedir=$ac_optarg ;;
654
655  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656    ac_prev=mandir ;;
657  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658    mandir=$ac_optarg ;;
659
660  -nfp | --nfp | --nf)
661    # Obsolete; use --without-fp.
662    with_fp=no ;;
663
664  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665  | --no-cr | --no-c | -n)
666    no_create=yes ;;
667
668  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670    no_recursion=yes ;;
671
672  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674  | --oldin | --oldi | --old | --ol | --o)
675    ac_prev=oldincludedir ;;
676  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679    oldincludedir=$ac_optarg ;;
680
681  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682    ac_prev=prefix ;;
683  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684    prefix=$ac_optarg ;;
685
686  -program-prefix | --program-prefix | --program-prefi | --program-pref \
687  | --program-pre | --program-pr | --program-p)
688    ac_prev=program_prefix ;;
689  -program-prefix=* | --program-prefix=* | --program-prefi=* \
690  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691    program_prefix=$ac_optarg ;;
692
693  -program-suffix | --program-suffix | --program-suffi | --program-suff \
694  | --program-suf | --program-su | --program-s)
695    ac_prev=program_suffix ;;
696  -program-suffix=* | --program-suffix=* | --program-suffi=* \
697  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698    program_suffix=$ac_optarg ;;
699
700  -program-transform-name | --program-transform-name \
701  | --program-transform-nam | --program-transform-na \
702  | --program-transform-n | --program-transform- \
703  | --program-transform | --program-transfor \
704  | --program-transfo | --program-transf \
705  | --program-trans | --program-tran \
706  | --progr-tra | --program-tr | --program-t)
707    ac_prev=program_transform_name ;;
708  -program-transform-name=* | --program-transform-name=* \
709  | --program-transform-nam=* | --program-transform-na=* \
710  | --program-transform-n=* | --program-transform-=* \
711  | --program-transform=* | --program-transfor=* \
712  | --program-transfo=* | --program-transf=* \
713  | --program-trans=* | --program-tran=* \
714  | --progr-tra=* | --program-tr=* | --program-t=*)
715    program_transform_name=$ac_optarg ;;
716
717  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718  | -silent | --silent | --silen | --sile | --sil)
719    silent=yes ;;
720
721  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722    ac_prev=sbindir ;;
723  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724  | --sbi=* | --sb=*)
725    sbindir=$ac_optarg ;;
726
727  -sharedstatedir | --sharedstatedir | --sharedstatedi \
728  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729  | --sharedst | --shareds | --shared | --share | --shar \
730  | --sha | --sh)
731    ac_prev=sharedstatedir ;;
732  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735  | --sha=* | --sh=*)
736    sharedstatedir=$ac_optarg ;;
737
738  -site | --site | --sit)
739    ac_prev=site ;;
740  -site=* | --site=* | --sit=*)
741    site=$ac_optarg ;;
742
743  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744    ac_prev=srcdir ;;
745  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746    srcdir=$ac_optarg ;;
747
748  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749  | --syscon | --sysco | --sysc | --sys | --sy)
750    ac_prev=sysconfdir ;;
751  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753    sysconfdir=$ac_optarg ;;
754
755  -target | --target | --targe | --targ | --tar | --ta | --t)
756    ac_prev=target_alias ;;
757  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758    target_alias=$ac_optarg ;;
759
760  -v | -verbose | --verbose | --verbos | --verbo | --verb)
761    verbose=yes ;;
762
763  -version | --version | --versio | --versi | --vers | -V)
764    ac_init_version=: ;;
765
766  -with-* | --with-*)
767    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package| sed 's/-/_/g'`
773    case $ac_option in
774      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775      *) ac_optarg=yes ;;
776    esac
777    eval "with_$ac_package='$ac_optarg'" ;;
778
779  -without-* | --without-*)
780    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781    # Reject names that are not valid shell variable names.
782    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783      { echo "$as_me: error: invalid package name: $ac_package" >&2
784   { (exit 1); exit 1; }; }
785    ac_package=`echo $ac_package | sed 's/-/_/g'`
786    eval "with_$ac_package=no" ;;
787
788  --x)
789    # Obsolete; use --with-x.
790    with_x=yes ;;
791
792  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793  | --x-incl | --x-inc | --x-in | --x-i)
794    ac_prev=x_includes ;;
795  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797    x_includes=$ac_optarg ;;
798
799  -x-libraries | --x-libraries | --x-librarie | --x-librari \
800  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801    ac_prev=x_libraries ;;
802  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804    x_libraries=$ac_optarg ;;
805
806  -*) { echo "$as_me: error: unrecognized option: $ac_option
807Try \`$0 --help' for more information." >&2
808   { (exit 1); exit 1; }; }
809    ;;
810
811  *=*)
812    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816   { (exit 1); exit 1; }; }
817    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818    eval "$ac_envvar='$ac_optarg'"
819    export $ac_envvar ;;
820
821  *)
822    # FIXME: should be removed in autoconf 3.0.
823    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827    ;;
828
829  esac
830done
831
832if test -n "$ac_prev"; then
833  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834  { echo "$as_me: error: missing argument to $ac_option" >&2
835   { (exit 1); exit 1; }; }
836fi
837
838# Be sure to have absolute paths.
839for ac_var in exec_prefix prefix
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# Be sure to have absolute paths.
850for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851              localstatedir libdir includedir oldincludedir infodir mandir
852do
853  eval ac_val=$`echo $ac_var`
854  case $ac_val in
855    [\\/$]* | ?:[\\/]* ) ;;
856    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857   { (exit 1); exit 1; }; };;
858  esac
859done
860
861# There might be people who depend on the old broken behavior: `$host'
862# used to hold the argument of --host etc.
863# FIXME: To remove some day.
864build=$build_alias
865host=$host_alias
866target=$target_alias
867
868# FIXME: To remove some day.
869if test "x$host_alias" != x; then
870  if test "x$build_alias" = x; then
871    cross_compiling=maybe
872    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873    If a cross compiler is detected then cross compile mode will be used." >&2
874  elif test "x$build_alias" != "x$host_alias"; then
875    cross_compiling=yes
876  fi
877fi
878
879ac_tool_prefix=
880test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882test "$silent" = yes && exec 6>/dev/null
883
884
885# Find the source files, if location was not specified.
886if test -z "$srcdir"; then
887  ac_srcdir_defaulted=yes
888  # Try the directory containing this script, then its parent.
889  ac_confdir=`(dirname "$0") 2>/dev/null ||
890$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891         X"$0" : 'X\(//\)[^/]' \| \
892         X"$0" : 'X\(//\)$' \| \
893         X"$0" : 'X\(/\)' \| \
894         .     : '\(.\)' 2>/dev/null ||
895echo X"$0" |
896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898          /^X\(\/\/\)$/{ s//\1/; q; }
899          /^X\(\/\).*/{ s//\1/; q; }
900          s/.*/./; q'`
901  srcdir=$ac_confdir
902  if test ! -r $srcdir/$ac_unique_file; then
903    srcdir=..
904  fi
905else
906  ac_srcdir_defaulted=no
907fi
908if test ! -r $srcdir/$ac_unique_file; then
909  if test "$ac_srcdir_defaulted" = yes; then
910    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911   { (exit 1); exit 1; }; }
912  else
913    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914   { (exit 1); exit 1; }; }
915  fi
916fi
917(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919   { (exit 1); exit 1; }; }
920srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921ac_env_build_alias_set=${build_alias+set}
922ac_env_build_alias_value=$build_alias
923ac_cv_env_build_alias_set=${build_alias+set}
924ac_cv_env_build_alias_value=$build_alias
925ac_env_host_alias_set=${host_alias+set}
926ac_env_host_alias_value=$host_alias
927ac_cv_env_host_alias_set=${host_alias+set}
928ac_cv_env_host_alias_value=$host_alias
929ac_env_target_alias_set=${target_alias+set}
930ac_env_target_alias_value=$target_alias
931ac_cv_env_target_alias_set=${target_alias+set}
932ac_cv_env_target_alias_value=$target_alias
933ac_env_CDEFS_set=${CDEFS+set}
934ac_env_CDEFS_value=$CDEFS
935ac_cv_env_CDEFS_set=${CDEFS+set}
936ac_cv_env_CDEFS_value=$CDEFS
937ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949ac_env_CC_set=${CC+set}
950ac_env_CC_value=$CC
951ac_cv_env_CC_set=${CC+set}
952ac_cv_env_CC_value=$CC
953ac_env_CFLAGS_set=${CFLAGS+set}
954ac_env_CFLAGS_value=$CFLAGS
955ac_cv_env_CFLAGS_set=${CFLAGS+set}
956ac_cv_env_CFLAGS_value=$CFLAGS
957ac_env_LDFLAGS_set=${LDFLAGS+set}
958ac_env_LDFLAGS_value=$LDFLAGS
959ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960ac_cv_env_LDFLAGS_value=$LDFLAGS
961ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_env_CPPFLAGS_value=$CPPFLAGS
963ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965ac_env_MPICC_set=${MPICC+set}
966ac_env_MPICC_value=$MPICC
967ac_cv_env_MPICC_set=${MPICC+set}
968ac_cv_env_MPICC_value=$MPICC
969ac_env_CXXDEFS_set=${CXXDEFS+set}
970ac_env_CXXDEFS_value=$CXXDEFS
971ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972ac_cv_env_CXXDEFS_value=$CXXDEFS
973ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985ac_env_CXX_set=${CXX+set}
986ac_env_CXX_value=$CXX
987ac_cv_env_CXX_set=${CXX+set}
988ac_cv_env_CXX_value=$CXX
989ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_env_CXXFLAGS_value=$CXXFLAGS
991ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993ac_env_MPICXX_set=${MPICXX+set}
994ac_env_MPICXX_value=$MPICXX
995ac_cv_env_MPICXX_set=${MPICXX+set}
996ac_cv_env_MPICXX_value=$MPICXX
997ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009ac_env_F77_set=${F77+set}
1010ac_env_F77_value=$F77
1011ac_cv_env_F77_set=${F77+set}
1012ac_cv_env_F77_value=$F77
1013ac_env_FFLAGS_set=${FFLAGS+set}
1014ac_env_FFLAGS_value=$FFLAGS
1015ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016ac_cv_env_FFLAGS_value=$FFLAGS
1017ac_env_MPIF77_set=${MPIF77+set}
1018ac_env_MPIF77_value=$MPIF77
1019ac_cv_env_MPIF77_set=${MPIF77+set}
1020ac_cv_env_MPIF77_value=$MPIF77
1021ac_env_CPP_set=${CPP+set}
1022ac_env_CPP_value=$CPP
1023ac_cv_env_CPP_set=${CPP+set}
1024ac_cv_env_CPP_value=$CPP
1025ac_env_CXXCPP_set=${CXXCPP+set}
1026ac_env_CXXCPP_value=$CXXCPP
1027ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028ac_cv_env_CXXCPP_value=$CXXCPP
1029ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033
1034#
1035# Report the --help message.
1036#
1037if test "$ac_init_help" = "long"; then
1038  # Omit some internal or obsolete options to make the list less imposing.
1039  # This message is too long to be a string in the A/UX 3.1 sh.
1040  cat <<_ACEOF
1041\`configure' configures Cbc 2.8.5 to adapt to many kinds of systems.
1042
1043Usage: $0 [OPTION]... [VAR=VALUE]...
1044
1045To assign environment variables (e.g., CC, CFLAGS...), specify them as
1046VAR=VALUE.  See below for descriptions of some of the useful variables.
1047
1048Defaults for the options are specified in brackets.
1049
1050Configuration:
1051  -h, --help              display this help and exit
1052      --help=short        display options specific to this package
1053      --help=recursive    display the short help of all the included packages
1054  -V, --version           display version information and exit
1055  -q, --quiet, --silent   do not print \`checking...' messages
1056      --cache-file=FILE   cache test results in FILE [disabled]
1057  -C, --config-cache      alias for \`--cache-file=config.cache'
1058  -n, --no-create         do not create output files
1059      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1060
1061_ACEOF
1062
1063  cat <<_ACEOF
1064Installation directories:
1065  --prefix=PREFIX         install architecture-independent files in PREFIX
1066                          [$ac_default_prefix]
1067  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1068                          [PREFIX]
1069
1070By default, \`make install' will install all the files in
1071\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1072an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1073for instance \`--prefix=\$HOME'.
1074
1075For better control, use the options below.
1076
1077Fine tuning of the installation directories:
1078  --bindir=DIR           user executables [EPREFIX/bin]
1079  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1080  --libexecdir=DIR       program executables [EPREFIX/libexec]
1081  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1082  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1083  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1084  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1085  --libdir=DIR           object code libraries [EPREFIX/lib]
1086  --includedir=DIR       C header files [PREFIX/include]
1087  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1088  --infodir=DIR          info documentation [PREFIX/info]
1089  --mandir=DIR           man documentation [PREFIX/man]
1090_ACEOF
1091
1092  cat <<\_ACEOF
1093
1094Program names:
1095  --program-prefix=PREFIX            prepend PREFIX to installed program names
1096  --program-suffix=SUFFIX            append SUFFIX to installed program names
1097  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1098
1099System types:
1100  --build=BUILD     configure for building on BUILD [guessed]
1101  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1102_ACEOF
1103fi
1104
1105if test -n "$ac_init_help"; then
1106  case $ac_init_help in
1107     short | recursive ) echo "Configuration of Cbc 2.8.5:";;
1108   esac
1109  cat <<\_ACEOF
1110
1111Optional Features:
1112  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1113  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1114  --enable-debug          compile all projects with debug options tests
1115                          (implies --disable-shared)
1116  --enable-doscompile     Under Cygwin, compile so that executables run under
1117                          DOS. Set to mingw to use gcc/g++/ld with
1118                          -mno-cygwin. Set to msvc to use cl/link (or
1119                          icl/link). Default when mentioned: mingw. Default
1120                          when not mentioned: disabled.
1121  --enable-static[=PKGS]
1122                          build static libraries [default=no]
1123  --disable-dependency-tracking  speeds up one-time build
1124  --enable-dependency-tracking   do not reject slow dependency extractors
1125  --enable-maintainer-mode  enable make rules and dependencies not useful
1126                          (and sometimes confusing) to the casual installer
1127  --enable-shared[=PKGS]
1128                          build shared libraries [default=yes]
1129  --enable-fast-install[=PKGS]
1130                          optimize for fast installation [default=yes]
1131  --disable-libtool-lock  avoid locking (might break parallel builds)
1132
1133Optional Packages:
1134  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1135  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1136  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1137  --with-pic              try to use only PIC/non-PIC objects [default=use
1138                          both]
1139  --with-tags[=TAGS]
1140                          include additional configurations [automatic]
1141
1142  --with-asl-lib linker flags for using project ASL
1143  --with-asl-incdir directory with header files for using project ASL
1144  --with-asl-datadir directory with data files for using project ASL
1145  --with-blas-lib linker flags for using project Blas
1146  --with-blas-incdir directory with header files for using project Blas
1147  --with-blas-datadir directory with data files for using project Blas
1148  --with-blas             specify BLAS library (or BUILD to enforce use of
1149                          ThirdParty/Blas)
1150  --with-lapack-lib linker flags for using project Lapack
1151  --with-lapack-incdir directory with header files for using project Lapack
1152  --with-lapack-datadir directory with data files for using project Lapack
1153  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1154                          ThirdParty/Lapack)
1155  --with-glpk-lib linker flags for using project Glpk
1156  --with-glpk-incdir directory with header files for using project Glpk
1157  --with-glpk-datadir directory with data files for using project Glpk
1158  --with-metis-lib linker flags for using project Metis
1159  --with-metis-incdir directory with header files for using project Metis
1160  --with-metis-datadir directory with data files for using project Metis
1161  --with-mumps-lib linker flags for using project Mumps
1162  --with-mumps-incdir directory with header files for using project Mumps
1163  --with-mumps-datadir directory with data files for using project Mumps
1164  --with-sample-lib linker flags for using project Sample
1165  --with-sample-incdir directory with header files for using project Sample
1166  --with-sample-datadir directory with data files for using project Sample
1167  --with-netlib-lib linker flags for using project Netlib
1168  --with-netlib-incdir directory with header files for using project Netlib
1169  --with-netlib-datadir directory with data files for using project Netlib
1170  --with-miplib3-lib linker flags for using project miplib3
1171  --with-miplib3-incdir directory with header files for using project miplib3
1172  --with-miplib3-datadir directory with data files for using project miplib3
1173  --with-coinutils-lib linker flags for using project CoinUtils
1174  --with-coinutils-incdir directory with header files for using project
1175                          CoinUtils
1176  --with-coinutils-datadir
1177                          directory with data files for using project
1178                          CoinUtils
1179  --with-osi-lib linker flags for using project Osi
1180  --with-osi-incdir directory with header files for using project Osi
1181  --with-osi-datadir directory with data files for using project Osi
1182  --with-clp-lib linker flags for using project Clp
1183  --with-clp-incdir directory with header files for using project Clp
1184  --with-clp-datadir directory with data files for using project Clp
1185  --with-dylp-lib linker flags for using project DyLP
1186  --with-dylp-incdir directory with header files for using project DyLP
1187  --with-dylp-datadir directory with data files for using project DyLP
1188  --with-vol-lib linker flags for using project Vol
1189  --with-vol-incdir directory with header files for using project Vol
1190  --with-vol-datadir directory with data files for using project Vol
1191  --with-cgl-lib linker flags for using project Cgl
1192  --with-cgl-incdir directory with header files for using project Cgl
1193  --with-cgl-datadir directory with data files for using project Cgl
1194  --with-cbc-lib linker flags for using project Cbc
1195  --with-cbc-incdir directory with header files for using project Cbc
1196  --with-cbc-datadir directory with data files for using project Cbc
1197  --with-dot              use dot (from graphviz) when creating documentation
1198                          with doxygen if available; --without-dot to disable
1199
1200Some influential environment variables:
1201  CDEFS       Additional -D flags to be used when compiling C code.
1202  ADD_CFLAGS  Additional C compiler options
1203  DBG_CFLAGS  Debug C compiler options
1204  OPT_CFLAGS  Optimize C compiler options
1205  CC          C compiler command
1206  CFLAGS      C compiler flags
1207  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1208              nonstandard directory <lib dir>
1209  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1210              headers in a nonstandard directory <include dir>
1211  MPICC       C MPI Compiler
1212  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1213  ADD_CXXFLAGS
1214              Additional C++ compiler options
1215  DBG_CXXFLAGS
1216              Debug C++ compiler options
1217  OPT_CXXFLAGS
1218              Optimize C++ compiler options
1219  CXX         C++ compiler command
1220  CXXFLAGS    C++ compiler flags
1221  MPICXX      C++ MPI Compiler
1222  ADD_FFLAGS  Additional Fortran compiler options
1223  DBG_FFLAGS  Debug Fortran compiler options
1224  OPT_FFLAGS  Optimize Fortran compiler options
1225  F77         Fortran 77 compiler command
1226  FFLAGS      Fortran 77 compiler flags
1227  MPIF77      Fortran MPI Compiler
1228  CPP         C preprocessor
1229  CXXCPP      C++ preprocessor
1230  COIN_SKIP_PROJECTS
1231              Set to the subdirectories of projects that should be skipped in
1232              the configuration
1233
1234Use these variables to override the choices made by `configure' or to help
1235it to find libraries and programs with nonstandard names/locations.
1236
1237Report bugs to <cbc@lists.coin-or.org>.
1238_ACEOF
1239fi
1240
1241if test "$ac_init_help" = "recursive"; then
1242  # If there are subdirs, report their specific --help.
1243  ac_popdir=`pwd`
1244  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1245    test -d $ac_dir || continue
1246    ac_builddir=.
1247
1248if test "$ac_dir" != .; then
1249  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1250  # A "../" for each directory in $ac_dir_suffix.
1251  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1252else
1253  ac_dir_suffix= ac_top_builddir=
1254fi
1255
1256case $srcdir in
1257  .)  # No --srcdir option.  We are building in place.
1258    ac_srcdir=.
1259    if test -z "$ac_top_builddir"; then
1260       ac_top_srcdir=.
1261    else
1262       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1263    fi ;;
1264  [\\/]* | ?:[\\/]* )  # Absolute path.
1265    ac_srcdir=$srcdir$ac_dir_suffix;
1266    ac_top_srcdir=$srcdir ;;
1267  *) # Relative path.
1268    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1269    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1270esac
1271
1272# Do not use `cd foo && pwd` to compute absolute paths, because
1273# the directories may not exist.
1274case `pwd` in
1275.) ac_abs_builddir="$ac_dir";;
1276*)
1277  case "$ac_dir" in
1278  .) ac_abs_builddir=`pwd`;;
1279  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1280  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1281  esac;;
1282esac
1283case $ac_abs_builddir in
1284.) ac_abs_top_builddir=${ac_top_builddir}.;;
1285*)
1286  case ${ac_top_builddir}. in
1287  .) ac_abs_top_builddir=$ac_abs_builddir;;
1288  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1289  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1290  esac;;
1291esac
1292case $ac_abs_builddir in
1293.) ac_abs_srcdir=$ac_srcdir;;
1294*)
1295  case $ac_srcdir in
1296  .) ac_abs_srcdir=$ac_abs_builddir;;
1297  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1298  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1299  esac;;
1300esac
1301case $ac_abs_builddir in
1302.) ac_abs_top_srcdir=$ac_top_srcdir;;
1303*)
1304  case $ac_top_srcdir in
1305  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1306  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1307  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1308  esac;;
1309esac
1310
1311    cd $ac_dir
1312    # Check for guested configure; otherwise get Cygnus style configure.
1313    if test -f $ac_srcdir/configure.gnu; then
1314      echo
1315      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1316    elif test -f $ac_srcdir/configure; then
1317      echo
1318      $SHELL $ac_srcdir/configure  --help=recursive
1319    elif test -f $ac_srcdir/configure.ac ||
1320           test -f $ac_srcdir/configure.in; then
1321      echo
1322      $ac_configure --help
1323    else
1324      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1325    fi
1326    cd $ac_popdir
1327  done
1328fi
1329
1330test -n "$ac_init_help" && exit 0
1331if $ac_init_version; then
1332  cat <<\_ACEOF
1333Cbc configure 2.8.5
1334generated by GNU Autoconf 2.59
1335
1336Copyright (C) 2003 Free Software Foundation, Inc.
1337This configure script is free software; the Free Software Foundation
1338gives unlimited permission to copy, distribute and modify it.
1339
1340
1341Copyright 2006 International Business Machines and others.
1342All Rights Reserved.
1343This file is part of the open source package Coin which is distributed
1344under the Eclipse Public License.
1345_ACEOF
1346  exit 0
1347fi
1348exec 5>config.log
1349cat >&5 <<_ACEOF
1350This file contains any messages produced by compilers while
1351running configure, to aid debugging if configure makes a mistake.
1352
1353It was created by Cbc $as_me 2.8.5, which was
1354generated by GNU Autoconf 2.59.  Invocation command line was
1355
1356  $ $0 $@
1357
1358_ACEOF
1359{
1360cat <<_ASUNAME
1361## --------- ##
1362## Platform. ##
1363## --------- ##
1364
1365hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1366uname -m = `(uname -m) 2>/dev/null || echo unknown`
1367uname -r = `(uname -r) 2>/dev/null || echo unknown`
1368uname -s = `(uname -s) 2>/dev/null || echo unknown`
1369uname -v = `(uname -v) 2>/dev/null || echo unknown`
1370
1371/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1372/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1373
1374/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1375/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1376/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1377hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1378/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1379/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1380/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1381
1382_ASUNAME
1383
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387  IFS=$as_save_IFS
1388  test -z "$as_dir" && as_dir=.
1389  echo "PATH: $as_dir"
1390done
1391
1392} >&5
1393
1394cat >&5 <<_ACEOF
1395
1396
1397## ----------- ##
1398## Core tests. ##
1399## ----------- ##
1400
1401_ACEOF
1402
1403
1404# Keep a trace of the command line.
1405# Strip out --no-create and --no-recursion so they do not pile up.
1406# Strip out --silent because we don't want to record it for future runs.
1407# Also quote any args containing shell meta-characters.
1408# Make two passes to allow for proper duplicate-argument suppression.
1409ac_configure_args=
1410ac_configure_args0=
1411ac_configure_args1=
1412ac_sep=
1413ac_must_keep_next=false
1414for ac_pass in 1 2
1415do
1416  for ac_arg
1417  do
1418    case $ac_arg in
1419    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1420    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421    | -silent | --silent | --silen | --sile | --sil)
1422      continue ;;
1423    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1424      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1425    esac
1426    case $ac_pass in
1427    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1428    2)
1429      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1430      if test $ac_must_keep_next = true; then
1431        ac_must_keep_next=false # Got value, back to normal.
1432      else
1433        case $ac_arg in
1434          *=* | --config-cache | -C | -disable-* | --disable-* \
1435          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1436          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1437          | -with-* | --with-* | -without-* | --without-* | --x)
1438            case "$ac_configure_args0 " in
1439              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1440            esac
1441            ;;
1442          -* ) ac_must_keep_next=true ;;
1443        esac
1444      fi
1445      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1446      # Get rid of the leading space.
1447      ac_sep=" "
1448      ;;
1449    esac
1450  done
1451done
1452$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1453$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1454
1455# When interrupted or exit'd, cleanup temporary files, and complete
1456# config.log.  We remove comments because anyway the quotes in there
1457# would cause problems or look ugly.
1458# WARNING: Be sure not to use single quotes in there, as some shells,
1459# such as our DU 5.0 friend, will then `close' the trap.
1460trap 'exit_status=$?
1461  # Save into config.log some information that might help in debugging.
1462  {
1463    echo
1464
1465    cat <<\_ASBOX
1466## ---------------- ##
1467## Cache variables. ##
1468## ---------------- ##
1469_ASBOX
1470    echo
1471    # The following way of writing the cache mishandles newlines in values,
1472{
1473  (set) 2>&1 |
1474    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1475    *ac_space=\ *)
1476      sed -n \
1477        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1478          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1479      ;;
1480    *)
1481      sed -n \
1482        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1483      ;;
1484    esac;
1485}
1486    echo
1487
1488    cat <<\_ASBOX
1489## ----------------- ##
1490## Output variables. ##
1491## ----------------- ##
1492_ASBOX
1493    echo
1494    for ac_var in $ac_subst_vars
1495    do
1496      eval ac_val=$`echo $ac_var`
1497      echo "$ac_var='"'"'$ac_val'"'"'"
1498    done | sort
1499    echo
1500
1501    if test -n "$ac_subst_files"; then
1502      cat <<\_ASBOX
1503## ------------- ##
1504## Output files. ##
1505## ------------- ##
1506_ASBOX
1507      echo
1508      for ac_var in $ac_subst_files
1509      do
1510        eval ac_val=$`echo $ac_var`
1511        echo "$ac_var='"'"'$ac_val'"'"'"
1512      done | sort
1513      echo
1514    fi
1515
1516    if test -s confdefs.h; then
1517      cat <<\_ASBOX
1518## ----------- ##
1519## confdefs.h. ##
1520## ----------- ##
1521_ASBOX
1522      echo
1523      sed "/^$/d" confdefs.h | sort
1524      echo
1525    fi
1526    test "$ac_signal" != 0 &&
1527      echo "$as_me: caught signal $ac_signal"
1528    echo "$as_me: exit $exit_status"
1529  } >&5
1530  rm -f core *.core &&
1531  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1532    exit $exit_status
1533     ' 0
1534for ac_signal in 1 2 13 15; do
1535  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1536done
1537ac_signal=0
1538
1539# confdefs.h avoids OS command line length limits that DEFS can exceed.
1540rm -rf conftest* confdefs.h
1541# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1542echo >confdefs.h
1543
1544# Predefined preprocessor variables.
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_NAME "$PACKAGE_NAME"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1553_ACEOF
1554
1555
1556cat >>confdefs.h <<_ACEOF
1557#define PACKAGE_VERSION "$PACKAGE_VERSION"
1558_ACEOF
1559
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE_STRING "$PACKAGE_STRING"
1563_ACEOF
1564
1565
1566cat >>confdefs.h <<_ACEOF
1567#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1568_ACEOF
1569
1570
1571# Let the site file select an alternate cache file if it wants to.
1572# Prefer explicitly selected file to automatically selected ones.
1573if test -z "$CONFIG_SITE"; then
1574  if test "x$prefix" != xNONE; then
1575    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1576  else
1577    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1578  fi
1579fi
1580for ac_site_file in $CONFIG_SITE; do
1581  if test -r "$ac_site_file"; then
1582    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1583echo "$as_me: loading site script $ac_site_file" >&6;}
1584    sed 's/^/| /' "$ac_site_file" >&5
1585    . "$ac_site_file"
1586  fi
1587done
1588
1589if test -r "$cache_file"; then
1590  # Some versions of bash will fail to source /dev/null (special
1591  # files actually), so we avoid doing that.
1592  if test -f "$cache_file"; then
1593    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1594echo "$as_me: loading cache $cache_file" >&6;}
1595    case $cache_file in
1596      [\\/]* | ?:[\\/]* ) . $cache_file;;
1597      *)                      . ./$cache_file;;
1598    esac
1599  fi
1600else
1601  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1602echo "$as_me: creating cache $cache_file" >&6;}
1603  >$cache_file
1604fi
1605
1606# Check that the precious variables saved in the cache have kept the same
1607# value.
1608ac_cache_corrupted=false
1609for ac_var in `(set) 2>&1 |
1610               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1611  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1612  eval ac_new_set=\$ac_env_${ac_var}_set
1613  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1614  eval ac_new_val="\$ac_env_${ac_var}_value"
1615  case $ac_old_set,$ac_new_set in
1616    set,)
1617      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1618echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1619      ac_cache_corrupted=: ;;
1620    ,set)
1621      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1622echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1623      ac_cache_corrupted=: ;;
1624    ,);;
1625    *)
1626      if test "x$ac_old_val" != "x$ac_new_val"; then
1627        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1628echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1629        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1630echo "$as_me:   former value:  $ac_old_val" >&2;}
1631        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1632echo "$as_me:   current value: $ac_new_val" >&2;}
1633        ac_cache_corrupted=:
1634      fi;;
1635  esac
1636  # Pass precious variables to config.status.
1637  if test "$ac_new_set" = set; then
1638    case $ac_new_val in
1639    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1640      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1641    *) ac_arg=$ac_var=$ac_new_val ;;
1642    esac
1643    case " $ac_configure_args " in
1644      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1645      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1646    esac
1647  fi
1648done
1649if $ac_cache_corrupted; then
1650  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1651echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1652  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1653echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1654   { (exit 1); exit 1; }; }
1655fi
1656
1657ac_ext=c
1658ac_cpp='$CPP $CPPFLAGS'
1659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694# List one file in the package so that the configure script can test
1695# whether the package is actually there
1696
1697
1698# Where should everything be installed by default?  Here, we want it
1699# to be installed directly in 'bin', 'lib', 'include' subdirectories
1700# of the directory where configure is run.  The default would be
1701# /usr/local.
1702
1703
1704#############################################################################
1705#  Do the tests necessary to configure compilers and initialise autotools   #
1706#############################################################################
1707
1708ac_aux_dir=
1709for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1710  if test -f $ac_dir/install-sh; then
1711    ac_aux_dir=$ac_dir
1712    ac_install_sh="$ac_aux_dir/install-sh -c"
1713    break
1714  elif test -f $ac_dir/install.sh; then
1715    ac_aux_dir=$ac_dir
1716    ac_install_sh="$ac_aux_dir/install.sh -c"
1717    break
1718  elif test -f $ac_dir/shtool; then
1719    ac_aux_dir=$ac_dir
1720    ac_install_sh="$ac_aux_dir/shtool install -c"
1721    break
1722  fi
1723done
1724if test -z "$ac_aux_dir"; then
1725  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1726echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1727   { (exit 1); exit 1; }; }
1728fi
1729ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1730ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1731ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1732
1733# Make sure we can run config.sub.
1734$ac_config_sub sun4 >/dev/null 2>&1 ||
1735  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1736echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1737   { (exit 1); exit 1; }; }
1738
1739echo "$as_me:$LINENO: checking build system type" >&5
1740echo $ECHO_N "checking build system type... $ECHO_C" >&6
1741if test "${ac_cv_build+set}" = set; then
1742  echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744  ac_cv_build_alias=$build_alias
1745test -z "$ac_cv_build_alias" &&
1746  ac_cv_build_alias=`$ac_config_guess`
1747test -z "$ac_cv_build_alias" &&
1748  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1749echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1750   { (exit 1); exit 1; }; }
1751ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1752  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1753echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1754   { (exit 1); exit 1; }; }
1755
1756fi
1757echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1758echo "${ECHO_T}$ac_cv_build" >&6
1759build=$ac_cv_build
1760build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1761build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1762build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763
1764
1765
1766# Check if user wants to produce debugging code
1767
1768echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1769echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1770
1771# Check whether --enable-debug or --disable-debug was given.
1772if test "${enable_debug+set}" = set; then
1773  enableval="$enable_debug"
1774  case "${enableval}" in
1775   yes) coin_debug_compile=true
1776        if test "${enable_shared+set}" = set; then :; else
1777          enable_shared=no
1778        fi
1779        ;;
1780   no)  coin_debug_compile=false
1781        ;;
1782   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1783echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1784   { (exit 1); exit 1; }; }
1785        ;;
1786esac
1787else
1788  coin_debug_compile=false
1789fi;
1790
1791 # m4_ifvaln([],
1792
1793if test $coin_debug_compile = true; then
1794  echo "$as_me:$LINENO: result: yes" >&5
1795echo "${ECHO_T}yes" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801 # m4_ifvaln([],
1802
1803
1804
1805# Get the name of the C compiler and appropriate compiler options
1806case $build in
1807  *-mingw*)
1808    if test "${LD+set}" = set; then :; else
1809      LD=link
1810    fi
1811    ;;
1812 esac
1813 case $enable_doscompile in
1814   msvc)
1815     if test "x${LD+set}" = xset; then :; else
1816       LD=link
1817     fi
1818     ;;
1819 esac
1820
1821
1822 # Check whether --enable-doscompile or --disable-doscompile was given.
1823if test "${enable_doscompile+set}" = set; then
1824  enableval="$enable_doscompile"
1825  if test "$enable_doscompile" != no; then
1826     case $build in
1827       *-cygwin* | *-mingw*) ;;
1828       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1829echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1830   { (exit 1); exit 1; }; } ;;
1831     esac
1832   fi
1833else
1834  enable_doscompile=no
1835fi;
1836 case "$enable_doscompile" in
1837   mingw)
1838     case $build in
1839       *-mingw*) enable_doscompile=no ;;
1840     esac
1841     ;;
1842   msvc|no) ;;
1843   yes) enable_doscompile=mingw ;;
1844   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1845                    Try configure --help=recursive." >&5
1846echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1847                    Try configure --help=recursive." >&2;}
1848   { (exit 1); exit 1; }; }
1849      ;;
1850  esac
1851  if test "$enable_doscompile" != no ; then
1852    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1853echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1854  fi
1855
1856
1857
1858
1859ac_ext=c
1860ac_cpp='$CPP $CPPFLAGS'
1861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864
1865
1866# For consistency, we set the C compiler to the same value of the C++
1867# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1868if test x"$CXX" != x; then
1869  case "$CXX" in
1870    clang* ) ;;
1871    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1872      if test x"$CC" = x; then
1873        CC="$CXX"
1874        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1875echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1876      fi
1877      ;;
1878  esac
1879fi
1880
1881
1882
1883
1884
1885
1886coin_has_cc=yes
1887
1888save_cflags="$CFLAGS"
1889
1890# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1891# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1892# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1893# compiler. In this case, put cc after gcc.
1894
1895case $build in
1896  *-cygwin* | *-mingw*)
1897             if test "$enable_doscompile" = msvc ; then
1898               comps="icl cl"
1899             else
1900               comps="gcc cl"
1901             fi ;;
1902  *-*-solaris*)
1903             # Extract the first word of "cc", so it can be a program name with args.
1904set dummy cc; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1908  echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910  if test -n "$sol_cc_compiler"; then
1911  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1912else
1913  ac_prog_rejected=no
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919  for ac_exec_ext in '' $ac_executable_extensions; do
1920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1922       ac_prog_rejected=yes
1923       continue
1924     fi
1925    ac_cv_prog_sol_cc_compiler="cc"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932if test $ac_prog_rejected = yes; then
1933  # We found a bogon in the path, so make sure we never use it.
1934  set dummy $ac_cv_prog_sol_cc_compiler
1935  shift
1936  if test $# != 0; then
1937    # We chose a different compiler from the bogus one.
1938    # However, it has the same basename, so the bogon will be chosen
1939    # first if we set sol_cc_compiler to just the basename; use the full file name.
1940    shift
1941    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1942  fi
1943fi
1944fi
1945fi
1946sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1947if test -n "$sol_cc_compiler"; then
1948  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1949echo "${ECHO_T}$sol_cc_compiler" >&6
1950else
1951  echo "$as_me:$LINENO: result: no" >&5
1952echo "${ECHO_T}no" >&6
1953fi
1954
1955             if test "$sol_cc_compiler" = "cc" ; then
1956               comps="cc xlc gcc pgcc icc"
1957             else
1958               comps="xlc gcc pgcc icc cc"
1959             fi
1960             ;;
1961  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1962  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1963  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1964esac
1965
1966# We delete the cached value, since the test might not have been
1967# performed with our choice of compilers earlier
1968$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1969# AC_MSG_NOTICE([C compiler candidates: $comps])
1970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976  for ac_prog in $comps
1977  do
1978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_CC+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$CC"; then
1986  ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002fi
2003fi
2004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
2006  echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6
2008else
2009  echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013    test -n "$CC" && break
2014  done
2015fi
2016if test -z "$CC"; then
2017  ac_ct_CC=$CC
2018  for ac_prog in $comps
2019do
2020  # Extract the first word of "$ac_prog", so it can be a program name with args.
2021set dummy $ac_prog; ac_word=$2
2022echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$ac_ct_CC"; then
2028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037    ac_cv_prog_ac_ct_CC="$ac_prog"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043
2044fi
2045fi
2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047if test -n "$ac_ct_CC"; then
2048  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049echo "${ECHO_T}$ac_ct_CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055  test -n "$ac_ct_CC" && break
2056done
2057
2058  CC=$ac_ct_CC
2059fi
2060
2061
2062test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&5
2064echo "$as_me: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&2;}
2066   { (exit 1); exit 1; }; }
2067
2068# Provide some information about the compiler.
2069echo "$as_me:$LINENO:" \
2070     "checking for C compiler version" >&5
2071ac_compiler=`set X $ac_compile; echo $2`
2072{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2073  (eval $ac_compiler --version </dev/null >&5) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }
2077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2078  (eval $ac_compiler -v </dev/null >&5) 2>&5
2079  ac_status=$?
2080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081  (exit $ac_status); }
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2083  (eval $ac_compiler -V </dev/null >&5) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }
2087
2088cat >conftest.$ac_ext <<_ACEOF
2089/* confdefs.h.  */
2090_ACEOF
2091cat confdefs.h >>conftest.$ac_ext
2092cat >>conftest.$ac_ext <<_ACEOF
2093/* end confdefs.h.  */
2094
2095int
2096main ()
2097{
2098
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103ac_clean_files_save=$ac_clean_files
2104ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105# Try to create an executable without -o first, disregard a.out.
2106# It will help us diagnose broken compilers, and finding out an intuition
2107# of exeext.
2108echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2109echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2110ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112  (eval $ac_link_default) 2>&5
2113  ac_status=$?
2114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115  (exit $ac_status); }; then
2116  # Find the output, starting from the most likely.  This scheme is
2117# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118# resort.
2119
2120# Be careful to initialize this variable, since it used to be cached.
2121# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122ac_cv_exeext=
2123# b.out is created by i960 compilers.
2124for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125do
2126  test -f "$ac_file" || continue
2127  case $ac_file in
2128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129        ;;
2130    conftest.$ac_ext )
2131        # This is the source file.
2132        ;;
2133    [ab].out )
2134        # We found the default executable, but exeext='' is most
2135        # certainly right.
2136        break;;
2137    *.* )
2138        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139        # FIXME: I believe we export ac_cv_exeext for Libtool,
2140        # but it would be cool to find out if it's true.  Does anybody
2141        # maintain Libtool? --akim.
2142        export ac_cv_exeext
2143        break;;
2144    * )
2145        break;;
2146  esac
2147done
2148else
2149  echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2153See \`config.log' for more details." >&5
2154echo "$as_me: error: C compiler cannot create executables
2155See \`config.log' for more details." >&2;}
2156   { (exit 77); exit 77; }; }
2157fi
2158
2159ac_exeext=$ac_cv_exeext
2160echo "$as_me:$LINENO: result: $ac_file" >&5
2161echo "${ECHO_T}$ac_file" >&6
2162
2163# Check the compiler produces executables we can run.  If not, either
2164# the compiler is broken, or we cross compile.
2165echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2166echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2167# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168# If not cross compiling, check that we can run a simple program.
2169if test "$cross_compiling" != yes; then
2170  if { ac_try='./$ac_file'
2171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172  (eval $ac_try) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }; }; then
2176    cross_compiling=no
2177  else
2178    if test "$cross_compiling" = maybe; then
2179        cross_compiling=yes
2180    else
2181        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182If you meant to cross compile, use \`--host'.
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: cannot run C compiled programs.
2185If you meant to cross compile, use \`--host'.
2186See \`config.log' for more details." >&2;}
2187   { (exit 1); exit 1; }; }
2188    fi
2189  fi
2190fi
2191echo "$as_me:$LINENO: result: yes" >&5
2192echo "${ECHO_T}yes" >&6
2193
2194rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195ac_clean_files=$ac_clean_files_save
2196# Check the compiler produces executables we can run.  If not, either
2197# the compiler is broken, or we cross compile.
2198echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201echo "${ECHO_T}$cross_compiling" >&6
2202
2203echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206  (eval $ac_link) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }; then
2210  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2212# work properly (i.e., refer to `conftest.exe'), while it won't with
2213# `rm'.
2214for ac_file in conftest.exe conftest conftest.*; do
2215  test -f "$ac_file" || continue
2216  case $ac_file in
2217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219          export ac_cv_exeext
2220          break;;
2221    * ) break;;
2222  esac
2223done
2224else
2225  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228See \`config.log' for more details." >&2;}
2229   { (exit 1); exit 1; }; }
2230fi
2231
2232rm -f conftest$ac_cv_exeext
2233echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236rm -f conftest.$ac_ext
2237EXEEXT=$ac_cv_exeext
2238ac_exeext=$EXEEXT
2239echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241if test "${ac_cv_objext+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.o conftest.obj
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; then
2265  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2266  case $ac_file in
2267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2268    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2269       break;;
2270  esac
2271done
2272else
2273  echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277See \`config.log' for more details." >&5
2278echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279See \`config.log' for more details." >&2;}
2280   { (exit 1); exit 1; }; }
2281fi
2282
2283rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284fi
2285echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286echo "${ECHO_T}$ac_cv_objext" >&6
2287OBJEXT=$ac_cv_objext
2288ac_objext=$OBJEXT
2289echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2291if test "${ac_cv_c_compiler_gnu+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h.  */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h.  */
2300
2301int
2302main ()
2303{
2304#ifndef __GNUC__
2305       choke me
2306#endif
2307
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312rm -f conftest.$ac_objext
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314  (eval $ac_compile) 2>conftest.er1
2315  ac_status=$?
2316  grep -v '^ *+' conftest.er1 >conftest.err
2317  rm -f conftest.er1
2318  cat conftest.err >&5
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); } &&
2321         { ac_try='test -z "$ac_c_werror_flag"
2322                         || test ! -s conftest.err'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; } &&
2328         { ac_try='test -s conftest.$ac_objext'
2329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330  (eval $ac_try) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; }; then
2334  ac_compiler_gnu=yes
2335else
2336  echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339ac_compiler_gnu=no
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342ac_cv_c_compiler_gnu=$ac_compiler_gnu
2343
2344fi
2345echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2346echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2347GCC=`test $ac_compiler_gnu = yes && echo yes`
2348ac_test_CFLAGS=${CFLAGS+set}
2349ac_save_CFLAGS=$CFLAGS
2350CFLAGS="-g"
2351echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2352echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2353if test "${ac_cv_prog_cc_g+set}" = set; then
2354  echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356  cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h.  */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h.  */
2362
2363int
2364main ()
2365{
2366
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373  (eval $ac_compile) 2>conftest.er1
2374  ac_status=$?
2375  grep -v '^ *+' conftest.er1 >conftest.err
2376  rm -f conftest.er1
2377  cat conftest.err >&5
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); } &&
2380         { ac_try='test -z "$ac_c_werror_flag"
2381                         || test ! -s conftest.err'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; } &&
2387         { ac_try='test -s conftest.$ac_objext'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; }; then
2393  ac_cv_prog_cc_g=yes
2394else
2395  echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398ac_cv_prog_cc_g=no
2399fi
2400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2403echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2404if test "$ac_test_CFLAGS" = set; then
2405  CFLAGS=$ac_save_CFLAGS
2406elif test $ac_cv_prog_cc_g = yes; then
2407  if test "$GCC" = yes; then
2408    CFLAGS="-g -O2"
2409  else
2410    CFLAGS="-g"
2411  fi
2412else
2413  if test "$GCC" = yes; then
2414    CFLAGS="-O2"
2415  else
2416    CFLAGS=
2417  fi
2418fi
2419echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2420echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2421if test "${ac_cv_prog_cc_stdc+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  ac_cv_prog_cc_stdc=no
2425ac_save_CC=$CC
2426cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h.  */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h.  */
2432#include <stdarg.h>
2433#include <stdio.h>
2434#include <sys/types.h>
2435#include <sys/stat.h>
2436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2437struct buf { int x; };
2438FILE * (*rcsopen) (struct buf *, struct stat *, int);
2439static char *e (p, i)
2440     char **p;
2441     int i;
2442{
2443  return p[i];
2444}
2445static char *f (char * (*g) (char **, int), char **p, ...)
2446{
2447  char *s;
2448  va_list v;
2449  va_start (v,p);
2450  s = g (p, va_arg (v,int));
2451  va_end (v);
2452  return s;
2453}
2454
2455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2456   function prototypes and stuff, but not '\xHH' hex character constants.
2457   These don't provoke an error unfortunately, instead are silently treated
2458   as 'x'.  The following induces an error, until -std1 is added to get
2459   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2460   array size at least.  It's necessary to write '\x00'==0 to get something
2461   that's true only with -std1.  */
2462int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2463
2464int test (int i, double x);
2465struct s1 {int (*f) (int a);};
2466struct s2 {int (*f) (double a);};
2467int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2468int argc;
2469char **argv;
2470int
2471main ()
2472{
2473return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2474  ;
2475  return 0;
2476}
2477_ACEOF
2478# Don't try gcc -ansi; that turns off useful extensions and
2479# breaks some systems' header files.
2480# AIX                   -qlanglvl=ansi
2481# Ultrix and OSF/1      -std1
2482# HP-UX 10.20 and later -Ae
2483# HP-UX older versions  -Aa -D_HPUX_SOURCE
2484# SVR4                  -Xc -D__EXTENSIONS__
2485for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2486do
2487  CC="$ac_save_CC $ac_arg"
2488  rm -f conftest.$ac_objext
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490  (eval $ac_compile) 2>conftest.er1
2491  ac_status=$?
2492  grep -v '^ *+' conftest.er1 >conftest.err
2493  rm -f conftest.er1
2494  cat conftest.err >&5
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); } &&
2497         { ac_try='test -z "$ac_c_werror_flag"
2498                         || test ! -s conftest.err'
2499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500  (eval $ac_try) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; } &&
2504         { ac_try='test -s conftest.$ac_objext'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; }; then
2510  ac_cv_prog_cc_stdc=$ac_arg
2511break
2512else
2513  echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516fi
2517rm -f conftest.err conftest.$ac_objext
2518done
2519rm -f conftest.$ac_ext conftest.$ac_objext
2520CC=$ac_save_CC
2521
2522fi
2523
2524case "x$ac_cv_prog_cc_stdc" in
2525  x|xno)
2526    echo "$as_me:$LINENO: result: none needed" >&5
2527echo "${ECHO_T}none needed" >&6 ;;
2528  *)
2529    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2530echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2531    CC="$CC $ac_cv_prog_cc_stdc" ;;
2532esac
2533
2534# Some people use a C++ compiler to compile C.  Since we use `exit',
2535# in C++ we need to declare it.  In case someone uses the same compiler
2536# for both compiling C and C++ we need to have the C++ compiler decide
2537# the declaration of exit, since it's the most demanding environment.
2538cat >conftest.$ac_ext <<_ACEOF
2539#ifndef __cplusplus
2540  choke me
2541#endif
2542_ACEOF
2543rm -f conftest.$ac_objext
2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545  (eval $ac_compile) 2>conftest.er1
2546  ac_status=$?
2547  grep -v '^ *+' conftest.er1 >conftest.err
2548  rm -f conftest.er1
2549  cat conftest.err >&5
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); } &&
2552         { ac_try='test -z "$ac_c_werror_flag"
2553                         || test ! -s conftest.err'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; } &&
2559         { ac_try='test -s conftest.$ac_objext'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; }; then
2565  for ac_declaration in \
2566   '' \
2567   'extern "C" void std::exit (int) throw (); using std::exit;' \
2568   'extern "C" void std::exit (int); using std::exit;' \
2569   'extern "C" void exit (int) throw ();' \
2570   'extern "C" void exit (int);' \
2571   'void exit (int);'
2572do
2573  cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579$ac_declaration
2580#include <stdlib.h>
2581int
2582main ()
2583{
2584exit (42);
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>conftest.er1
2592  ac_status=$?
2593  grep -v '^ *+' conftest.er1 >conftest.err
2594  rm -f conftest.er1
2595  cat conftest.err >&5
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598         { ac_try='test -z "$ac_c_werror_flag"
2599                         || test ! -s conftest.err'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; } &&
2605         { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  :
2612else
2613  echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616continue
2617fi
2618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619  cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h.  */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h.  */
2625$ac_declaration
2626int
2627main ()
2628{
2629exit (42);
2630  ;
2631  return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636  (eval $ac_compile) 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -z "$ac_c_werror_flag"
2644                         || test ! -s conftest.err'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  break
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663done
2664rm -f conftest*
2665if test -n "$ac_declaration"; then
2666  echo '#ifdef __cplusplus' >>confdefs.h
2667  echo $ac_declaration      >>confdefs.h
2668  echo '#endif'             >>confdefs.h
2669fi
2670
2671else
2672  echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675fi
2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683if test -z "$CC" ; then
2684  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2685echo "$as_me: error: Failed to find a C compiler!" >&2;}
2686   { (exit 1); exit 1; }; }
2687fi
2688# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2689case "$CC" in
2690  clang* ) ;;
2691  cl* | */cl* | CL* | */CL* )
2692    if test "$ac_cv_prog_cc_g" = yes ; then
2693      ac_cv_prog_cc_g=no
2694      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2695echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2696    fi ;;
2697  * )
2698    CYGPATH_W=echo
2699    ;;
2700esac
2701CFLAGS="$save_cflags"
2702
2703# add automake conditional so we can recognize cl compiler in makefile
2704coin_cc_is_cl=false
2705case "$CC" in
2706  clang* ) ;;
2707  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2708    coin_cc_is_cl=true
2709    ;;
2710esac
2711
2712
2713if test $coin_cc_is_cl = true; then
2714  COIN_CC_IS_CL_TRUE=
2715  COIN_CC_IS_CL_FALSE='#'
2716else
2717  COIN_CC_IS_CL_TRUE='#'
2718  COIN_CC_IS_CL_FALSE=
2719fi
2720
2721
2722# Check if a project specific CFLAGS variable has been set
2723if test x$COIN_PRJCT != x; then
2724  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2725  if test x$coin_tmp = xset; then
2726    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2727  fi
2728fi
2729
2730if test x"$CFLAGS" = x; then
2731
2732  coin_add_cflags=
2733  coin_opt_cflags=
2734  coin_dbg_cflags=
2735  coin_warn_cflags=
2736
2737  if test "$GCC" = "yes"; then
2738    case "$CC" in
2739      icc* | */icc*)
2740        ;;
2741      *)
2742        coin_opt_cflags="-O3"
2743        coin_add_cflags="-pipe"
2744        coin_dbg_cflags="-g -O0"
2745        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2746        case $build in
2747          *-darwin*)
2748            ;;
2749          *)
2750            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2751            ;;
2752        esac
2753        case $enable_doscompile in
2754          mingw)
2755            CFLAGS="-mno-cygwin"
2756            cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763int
2764main ()
2765{
2766int i=0; i++;
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext conftest$ac_exeext
2772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2773  (eval $ac_link) 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } &&
2780         { ac_try='test -z "$ac_c_werror_flag"
2781                         || test ! -s conftest.err'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; } &&
2787         { ac_try='test -s conftest$ac_exeext'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; }; then
2793  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2794else
2795  echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798fi
2799rm -f conftest.err conftest.$ac_objext \
2800      conftest$ac_exeext conftest.$ac_ext
2801            CFLAGS=
2802          ;;
2803        esac
2804    esac
2805  fi
2806  if test -z "$coin_opt_cflags"; then
2807    case $build in
2808      *-cygwin* | *-mingw*)
2809        case "$CC" in
2810          clang* ) ;;
2811          cl* | */cl* | CL* | */CL*)
2812            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2813              coin_opt_cflags='-MD -O2'
2814              coin_dbg_cflags='-MDd'
2815            else
2816              coin_opt_cflags='-MT -O2'
2817              coin_dbg_cflags='-MTd'
2818            fi
2819            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2820            ;;
2821          icl* | */icl* | ICL* | */ICL*)
2822            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2823              coin_opt_cflags='-MD -Ox'
2824              coin_dbg_cflags='-MDd -debug'
2825            else
2826              coin_opt_cflags='-MT -Ox'
2827              coin_dbg_cflags='-MTd -debug'
2828            fi
2829            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2830            ;;
2831        esac
2832        ;;
2833      *-linux-*)
2834        case "$CC" in
2835          icc* | */icc*)
2836            coin_opt_cflags="-O3 -ip -mp1"
2837            coin_add_cflags=""
2838            coin_dbg_cflags="-g"
2839            # Check if -i_dynamic is necessary (for new glibc library)
2840            CFLAGS=
2841            cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h.  */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h.  */
2847
2848int
2849main ()
2850{
2851int i=0; i++;
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext conftest$ac_exeext
2857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858  (eval $ac_link) 2>conftest.er1
2859  ac_status=$?
2860  grep -v '^ *+' conftest.er1 >conftest.err
2861  rm -f conftest.er1
2862  cat conftest.err >&5
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); } &&
2865         { ac_try='test -z "$ac_c_werror_flag"
2866                         || test ! -s conftest.err'
2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868  (eval $ac_try) 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; } &&
2872         { ac_try='test -s conftest$ac_exeext'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; }; then
2878  :
2879else
2880  echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
2882
2883coin_add_cflags="-i_dynamic $coin_add_cflags"
2884fi
2885rm -f conftest.err conftest.$ac_objext \
2886      conftest$ac_exeext conftest.$ac_ext
2887            ;;
2888          pgcc* | */pgcc*)
2889            coin_opt_cflags="-fast"
2890            coin_add_cflags="-Kieee -pc 64"
2891            coin_dbg_cflags="-g"
2892            ;;
2893        esac
2894        ;;
2895      *-ibm-*)
2896        case "$CC" in
2897          xlc* | */xlc* | mpxlc* | */mpxlc*)
2898            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2899            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2900            coin_dbg_cflags="-g"
2901          ;;
2902        esac
2903        ;;
2904      *-hp-*)
2905        coin_opt_cflags="-O"
2906        coin_add_cflags="-Ae"
2907        coin_dbg_cflags="-g"
2908        ;;
2909      *-*-solaris*)
2910        coin_opt_cflags="-xO4"
2911        coin_dbg_cflags="-g"
2912        ;;
2913      *-sgi-*)
2914        coin_opt_cflags="-O -OPT:Olimit=0"
2915        coin_dbg_cflags="-g"
2916        ;;
2917    esac
2918  fi
2919
2920  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2921    coin_dbg_cflags="-g"
2922  fi
2923
2924  if test -z "$coin_opt_cflags"; then
2925    # Try if -O option works if nothing else is set
2926    CFLAGS="-O"
2927    cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h.  */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h.  */
2933
2934int
2935main ()
2936{
2937int i=0; i++;
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext conftest$ac_exeext
2943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944  (eval $ac_link) 2>conftest.er1
2945  ac_status=$?
2946  grep -v '^ *+' conftest.er1 >conftest.err
2947  rm -f conftest.er1
2948  cat conftest.err >&5
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); } &&
2951         { ac_try='test -z "$ac_c_werror_flag"
2952                         || test ! -s conftest.err'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; } &&
2958         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2964  coin_opt_cflags="-O"
2965else
2966  echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969fi
2970rm -f conftest.err conftest.$ac_objext \
2971      conftest$ac_exeext conftest.$ac_ext
2972  fi
2973
2974  # if PM doesn't want the warning messages, take them out
2975  if test x"$coin_skip_warn_cflags" = xyes; then
2976    coin_warn_cflags=
2977  fi
2978
2979  if test x${DBG_CFLAGS+set} != xset; then
2980    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2981  fi
2982  if test x${OPT_CFLAGS+set} != xset; then
2983    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2984  fi
2985
2986  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2987  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2988
2989  if test "$coin_debug_compile" = "true"; then
2990    CFLAGS="$DBG_CFLAGS"
2991  else
2992    CFLAGS="$OPT_CFLAGS"
2993  fi
2994else
2995  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2996  if test x${DBG_CFLAGS+set} != xset; then
2997    DBG_CFLAGS="$CFLAGS"
2998  fi
2999  if test x${OPT_CFLAGS+set} != xset; then
3000    OPT_CFLAGS="$CFLAGS"
3001  fi
3002fi
3003
3004# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3005
3006case "$CFLAGS" in
3007  *-mno-cygwin*)
3008    if test x${CPPFLAGS+set} != xset ; then
3009      CPPFLAGS="-mno-cygwin"
3010    else
3011      case "$CPPFLAGS" in
3012        *-mno-cygwin*)
3013          ;;
3014        *)
3015          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3016          ;;
3017      esac
3018    fi ;;
3019esac
3020
3021# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3022if test x$COIN_PRJCT != x; then
3023  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3024fi
3025
3026# Try if CFLAGS works
3027save_CFLAGS="$CFLAGS"
3028cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h.  */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h.  */
3034
3035int
3036main ()
3037{
3038int i=0; i++;
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext conftest$ac_exeext
3044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3045  (eval $ac_link) 2>conftest.er1
3046  ac_status=$?
3047  grep -v '^ *+' conftest.er1 >conftest.err
3048  rm -f conftest.er1
3049  cat conftest.err >&5
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); } &&
3052         { ac_try='test -z "$ac_c_werror_flag"
3053                         || test ! -s conftest.err'
3054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055  (eval $ac_try) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }; } &&
3059         { ac_try='test -s conftest$ac_exeext'
3060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061  (eval $ac_try) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; }; then
3065  :
3066else
3067  echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070CFLAGS=
3071fi
3072rm -f conftest.err conftest.$ac_objext \
3073      conftest$ac_exeext conftest.$ac_ext
3074if test -z "$CFLAGS"; then
3075  { 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
3076echo "$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;}
3077  CFLAGS='-O'
3078  cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h.  */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088int i=0; i++;
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext conftest$ac_exeext
3094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3095  (eval $ac_link) 2>conftest.er1
3096  ac_status=$?
3097  grep -v '^ *+' conftest.er1 >conftest.err
3098  rm -f conftest.er1
3099  cat conftest.err >&5
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); } &&
3102         { ac_try='test -z "$ac_c_werror_flag"
3103                         || test ! -s conftest.err'
3104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105  (eval $ac_try) 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; } &&
3109         { ac_try='test -s conftest$ac_exeext'
3110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111  (eval $ac_try) 2>&5
3112  ac_status=$?
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); }; }; then
3115  :
3116else
3117  echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120CFLAGS=
3121fi
3122rm -f conftest.err conftest.$ac_objext \
3123      conftest$ac_exeext conftest.$ac_ext
3124  if test -z "$CFLAGS"; then
3125    { 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
3126echo "$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;}
3127  fi
3128fi
3129
3130{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3131echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3132
3133
3134if test x"$MPICC" = x; then :; else
3135  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3136echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3137  CC="$MPICC"
3138fi
3139
3140# Correct the LD variable if we are using the MS or Intel-windows compiler
3141case "$CC" in
3142  clang* ) ;;
3143  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3144    case $build in
3145  *-mingw*)
3146    if test "${LD+set}" = set; then :; else
3147      LD=link
3148    fi
3149    ;;
3150 esac
3151 case $enable_doscompile in
3152   msvc)
3153     if test "x${LD+set}" = xset; then :; else
3154       LD=link
3155     fi
3156     ;;
3157 esac
3158
3159    ;;
3160esac
3161
3162ac_ext=c
3163ac_cpp='$CPP $CPPFLAGS'
3164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168
3169
3170# Get the name of the C++ compiler and appropriate compiler options
3171
3172 #Let's try if that overcomes configuration problem with VC++ 6.0
3173
3174ac_ext=cc
3175ac_cpp='$CXXCPP $CPPFLAGS'
3176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3179
3180
3181
3182
3183
3184
3185
3186coin_has_cxx=yes
3187
3188save_cxxflags="$CXXFLAGS"
3189# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3190case $build in
3191  *-cygwin* | *-mingw*)
3192             if test "$enable_doscompile" = msvc ; then
3193               comps="icl cl"
3194             else
3195               comps="g++ cl"
3196             fi ;;
3197  *-*-solaris*)
3198             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3199  *-darwin*) comps="g++ c++ CC" ;;
3200  *-linux-gnu*)
3201             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3202          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3203esac
3204
3205# We delete the cached value, since the test might not have been
3206# performed with our choice of compilers earlier
3207$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3208# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3209ac_ext=cc
3210ac_cpp='$CXXCPP $CPPFLAGS'
3211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214if test -n "$ac_tool_prefix"; then
3215  for ac_prog in $CCC $comps
3216  do
3217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219echo "$as_me:$LINENO: checking for $ac_word" >&5
3220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221if test "${ac_cv_prog_CXX+set}" = set; then
3222  echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224  if test -n "$CXX"; then
3225  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3226else
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230  IFS=$as_save_IFS
3231  test -z "$as_dir" && as_dir=.
3232  for ac_exec_ext in '' $ac_executable_extensions; do
3233  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236    break 2
3237  fi
3238done
3239done
3240
3241fi
3242fi
3243CXX=$ac_cv_prog_CXX
3244if test -n "$CXX"; then
3245  echo "$as_me:$LINENO: result: $CXX" >&5
3246echo "${ECHO_T}$CXX" >&6
3247else
3248  echo "$as_me:$LINENO: result: no" >&5
3249echo "${ECHO_T}no" >&6
3250fi
3251
3252    test -n "$CXX" && break
3253  done
3254fi
3255if test -z "$CXX"; then
3256  ac_ct_CXX=$CXX
3257  for ac_prog in $CCC $comps
3258do
3259  # Extract the first word of "$ac_prog", so it can be a program name with args.
3260set dummy $ac_prog; ac_word=$2
3261echo "$as_me:$LINENO: checking for $ac_word" >&5
3262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266  if test -n "$ac_ct_CXX"; then
3267  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274  for ac_exec_ext in '' $ac_executable_extensions; do
3275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    ac_cv_prog_ac_ct_CXX="$ac_prog"
3277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281done
3282
3283fi
3284fi
3285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3286if test -n "$ac_ct_CXX"; then
3287  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3288echo "${ECHO_T}$ac_ct_CXX" >&6
3289else
3290  echo "$as_me:$LINENO: result: no" >&5
3291echo "${ECHO_T}no" >&6
3292fi
3293
3294  test -n "$ac_ct_CXX" && break
3295done
3296test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3297
3298  CXX=$ac_ct_CXX
3299fi
3300
3301
3302# Provide some information about the compiler.
3303echo "$as_me:$LINENO:" \
3304     "checking for C++ compiler version" >&5
3305ac_compiler=`set X $ac_compile; echo $2`
3306{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3307  (eval $ac_compiler --version </dev/null >&5) 2>&5
3308  ac_status=$?
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); }
3311{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3312  (eval $ac_compiler -v </dev/null >&5) 2>&5
3313  ac_status=$?
3314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315  (exit $ac_status); }
3316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3317  (eval $ac_compiler -V </dev/null >&5) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }
3321
3322echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3323echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3324if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3325  echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327  cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h.  */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337#ifndef __GNUC__
3338       choke me
3339#endif
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345rm -f conftest.$ac_objext
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347  (eval $ac_compile) 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } &&
3354         { ac_try='test -z "$ac_cxx_werror_flag"
3355                         || test ! -s conftest.err'
3356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357  (eval $ac_try) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }; } &&
3361         { ac_try='test -s conftest.$ac_objext'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; }; then
3367  ac_compiler_gnu=yes
3368else
3369  echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372ac_compiler_gnu=no
3373fi
3374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3375ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3376
3377fi
3378echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3379echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3380GXX=`test $ac_compiler_gnu = yes && echo yes`
3381ac_test_CXXFLAGS=${CXXFLAGS+set}
3382ac_save_CXXFLAGS=$CXXFLAGS
3383CXXFLAGS="-g"
3384echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3385echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3386if test "${ac_cv_prog_cxx_g+set}" = set; then
3387  echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389  cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h.  */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h.  */
3395
3396int
3397main ()
3398{
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404rm -f conftest.$ac_objext
3405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406  (eval $ac_compile) 2>conftest.er1
3407  ac_status=$?
3408  grep -v '^ *+' conftest.er1 >conftest.err
3409  rm -f conftest.er1
3410  cat conftest.err >&5
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); } &&
3413         { ac_try='test -z "$ac_cxx_werror_flag"
3414                         || test ! -s conftest.err'
3415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416  (eval $ac_try) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }; } &&
3420         { ac_try='test -s conftest.$ac_objext'
3421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422  (eval $ac_try) 2>&5
3423  ac_status=$?
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); }; }; then
3426  ac_cv_prog_cxx_g=yes
3427else
3428  echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431ac_cv_prog_cxx_g=no
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434fi
3435echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3436echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3437if test "$ac_test_CXXFLAGS" = set; then
3438  CXXFLAGS=$ac_save_CXXFLAGS
3439elif test $ac_cv_prog_cxx_g = yes; then
3440  if test "$GXX" = yes; then
3441    CXXFLAGS="-g -O2"
3442  else
3443    CXXFLAGS="-g"
3444  fi
3445else
3446  if test "$GXX" = yes; then
3447    CXXFLAGS="-O2"
3448  else
3449    CXXFLAGS=
3450  fi
3451fi
3452for ac_declaration in \
3453   '' \
3454   'extern "C" void std::exit (int) throw (); using std::exit;' \
3455   'extern "C" void std::exit (int); using std::exit;' \
3456   'extern "C" void exit (int) throw ();' \
3457   'extern "C" void exit (int);' \
3458   'void exit (int);'
3459do
3460  cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h.  */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h.  */
3466$ac_declaration
3467#include <stdlib.h>
3468int
3469main ()
3470{
3471exit (42);
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_cxx_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  :
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503continue
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506  cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h.  */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h.  */
3512$ac_declaration
3513int
3514main ()
3515{
3516exit (42);
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521rm -f conftest.$ac_objext
3522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523  (eval $ac_compile) 2>conftest.er1
3524  ac_status=$?
3525  grep -v '^ *+' conftest.er1 >conftest.err
3526  rm -f conftest.er1
3527  cat conftest.err >&5
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); } &&
3530         { ac_try='test -z "$ac_cxx_werror_flag"
3531                         || test ! -s conftest.err'
3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533  (eval $ac_try) 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); }; } &&
3537         { ac_try='test -s conftest.$ac_objext'
3538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; }; then
3543  break
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548fi
3549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550done
3551rm -f conftest*
3552if test -n "$ac_declaration"; then
3553  echo '#ifdef __cplusplus' >>confdefs.h
3554  echo $ac_declaration      >>confdefs.h
3555  echo '#endif'             >>confdefs.h
3556fi
3557
3558ac_ext=cc
3559ac_cpp='$CXXCPP $CPPFLAGS'
3560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3563
3564
3565#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3566#thus, we test here whether $CXX is actually working
3567ac_ext=cc
3568ac_cpp='$CXXCPP $CPPFLAGS'
3569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3572
3573echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3574echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3575cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h.  */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585int i=0;
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590rm -f conftest.$ac_objext
3591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592  (eval $ac_compile) 2>conftest.er1
3593  ac_status=$?
3594  grep -v '^ *+' conftest.er1 >conftest.err
3595  rm -f conftest.er1
3596  cat conftest.err >&5
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); } &&
3599         { ac_try='test -z "$ac_cxx_werror_flag"
3600                         || test ! -s conftest.err'
3601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602  (eval $ac_try) 2>&5
3603  ac_status=$?
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); }; } &&
3606         { ac_try='test -s conftest.$ac_objext'
3607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608  (eval $ac_try) 2>&5
3609  ac_status=$?
3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); }; }; then
3612  echo "$as_me:$LINENO: result: yes" >&5
3613echo "${ECHO_T}yes" >&6
3614else
3615  echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6
3620   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3621echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3622   { (exit 1); exit 1; }; }
3623
3624fi
3625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626ac_ext=cc
3627ac_cpp='$CXXCPP $CPPFLAGS'
3628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3631
3632
3633coin_cxx_is_cl=false
3634# It seems that we need to cleanup something here for the Windows
3635case "$CXX" in
3636  clang* ) ;;
3637  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3638    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3639    mv confdefs.hh confdefs.h
3640    coin_cxx_is_cl=true
3641    ;;
3642esac
3643
3644# add automake conditional so we can recognize cl compiler in makefile
3645
3646
3647if test $coin_cxx_is_cl = true; then
3648  COIN_CXX_IS_CL_TRUE=
3649  COIN_CXX_IS_CL_FALSE='#'
3650else
3651  COIN_CXX_IS_CL_TRUE='#'
3652  COIN_CXX_IS_CL_FALSE=
3653fi
3654
3655
3656# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3657case "$CXX" in
3658  clang* ) ;;
3659  cl* | */cl* | CL* | */CL* )
3660    if test "$ac_cv_prog_cxx_g" = yes ; then
3661      ac_cv_prog_cxx_g=no
3662      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3663echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3664    fi ;;
3665  * )
3666    CYGPATH_W=echo
3667    ;;
3668esac
3669CXXFLAGS="$save_cxxflags"
3670
3671# Check if a project specific CXXFLAGS variable has been set
3672if test x$COIN_PRJCT != x; then
3673  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3674  if test x$coin_tmp = xset; then
3675    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3676  fi
3677fi
3678
3679if test x"$CXXFLAGS" = x; then
3680
3681# ToDo decide whether we want -DNDEBUG for optimization
3682  coin_add_cxxflags=
3683  coin_opt_cxxflags=
3684  coin_dbg_cxxflags=
3685  coin_warn_cxxflags=
3686
3687  if test "$GXX" = "yes"; then
3688    case "$CXX" in
3689      icpc* | */icpc*)
3690        ;;
3691      *)
3692# ToDo decide about unroll-loops
3693        coin_opt_cxxflags="-O3"
3694        coin_add_cxxflags="-pipe"
3695        coin_dbg_cxxflags="-g -O0"
3696        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3697        case $build in
3698          *-darwin*)
3699            ;;
3700          *)
3701            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3702            ;;
3703        esac
3704
3705        case $enable_doscompile in
3706          mingw)
3707            CXXFLAGS="-mno-cygwin"
3708            cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h.  */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718int i=0; i++;
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725  (eval $ac_link) 2>conftest.er1
3726  ac_status=$?
3727  grep -v '^ *+' conftest.er1 >conftest.err
3728  rm -f conftest.er1
3729  cat conftest.err >&5
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); } &&
3732         { ac_try='test -z "$ac_cxx_werror_flag"
3733                         || test ! -s conftest.err'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; } &&
3739         { ac_try='test -s conftest$ac_exeext'
3740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741  (eval $ac_try) 2>&5
3742  ac_status=$?
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); }; }; then
3745  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750fi
3751rm -f conftest.err conftest.$ac_objext \
3752      conftest$ac_exeext conftest.$ac_ext
3753            CXXFLAGS=
3754          ;;
3755        esac
3756    esac
3757  fi
3758
3759# Note that we do not need to cover GCC in the following tests.
3760
3761  if test -z "$coin_opt_cxxflags"; then
3762    case $build in
3763      *-cygwin* | *-mingw*)
3764        case "$CXX" in
3765          clang* ) ;;
3766          cl* | */cl* | CL* | */CL*)
3767            # The MT and MTd options are mutually exclusive
3768            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3769               coin_opt_cxxflags='-MD -O2'
3770               coin_dbg_cxxflags='-MDd'
3771            else
3772               coin_opt_cxxflags='-MT -O2'
3773               coin_dbg_cxxflags='-MTd'
3774            fi
3775            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3776            ;;
3777          icl* | */icl* | ICL* | */ICL*)
3778          # The MT and MTd options are mutually exclusive
3779            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3780              coin_opt_cxxflags='-MD -Ox'
3781              coin_dbg_cxxflags='-MDd -debug'
3782            else
3783              coin_opt_cxxflags='-MT -Ox'
3784              coin_dbg_cxxflags='-MTd -debug'
3785            fi
3786            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3787            ;;
3788        esac
3789        ;;
3790      *-linux-*)
3791        case "$CXX" in
3792          icpc* | */icpc*)
3793            coin_opt_cxxflags="-O3 -ip -mp1"
3794            coin_add_cxxflags=""
3795            coin_dbg_cxxflags="-g"
3796            # Check if -i_dynamic is necessary (for new glibc library)
3797            CXXFLAGS=
3798            cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804
3805int
3806main ()
3807{
3808int i=0; i++;
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext conftest$ac_exeext
3814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815  (eval $ac_link) 2>conftest.er1
3816  ac_status=$?
3817  grep -v '^ *+' conftest.er1 >conftest.err
3818  rm -f conftest.er1
3819  cat conftest.err >&5
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); } &&
3822         { ac_try='test -z "$ac_cxx_werror_flag"
3823                         || test ! -s conftest.err'
3824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825  (eval $ac_try) 2>&5
3826  ac_status=$?
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); }; } &&
3829         { ac_try='test -s conftest$ac_exeext'
3830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831  (eval $ac_try) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }; }; then
3835  :
3836else
3837  echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3841fi
3842rm -f conftest.err conftest.$ac_objext \
3843      conftest$ac_exeext conftest.$ac_ext
3844            ;;
3845          pgCC* | */pgCC*)
3846            coin_opt_cxxflags="-fast"
3847            coin_add_cxxflags="-Kieee -pc 64"
3848            coin_dbg_cxxflags="-g"
3849            ;;
3850        esac
3851        ;;
3852      *-ibm-*)
3853        case "$CXX" in
3854          xlC* | */xlC* | mpxlC* | */mpxlC*)
3855            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3856            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3857            coin_dbg_cxxflags="-g"
3858            ;;
3859        esac
3860        ;;
3861      *-hp-*)
3862        case "$CXX" in
3863          aCC* | */aCC* )
3864            coin_opt_cxxflags="-O"
3865            coin_add_cxxflags="-AA"
3866            coin_dbg_cxxflags="-g"
3867            ;;
3868        esac
3869        ;;
3870      *-*-solaris*)
3871          coin_opt_cxxflags="-O4"
3872          coin_dbg_cxxflags="-g"
3873        ;;
3874    esac
3875  fi
3876
3877# Generic flag settings. If these don't work, add a case above.
3878
3879  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3880    coin_dbg_cxxflags="-g"
3881  fi
3882
3883  if test -z "$coin_opt_cxxflags"; then
3884    # Try if -O option works if nothing else is set
3885    CXXFLAGS=-O
3886    cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h.  */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896int i=0; i++;
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext conftest$ac_exeext
3902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903  (eval $ac_link) 2>conftest.er1
3904  ac_status=$?
3905  grep -v '^ *+' conftest.er1 >conftest.err
3906  rm -f conftest.er1
3907  cat conftest.err >&5
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); } &&
3910         { ac_try='test -z "$ac_cxx_werror_flag"
3911                         || test ! -s conftest.err'
3912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913  (eval $ac_try) 2>&5
3914  ac_status=$?
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); }; } &&
3917         { ac_try='test -s conftest$ac_exeext'
3918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919  (eval $ac_try) 2>&5
3920  ac_status=$?
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); }; }; then
3923  coin_opt_cxxflags="-O"
3924else
3925  echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928fi
3929rm -f conftest.err conftest.$ac_objext \
3930      conftest$ac_exeext conftest.$ac_ext
3931  fi
3932
3933  # if PM doesn't want the warning messages, take them out
3934  if test x"$coin_skip_warn_cxxflags" = xyes; then
3935    coin_warn_cxxflags=
3936  fi
3937
3938# Do final setup of flags based on values determined above.
3939
3940  if test x${DBG_CXXFLAGS+set} != xset; then
3941    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3942  fi
3943  if test x${OPT_CXXFLAGS+set} != xset; then
3944    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3945  fi
3946
3947  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3948  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3949
3950  if test "$coin_debug_compile" = "true"; then
3951    CXXFLAGS="$DBG_CXXFLAGS"
3952  else
3953    CXXFLAGS="$OPT_CXXFLAGS"
3954  fi
3955
3956# Handle the case where CXXFLAGS was set externally.
3957else
3958  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3959  if test x${DBG_CXXFLAGS+set} != xset; then
3960    DBG_CXXFLAGS="$CXXFLAGS"
3961  fi
3962  if test x${OPT_CXXFLAGS+set} != xset; then
3963    OPT_CXXFLAGS="$CXXFLAGS"
3964  fi
3965fi
3966
3967# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3968
3969case "$CXXFLAGS" in
3970  *-mno-cygwin*)
3971    if test x${CPPFLAGS+set} != xset ; then
3972      CPPFLAGS="-mno-cygwin"
3973    else
3974      case "$CPPFLAGS" in
3975        *-mno-cygwin*)
3976          ;;
3977        *)
3978          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3979          ;;
3980      esac
3981    fi ;;
3982esac
3983
3984# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3985if test x$COIN_PRJCT != x; then
3986  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3987fi
3988
3989# Try if CXXFLAGS works
3990save_CXXFLAGS="$CXXFLAGS"
3991cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001int i=0; i++;
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_cxx_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  :
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033CXXFLAGS=
4034fi
4035rm -f conftest.err conftest.$ac_objext \
4036      conftest$ac_exeext conftest.$ac_ext
4037if test -z "$CXXFLAGS"; then
4038  { 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
4039echo "$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;}
4040  CXXFLAGS='-O'
4041  cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h.  */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051int i=0; i++;
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext conftest$ac_exeext
4057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058  (eval $ac_link) 2>conftest.er1
4059  ac_status=$?
4060  grep -v '^ *+' conftest.er1 >conftest.err
4061  rm -f conftest.er1
4062  cat conftest.err >&5
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); } &&
4065         { ac_try='test -z "$ac_cxx_werror_flag"
4066                         || test ! -s conftest.err'
4067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068  (eval $ac_try) 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }; } &&
4072         { ac_try='test -s conftest$ac_exeext'
4073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074  (eval $ac_try) 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; }; then
4078  :
4079else
4080  echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083CXXFLAGS=
4084fi
4085rm -f conftest.err conftest.$ac_objext \
4086      conftest$ac_exeext conftest.$ac_ext
4087  if test -z "$CXXFLAGS"; then
4088    { 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
4089echo "$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;}
4090  fi
4091fi
4092
4093{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4094echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4095
4096
4097if test x"$MPICXX" = x; then :; else
4098  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4099echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4100  CXX="$MPICXX"
4101fi
4102
4103# correct the LD variable in a mingw build with MS or intel compiler
4104case "$CXX" in
4105  clang* ) ;;
4106  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4107    case $build in
4108  *-mingw*)
4109    if test "${LD+set}" = set; then :; else
4110      LD=link
4111    fi
4112    ;;
4113 esac
4114 case $enable_doscompile in
4115   msvc)
4116     if test "x${LD+set}" = xset; then :; else
4117       LD=link
4118     fi
4119     ;;
4120 esac
4121
4122    ;;
4123esac
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131
4132
4133# Get the name of the Fortran compiler and appropriate compiler options
4134case $build in
4135  *-cygwin* | *-mingw*)
4136     if test "$enable_doscompile" = msvc ; then
4137       coin_f77_comps="ifort fl32 compile_f2c"
4138     else
4139       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4140     fi ;;
4141  *-*-solaris*)
4142     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4143  *-linux-gnu*)
4144     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4145  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4146 esac
4147
4148
4149
4150
4151
4152
4153ac_ext=f
4154ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4155ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4157
4158
4159
4160
4161
4162
4163coin_has_f77=yes
4164
4165save_fflags="$FFLAGS"
4166
4167# We delete the cached value, since the test might not have been
4168# performed with our choice of compilers earlier
4169$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4170
4171# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4172# coin_f77_comps to see if there's a program that matches one of the names.
4173# If there's no such program, F77 = unavailable. If we match the name,
4174# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4175# compiler.
4176# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4177
4178
4179{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4180echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4181if test -n "$ac_tool_prefix"; then
4182  for ac_prog in $coin_f77_comps
4183  do
4184    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4186echo "$as_me:$LINENO: checking for $ac_word" >&5
4187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188if test "${ac_cv_prog_F77+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  if test -n "$F77"; then
4192  ac_cv_prog_F77="$F77" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207
4208fi
4209fi
4210F77=$ac_cv_prog_F77
4211if test -n "$F77"; then
4212  echo "$as_me:$LINENO: result: $F77" >&5
4213echo "${ECHO_T}$F77" >&6
4214else
4215  echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217fi
4218
4219    test -n "$F77" && break
4220  done
4221fi
4222if test -z "$F77"; then
4223  ac_ct_F77=$F77
4224  for ac_prog in $coin_f77_comps
4225do
4226  # Extract the first word of "$ac_prog", so it can be a program name with args.
4227set dummy $ac_prog; ac_word=$2
4228echo "$as_me:$LINENO: checking for $ac_word" >&5
4229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  if test -n "$ac_ct_F77"; then
4234  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239  IFS=$as_save_IFS
4240  test -z "$as_dir" && as_dir=.
4241  for ac_exec_ext in '' $ac_executable_extensions; do
4242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243    ac_cv_prog_ac_ct_F77="$ac_prog"
4244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245    break 2
4246  fi
4247done
4248done
4249
4250fi
4251fi
4252ac_ct_F77=$ac_cv_prog_ac_ct_F77
4253if test -n "$ac_ct_F77"; then
4254  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4255echo "${ECHO_T}$ac_ct_F77" >&6
4256else
4257  echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259fi
4260
4261  test -n "$ac_ct_F77" && break
4262done
4263test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4264
4265  F77=$ac_ct_F77
4266fi
4267
4268
4269if test "$F77" != "unavailable" ; then
4270  ac_ext=f
4271ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4272ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4274if test -n "$ac_tool_prefix"; then
4275  for ac_prog in $coin_f77_comps
4276  do
4277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279echo "$as_me:$LINENO: checking for $ac_word" >&5
4280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281if test "${ac_cv_prog_F77+set}" = set; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284  if test -n "$F77"; then
4285  ac_cv_prog_F77="$F77" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292  for ac_exec_ext in '' $ac_executable_extensions; do
4293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296    break 2
4297  fi
4298done
4299done
4300
4301fi
4302fi
4303F77=$ac_cv_prog_F77
4304if test -n "$F77"; then
4305  echo "$as_me:$LINENO: result: $F77" >&5
4306echo "${ECHO_T}$F77" >&6
4307else
4308  echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
4310fi
4311
4312    test -n "$F77" && break
4313  done
4314fi
4315if test -z "$F77"; then
4316  ac_ct_F77=$F77
4317  for ac_prog in $coin_f77_comps
4318do
4319  # Extract the first word of "$ac_prog", so it can be a program name with args.
4320set dummy $ac_prog; ac_word=$2
4321echo "$as_me:$LINENO: checking for $ac_word" >&5
4322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326  if test -n "$ac_ct_F77"; then
4327  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334  for ac_exec_ext in '' $ac_executable_extensions; do
4335  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336    ac_cv_prog_ac_ct_F77="$ac_prog"
4337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338    break 2
4339  fi
4340done
4341done
4342
4343fi
4344fi
4345ac_ct_F77=$ac_cv_prog_ac_ct_F77
4346if test -n "$ac_ct_F77"; then
4347  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4348echo "${ECHO_T}$ac_ct_F77" >&6
4349else
4350  echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
4352fi
4353
4354  test -n "$ac_ct_F77" && break
4355done
4356
4357  F77=$ac_ct_F77
4358fi
4359
4360
4361# Provide some information about the compiler.
4362echo "$as_me:4362:" \
4363     "checking for Fortran 77 compiler version" >&5
4364ac_compiler=`set X $ac_compile; echo $2`
4365{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4366  (eval $ac_compiler --version </dev/null >&5) 2>&5
4367  ac_status=$?
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); }
4370{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4371  (eval $ac_compiler -v </dev/null >&5) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }
4375{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4376  (eval $ac_compiler -V </dev/null >&5) 2>&5
4377  ac_status=$?
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); }
4380rm -f a.out
4381
4382# If we don't use `.F' as extension, the preprocessor is not run on the
4383# input file.  (Note that this only needs to work for GNU compilers.)
4384ac_save_ext=$ac_ext
4385ac_ext=F
4386echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4387echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4388if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  cat >conftest.$ac_ext <<_ACEOF
4392      program main
4393#ifndef __GNUC__
4394       choke me
4395#endif
4396
4397      end
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401  (eval $ac_compile) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } &&
4408         { ac_try='test -z "$ac_f77_werror_flag"
4409                         || test ! -s conftest.err'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; } &&
4415         { ac_try='test -s conftest.$ac_objext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  ac_compiler_gnu=yes
4422else
4423  echo "$as_me: failed program was:" >&5
4424sed 's/^/| /' conftest.$ac_ext >&5
4425
4426ac_compiler_gnu=no
4427fi
4428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4430
4431fi
4432echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4433echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4434ac_ext=$ac_save_ext
4435ac_test_FFLAGS=${FFLAGS+set}
4436ac_save_FFLAGS=$FFLAGS
4437FFLAGS=
4438echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4439echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4440if test "${ac_cv_prog_f77_g+set}" = set; then
4441  echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443  FFLAGS=-g
4444cat >conftest.$ac_ext <<_ACEOF
4445      program main
4446
4447      end
4448_ACEOF
4449rm -f conftest.$ac_objext
4450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451  (eval $ac_compile) 2>conftest.er1
4452  ac_status=$?
4453  grep -v '^ *+' conftest.er1 >conftest.err
4454  rm -f conftest.er1
4455  cat conftest.err >&5
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); } &&
4458         { ac_try='test -z "$ac_f77_werror_flag"
4459                         || test ! -s conftest.err'
4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461  (eval $ac_try) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; } &&
4465         { ac_try='test -s conftest.$ac_objext'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; }; then
4471  ac_cv_prog_f77_g=yes
4472else
4473  echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476ac_cv_prog_f77_g=no
4477fi
4478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4482echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4483if test "$ac_test_FFLAGS" = set; then
4484  FFLAGS=$ac_save_FFLAGS
4485elif test $ac_cv_prog_f77_g = yes; then
4486  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4487    FFLAGS="-g -O2"
4488  else
4489    FFLAGS="-g"
4490  fi
4491else
4492  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4493    FFLAGS="-O2"
4494  else
4495    FFLAGS=
4496  fi
4497fi
4498
4499G77=`test $ac_compiler_gnu = yes && echo yes`
4500ac_ext=f
4501ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4502ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4504
4505else
4506  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4507echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4508fi
4509
4510FFLAGS="$save_fflags"
4511
4512# Check if a project specific FFLAGS variable has been set
4513if test x$COIN_PRJCT != x; then
4514  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4515  if test x$coin_tmp = xset; then
4516    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4517  fi
4518fi
4519
4520if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4521
4522  coin_add_fflags=
4523  coin_opt_fflags=
4524  coin_dbg_fflags=
4525  coin_warn_fflags=
4526
4527  if test "$G77" = "yes"; then
4528    coin_opt_fflags="-O3"
4529    coin_add_fflags="-pipe"
4530    coin_dbg_fflags="-g -O0"
4531    case $enable_doscompile in
4532      mingw)
4533        FFLAGS="-mno-cygwin"
4534        cat >conftest.$ac_ext <<_ACEOF
4535      program main
4536      write(*,*) 'Hello world'
4537      end
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541  (eval $ac_link) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548         { ac_try='test -z "$ac_f77_werror_flag"
4549                         || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555         { ac_try='test -s conftest$ac_exeext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566fi
4567rm -f conftest.err conftest.$ac_objext \
4568      conftest$ac_exeext conftest.$ac_ext
4569        FFLAGS=
4570      ;;
4571    esac
4572  else
4573    case $build in
4574      *-cygwin* | *-mingw*)
4575        case $F77 in
4576          ifort* | */ifort* | IFORT* | */IFORT* )
4577            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4578              coin_opt_fflags='-MD -O3'
4579              coin_dbg_fflags='-MDd -debug'
4580            else
4581              coin_opt_fflags='-MT -O3'
4582              coin_dbg_fflags='-MTd -debug'
4583            fi
4584            coin_add_fflags='-fpp -nologo'
4585          ;;
4586          compile_f2c*)
4587            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4588              coin_opt_fflags='-MD -O2'
4589              coin_dbg_fflags='-MDd'
4590            else
4591              coin_opt_fflags='-MT -O2'
4592              coin_dbg_fflags='-MTd'
4593            fi
4594            coin_add_fflags='-nologo -wd4996'
4595          ;;
4596        esac
4597        ;;
4598      *-linux-*)
4599        case $F77 in
4600          ifc* | */ifc* | ifort* | */ifort*)
4601            coin_opt_fflags="-O3 -ip"
4602            coin_add_fflags="-cm -w90 -w95"
4603            coin_dbg_fflags="-g -CA -CB -CS"
4604            # Check if -i_dynamic is necessary (for new glibc library)
4605            FFLAGS=
4606            cat >conftest.$ac_ext <<_ACEOF
4607      program main
4608      write(*,*) 'Hello world'
4609      end
4610_ACEOF
4611rm -f conftest.$ac_objext conftest$ac_exeext
4612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613  (eval $ac_link) 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } &&
4620         { ac_try='test -z "$ac_f77_werror_flag"
4621                         || test ! -s conftest.err'
4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623  (eval $ac_try) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }; } &&
4627         { ac_try='test -s conftest$ac_exeext'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; }; then
4633  :
4634else
4635  echo "$as_me: failed program was:" >&5
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
4638coin_add_fflags="-i_dynamic $coin_add_fflags"
4639fi
4640rm -f conftest.err conftest.$ac_objext \
4641      conftest$ac_exeext conftest.$ac_ext
4642            ;;
4643          pgf77* | */pgf77* | pgf90* | */pgf90*)
4644            coin_opt_fflags="-fast"
4645            coin_add_fflags="-Kieee -pc 64"
4646            coin_dbg_fflags="-g"
4647          ;;
4648        esac
4649        ;;
4650      *-ibm-*)
4651        case "$F77" in
4652          xlf* | */xlf* | mpxlf* | */mpxlf* )
4653            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4654            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4655            coin_dbg_fflags="-g -C"
4656            ;;
4657        esac
4658        ;;
4659      *-hp-*)
4660        coin_opt_fflags="+O3"
4661        coin_add_fflags="+U77"
4662        coin_dbg_fflags="-C -g"
4663        ;;
4664      *-*-solaris*)
4665        coin_opt_fflags="-O4"
4666        coin_dbg_fflags="-g"
4667        ;;
4668      *-sgi-*)
4669        coin_opt_fflags="-O5 -OPT:Olimit=0"
4670        coin_dbg_fflags="-g"
4671        ;;
4672    esac
4673  fi
4674
4675  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4676    coin_dbg_fflags="-g"
4677  fi
4678
4679  if test -z "$coin_opt_fflags"; then
4680    # Try if -O option works if nothing else is set
4681    FFLAGS=-O
4682    cat >conftest.$ac_ext <<_ACEOF
4683      program main
4684      integer i
4685      end
4686_ACEOF
4687rm -f conftest.$ac_objext conftest$ac_exeext
4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689  (eval $ac_link) 2>conftest.er1
4690  ac_status=$?
4691  grep -v '^ *+' conftest.er1 >conftest.err
4692  rm -f conftest.er1
4693  cat conftest.err >&5
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); } &&
4696         { ac_try='test -z "$ac_f77_werror_flag"
4697                         || test ! -s conftest.err'
4698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699  (eval $ac_try) 2>&5
4700  ac_status=$?
4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702  (exit $ac_status); }; } &&
4703         { ac_try='test -s conftest$ac_exeext'
4704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705  (eval $ac_try) 2>&5
4706  ac_status=$?
4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708  (exit $ac_status); }; }; then
4709  coin_opt_fflags="-O"
4710else
4711  echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714fi
4715rm -f conftest.err conftest.$ac_objext \
4716      conftest$ac_exeext conftest.$ac_ext
4717  fi
4718
4719  # if PM doesn't want the warning messages, take them out
4720  if test x"$coin_skip_warn_fflags" = xyes; then
4721    coin_warn_fflags=
4722  fi
4723
4724  if test x${DBG_FFLAGS+set} != xset; then
4725    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4726  fi
4727  if test x${OPT_FFLAGS+set} != xset; then
4728    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4729  fi
4730
4731  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4732  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4733
4734  if test "$coin_debug_compile" = "true"; then
4735    FFLAGS="$DBG_FFLAGS"
4736  else
4737    FFLAGS="$OPT_FFLAGS"
4738  fi
4739else
4740  FFLAGS="$FFLAGS $ADD_FFLAGS"
4741  if test x${DBG_FFLAGS+set} != xset; then
4742    DBG_FFLAGS="$FFLAGS"
4743  fi
4744  if test x${OPT_FFLAGS+set} != xset; then
4745    OPT_FFLAGS="$FFLAGS"
4746  fi
4747fi
4748
4749# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4750case "$FFLAGS" in
4751  *-mno-cygwin*)
4752    if test x${CPPFLAGS+set} != xset ; then
4753      CPPFLAGS="-mno-cygwin"
4754    else
4755      case "$CPPFLAGS" in
4756        *-mno-cygwin*)
4757          ;;
4758        *)
4759          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4760          ;;
4761      esac
4762    fi ;;
4763esac
4764
4765# Try if FFLAGS works
4766if test "$F77" != "unavailable" ; then
4767  cat >conftest.$ac_ext <<_ACEOF
4768      program main
4769      integer i
4770      end
4771_ACEOF
4772rm -f conftest.$ac_objext conftest$ac_exeext
4773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774  (eval $ac_link) 2>conftest.er1
4775  ac_status=$?
4776  grep -v '^ *+' conftest.er1 >conftest.err
4777  rm -f conftest.er1
4778  cat conftest.err >&5
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } &&
4781         { ac_try='test -z "$ac_f77_werror_flag"
4782                         || test ! -s conftest.err'
4783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784  (eval $ac_try) 2>&5
4785  ac_status=$?
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); }; } &&
4788         { ac_try='test -s conftest$ac_exeext'
4789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790  (eval $ac_try) 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); }; }; then
4794  :
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799FFLAGS=
4800fi
4801rm -f conftest.err conftest.$ac_objext \
4802      conftest$ac_exeext conftest.$ac_ext
4803  if test -z "$FFLAGS"; then
4804    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4805echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4806    FFLAGS='-O'
4807    cat >conftest.$ac_ext <<_ACEOF
4808      program main
4809      integer i
4810      end
4811_ACEOF
4812rm -f conftest.$ac_objext conftest$ac_exeext
4813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4814  (eval $ac_link) 2>conftest.er1
4815  ac_status=$?
4816  grep -v '^ *+' conftest.er1 >conftest.err
4817  rm -f conftest.er1
4818  cat conftest.err >&5
4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820  (exit $ac_status); } &&
4821         { ac_try='test -z "$ac_f77_werror_flag"
4822                         || test ! -s conftest.err'
4823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824  (eval $ac_try) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; } &&
4828         { ac_try='test -s conftest$ac_exeext'
4829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830  (eval $ac_try) 2>&5
4831  ac_status=$?
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); }; }; then
4834  :
4835else
4836  echo "$as_me: failed program was:" >&5
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839FFLAGS=
4840fi
4841rm -f conftest.err conftest.$ac_objext \
4842      conftest$ac_exeext conftest.$ac_ext
4843    if test -z "$FFLAGS"; then
4844      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4845echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4846    fi
4847  fi
4848fi
4849
4850{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4851echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4852
4853
4854if test x"$MPIF77" = x; then :; else
4855  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4856echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4857  F77="$MPIF77"
4858fi
4859
4860# correct the LD variable if we use the intel fortran compiler in windows
4861case "$F77" in
4862  ifort* | */ifort* | IFORT* | */IFORT*)
4863    case $build in
4864  *-mingw*)
4865    if test "${LD+set}" = set; then :; else
4866      LD=link
4867    fi
4868    ;;
4869 esac
4870 case $enable_doscompile in
4871   msvc)
4872     if test "x${LD+set}" = xset; then :; else
4873       LD=link
4874     fi
4875     ;;
4876 esac
4877
4878    ;;
4879esac
4880
4881ac_ext=c
4882ac_cpp='$CPP $CPPFLAGS'
4883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887
4888
4889# Initialize automake and libtool
4890# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4891{
4892
4893
4894
4895# START
4896
4897coin_disable_shared=no
4898# Test if force_shared has been set
4899if test "x" = xforce_shared; then
4900  if test x$enable_shared = xno; then
4901    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4902echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4903   { (exit 1); exit 1; }; }
4904  fi
4905  enable_shared=yes;
4906else
4907  # On Cygwin and AIX, building DLLs doesn't work
4908  case $build in
4909    *-cygwin* | *-mingw*)
4910      coin_disable_shared=yes
4911      if test x"$enable_shared" = xyes; then
4912        case "$CXX" in
4913          clang* )
4914            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4915echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4916            ;;
4917          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4918            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
4919echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
4920            ;;
4921          *)
4922            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4923echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4924            ;;
4925        esac
4926      fi
4927    ;;
4928    *-aix*)
4929      coin_disable_shared=yes
4930      platform=AIX
4931      if test x"$enable_shared" = xyes; then
4932        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4933echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4934      fi
4935    ;;
4936  esac
4937fi
4938if test x"$coin_disable_shared" = xyes; then
4939  if test x"$enable_shared" = xyes; then
4940    :
4941  else
4942    # we don't disable shared, because it was not selected anyway
4943    coin_disable_shared=no
4944  fi
4945  enable_shared=no
4946fi
4947# By default, we only want the shared objects to be compiled
4948# Check whether --enable-static or --disable-static was given.
4949if test "${enable_static+set}" = set; then
4950  enableval="$enable_static"
4951  p=${PACKAGE-default}
4952    case $enableval in
4953    yes) enable_static=yes ;;
4954    no) enable_static=no ;;
4955    *)
4956     enable_static=no
4957      # Look at the argument we got.  We use all the common list separators.
4958      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4959      for pkg in $enableval; do
4960        IFS="$lt_save_ifs"
4961        if test "X$pkg" = "X$p"; then
4962          enable_static=yes
4963        fi
4964      done
4965      IFS="$lt_save_ifs"
4966      ;;
4967    esac
4968else
4969  enable_static=no
4970fi;
4971
4972
4973
4974
4975# Initialize automake
4976echo "$as_me:$LINENO: checking for egrep" >&5
4977echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4978if test "${ac_cv_prog_egrep+set}" = set; then
4979  echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4982    then ac_cv_prog_egrep='grep -E'
4983    else ac_cv_prog_egrep='egrep'
4984    fi
4985fi
4986echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4987echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4988 EGREP=$ac_cv_prog_egrep
4989
4990
4991echo "$as_me:$LINENO: checking whether ln -s works" >&5
4992echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4993LN_S=$as_ln_s
4994if test "$LN_S" = "ln -s"; then
4995  echo "$as_me:$LINENO: result: yes" >&5
4996echo "${ECHO_T}yes" >&6
4997else
4998  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4999echo "${ECHO_T}no, using $LN_S" >&6
5000fi
5001
5002am__api_version="1.9"
5003# Find a good install program.  We prefer a C program (faster),
5004# so one script is as good as another.  But avoid the broken or
5005# incompatible versions:
5006# SysV /etc/install, /usr/sbin/install
5007# SunOS /usr/etc/install
5008# IRIX /sbin/install
5009# AIX /bin/install
5010# AmigaOS /C/install, which installs bootblocks on floppy discs
5011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5012# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5014# OS/2's system install, which has a completely different semantic
5015# ./install, which can be erroneously created by make from ./install.sh.
5016echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5017echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5018if test -z "$INSTALL"; then
5019if test "${ac_cv_path_install+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025  IFS=$as_save_IFS
5026  test -z "$as_dir" && as_dir=.
5027  # Account for people who put trailing slashes in PATH elements.
5028case $as_dir/ in
5029  ./ | .// | /cC/* | \
5030  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5031  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5032  /usr/ucb/* ) ;;
5033  *)
5034    # OSF1 and SCO ODT 3.0 have their own names for install.
5035    # Don't use installbsd from OSF since it installs stuff as root
5036    # by default.
5037    for ac_prog in ginstall scoinst install; do
5038      for ac_exec_ext in '' $ac_executable_extensions; do
5039        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5040          if test $ac_prog = install &&
5041            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5042            # AIX install.  It has an incompatible calling convention.
5043            :
5044          elif test $ac_prog = install &&
5045            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5046            # program-specific install script used by HP pwplus--don't use.
5047            :
5048          else
5049            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5050            break 3
5051          fi
5052        fi
5053      done
5054    done
5055    ;;
5056esac
5057done
5058
5059
5060fi
5061  if test "${ac_cv_path_install+set}" = set; then
5062    INSTALL=$ac_cv_path_install
5063  else
5064    # As a last resort, use the slow shell script.  We don't cache a
5065    # path for INSTALL within a source directory, because that will
5066    # break other packages using the cache if that directory is
5067    # removed, or if the path is relative.
5068    INSTALL=$ac_install_sh
5069  fi
5070fi
5071echo "$as_me:$LINENO: result: $INSTALL" >&5
5072echo "${ECHO_T}$INSTALL" >&6
5073
5074# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5075# It thinks the first close brace ends the variable substitution.
5076test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5077
5078test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5079
5080test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5081
5082echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5083echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5084# Just in case
5085sleep 1
5086echo timestamp > conftest.file
5087# Do `set' in a subshell so we don't clobber the current shell's
5088# arguments.  Must try -L first in case configure is actually a
5089# symlink; some systems play weird games with the mod time of symlinks
5090# (eg FreeBSD returns the mod time of the symlink's containing
5091# directory).
5092if (
5093   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5094   if test "$*" = "X"; then
5095      # -L didn't work.
5096      set X `ls -t $srcdir/configure conftest.file`
5097   fi
5098   rm -f conftest.file
5099   if test "$*" != "X $srcdir/configure conftest.file" \
5100      && test "$*" != "X conftest.file $srcdir/configure"; then
5101
5102      # If neither matched, then we have a broken ls.  This can happen
5103      # if, for instance, CONFIG_SHELL is bash and it inherits a
5104      # broken ls alias from the environment.  This has actually
5105      # happened.  Such a system could not be considered "sane".
5106      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5107alias in your environment" >&5
5108echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5109alias in your environment" >&2;}
5110   { (exit 1); exit 1; }; }
5111   fi
5112
5113   test "$2" = conftest.file
5114   )
5115then
5116   # Ok.
5117   :
5118else
5119   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5120Check your system clock" >&5
5121echo "$as_me: error: newly created file is older than distributed files!
5122Check your system clock" >&2;}
5123   { (exit 1); exit 1; }; }
5124fi
5125echo "$as_me:$LINENO: result: yes" >&5
5126echo "${ECHO_T}yes" >&6
5127test "$program_prefix" != NONE &&
5128  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5129# Use a double $ so make ignores it.
5130test "$program_suffix" != NONE &&
5131  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5132# Double any \ or $.  echo might interpret backslashes.
5133# By default was `s,x,x', remove it if useless.
5134cat <<\_ACEOF >conftest.sed
5135s/[\\$]/&&/g;s/;s,x,x,$//
5136_ACEOF
5137program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5138rm conftest.sed
5139
5140# expand $ac_aux_dir to an absolute path
5141am_aux_dir=`cd $ac_aux_dir && pwd`
5142
5143test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5144# Use eval to expand $SHELL
5145if eval "$MISSING --run true"; then
5146  am_missing_run="$MISSING --run "
5147else
5148  am_missing_run=
5149  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5150echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5151fi
5152
5153if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5154  # We used to keeping the `.' as first argument, in order to
5155  # allow $(mkdir_p) to be used without argument.  As in
5156  #   $(mkdir_p) $(somedir)
5157  # where $(somedir) is conditionally defined.  However this is wrong
5158  # for two reasons:
5159  #  1. if the package is installed by a user who cannot write `.'
5160  #     make install will fail,
5161  #  2. the above comment should most certainly read
5162  #     $(mkdir_p) $(DESTDIR)$(somedir)
5163  #     so it does not work when $(somedir) is undefined and
5164  #     $(DESTDIR) is not.
5165  #  To support the latter case, we have to write
5166  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5167  #  so the `.' trick is pointless.
5168  mkdir_p='mkdir -p --'
5169else
5170  # On NextStep and OpenStep, the `mkdir' command does not
5171  # recognize any option.  It will interpret all options as
5172  # directories to create, and then abort because `.' already
5173  # exists.
5174  for d in ./-p ./--version;
5175  do
5176    test -d $d && rmdir $d
5177  done
5178  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5179  if test -f "$ac_aux_dir/mkinstalldirs"; then
5180    mkdir_p='$(mkinstalldirs)'
5181  else
5182    mkdir_p='$(install_sh) -d'
5183  fi
5184fi
5185
5186for ac_prog in gawk mawk nawk awk
5187do
5188  # Extract the first word of "$ac_prog", so it can be a program name with args.
5189set dummy $ac_prog; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_AWK+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  if test -n "$AWK"; then
5196  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203  for ac_exec_ext in '' $ac_executable_extensions; do
5204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205    ac_cv_prog_AWK="$ac_prog"
5206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210done
5211
5212fi
5213fi
5214AWK=$ac_cv_prog_AWK
5215if test -n "$AWK"; then
5216  echo "$as_me:$LINENO: result: $AWK" >&5
5217echo "${ECHO_T}$AWK" >&6
5218else
5219  echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223  test -n "$AWK" && break
5224done
5225
5226echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5227echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5228set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5229if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232  cat >conftest.make <<\_ACEOF
5233all:
5234        @echo 'ac_maketemp="$(MAKE)"'
5235_ACEOF
5236# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5237eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5238if test -n "$ac_maketemp"; then
5239  eval ac_cv_prog_make_${ac_make}_set=yes
5240else
5241  eval ac_cv_prog_make_${ac_make}_set=no
5242fi
5243rm -f conftest.make
5244fi
5245if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5246  echo "$as_me:$LINENO: result: yes" >&5
5247echo "${ECHO_T}yes" >&6
5248  SET_MAKE=
5249else
5250  echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
5252  SET_MAKE="MAKE=${MAKE-make}"
5253fi
5254
5255rm -rf .tst 2>/dev/null
5256mkdir .tst 2>/dev/null
5257if test -d .tst; then
5258  am__leading_dot=.
5259else
5260  am__leading_dot=_
5261fi
5262rmdir .tst 2>/dev/null
5263
5264DEPDIR="${am__leading_dot}deps"
5265
5266          ac_config_commands="$ac_config_commands depfiles"
5267
5268
5269am_make=${MAKE-make}
5270cat > confinc << 'END'
5271am__doit:
5272        @echo done
5273.PHONY: am__doit
5274END
5275# If we don't find an include directive, just comment out the code.
5276echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5277echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5278am__include="#"
5279am__quote=
5280_am_result=none
5281# First try GNU make style include.
5282echo "include confinc" > confmf
5283# We grep out `Entering directory' and `Leaving directory'
5284# messages which can occur if `w' ends up in MAKEFLAGS.
5285# In particular we don't look at `^make:' because GNU make might
5286# be invoked under some other name (usually "gmake"), in which
5287# case it prints its new name instead of `make'.
5288if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5289   am__include=include
5290   am__quote=
5291   _am_result=GNU
5292fi
5293# Now try BSD make style include.
5294if test "$am__include" = "#"; then
5295   echo '.include "confinc"' > confmf
5296   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5297      am__include=.include
5298      am__quote="\""
5299      _am_result=BSD
5300   fi
5301fi
5302
5303
5304echo "$as_me:$LINENO: result: $_am_result" >&5
5305echo "${ECHO_T}$_am_result" >&6
5306rm -f confinc confmf
5307
5308# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5309if test "${enable_dependency_tracking+set}" = set; then
5310  enableval="$enable_dependency_tracking"
5311
5312fi;
5313if test "x$enable_dependency_tracking" != xno; then
5314  am_depcomp="$ac_aux_dir/depcomp"
5315  AMDEPBACKSLASH='\'
5316fi
5317
5318
5319if test "x$enable_dependency_tracking" != xno; then
5320  AMDEP_TRUE=
5321  AMDEP_FALSE='#'
5322else
5323  AMDEP_TRUE='#'
5324  AMDEP_FALSE=
5325fi
5326
5327
5328
5329
5330
5331
5332# AC_MSG_NOTICE([Beginning automake initialisation.])
5333# Stuff for automake
5334# test to see if srcdir already configured
5335if test "`cd $srcdir && pwd`" != "`pwd`" &&
5336   test -f $srcdir/config.status; then
5337  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5338echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5339   { (exit 1); exit 1; }; }
5340fi
5341
5342# test whether we have cygpath
5343if test -z "$CYGPATH_W"; then
5344  if (cygpath --version) >/dev/null 2>/dev/null; then
5345    CYGPATH_W='cygpath -w'
5346  else
5347    CYGPATH_W=echo
5348  fi
5349fi
5350
5351
5352# Define the identity of the package.
5353 PACKAGE='cbc'
5354 VERSION='2.8.5'
5355
5356
5357cat >>confdefs.h <<_ACEOF
5358#define PACKAGE "$PACKAGE"
5359_ACEOF
5360
5361
5362cat >>confdefs.h <<_ACEOF
5363#define VERSION "$VERSION"
5364_ACEOF
5365
5366# Some tools Automake needs.
5367
5368ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5369
5370
5371AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5372
5373
5374AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5375
5376
5377AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5378
5379
5380MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5381
5382install_sh=${install_sh-"$am_aux_dir/install-sh"}
5383
5384# Installed binaries are usually stripped using `strip' when the user
5385# run `make install-strip'.  However `strip' might not be the right
5386# tool to use in cross-compilation environments, therefore Automake
5387# will honor the `STRIP' environment variable to overrule this program.
5388if test "$cross_compiling" != no; then
5389  if test -n "$ac_tool_prefix"; then
5390  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5391set dummy ${ac_tool_prefix}strip; ac_word=$2
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_prog_STRIP+set}" = set; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  if test -n "$STRIP"; then
5398  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for ac_exec_ext in '' $ac_executable_extensions; do
5406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412done
5413
5414fi
5415fi
5416STRIP=$ac_cv_prog_STRIP
5417if test -n "$STRIP"; then
5418  echo "$as_me:$LINENO: result: $STRIP" >&5
5419echo "${ECHO_T}$STRIP" >&6
5420else
5421  echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425fi
5426if test -z "$ac_cv_prog_STRIP"; then
5427  ac_ct_STRIP=$STRIP
5428  # Extract the first word of "strip", so it can be a program name with args.
5429set dummy strip; ac_word=$2
5430echo "$as_me:$LINENO: checking for $ac_word" >&5
5431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5433  echo $ECHO_N "(cached) $ECHO_C" >&6
5434else
5435  if test -n "$ac_ct_STRIP"; then
5436  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5437else
5438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441  IFS=$as_save_IFS
5442  test -z "$as_dir" && as_dir=.
5443  for ac_exec_ext in '' $ac_executable_extensions; do
5444  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445    ac_cv_prog_ac_ct_STRIP="strip"
5446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447    break 2
5448  fi
5449done
5450done
5451
5452  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5453fi
5454fi
5455ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5456if test -n "$ac_ct_STRIP"; then
5457  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5458echo "${ECHO_T}$ac_ct_STRIP" >&6
5459else
5460  echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
5462fi
5463
5464  STRIP=$ac_ct_STRIP
5465else
5466  STRIP="$ac_cv_prog_STRIP"
5467fi
5468
5469fi
5470INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5471
5472# We need awk for the "check" target.  The system "awk" is bad on
5473# some platforms.
5474# Always define AMTAR for backward compatibility.
5475
5476AMTAR=${AMTAR-"${am_missing_run}tar"}
5477
5478am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5479
5480
5481
5482
5483depcc="$CC"   am_compiler_list=
5484
5485echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5486echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5487if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5491  # We make a subdir and do the tests there.  Otherwise we can end up
5492  # making bogus files that we don't know about and never remove.  For
5493  # instance it was reported that on HP-UX the gcc test will end up
5494  # making a dummy file named `D' -- because `-MD' means `put the output
5495  # in D'.
5496  mkdir conftest.dir
5497  # Copy depcomp to subdir because otherwise we won't find it if we're
5498  # using a relative directory.
5499  cp "$am_depcomp" conftest.dir
5500  cd conftest.dir
5501  # We will build objects and dependencies in a subdirectory because
5502  # it helps to detect inapplicable dependency modes.  For instance
5503  # both Tru64's cc and ICC support -MD to output dependencies as a
5504  # side effect of compilation, but ICC will put the dependencies in
5505  # the current directory while Tru64 will put them in the object
5506  # directory.
5507  mkdir sub
5508
5509  am_cv_CC_dependencies_compiler_type=none
5510  if test "$am_compiler_list" = ""; then
5511     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5512  fi
5513  for depmode in $am_compiler_list; do
5514    # Setup a source with many dependencies, because some compilers
5515    # like to wrap large dependency lists on column 80 (with \), and
5516    # we should not choose a depcomp mode which is confused by this.
5517    #
5518    # We need to recreate these files for each test, as the compiler may
5519    # overwrite some of them when testing with obscure command lines.
5520    # This happens at least with the AIX C compiler.
5521    : > sub/conftest.c
5522    for i in 1 2 3 4 5 6; do
5523      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5524      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5525      # Solaris 8's {/usr,}/bin/sh.
5526      touch sub/conftst$i.h
5527    done
5528    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5529
5530    case $depmode in
5531    nosideeffect)
5532      # after this tag, mechanisms are not by side-effect, so they'll
5533      # only be used when explicitly requested
5534      if test "x$enable_dependency_tracking" = xyes; then
5535        continue
5536      else
5537        break
5538      fi
5539      ;;
5540    none) break ;;
5541    esac
5542    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5543    # mode.  It turns out that the SunPro C++ compiler does not properly
5544    # handle `-M -o', and we need to detect this.
5545    if depmode=$depmode \
5546       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5547       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5548       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5549         >/dev/null 2>conftest.err &&
5550       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5551       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5552       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5553      # icc doesn't choke on unknown options, it will just issue warnings
5554      # or remarks (even with -Werror).  So we grep stderr for any message
5555      # that says an option was ignored or not supported.
5556      # When given -MP, icc 7.0 and 7.1 complain thusly:
5557      #   icc: Command line warning: ignoring option '-M'; no argument required
5558      # The diagnosis changed in icc 8.0:
5559      #   icc: Command line remark: option '-MP' not supported
5560      if (grep 'ignoring option' conftest.err ||
5561          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5562        am_cv_CC_dependencies_compiler_type=$depmode
5563        break
5564      fi
5565    fi
5566  done
5567
5568  cd ..
5569  rm -rf conftest.dir
5570else
5571  am_cv_CC_dependencies_compiler_type=none
5572fi
5573
5574fi
5575echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5576echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5577CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5578
5579
5580
5581if
5582  test "x$enable_dependency_tracking" != xno \
5583  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5584  am__fastdepCC_TRUE=
5585  am__fastdepCC_FALSE='#'
5586else
5587  am__fastdepCC_TRUE='#'
5588  am__fastdepCC_FALSE=
5589fi
5590
5591
5592depcc="$CXX"  am_compiler_list=
5593
5594echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5595echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5596if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5597  echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5600  # We make a subdir and do the tests there.  Otherwise we can end up
5601  # making bogus files that we don't know about and never remove.  For
5602  # instance it was reported that on HP-UX the gcc test will end up
5603  # making a dummy file named `D' -- because `-MD' means `put the output
5604  # in D'.
5605  mkdir conftest.dir
5606  # Copy depcomp to subdir because otherwise we won't find it if we're
5607  # using a relative directory.
5608  cp "$am_depcomp" conftest.dir
5609  cd conftest.dir
5610  # We will build objects and dependencies in a subdirectory because
5611  # it helps to detect inapplicable dependency modes.  For instance
5612  # both Tru64's cc and ICC support -MD to output dependencies as a
5613  # side effect of compilation, but ICC will put the dependencies in
5614  # the current directory while Tru64 will put them in the object
5615  # directory.
5616  mkdir sub
5617
5618  am_cv_CXX_dependencies_compiler_type=none
5619  if test "$am_compiler_list" = ""; then
5620     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5621  fi
5622  for depmode in $am_compiler_list; do
5623    # Setup a source with many dependencies, because some compilers
5624    # like to wrap large dependency lists on column 80 (with \), and
5625    # we should not choose a depcomp mode which is confused by this.
5626    #
5627    # We need to recreate these files for each test, as the compiler may
5628    # overwrite some of them when testing with obscure command lines.
5629    # This happens at least with the AIX C compiler.
5630    : > sub/conftest.c
5631    for i in 1 2 3 4 5 6; do
5632      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5633      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5634      # Solaris 8's {/usr,}/bin/sh.
5635      touch sub/conftst$i.h
5636    done
5637    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5638
5639    case $depmode in
5640    nosideeffect)
5641      # after this tag, mechanisms are not by side-effect, so they'll
5642      # only be used when explicitly requested
5643      if test "x$enable_dependency_tracking" = xyes; then
5644        continue
5645      else
5646        break
5647      fi
5648      ;;
5649    none) break ;;
5650    esac
5651    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5652    # mode.  It turns out that the SunPro C++ compiler does not properly
5653    # handle `-M -o', and we need to detect this.
5654    if depmode=$depmode \
5655       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5656       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5657       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5658         >/dev/null 2>conftest.err &&
5659       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5660       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5661       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5662      # icc doesn't choke on unknown options, it will just issue warnings
5663      # or remarks (even with -Werror).  So we grep stderr for any message
5664      # that says an option was ignored or not supported.
5665      # When given -MP, icc 7.0 and 7.1 complain thusly:
5666      #   icc: Command line warning: ignoring option '-M'; no argument required
5667      # The diagnosis changed in icc 8.0:
5668      #   icc: Command line remark: option '-MP' not supported
5669      if (grep 'ignoring option' conftest.err ||
5670          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5671        am_cv_CXX_dependencies_compiler_type=$depmode
5672        break
5673      fi
5674    fi
5675  done
5676
5677  cd ..
5678  rm -rf conftest.dir
5679else
5680  am_cv_CXX_dependencies_compiler_type=none
5681fi
5682
5683fi
5684echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5685echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5686CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5687
5688
5689
5690if
5691  test "x$enable_dependency_tracking" != xno \
5692  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5693  am__fastdepCXX_TRUE=
5694  am__fastdepCXX_FALSE='#'
5695else
5696  am__fastdepCXX_TRUE='#'
5697  am__fastdepCXX_FALSE=
5698fi
5699
5700
5701
5702echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5703echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5704    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5705if test "${enable_maintainer_mode+set}" = set; then
5706  enableval="$enable_maintainer_mode"
5707  USE_MAINTAINER_MODE=$enableval
5708else
5709  USE_MAINTAINER_MODE=no
5710fi;
5711  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5712echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5713
5714
5715if test $USE_MAINTAINER_MODE = yes; then
5716  MAINTAINER_MODE_TRUE=
5717  MAINTAINER_MODE_FALSE='#'
5718else
5719  MAINTAINER_MODE_TRUE='#'
5720  MAINTAINER_MODE_FALSE=
5721fi
5722
5723  MAINT=$MAINTAINER_MODE_TRUE
5724
5725
5726
5727coin_have_externals=no
5728if test "$enable_maintainer_mode" = yes; then
5729
5730  # If maintainer mode is chosen, we make sure that the correct versions
5731  # of the tools are used, and that we know where libtool.m4 is (to
5732  # recreate acinclude.m4)
5733
5734
5735  LIBTOOLM4=
5736  # Normally, $HOME
5737  AUTOTOOLS_DFLT=$HOME
5738
5739  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5740echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5741if test "${ac_cv_use_correct_autotools+set}" = set; then
5742  echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744  ac_cv_use_correct_autotools=check
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5747echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5748
5749  if test $ac_cv_use_correct_autotools = check; then
5750    ac_cv_use_correct_autotools=yes
5751    # Check if we have autoconf
5752    # Extract the first word of "autoconf", so it can be a program name with args.
5753set dummy autoconf; ac_word=$2
5754echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756if test "${ac_cv_prog_have_autoconf+set}" = set; then
5757  echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759  if test -n "$have_autoconf"; then
5760  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767  for ac_exec_ext in '' $ac_executable_extensions; do
5768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_have_autoconf="yes"
5770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774done
5775
5776  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5777fi
5778fi
5779have_autoconf=$ac_cv_prog_have_autoconf
5780if test -n "$have_autoconf"; then
5781  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5782echo "${ECHO_T}$have_autoconf" >&6
5783else
5784  echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
5786fi
5787
5788    if test $have_autoconf = no; then
5789      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5790echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5791   { (exit 1); exit 1; }; }
5792    fi
5793
5794    # Check whether autoconf is the correct version
5795    correct_version='2.59'
5796    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5797    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5798echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5799    autoconf --version > confauto.out 2>&1
5800    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5801      echo "$as_me:$LINENO: result: yes" >&5
5802echo "${ECHO_T}yes" >&6
5803    else
5804      rm -f confauto.out
5805      echo "$as_me:$LINENO: result: no" >&5
5806echo "${ECHO_T}no" >&6
5807      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5808echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5809   { (exit 1); exit 1; }; }
5810    fi
5811    rm -f confauto.out
5812
5813    # Check if the executable autoconf is picked up from the correct location
5814    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5815echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5816    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5817    autoconf_dir=`cd $autoconf_dir; pwd`
5818    if test x$AUTOTOOLS_DIR = x; then
5819      want_dir=$AUTOTOOLS_DFLT/bin
5820    else
5821      want_dir=$AUTOTOOLS_DIR/bin
5822    fi
5823    if test $autoconf_dir = `cd $want_dir; pwd`; then
5824      echo "$as_me:$LINENO: result: yes" >&5
5825echo "${ECHO_T}yes" >&6
5826    else
5827      rm -f confauto.out
5828      echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5831echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5832   { (exit 1); exit 1; }; }
5833    fi
5834
5835    # Check if we have automake
5836    # Extract the first word of "automake", so it can be a program name with args.
5837set dummy automake; ac_word=$2
5838echo "$as_me:$LINENO: checking for $ac_word" >&5
5839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840if test "${ac_cv_prog_have_automake+set}" = set; then
5841  echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843  if test -n "$have_automake"; then
5844  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849  IFS=$as_save_IFS
5850  test -z "$as_dir" && as_dir=.
5851  for ac_exec_ext in '' $ac_executable_extensions; do
5852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853    ac_cv_prog_have_automake="yes"
5854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855    break 2
5856  fi
5857done
5858done
5859
5860  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5861fi
5862fi
5863have_automake=$ac_cv_prog_have_automake
5864if test -n "$have_automake"; then
5865  echo "$as_me:$LINENO: result: $have_automake" >&5
5866echo "${ECHO_T}$have_automake" >&6
5867else
5868  echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
5870fi
5871
5872    if test $have_automake = no; then
5873      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5874echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5875   { (exit 1); exit 1; }; }
5876    fi
5877
5878    # Check whether automake is the correct version
5879    correct_version='1.9.6'
5880    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5881    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5882echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5883    automake --version > confauto.out 2>&1
5884    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5885      echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887    else
5888      rm -f confauto.out
5889      echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5892echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5893   { (exit 1); exit 1; }; }
5894    fi
5895    rm -f confauto.out
5896
5897    # Check if the executable automake is picked up from the correct location
5898    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5899echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5900    automake_dir=`which automake | sed -e 's=/automake=='`
5901    automake_dir=`cd $automake_dir; pwd`
5902    if test x$AUTOTOOLS_DIR = x; then
5903      want_dir=$AUTOTOOLS_DFLT/bin
5904    else
5905      want_dir=$AUTOTOOLS_DIR/bin
5906    fi
5907    if test $automake_dir = `cd $want_dir; pwd`; then
5908      echo "$as_me:$LINENO: result: yes" >&5
5909echo "${ECHO_T}yes" >&6
5910    else
5911      rm -f confauto.out
5912      echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6
5914      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5915echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5916   { (exit 1); exit 1; }; }
5917    fi
5918
5919    # Check if this is the correct version of libtool (with escaped dots)
5920    if test x$AUTOTOOLS_DIR = x; then
5921      want_dir=$AUTOTOOLS_DFLT/share
5922    else
5923      want_dir=$AUTOTOOLS_DIR/share
5924    fi
5925    correct_version='1.5.22'
5926    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5927    if test -r $want_dir/libtool/ltmain.sh; then
5928  have_ltmain=yes
5929  :
5930else
5931  have_ltmain=no
5932  :
5933fi
5934
5935    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5936echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5937    if test $have_ltmain = yes; then
5938    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5939        echo "$as_me:$LINENO: result: yes" >&5
5940echo "${ECHO_T}yes" >&6
5941      else
5942        echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5945echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5946   { (exit 1); exit 1; }; }
5947      fi
5948    else
5949      echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6
5951      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5952echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5953   { (exit 1); exit 1; }; }
5954    fi
5955  fi
5956
5957  # Check if we can find the libtool file
5958  if test x$AUTOTOOLS_DIR = x; then
5959    want_dir=$AUTOTOOLS_DFLT/share
5960  else
5961    want_dir=$AUTOTOOLS_DIR/share
5962  fi
5963  if test -r $want_dir/aclocal/libtool.m4; then
5964  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5965  :
5966else
5967  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5968echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5969   { (exit 1); exit 1; }; }
5970  :
5971fi
5972
5973
5974  # Check if we have an Dependencies file
5975  if test -r $srcdir/Dependencies; then
5976    coin_have_externals=yes
5977  fi
5978  # Check if subversion is installed and understands https
5979  # Extract the first word of "svn", so it can be a program name with args.
5980set dummy svn; ac_word=$2
5981echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983if test "${ac_cv_prog_have_svn+set}" = set; then
5984  echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986  if test -n "$have_svn"; then
5987  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992  IFS=$as_save_IFS
5993  test -z "$as_dir" && as_dir=.
5994  for ac_exec_ext in '' $ac_executable_extensions; do
5995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996    ac_cv_prog_have_svn="yes"
5997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998    break 2
5999  fi
6000done
6001done
6002
6003  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6004fi
6005fi
6006have_svn=$ac_cv_prog_have_svn
6007if test -n "$have_svn"; then
6008  echo "$as_me:$LINENO: result: $have_svn" >&5
6009echo "${ECHO_T}$have_svn" >&6
6010else
6011  echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013fi
6014
6015  if test x$have_svn = xyes; then
6016    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6017echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6018if test "${ac_cv_svn_understands_https+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  svn --version > confauto.out 2>&1
6022                    if $EGREP https confauto.out >/dev/null 2>&1; then
6023                      ac_cv_svn_understands_https=yes
6024                    else
6025                      ac_cv_svn_understands_https=no
6026                      have_svn=no
6027                      ac_cv_prog_have_svn=no
6028                    fi
6029                    rm -f confauto.out
6030fi
6031echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6032echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6033  fi
6034
6035  # Find the location of the BuildTools directory
6036  BUILDTOOLSDIR=
6037  if test -r $srcdir/BuildTools/coin.m4; then
6038    BUILDTOOLSDIR=$srcdir/BuildTools
6039  else
6040    if test -r $srcdir/../BuildTools/coin.m4; then
6041      BUILDTOOLSDIR=$srcdir/../BuildTools
6042    else
6043      if test -r $srcdir/../../BuildTools/coin.m4; then
6044        BUILDTOOLSDIR=$srcdir/../../BuildTools
6045      else
6046        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6047echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6048   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6049      fi
6050    fi
6051  fi
6052
6053
6054  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6055  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6056    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6057  fi
6058
6059  # The following variable is set to the name of the directory where
6060  # the autotool scripts are located
6061
6062  AUX_DIR=$ac_aux_dir
6063fi
6064
6065# helpful variable for the base directory of this package
6066abs_source_dir=`cd $srcdir; pwd`
6067
6068
6069# Stuff for example Makefiles
6070if test x$prefix = xNONE; then
6071  full_prefix=$ac_default_prefix
6072else
6073  full_prefix=$prefix
6074fi
6075full_prefix=`cd $full_prefix ; pwd`
6076
6077abs_lib_dir=$full_prefix/lib
6078
6079abs_include_dir=$full_prefix/include
6080
6081abs_bin_dir=$full_prefix/bin
6082
6083
6084
6085if test $coin_have_externals = yes && test x$have_svn = xyes; then
6086  HAVE_EXTERNALS_TRUE=
6087  HAVE_EXTERNALS_FALSE='#'
6088else
6089  HAVE_EXTERNALS_TRUE='#'
6090  HAVE_EXTERNALS_FALSE=
6091fi
6092
6093
6094# AC_MSG_NOTICE([End automake initialisation.])
6095
6096
6097
6098LIBTOOL=
6099if test -r ../libtool; then
6100  coin_config_dir=..
6101  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6102fi
6103if test "x$LIBTOOL" = x; then
6104  if test -r ../../libtool; then
6105    coin_config_dir=../..
6106    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6107  fi
6108fi
6109
6110if test "x$LIBTOOL" = x; then
6111# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6112  # Stuff for libtool
6113  # Check whether --enable-shared or --disable-shared was given.
6114if test "${enable_shared+set}" = set; then
6115  enableval="$enable_shared"
6116  p=${PACKAGE-default}
6117    case $enableval in
6118    yes) enable_shared=yes ;;
6119    no) enable_shared=no ;;
6120    *)
6121      enable_shared=no
6122      # Look at the argument we got.  We use all the common list separators.
6123      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6124      for pkg in $enableval; do
6125        IFS="$lt_save_ifs"
6126        if test "X$pkg" = "X$p"; then
6127          enable_shared=yes
6128        fi
6129      done
6130      IFS="$lt_save_ifs"
6131      ;;
6132    esac
6133else
6134  enable_shared=yes
6135fi;
6136
6137# Check whether --enable-fast-install or --disable-fast-install was given.
6138if test "${enable_fast_install+set}" = set; then
6139  enableval="$enable_fast_install"
6140  p=${PACKAGE-default}
6141    case $enableval in
6142    yes) enable_fast_install=yes ;;
6143    no) enable_fast_install=no ;;
6144    *)
6145      enable_fast_install=no
6146      # Look at the argument we got.  We use all the common list separators.
6147      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6148      for pkg in $enableval; do
6149        IFS="$lt_save_ifs"
6150        if test "X$pkg" = "X$p"; then
6151          enable_fast_install=yes
6152        fi
6153      done
6154      IFS="$lt_save_ifs"
6155      ;;
6156    esac
6157else
6158  enable_fast_install=yes
6159fi;
6160
6161echo "$as_me:$LINENO: checking host system type" >&5
6162echo $ECHO_N "checking host system type... $ECHO_C" >&6
6163if test "${ac_cv_host+set}" = set; then
6164  echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166  ac_cv_host_alias=$host_alias
6167test -z "$ac_cv_host_alias" &&
6168  ac_cv_host_alias=$ac_cv_build_alias
6169ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6170  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6171echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6172   { (exit 1); exit 1; }; }
6173
6174fi
6175echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6176echo "${ECHO_T}$ac_cv_host" >&6
6177host=$ac_cv_host
6178host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6179host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6180host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6181
6182
6183echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6184echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6185if test "${lt_cv_path_SED+set}" = set; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188  # Loop through the user's path and test for sed and gsed.
6189# Then use that list of sed's as ones to test for truncation.
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193  IFS=$as_save_IFS
6194  test -z "$as_dir" && as_dir=.
6195  for lt_ac_prog in sed gsed; do
6196    for ac_exec_ext in '' $ac_executable_extensions; do
6197      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6198        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6199      fi
6200    done
6201  done
6202done
6203lt_ac_max=0
6204lt_ac_count=0
6205# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6206# along with /bin/sed that truncates output.
6207for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6208  test ! -f $lt_ac_sed && continue
6209  cat /dev/null > conftest.in
6210  lt_ac_count=0
6211  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6212  # Check for GNU sed and select it if it is found.
6213  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6214    lt_cv_path_SED=$lt_ac_sed
6215    break
6216  fi
6217  while true; do
6218    cat conftest.in conftest.in >conftest.tmp
6219    mv conftest.tmp conftest.in
6220    cp conftest.in conftest.nl
6221    echo >>conftest.nl
6222    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6223    cmp -s conftest.out conftest.nl || break
6224    # 10000 chars as input seems more than enough
6225    test $lt_ac_count -gt 10 && break
6226    lt_ac_count=`expr $lt_ac_count + 1`
6227    if test $lt_ac_count -gt $lt_ac_max; then
6228      lt_ac_max=$lt_ac_count
6229      lt_cv_path_SED=$lt_ac_sed
6230    fi
6231  done
6232done
6233
6234fi
6235
6236SED=$lt_cv_path_SED
6237echo "$as_me:$LINENO: result: $SED" >&5
6238echo "${ECHO_T}$SED" >&6
6239
6240
6241# Check whether --with-gnu-ld or --without-gnu-ld was given.
6242if test "${with_gnu_ld+set}" = set; then
6243  withval="$with_gnu_ld"
6244  test "$withval" = no || with_gnu_ld=yes
6245else
6246  with_gnu_ld=no
6247fi;
6248ac_prog=ld
6249if test "$GCC" = yes; then
6250  # Check if gcc -print-prog-name=ld gives a path.
6251  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6252echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6253  case $host in
6254  *-*-mingw*)
6255    # gcc leaves a trailing carriage return which upsets mingw
6256    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6257  *)
6258    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6259  esac
6260  case $ac_prog in
6261    # Accept absolute paths.
6262    [\\/]* | ?:[\\/]*)
6263      re_direlt='/[^/][^/]*/\.\./'
6264      # Canonicalize the pathname of ld
6265      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6266      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6267        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6268      done
6269      test -z "$LD" && LD="$ac_prog"
6270      ;;
6271  "")
6272    # If it fails, then pretend we aren't using GCC.
6273    ac_prog=ld
6274    ;;
6275  *)
6276    # If it is relative, then search for the first ld in PATH.
6277    with_gnu_ld=unknown
6278    ;;
6279  esac
6280elif test "$with_gnu_ld" = yes; then
6281  echo "$as_me:$LINENO: checking for GNU ld" >&5
6282echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6283else
6284  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6285echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6286fi
6287if test "${lt_cv_path_LD+set}" = set; then
6288  echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290  if test -z "$LD"; then
6291  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6292  for ac_dir in $PATH; do
6293    IFS="$lt_save_ifs"
6294    test -z "$ac_dir" && ac_dir=.
6295    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6296      lt_cv_path_LD="$ac_dir/$ac_prog"
6297      # Check to see if the program is GNU ld.  I'd rather use --version,
6298      # but apparently some variants of GNU ld only accept -v.
6299      # Break only if it was the GNU/non-GNU ld that we prefer.
6300      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6301      *GNU* | *'with BFD'*)
6302        test "$with_gnu_ld" != no && break
6303        ;;
6304      *)
6305        test "$with_gnu_ld" != yes && break
6306        ;;
6307      esac
6308    fi
6309  done
6310  IFS="$lt_save_ifs"
6311else
6312  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6313fi
6314fi
6315
6316LD="$lt_cv_path_LD"
6317if test -n "$LD"; then
6318  echo "$as_me:$LINENO: result: $LD" >&5
6319echo "${ECHO_T}$LD" >&6
6320else
6321  echo "$as_me:$LINENO: result: no" >&5
6322echo "${ECHO_T}no" >&6
6323fi
6324test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6325echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6326   { (exit 1); exit 1; }; }
6327echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6328echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6329if test "${lt_cv_prog_gnu_ld+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6333case `$LD -v 2>&1 </dev/null` in
6334*GNU* | *'with BFD'*)
6335  lt_cv_prog_gnu_ld=yes
6336  ;;
6337*)
6338  lt_cv_prog_gnu_ld=no
6339  ;;
6340esac
6341fi
6342echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6343echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6344with_gnu_ld=$lt_cv_prog_gnu_ld
6345
6346
6347echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6348echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6349if test "${lt_cv_ld_reload_flag+set}" = set; then
6350  echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352  lt_cv_ld_reload_flag='-r'
6353fi
6354echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6355echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6356reload_flag=$lt_cv_ld_reload_flag
6357case $reload_flag in
6358"" | " "*) ;;
6359*) reload_flag=" $reload_flag" ;;
6360esac
6361reload_cmds='$LD$reload_flag -o $output$reload_objs'
6362case $host_os in
6363  darwin*)
6364    if test "$GCC" = yes; then
6365      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6366    else
6367      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6368    fi
6369    ;;
6370esac
6371
6372echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6373echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6374if test "${lt_cv_path_NM+set}" = set; then
6375  echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377  if test -n "$NM"; then
6378  # Let the user override the test.
6379  lt_cv_path_NM="$NM"
6380else
6381  lt_nm_to_check="${ac_tool_prefix}nm"
6382  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6383    lt_nm_to_check="$lt_nm_to_check nm"
6384  fi
6385  for lt_tmp_nm in $lt_nm_to_check; do
6386    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6387    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6388      IFS="$lt_save_ifs"
6389      test -z "$ac_dir" && ac_dir=.
6390      tmp_nm="$ac_dir/$lt_tmp_nm"
6391      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6392        # Check to see if the nm accepts a BSD-compat flag.
6393        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6394        #   nm: unknown option "B" ignored
6395        # Tru64's nm complains that /dev/null is an invalid object file
6396        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6397        */dev/null* | *'Invalid file or object type'*)
6398          lt_cv_path_NM="$tmp_nm -B"
6399          break
6400          ;;
6401        *)
6402          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6403          */dev/null*)
6404            lt_cv_path_NM="$tmp_nm -p"
6405            break
6406            ;;
6407          *)
6408            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6409            continue # so that we can try to find one that supports BSD flags
6410            ;;
6411          esac
6412          ;;
6413        esac
6414      fi
6415    done
6416    IFS="$lt_save_ifs"
6417  done
6418  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6419fi
6420fi
6421echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6422echo "${ECHO_T}$lt_cv_path_NM" >&6
6423NM="$lt_cv_path_NM"
6424
6425echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6426echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6427if test "${lt_cv_deplibs_check_method+set}" = set; then
6428  echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430  lt_cv_file_magic_cmd='$MAGIC_CMD'
6431lt_cv_file_magic_test_file=
6432lt_cv_deplibs_check_method='unknown'
6433# Need to set the preceding variable on all platforms that support
6434# interlibrary dependencies.
6435# 'none' -- dependencies not supported.
6436# `unknown' -- same as none, but documents that we really don't know.
6437# 'pass_all' -- all dependencies passed with no checks.
6438# 'test_compile' -- check by making test program.
6439# 'file_magic [[regex]]' -- check by looking for files in library path
6440# which responds to the $file_magic_cmd with a given extended regex.
6441# If you have `file' or equivalent on your system and you're not sure
6442# whether `pass_all' will *always* work, you probably want this one.
6443
6444case $host_os in
6445aix4* | aix5*)
6446  lt_cv_deplibs_check_method=pass_all
6447  ;;
6448
6449beos*)
6450  lt_cv_deplibs_check_method=pass_all
6451  ;;
6452
6453bsdi[45]*)
6454  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6455  lt_cv_file_magic_cmd='/usr/bin/file -L'
6456  lt_cv_file_magic_test_file=/shlib/libc.so
6457  ;;
6458
6459cygwin*)
6460  # func_win32_libid is a shell function defined in ltmain.sh
6461  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6462  lt_cv_file_magic_cmd='func_win32_libid'
6463  ;;
6464
6465mingw* | pw32*)
6466  # Base MSYS/MinGW do not provide the 'file' command needed by
6467  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6468  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6469  lt_cv_file_magic_cmd='$OBJDUMP -f'
6470  ;;
6471
6472darwin* | rhapsody*)
6473  lt_cv_deplibs_check_method=pass_all
6474  ;;
6475
6476freebsd* | kfreebsd*-gnu | dragonfly*)
6477  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6478    case $host_cpu in
6479    i*86 )
6480      # Not sure whether the presence of OpenBSD here was a mistake.
6481      # Let's accept both of them until this is cleared up.
6482      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6483      lt_cv_file_magic_cmd=/usr/bin/file
6484      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6485      ;;
6486    esac
6487  else
6488    lt_cv_deplibs_check_method=pass_all
6489  fi
6490  ;;
6491
6492gnu*)
6493  lt_cv_deplibs_check_method=pass_all
6494  ;;
6495
6496hpux10.20* | hpux11*)
6497  lt_cv_file_magic_cmd=/usr/bin/file
6498  case $host_cpu in
6499  ia64*)
6500    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6501    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6502    ;;
6503  hppa*64*)
6504    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]'
6505    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6506    ;;
6507  *)
6508    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6509    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6510    ;;
6511  esac
6512  ;;
6513
6514interix3*)
6515  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6516  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6517  ;;
6518
6519irix5* | irix6* | nonstopux*)
6520  case $LD in
6521  *-32|*"-32 ") libmagic=32-bit;;
6522  *-n32|*"-n32 ") libmagic=N32;;
6523  *-64|*"-64 ") libmagic=64-bit;;
6524  *) libmagic=never-match;;
6525  esac
6526  lt_cv_deplibs_check_method=pass_all
6527  ;;
6528
6529# This must be Linux ELF.
6530linux*)
6531  lt_cv_deplibs_check_method=pass_all
6532  ;;
6533
6534netbsd*)
6535  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6536    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6537  else
6538    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6539  fi
6540  ;;
6541
6542newos6*)
6543  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6544  lt_cv_file_magic_cmd=/usr/bin/file
6545  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6546  ;;
6547
6548nto-qnx*)
6549  lt_cv_deplibs_check_method=unknown
6550  ;;
6551
6552openbsd*)
6553  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6554    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6555  else
6556    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6557  fi
6558  ;;
6559
6560osf3* | osf4* | osf5*)
6561  lt_cv_deplibs_check_method=pass_all
6562  ;;
6563
6564solaris*)
6565  lt_cv_deplibs_check_method=pass_all
6566  ;;
6567
6568sysv4 | sysv4.3*)
6569  case $host_vendor in
6570  motorola)
6571    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]'
6572    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6573    ;;
6574  ncr)
6575    lt_cv_deplibs_check_method=pass_all
6576    ;;
6577  sequent)
6578    lt_cv_file_magic_cmd='/bin/file'
6579    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6580    ;;
6581  sni)
6582    lt_cv_file_magic_cmd='/bin/file'
6583    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6584    lt_cv_file_magic_test_file=/lib/libc.so
6585    ;;
6586  siemens)
6587    lt_cv_deplibs_check_method=pass_all
6588    ;;
6589  pc)
6590    lt_cv_deplibs_check_method=pass_all
6591    ;;
6592  esac
6593  ;;
6594
6595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6596  lt_cv_deplibs_check_method=pass_all
6597  ;;
6598esac
6599
6600fi
6601echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6602echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6603file_magic_cmd=$lt_cv_file_magic_cmd
6604deplibs_check_method=$lt_cv_deplibs_check_method
6605test -z "$deplibs_check_method" && deplibs_check_method=unknown
6606
6607
6608
6609
6610# If no C compiler was specified, use CC.
6611LTCC=${LTCC-"$CC"}
6612
6613# If no C compiler flags were specified, use CFLAGS.
6614LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6615
6616# Allow CC to be a program name with arguments.
6617compiler=$CC
6618
6619# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6620if test "${enable_libtool_lock+set}" = set; then
6621  enableval="$enable_libtool_lock"
6622
6623fi;
6624test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6625
6626# Some flags need to be propagated to the compiler or linker for good
6627# libtool support.
6628case $host in
6629ia64-*-hpux*)
6630  # Find out which ABI we are using.
6631  echo 'int i;' > conftest.$ac_ext
6632  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633  (eval $ac_compile) 2>&5
6634  ac_status=$?
6635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636  (exit $ac_status); }; then
6637    case `/usr/bin/file conftest.$ac_objext` in
6638    *ELF-32*)
6639      HPUX_IA64_MODE="32"
6640      ;;
6641    *ELF-64*)
6642      HPUX_IA64_MODE="64"
6643      ;;
6644    esac
6645  fi
6646  rm -rf conftest*
6647  ;;
6648*-*-irix6*)
6649  # Find out which ABI we are using.
6650  echo '#line 6650 "configure"' > conftest.$ac_ext
6651  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652  (eval $ac_compile) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; then
6656   if test "$lt_cv_prog_gnu_ld" = yes; then
6657    case `/usr/bin/file conftest.$ac_objext` in
6658    *32-bit*)
6659      LD="${LD-ld} -melf32bsmip"
6660      ;;
6661    *N32*)
6662      LD="${LD-ld} -melf32bmipn32"
6663      ;;
6664    *64-bit*)
6665      LD="${LD-ld} -melf64bmip"
6666      ;;
6667    esac
6668   else
6669    case `/usr/bin/file conftest.$ac_objext` in
6670    *32-bit*)
6671      LD="${LD-ld} -32"
6672      ;;
6673    *N32*)
6674      LD="${LD-ld} -n32"
6675      ;;
6676    *64-bit*)
6677      LD="${LD-ld} -64"
6678      ;;
6679    esac
6680   fi
6681  fi
6682  rm -rf conftest*
6683  ;;
6684
6685x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6686  # Find out which ABI we are using.
6687  echo 'int i;' > conftest.$ac_ext
6688  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689  (eval $ac_compile) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; then
6693    case `/usr/bin/file conftest.o` in
6694    *32-bit*)
6695      case $host in
6696        x86_64-*linux*)
6697          LD="${LD-ld} -m elf_i386"
6698          ;;
6699        ppc64-*linux*|powerpc64-*linux*)
6700          LD="${LD-ld} -m elf32ppclinux"
6701          ;;
6702        s390x-*linux*)
6703          LD="${LD-ld} -m elf_s390"
6704          ;;
6705        sparc64-*linux*)
6706          LD="${LD-ld} -m elf32_sparc"
6707          ;;
6708      esac
6709      ;;
6710    *64-bit*)
6711      case $host in
6712        x86_64-*linux*)
6713          LD="${LD-ld} -m elf_x86_64"
6714          ;;
6715        ppc*-*linux*|powerpc*-*linux*)
6716          LD="${LD-ld} -m elf64ppc"
6717          ;;
6718        s390*-*linux*)
6719          LD="${LD-ld} -m elf64_s390"
6720          ;;
6721        sparc*-*linux*)
6722          LD="${LD-ld} -m elf64_sparc"
6723          ;;
6724      esac
6725      ;;
6726    esac
6727  fi
6728  rm -rf conftest*
6729  ;;
6730
6731*-*-sco3.2v5*)
6732  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6733  SAVE_CFLAGS="$CFLAGS"
6734  CFLAGS="$CFLAGS -belf"
6735  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6736echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6737if test "${lt_cv_cc_needs_belf+set}" = set; then
6738  echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740  ac_ext=c
6741ac_cpp='$CPP $CPPFLAGS'
6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745
6746     cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752
6753int
6754main ()
6755{
6756
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761rm -f conftest.$ac_objext conftest$ac_exeext
6762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763  (eval $ac_link) 2>conftest.er1
6764  ac_status=$?
6765  grep -v '^ *+' conftest.er1 >conftest.err
6766  rm -f conftest.er1
6767  cat conftest.err >&5
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); } &&
6770         { ac_try='test -z "$ac_c_werror_flag"
6771                         || test ! -s conftest.err'
6772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773  (eval $ac_try) 2>&5
6774  ac_status=$?
6775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776  (exit $ac_status); }; } &&
6777         { ac_try='test -s conftest$ac_exeext'
6778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779  (eval $ac_try) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }; }; then
6783  lt_cv_cc_needs_belf=yes
6784else
6785  echo "$as_me: failed program was:" >&5
6786sed 's/^/| /' conftest.$ac_ext >&5
6787
6788lt_cv_cc_needs_belf=no
6789fi
6790rm -f conftest.err conftest.$ac_objext \
6791      conftest$ac_exeext conftest.$ac_ext
6792     ac_ext=c
6793ac_cpp='$CPP $CPPFLAGS'
6794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798fi
6799echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6800echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6801  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6802    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6803    CFLAGS="$SAVE_CFLAGS"
6804  fi
6805  ;;
6806sparc*-*solaris*)
6807  # Find out which ABI we are using.
6808  echo 'int i;' > conftest.$ac_ext
6809  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810  (eval $ac_compile) 2>&5
6811  ac_status=$?
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); }; then
6814    case `/usr/bin/file conftest.o` in
6815    *64-bit*)
6816      case $lt_cv_prog_gnu_ld in
6817      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6818      *)    LD="${LD-ld} -64" ;;
6819      esac
6820      ;;
6821    esac
6822  fi
6823  rm -rf conftest*
6824  ;;
6825
6826
6827esac
6828
6829need_locks="$enable_libtool_lock"
6830
6831
6832ac_ext=c
6833ac_cpp='$CPP $CPPFLAGS'
6834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836ac_compiler_gnu=$ac_cv_c_compiler_gnu
6837echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6838echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6839# On Suns, sometimes $CPP names a directory.
6840if test -n "$CPP" && test -d "$CPP"; then
6841  CPP=
6842fi
6843if test -z "$CPP"; then
6844  if test "${ac_cv_prog_CPP+set}" = set; then
6845  echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847      # Double quotes because CPP needs to be expanded
6848    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6849    do
6850      ac_preproc_ok=false
6851for ac_c_preproc_warn_flag in '' yes
6852do
6853  # Use a header file that comes with gcc, so configuring glibc
6854  # with a fresh cross-compiler works.
6855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856  # <limits.h> exists even on freestanding compilers.
6857  # On the NeXT, cc -E runs the code through the compiler's parser,
6858  # not just through cpp. "Syntax error" is here to catch this case.
6859  cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
6868# include <assert.h>
6869#endif
6870                     Syntax error
6871_ACEOF
6872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6874  ac_status=$?
6875  grep -v '^ *+' conftest.er1 >conftest.err
6876  rm -f conftest.er1
6877  cat conftest.err >&5
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); } >/dev/null; then
6880  if test -s conftest.err; then
6881    ac_cpp_err=$ac_c_preproc_warn_flag
6882    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6883  else
6884    ac_cpp_err=
6885  fi
6886else
6887  ac_cpp_err=yes
6888fi
6889if test -z "$ac_cpp_err"; then
6890  :
6891else
6892  echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895  # Broken: fails on valid input.
6896continue
6897fi
6898rm -f conftest.err conftest.$ac_ext
6899
6900  # OK, works on sane cases.  Now check whether non-existent headers
6901  # can be detected and how.
6902  cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h.  */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h.  */
6908#include <ac_nonexistent.h>
6909_ACEOF
6910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6911  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6912  ac_status=$?
6913  grep -v '^ *+' conftest.er1 >conftest.err
6914  rm -f conftest.er1
6915  cat conftest.err >&5
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); } >/dev/null; then
6918  if test -s conftest.err; then
6919    ac_cpp_err=$ac_c_preproc_warn_flag
6920    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6921  else
6922    ac_cpp_err=
6923  fi
6924else
6925  ac_cpp_err=yes
6926fi
6927if test -z "$ac_cpp_err"; then
6928  # Broken: success on invalid input.
6929continue
6930else
6931  echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934  # Passes both tests.
6935ac_preproc_ok=:
6936break
6937fi
6938rm -f conftest.err conftest.$ac_ext
6939
6940done
6941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6942rm -f conftest.err conftest.$ac_ext
6943if $ac_preproc_ok; then
6944  break
6945fi
6946
6947    done
6948    ac_cv_prog_CPP=$CPP
6949
6950fi
6951  CPP=$ac_cv_prog_CPP
6952else
6953  ac_cv_prog_CPP=$CPP
6954fi
6955echo "$as_me:$LINENO: result: $CPP" >&5
6956echo "${ECHO_T}$CPP" >&6
6957ac_preproc_ok=false
6958for ac_c_preproc_warn_flag in '' yes
6959do
6960  # Use a header file that comes with gcc, so configuring glibc
6961  # with a fresh cross-compiler works.
6962  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6963  # <limits.h> exists even on freestanding compilers.
6964  # On the NeXT, cc -E runs the code through the compiler's parser,
6965  # not just through cpp. "Syntax error" is here to catch this case.
6966  cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h.  */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h.  */
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977                     Syntax error
6978_ACEOF
6979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6981  ac_status=$?
6982  grep -v '^ *+' conftest.er1 >conftest.err
6983  rm -f conftest.er1
6984  cat conftest.err >&5
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } >/dev/null; then
6987  if test -s conftest.err; then
6988    ac_cpp_err=$ac_c_preproc_warn_flag
6989    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6990  else
6991    ac_cpp_err=
6992  fi
6993else
6994  ac_cpp_err=yes
6995fi
6996if test -z "$ac_cpp_err"; then
6997  :
6998else
6999  echo "$as_me: failed program was:" >&5
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7002  # Broken: fails on valid input.
7003continue
7004fi
7005rm -f conftest.err conftest.$ac_ext
7006
7007  # OK, works on sane cases.  Now check whether non-existent headers
7008  # can be detected and how.
7009  cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015#include <ac_nonexistent.h>
7016_ACEOF
7017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7019  ac_status=$?
7020  grep -v '^ *+' conftest.er1 >conftest.err
7021  rm -f conftest.er1
7022  cat conftest.err >&5
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); } >/dev/null; then
7025  if test -s conftest.err; then
7026    ac_cpp_err=$ac_c_preproc_warn_flag
7027    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7028  else
7029    ac_cpp_err=
7030  fi
7031else
7032  ac_cpp_err=yes
7033fi
7034if test -z "$ac_cpp_err"; then
7035  # Broken: success on invalid input.
7036continue
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041  # Passes both tests.
7042ac_preproc_ok=:
7043break
7044fi
7045rm -f conftest.err conftest.$ac_ext
7046
7047done
7048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7049rm -f conftest.err conftest.$ac_ext
7050if $ac_preproc_ok; then
7051  :
7052else
7053  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7054See \`config.log' for more details." >&5
7055echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7056See \`config.log' for more details." >&2;}
7057   { (exit 1); exit 1; }; }
7058fi
7059
7060ac_ext=c
7061ac_cpp='$CPP $CPPFLAGS'
7062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065
7066
7067echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7068echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7069if test "${ac_cv_header_stdc+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072  cat >conftest.$ac_ext <<_ACEOF
7073/* confdefs.h.  */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
7077/* end confdefs.h.  */
7078#include <stdlib.h>
7079#include <stdarg.h>
7080#include <string.h>
7081#include <float.h>
7082
7083int
7084main ()
7085{
7086
7087  ;
7088  return 0;
7089}
7090_ACEOF
7091rm -f conftest.$ac_objext
7092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093  (eval $ac_compile) 2>conftest.er1
7094  ac_status=$?
7095  grep -v '^ *+' conftest.er1 >conftest.err
7096  rm -f conftest.er1
7097  cat conftest.err >&5
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); } &&
7100         { ac_try='test -z "$ac_c_werror_flag"
7101                         || test ! -s conftest.err'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; } &&
7107         { ac_try='test -s conftest.$ac_objext'
7108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109  (eval $ac_try) 2>&5
7110  ac_status=$?
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); }; }; then
7113  ac_cv_header_stdc=yes
7114else
7115  echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
7118ac_cv_header_stdc=no
7119fi
7120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121
7122if test $ac_cv_header_stdc = yes; then
7123  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7124  cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h.  */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h.  */
7130#include <string.h>
7131
7132_ACEOF
7133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134  $EGREP "memchr" >/dev/null 2>&1; then
7135  :
7136else
7137  ac_cv_header_stdc=no
7138fi
7139rm -f conftest*
7140
7141fi
7142
7143if test $ac_cv_header_stdc = yes; then
7144  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7145  cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h.  */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h.  */
7151#include <stdlib.h>
7152
7153_ACEOF
7154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7155  $EGREP "free" >/dev/null 2>&1; then
7156  :
7157else
7158  ac_cv_header_stdc=no
7159fi
7160rm -f conftest*
7161
7162fi
7163
7164if test $ac_cv_header_stdc = yes; then
7165  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7166  if test "$cross_compiling" = yes; then
7167  :
7168else
7169  cat >conftest.$ac_ext <<_ACEOF
7170/* confdefs.h.  */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h.  */
7175#include <ctype.h>
7176#if ((' ' & 0x0FF) == 0x020)
7177# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7178# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7179#else
7180# define ISLOWER(c) \
7181                   (('a' <= (c) && (c) <= 'i') \
7182                     || ('j' <= (c) && (c) <= 'r') \
7183                     || ('s' <= (c) && (c) <= 'z'))
7184# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7185#endif
7186
7187#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7188int
7189main ()
7190{
7191  int i;
7192  for (i = 0; i < 256; i++)
7193    if (XOR (islower (i), ISLOWER (i))
7194        || toupper (i) != TOUPPER (i))
7195      exit(2);
7196  exit (0);
7197}
7198_ACEOF
7199rm -f conftest$ac_exeext
7200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201  (eval $ac_link) 2>&5
7202  ac_status=$?
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206  (eval $ac_try) 2>&5
7207  ac_status=$?
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); }; }; then
7210  :
7211else
7212  echo "$as_me: program exited with status $ac_status" >&5
7213echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216( exit $ac_status )
7217ac_cv_header_stdc=no
7218fi
7219rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7220fi
7221fi
7222fi
7223echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7224echo "${ECHO_T}$ac_cv_header_stdc" >&6
7225if test $ac_cv_header_stdc = yes; then
7226
7227cat >>confdefs.h <<\_ACEOF
7228#define STDC_HEADERS 1
7229_ACEOF
7230
7231fi
7232
7233# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7244                  inttypes.h stdint.h unistd.h
7245do
7246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247echo "$as_me:$LINENO: checking for $ac_header" >&5
7248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7249if eval "test \"\${$as_ac_Header+set}\" = set"; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252  cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h.  */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h.  */
7258$ac_includes_default
7259
7260#include <$ac_header>
7261_ACEOF
7262rm -f conftest.$ac_objext
7263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264  (eval $ac_compile) 2>conftest.er1
7265  ac_status=$?
7266  grep -v '^ *+' conftest.er1 >conftest.err
7267  rm -f conftest.er1
7268  cat conftest.err >&5
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); } &&
7271         { ac_try='test -z "$ac_c_werror_flag"
7272                         || test ! -s conftest.err'
7273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274  (eval $ac_try) 2>&5
7275  ac_status=$?
7276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277  (exit $ac_status); }; } &&
7278         { ac_try='test -s conftest.$ac_objext'
7279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280  (eval $ac_try) 2>&5
7281  ac_status=$?
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); }; }; then
7284  eval "$as_ac_Header=yes"
7285else
7286  echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5
7288
7289eval "$as_ac_Header=no"
7290fi
7291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7292fi
7293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7295if test `eval echo '${'$as_ac_Header'}'` = yes; then
7296  cat >>confdefs.h <<_ACEOF
7297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7298_ACEOF
7299
7300fi
7301
7302done
7303
7304
7305
7306for ac_header in dlfcn.h
7307do
7308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7309if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310  echo "$as_me:$LINENO: checking for $ac_header" >&5
7311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7312if eval "test \"\${$as_ac_Header+set}\" = set"; then
7313  echo $ECHO_N "(cached) $ECHO_C" >&6
7314fi
7315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7317else
7318  # Is the header compilable?
7319echo "$as_me:$LINENO: checking $ac_header usability" >&5
7320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7321cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h.  */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h.  */
7327$ac_includes_default
7328#include <$ac_header>
7329_ACEOF
7330rm -f conftest.$ac_objext
7331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332  (eval $ac_compile) 2>conftest.er1
7333  ac_status=$?
7334  grep -v '^ *+' conftest.er1 >conftest.err
7335  rm -f conftest.er1
7336  cat conftest.err >&5
7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); } &&
7339         { ac_try='test -z "$ac_c_werror_flag"
7340                         || test ! -s conftest.err'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; } &&
7346         { ac_try='test -s conftest.$ac_objext'
7347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348  (eval $ac_try) 2>&5
7349  ac_status=$?
7350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351  (exit $ac_status); }; }; then
7352  ac_header_compiler=yes
7353else
7354  echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357ac_header_compiler=no
7358fi
7359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361echo "${ECHO_T}$ac_header_compiler" >&6
7362
7363# Is the header present?
7364echo "$as_me:$LINENO: checking $ac_header presence" >&5
7365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7366cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372#include <$ac_header>
7373_ACEOF
7374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376  ac_status=$?
7377  grep -v '^ *+' conftest.er1 >conftest.err
7378  rm -f conftest.er1
7379  cat conftest.err >&5
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); } >/dev/null; then
7382  if test -s conftest.err; then
7383    ac_cpp_err=$ac_c_preproc_warn_flag
7384    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7385  else
7386    ac_cpp_err=
7387  fi
7388else
7389  ac_cpp_err=yes
7390fi
7391if test -z "$ac_cpp_err"; then
7392  ac_header_preproc=yes
7393else
7394  echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397  ac_header_preproc=no
7398fi
7399rm -f conftest.err conftest.$ac_ext
7400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401echo "${ECHO_T}$ac_header_preproc" >&6
7402
7403# So?  What about this header?
7404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7405  yes:no: )
7406    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7410    ac_header_preproc=yes
7411    ;;
7412  no:yes:* )
7413    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7415    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7416echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7420echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7425    (
7426      cat <<\_ASBOX
7427## ------------------------------------ ##
7428## Report this to cbc@lists.coin-or.org ##
7429## ------------------------------------ ##
7430_ASBOX
7431    ) |
7432      sed "s/^/$as_me: WARNING:     /" >&2
7433    ;;
7434esac
7435echo "$as_me:$LINENO: checking for $ac_header" >&5
7436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438  echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440  eval "$as_ac_Header=\$ac_header_preproc"
7441fi
7442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7444
7445fi
7446if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447  cat >>confdefs.h <<_ACEOF
7448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449_ACEOF
7450
7451fi
7452
7453done
7454
7455
7456
7457if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7458    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7459    (test "X$CXX" != "Xg++"))) ; then
7460  ac_ext=cc
7461ac_cpp='$CXXCPP $CPPFLAGS'
7462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7465echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7466echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7467if test -z "$CXXCPP"; then
7468  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7469  echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471      # Double quotes because CXXCPP needs to be expanded
7472    for CXXCPP in "$CXX -E" "/lib/cpp"
7473    do
7474      ac_preproc_ok=false
7475for ac_cxx_preproc_warn_flag in '' yes
7476do
7477  # Use a header file that comes with gcc, so configuring glibc
7478  # with a fresh cross-compiler works.
7479  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480  # <limits.h> exists even on freestanding compilers.
7481  # On the NeXT, cc -E runs the code through the compiler's parser,
7482  # not just through cpp. "Syntax error" is here to catch this case.
7483  cat >conftest.$ac_ext <<_ACEOF
7484/* confdefs.h.  */
7485_ACEOF
7486cat confdefs.h >>conftest.$ac_ext
7487cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h.  */
7489#ifdef __STDC__
7490# include <limits.h>
7491#else
7492# include <assert.h>
7493#endif
7494                     Syntax error
7495_ACEOF
7496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498  ac_status=$?
7499  grep -v '^ *+' conftest.er1 >conftest.err
7500  rm -f conftest.er1
7501  cat conftest.err >&5
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); } >/dev/null; then
7504  if test -s conftest.err; then
7505    ac_cpp_err=$ac_cxx_preproc_warn_flag
7506    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7507  else
7508    ac_cpp_err=
7509  fi
7510else
7511  ac_cpp_err=yes
7512fi
7513if test -z "$ac_cpp_err"; then
7514  :
7515else
7516  echo "$as_me: failed program was:" >&5
7517sed 's/^/| /' conftest.$ac_ext >&5
7518
7519  # Broken: fails on valid input.
7520continue
7521fi
7522rm -f conftest.err conftest.$ac_ext
7523
7524  # OK, works on sane cases.  Now check whether non-existent headers
7525  # can be detected and how.
7526  cat >conftest.$ac_ext <<_ACEOF
7527/* confdefs.h.  */
7528_ACEOF
7529cat confdefs.h >>conftest.$ac_ext
7530cat >>conftest.$ac_ext <<_ACEOF
7531/* end confdefs.h.  */
7532#include <ac_nonexistent.h>
7533_ACEOF
7534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7535  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7536  ac_status=$?
7537  grep -v '^ *+' conftest.er1 >conftest.err
7538  rm -f conftest.er1
7539  cat conftest.err >&5
7540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541  (exit $ac_status); } >/dev/null; then
7542  if test -s conftest.err; then
7543    ac_cpp_err=$ac_cxx_preproc_warn_flag
7544    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7545  else
7546    ac_cpp_err=
7547  fi
7548else
7549  ac_cpp_err=yes
7550fi
7551if test -z "$ac_cpp_err"; then
7552  # Broken: success on invalid input.
7553continue
7554else
7555  echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558  # Passes both tests.
7559ac_preproc_ok=:
7560break
7561fi
7562rm -f conftest.err conftest.$ac_ext
7563
7564done
7565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7566rm -f conftest.err conftest.$ac_ext
7567if $ac_preproc_ok; then
7568  break
7569fi
7570
7571    done
7572    ac_cv_prog_CXXCPP=$CXXCPP
7573
7574fi
7575  CXXCPP=$ac_cv_prog_CXXCPP
7576else
7577  ac_cv_prog_CXXCPP=$CXXCPP
7578fi
7579echo "$as_me:$LINENO: result: $CXXCPP" >&5
7580echo "${ECHO_T}$CXXCPP" >&6
7581ac_preproc_ok=false
7582for ac_cxx_preproc_warn_flag in '' yes
7583do
7584  # Use a header file that comes with gcc, so configuring glibc
7585  # with a fresh cross-compiler works.
7586  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7587  # <limits.h> exists even on freestanding compilers.
7588  # On the NeXT, cc -E runs the code through the compiler's parser,
7589  # not just through cpp. "Syntax error" is here to catch this case.
7590  cat >conftest.$ac_ext <<_ACEOF
7591/* confdefs.h.  */
7592_ACEOF
7593cat confdefs.h >>conftest.$ac_ext
7594cat >>conftest.$ac_ext <<_ACEOF
7595/* end confdefs.h.  */
7596#ifdef __STDC__
7597# include <limits.h>
7598#else
7599# include <assert.h>
7600#endif
7601                     Syntax error
7602_ACEOF
7603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7605  ac_status=$?
7606  grep -v '^ *+' conftest.er1 >conftest.err
7607  rm -f conftest.er1
7608  cat conftest.err >&5
7609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610  (exit $ac_status); } >/dev/null; then
7611  if test -s conftest.err; then
7612    ac_cpp_err=$ac_cxx_preproc_warn_flag
7613    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7614  else
7615    ac_cpp_err=
7616  fi
7617else
7618  ac_cpp_err=yes
7619fi
7620if test -z "$ac_cpp_err"; then
7621  :
7622else
7623  echo "$as_me: failed program was:" >&5
7624sed 's/^/| /' conftest.$ac_ext >&5
7625
7626  # Broken: fails on valid input.
7627continue
7628fi
7629rm -f conftest.err conftest.$ac_ext
7630
7631  # OK, works on sane cases.  Now check whether non-existent headers
7632  # can be detected and how.
7633  cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h.  */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h.  */
7639#include <ac_nonexistent.h>
7640_ACEOF
7641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7643  ac_status=$?
7644  grep -v '^ *+' conftest.er1 >conftest.err
7645  rm -f conftest.er1
7646  cat conftest.err >&5
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); } >/dev/null; then
7649  if test -s conftest.err; then
7650    ac_cpp_err=$ac_cxx_preproc_warn_flag
7651    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7652  else
7653    ac_cpp_err=
7654  fi
7655else
7656  ac_cpp_err=yes
7657fi
7658if test -z "$ac_cpp_err"; then
7659  # Broken: success on invalid input.
7660continue
7661else
7662  echo "$as_me: failed program was:" >&5
7663sed 's/^/| /' conftest.$ac_ext >&5
7664
7665  # Passes both tests.
7666ac_preproc_ok=:
7667break
7668fi
7669rm -f conftest.err conftest.$ac_ext
7670
7671done
7672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7673rm -f conftest.err conftest.$ac_ext
7674if $ac_preproc_ok; then
7675  :
7676else
7677  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7678See \`config.log' for more details." >&5
7679echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7680See \`config.log' for more details." >&2;}
7681   { (exit 1); exit 1; }; }
7682fi
7683
7684ac_ext=cc
7685ac_cpp='$CXXCPP $CPPFLAGS'
7686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7689
7690fi
7691
7692
7693# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7694
7695# find the maximum length of command line arguments
7696echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7697echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7698if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7699  echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701    i=0
7702  teststring="ABCD"
7703
7704  case $build_os in
7705  msdosdjgpp*)
7706    # On DJGPP, this test can blow up pretty badly due to problems in libc
7707    # (any single argument exceeding 2000 bytes causes a buffer overrun
7708    # during glob expansion).  Even if it were fixed, the result of this
7709    # check would be larger than it should be.
7710    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7711    ;;
7712
7713  gnu*)
7714    # Under GNU Hurd, this test is not required because there is
7715    # no limit to the length of command line arguments.
7716    # Libtool will interpret -1 as no limit whatsoever
7717    lt_cv_sys_max_cmd_len=-1;
7718    ;;
7719
7720  cygwin* | mingw*)
7721    # On Win9x/ME, this test blows up -- it succeeds, but takes
7722    # about 5 minutes as the teststring grows exponentially.
7723    # Worse, since 9x/ME are not pre-emptively multitasking,
7724    # you end up with a "frozen" computer, even though with patience
7725    # the test eventually succeeds (with a max line length of 256k).
7726    # Instead, let's just punt: use the minimum linelength reported by
7727    # all of the supported platforms: 8192 (on NT/2K/XP).
7728    lt_cv_sys_max_cmd_len=8192;
7729    ;;
7730
7731  amigaos*)
7732    # On AmigaOS with pdksh, this test takes hours, literally.
7733    # So we just punt and use a minimum line length of 8192.
7734    lt_cv_sys_max_cmd_len=8192;
7735    ;;
7736
7737  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7738    # This has been around since 386BSD, at least.  Likely further.
7739    if test -x /sbin/sysctl; then
7740      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7741    elif test -x /usr/sbin/sysctl; then
7742      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7743    else
7744      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7745    fi
7746    # And add a safety zone
7747    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7748    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7749    ;;
7750
7751  interix*)
7752    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7753    lt_cv_sys_max_cmd_len=196608
7754    ;;
7755
7756  osf*)
7757    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7758    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7759    # nice to cause kernel panics so lets avoid the loop below.
7760    # First set a reasonable default.
7761    lt_cv_sys_max_cmd_len=16384
7762    #
7763    if test -x /sbin/sysconfig; then
7764      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7765        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7766      esac
7767    fi
7768    ;;
7769  sco3.2v5*)
7770    lt_cv_sys_max_cmd_len=102400
7771    ;;
7772  sysv5* | sco5v6* | sysv4.2uw2*)
7773    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7774    if test -n "$kargmax"; then
7775      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7776    else
7777      lt_cv_sys_max_cmd_len=32768
7778    fi
7779    ;;
7780  *)
7781    # If test is not a shell built-in, we'll probably end up computing a
7782    # maximum length that is only half of the actual maximum length, but
7783    # we can't tell.
7784    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7785    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7786               = "XX$teststring") >/dev/null 2>&1 &&
7787            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7788            lt_cv_sys_max_cmd_len=$new_result &&
7789            test $i != 17 # 1/2 MB should be enough
7790    do
7791      i=`expr $i + 1`
7792      teststring=$teststring$teststring
7793    done
7794    teststring=
7795    # Add a significant safety factor because C++ compilers can tack on massive
7796    # amounts of additional arguments before passing them to the linker.
7797    # It appears as though 1/2 is a usable value.
7798    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7799    ;;
7800  esac
7801
7802fi
7803
7804if test -n $lt_cv_sys_max_cmd_len ; then
7805  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7806echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7807else
7808  echo "$as_me:$LINENO: result: none" >&5
7809echo "${ECHO_T}none" >&6
7810fi
7811
7812
7813
7814
7815# Check for command to grab the raw symbol name followed by C symbol from nm.
7816echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7817echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7818if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7819  echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821
7822# These are sane defaults that work on at least a few old systems.
7823# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7824
7825# Character class describing NM global symbol codes.
7826symcode='[BCDEGRST]'
7827
7828# Regexp to match symbols that can be accessed directly from C.
7829sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7830
7831# Transform an extracted symbol line into a proper C declaration
7832lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7833
7834# Transform an extracted symbol line into symbol name and symbol address
7835lt_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'"
7836
7837# Define system-specific variables.
7838case $host_os in
7839aix*)
7840  symcode='[BCDT]'
7841  ;;
7842cygwin* | mingw* | pw32*)
7843  symcode='[ABCDGISTW]'
7844  ;;
7845hpux*) # Its linker distinguishes data from code symbols
7846  if test "$host_cpu" = ia64; then
7847    symcode='[ABCDEGRST]'
7848  fi
7849  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7850  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'"
7851  ;;
7852linux*)
7853  if test "$host_cpu" = ia64; then
7854    symcode='[ABCDGIRSTW]'
7855    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7856    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'"
7857  fi
7858  ;;
7859irix* | nonstopux*)
7860  symcode='[BCDEGRST]'
7861  ;;
7862osf*)
7863  symcode='[BCDEGQRST]'
7864  ;;
7865solaris*)
7866  symcode='[BDRT]'
7867  ;;
7868sco3.2v5*)
7869  symcode='[DT]'
7870  ;;
7871sysv4.2uw2*)
7872  symcode='[DT]'
7873  ;;
7874sysv5* | sco5v6* | unixware* | OpenUNIX*)
7875  symcode='[ABDT]'
7876  ;;
7877sysv4)
7878  symcode='[DFNSTU]'
7879  ;;
7880esac
7881
7882# Handle CRLF in mingw tool chain
7883opt_cr=
7884case $build_os in
7885mingw*)
7886  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7887  ;;
7888esac
7889
7890# If we're using GNU nm, then use its standard symbol codes.
7891case `$NM -V 2>&1` in
7892*GNU* | *'with BFD'*)
7893  symcode='[ABCDGIRSTW]' ;;
7894esac
7895
7896# Try without a prefix undercore, then with it.
7897for ac_symprfx in "" "_"; do
7898
7899  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7900  symxfrm="\\1 $ac_symprfx\\2 \\2"
7901
7902  # Write the raw and C identifiers.
7903  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7904
7905  # Check to see that the pipe works correctly.
7906  pipe_works=no
7907
7908  rm -f conftest*
7909  cat > conftest.$ac_ext <<EOF
7910#ifdef __cplusplus
7911extern "C" {
7912#endif
7913char nm_test_var;
7914void nm_test_func(){}
7915#ifdef __cplusplus
7916}
7917#endif
7918int main(){nm_test_var='a';nm_test_func();return(0);}
7919EOF
7920
7921  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922  (eval $ac_compile) 2>&5
7923  ac_status=$?
7924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925  (exit $ac_status); }; then
7926    # Now try to grab the symbols.
7927    nlist=conftest.nm
7928    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7929  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7930  ac_status=$?
7931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932  (exit $ac_status); } && test -s "$nlist"; then
7933      # Try sorting and uniquifying the output.
7934      if sort "$nlist" | uniq > "$nlist"T; then
7935        mv -f "$nlist"T "$nlist"
7936      else
7937        rm -f "$nlist"T
7938      fi
7939
7940      # Make sure that we snagged all the symbols we need.
7941      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7942        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7943          cat <<EOF > conftest.$ac_ext
7944#ifdef __cplusplus
7945extern "C" {
7946#endif
7947
7948EOF
7949          # Now generate the symbol file.
7950          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7951
7952          cat <<EOF >> conftest.$ac_ext
7953#if defined (__STDC__) && __STDC__
7954# define lt_ptr_t void *
7955#else
7956# define lt_ptr_t char *
7957# define const
7958#endif
7959
7960/* The mapping between symbol names and symbols. */
7961const struct {
7962  const char *name;
7963  lt_ptr_t address;
7964}
7965lt_preloaded_symbols[] =
7966{
7967EOF
7968          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7969          cat <<\EOF >> conftest.$ac_ext
7970  {0, (lt_ptr_t) 0}
7971};
7972
7973#ifdef __cplusplus
7974}
7975#endif
7976EOF
7977          # Now try linking the two files.
7978          mv conftest.$ac_objext conftstm.$ac_objext
7979          lt_save_LIBS="$LIBS"
7980          lt_save_CFLAGS="$CFLAGS"
7981          LIBS="conftstm.$ac_objext"
7982          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7983          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984  (eval $ac_link) 2>&5
7985  ac_status=$?
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7988            pipe_works=yes
7989          fi
7990          LIBS="$lt_save_LIBS"
7991          CFLAGS="$lt_save_CFLAGS"
7992        else
7993          echo "cannot find nm_test_func in $nlist" >&5
7994        fi
7995      else
7996        echo "cannot find nm_test_var in $nlist" >&5
7997      fi
7998    else
7999      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8000    fi
8001  else
8002    echo "$progname: failed program was:" >&5
8003    cat conftest.$ac_ext >&5
8004  fi
8005  rm -f conftest* conftst*
8006
8007  # Do not use the global_symbol_pipe unless it works.
8008  if test "$pipe_works" = yes; then
8009    break
8010  else
8011    lt_cv_sys_global_symbol_pipe=
8012  fi
8013done
8014
8015fi
8016
8017if test -z "$lt_cv_sys_global_symbol_pipe"; then
8018  lt_cv_sys_global_symbol_to_cdecl=
8019fi
8020if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8021  echo "$as_me:$LINENO: result: failed" >&5
8022echo "${ECHO_T}failed" >&6
8023else
8024  echo "$as_me:$LINENO: result: ok" >&5
8025echo "${ECHO_T}ok" >&6
8026fi
8027
8028echo "$as_me:$LINENO: checking for objdir" >&5
8029echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8030if test "${lt_cv_objdir+set}" = set; then
8031  echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033  rm -f .libs 2>/dev/null
8034mkdir .libs 2>/dev/null
8035if test -d .libs; then
8036  lt_cv_objdir=.libs
8037else
8038  # MS-DOS does not allow filenames that begin with a dot.
8039  lt_cv_objdir=_libs
8040fi
8041rmdir .libs 2>/dev/null
8042fi
8043echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8044echo "${ECHO_T}$lt_cv_objdir" >&6
8045objdir=$lt_cv_objdir
8046
8047
8048
8049
8050
8051case $host_os in
8052aix3*)
8053  # AIX sometimes has problems with the GCC collect2 program.  For some
8054  # reason, if we set the COLLECT_NAMES environment variable, the problems
8055  # vanish in a puff of smoke.
8056  if test "X${COLLECT_NAMES+set}" != Xset; then
8057    COLLECT_NAMES=
8058    export COLLECT_NAMES
8059  fi
8060  ;;
8061esac
8062
8063# Sed substitution that helps us do robust quoting.  It backslashifies
8064# metacharacters that are still active within double-quoted strings.
8065Xsed='sed -e 1s/^X//'
8066sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8067
8068# Same as above, but do not quote variable references.
8069double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8070
8071# Sed substitution to delay expansion of an escaped shell variable in a
8072# double_quote_subst'ed string.
8073delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8074
8075# Sed substitution to avoid accidental globbing in evaled expressions
8076no_glob_subst='s/\*/\\\*/g'
8077
8078# Constants:
8079rm="rm -f"
8080
8081# Global variables:
8082default_ofile=libtool
8083can_build_shared=yes
8084
8085# All known linkers require a `.a' archive for static linking (except MSVC,
8086# which needs '.lib').
8087libext=a
8088ltmain="$ac_aux_dir/ltmain.sh"
8089ofile="$default_ofile"
8090with_gnu_ld="$lt_cv_prog_gnu_ld"
8091
8092if test -n "$ac_tool_prefix"; then
8093  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8094set dummy ${ac_tool_prefix}ar; ac_word=$2
8095echo "$as_me:$LINENO: checking for $ac_word" >&5
8096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097if test "${ac_cv_prog_AR+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  if test -n "$AR"; then
8101  ac_cv_prog_AR="$AR" # Let the user override the test.
8102else
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106  IFS=$as_save_IFS
8107  test -z "$as_dir" && as_dir=.
8108  for ac_exec_ext in '' $ac_executable_extensions; do
8109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110    ac_cv_prog_AR="${ac_tool_prefix}ar"
8111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112    break 2
8113  fi
8114done
8115done
8116
8117fi
8118fi
8119AR=$ac_cv_prog_AR
8120if test -n "$AR"; then
8121  echo "$as_me:$LINENO: result: $AR" >&5
8122echo "${ECHO_T}$AR" >&6
8123else
8124  echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6
8126fi
8127
8128fi
8129if test -z "$ac_cv_prog_AR"; then
8130  ac_ct_AR=$AR
8131  # Extract the first word of "ar", so it can be a program name with args.
8132set dummy ar; ac_word=$2
8133echo "$as_me:$LINENO: checking for $ac_word" >&5
8134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8135if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  if test -n "$ac_ct_AR"; then
8139  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144  IFS=$as_save_IFS
8145  test -z "$as_dir" && as_dir=.
8146  for ac_exec_ext in '' $ac_executable_extensions; do
8147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148    ac_cv_prog_ac_ct_AR="ar"
8149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150    break 2
8151  fi
8152done
8153done
8154
8155  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8156fi
8157fi
8158ac_ct_AR=$ac_cv_prog_ac_ct_AR
8159if test -n "$ac_ct_AR"; then
8160  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8161echo "${ECHO_T}$ac_ct_AR" >&6
8162else
8163  echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165fi
8166
8167  AR=$ac_ct_AR
8168else
8169  AR="$ac_cv_prog_AR"
8170fi
8171
8172if test -n "$ac_tool_prefix"; then
8173  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8174set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8175echo "$as_me:$LINENO: checking for $ac_word" >&5
8176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8177if test "${ac_cv_prog_RANLIB+set}" = set; then
8178  echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180  if test -n "$RANLIB"; then
8181  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186  IFS=$as_save_IFS
8187  test -z "$as_dir" && as_dir=.
8188  for ac_exec_ext in '' $ac_executable_extensions; do
8189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192    break 2
8193  fi
8194done
8195done
8196
8197fi
8198fi
8199RANLIB=$ac_cv_prog_RANLIB
8200if test -n "$RANLIB"; then
8201  echo "$as_me:$LINENO: result: $RANLIB" >&5
8202echo "${ECHO_T}$RANLIB" >&6
8203else
8204  echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
8206fi
8207
8208fi
8209if test -z "$ac_cv_prog_RANLIB"; then
8210  ac_ct_RANLIB=$RANLIB
8211  # Extract the first word of "ranlib", so it can be a program name with args.
8212set dummy ranlib; ac_word=$2
8213echo "$as_me:$LINENO: checking for $ac_word" >&5
8214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8215if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8216  echo $ECHO_N "(cached) $ECHO_C" >&6
8217else
8218  if test -n "$ac_ct_RANLIB"; then
8219  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224  IFS=$as_save_IFS
8225  test -z "$as_dir" && as_dir=.
8226  for ac_exec_ext in '' $ac_executable_extensions; do
8227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228    ac_cv_prog_ac_ct_RANLIB="ranlib"
8229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8230    break 2
8231  fi
8232done
8233done
8234
8235  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8236fi
8237fi
8238ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8239if test -n "$ac_ct_RANLIB"; then
8240  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8241echo "${ECHO_T}$ac_ct_RANLIB" >&6
8242else
8243  echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6
8245fi
8246
8247  RANLIB=$ac_ct_RANLIB
8248else
8249  RANLIB="$ac_cv_prog_RANLIB"
8250fi
8251
8252if test -n "$ac_tool_prefix"; then
8253  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8254set dummy ${ac_tool_prefix}strip; ac_word=$2
8255echo "$as_me:$LINENO: checking for $ac_word" >&5
8256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8257if test "${ac_cv_prog_STRIP+set}" = set; then
8258  echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260  if test -n "$STRIP"; then
8261  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8262else
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266  IFS=$as_save_IFS
8267  test -z "$as_dir" && as_dir=.
8268  for ac_exec_ext in '' $ac_executable_extensions; do
8269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8272    break 2
8273  fi
8274done
8275done
8276
8277fi
8278fi
8279STRIP=$ac_cv_prog_STRIP
8280if test -n "$STRIP"; then
8281  echo "$as_me:$LINENO: result: $STRIP" >&5
8282echo "${ECHO_T}$STRIP" >&6
8283else
8284  echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8286fi
8287
8288fi
8289if test -z "$ac_cv_prog_STRIP"; then
8290  ac_ct_STRIP=$STRIP
8291  # Extract the first word of "strip", so it can be a program name with args.
8292set dummy strip; ac_word=$2
8293echo "$as_me:$LINENO: checking for $ac_word" >&5
8294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8295if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8296  echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298  if test -n "$ac_ct_STRIP"; then
8299  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8300else
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304  IFS=$as_save_IFS
8305  test -z "$as_dir" && as_dir=.
8306  for ac_exec_ext in '' $ac_executable_extensions; do
8307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308    ac_cv_prog_ac_ct_STRIP="strip"
8309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310    break 2
8311  fi
8312done
8313done
8314
8315  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8316fi
8317fi
8318ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8319if test -n "$ac_ct_STRIP"; then
8320  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8321echo "${ECHO_T}$ac_ct_STRIP" >&6
8322else
8323  echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6
8325fi
8326
8327  STRIP=$ac_ct_STRIP
8328else
8329  STRIP="$ac_cv_prog_STRIP"
8330fi
8331
8332
8333old_CC="$CC"
8334old_CFLAGS="$CFLAGS"
8335
8336# Set sane defaults for various variables
8337test -z "$AR" && AR=ar
8338test -z "$AR_FLAGS" && AR_FLAGS=cru
8339test -z "$AS" && AS=as
8340test -z "$CC" && CC=cc
8341test -z "$LTCC" && LTCC=$CC
8342test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8343test -z "$DLLTOOL" && DLLTOOL=dlltool
8344test -z "$LD" && LD=ld
8345test -z "$LN_S" && LN_S="ln -s"
8346test -z "$MAGIC_CMD" && MAGIC_CMD=file
8347test -z "$NM" && NM=nm
8348test -z "$SED" && SED=sed
8349test -z "$OBJDUMP" && OBJDUMP=objdump
8350test -z "$RANLIB" && RANLIB=:
8351test -z "$STRIP" && STRIP=:
8352test -z "$ac_objext" && ac_objext=o
8353
8354# Determine commands to create old-style static archives.
8355old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8356old_postinstall_cmds='chmod 644 $oldlib'
8357old_postuninstall_cmds=
8358
8359if test -n "$RANLIB"; then
8360  case $host_os in
8361  openbsd*)
8362    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8363    ;;
8364  *)
8365    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8366    ;;
8367  esac
8368  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8369fi
8370
8371for cc_temp in $compiler""; do
8372  case $cc_temp in
8373    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8374    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8375    \-*) ;;
8376    *) break;;
8377  esac
8378done
8379cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8380
8381
8382# Only perform the check for file, if the check method requires it
8383case $deplibs_check_method in
8384file_magic*)
8385  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8386    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8387echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8388if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8389  echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391  case $MAGIC_CMD in
8392[\\/*] |  ?:[\\/]*)
8393  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8394  ;;
8395*)
8396  lt_save_MAGIC_CMD="$MAGIC_CMD"
8397  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8398  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8399  for ac_dir in $ac_dummy; do
8400    IFS="$lt_save_ifs"
8401    test -z "$ac_dir" && ac_dir=.
8402    if test -f $ac_dir/${ac_tool_prefix}file; then
8403      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8404      if test -n "$file_magic_test_file"; then
8405        case $deplibs_check_method in
8406        "file_magic "*)
8407          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8408          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8409          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8410            $EGREP "$file_magic_regex" > /dev/null; then
8411            :
8412          else
8413            cat <<EOF 1>&2
8414
8415*** Warning: the command libtool uses to detect shared libraries,
8416*** $file_magic_cmd, produces output that libtool cannot recognize.
8417*** The result is that libtool may fail to recognize shared libraries
8418*** as such.  This will affect the creation of libtool libraries that
8419*** depend on shared libraries, but programs linked with such libtool
8420*** libraries will work regardless of this problem.  Nevertheless, you
8421*** may want to report the problem to your system manager and/or to
8422*** bug-libtool@gnu.org
8423
8424EOF
8425          fi ;;
8426        esac
8427      fi
8428      break
8429    fi
8430  done
8431  IFS="$lt_save_ifs"
8432  MAGIC_CMD="$lt_save_MAGIC_CMD"
8433  ;;
8434esac
8435fi
8436
8437MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438if test -n "$MAGIC_CMD"; then
8439  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8440echo "${ECHO_T}$MAGIC_CMD" >&6
8441else
8442  echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444fi
8445
8446if test -z "$lt_cv_path_MAGIC_CMD"; then
8447  if test -n "$ac_tool_prefix"; then
8448    echo "$as_me:$LINENO: checking for file" >&5
8449echo $ECHO_N "checking for file... $ECHO_C" >&6
8450if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8451  echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453  case $MAGIC_CMD in
8454[\\/*] |  ?:[\\/]*)
8455  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8456  ;;
8457*)
8458  lt_save_MAGIC_CMD="$MAGIC_CMD"
8459  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8461  for ac_dir in $ac_dummy; do
8462    IFS="$lt_save_ifs"
8463    test -z "$ac_dir" && ac_dir=.
8464    if test -f $ac_dir/file; then
8465      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8466      if test -n "$file_magic_test_file"; then
8467        case $deplibs_check_method in
8468        "file_magic "*)
8469          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8470          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8472            $EGREP "$file_magic_regex" > /dev/null; then
8473            :
8474          else
8475            cat <<EOF 1>&2
8476
8477*** Warning: the command libtool uses to detect shared libraries,
8478*** $file_magic_cmd, produces output that libtool cannot recognize.
8479*** The result is that libtool may fail to recognize shared libraries
8480*** as such.  This will affect the creation of libtool libraries that
8481*** depend on shared libraries, but programs linked with such libtool
8482*** libraries will work regardless of this problem.  Nevertheless, you
8483*** may want to report the problem to your system manager and/or to
8484*** bug-libtool@gnu.org
8485
8486EOF
8487          fi ;;
8488        esac
8489      fi
8490      break
8491    fi
8492  done
8493  IFS="$lt_save_ifs"
8494  MAGIC_CMD="$lt_save_MAGIC_CMD"
8495  ;;
8496esac
8497fi
8498
8499MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8500if test -n "$MAGIC_CMD"; then
8501  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8502echo "${ECHO_T}$MAGIC_CMD" >&6
8503else
8504  echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
8506fi
8507
8508  else
8509    MAGIC_CMD=:
8510  fi
8511fi
8512
8513  fi
8514  ;;
8515esac
8516
8517enable_dlopen=no
8518enable_win32_dll=no
8519
8520# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8521if test "${enable_libtool_lock+set}" = set; then
8522  enableval="$enable_libtool_lock"
8523
8524fi;
8525test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8526
8527
8528# Check whether --with-pic or --without-pic was given.
8529if test "${with_pic+set}" = set; then
8530  withval="$with_pic"
8531  pic_mode="$withval"
8532else
8533  pic_mode=default
8534fi;
8535test -z "$pic_mode" && pic_mode=default
8536
8537# Use C for the default configuration in the libtool script
8538tagname=
8539lt_save_CC="$CC"
8540ac_ext=c
8541ac_cpp='$CPP $CPPFLAGS'
8542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8544ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545
8546
8547# Source file extension for C test sources.
8548ac_ext=c
8549
8550# Object file extension for compiled C test sources.
8551objext=o
8552objext=$objext
8553
8554# Code to be used in simple compile tests
8555lt_simple_compile_test_code="int some_variable = 0;\n"
8556
8557# Code to be used in simple link tests
8558lt_simple_link_test_code='int main(){return(0);}\n'
8559
8560
8561# If no C compiler was specified, use CC.
8562LTCC=${LTCC-"$CC"}
8563
8564# If no C compiler flags were specified, use CFLAGS.
8565LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8566
8567# Allow CC to be a program name with arguments.
8568compiler=$CC
8569
8570
8571# save warnings/boilerplate of simple test code
8572ac_outfile=conftest.$ac_objext
8573printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575_lt_compiler_boilerplate=`cat conftest.err`
8576$rm conftest*
8577
8578ac_outfile=conftest.$ac_objext
8579printf "$lt_simple_link_test_code" >conftest.$ac_ext
8580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581_lt_linker_boilerplate=`cat conftest.err`
8582$rm conftest*
8583
8584
8585## CAVEAT EMPTOR:
8586## There is no encapsulation within the following macros, do not change
8587## the running order or otherwise move them around unless you know exactly
8588## what you are doing...
8589
8590lt_prog_compiler_no_builtin_flag=
8591
8592if test "$GCC" = yes; then
8593  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8594
8595
8596echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8597echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8598if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8599  echo $ECHO_N "(cached) $ECHO_C" >&6
8600else
8601  lt_cv_prog_compiler_rtti_exceptions=no
8602  ac_outfile=conftest.$ac_objext
8603   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8604   lt_compiler_flag="-fno-rtti -fno-exceptions"
8605   # Insert the option either (1) after the last *FLAGS variable, or
8606   # (2) before a word containing "conftest.", or (3) at the end.
8607   # Note that $ac_compile itself does not contain backslashes and begins
8608   # with a dollar sign (not a hyphen), so the echo should work correctly.
8609   # The option is referenced via a variable to avoid confusing sed.
8610   lt_compile=`echo "$ac_compile" | $SED \
8611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613   -e 's:$: $lt_compiler_flag:'`
8614   (eval echo "\"\$as_me:8614: $lt_compile\"" >&5)
8615   (eval "$lt_compile" 2>conftest.err)
8616   ac_status=$?
8617   cat conftest.err >&5
8618   echo "$as_me:8618: \$? = $ac_status" >&5
8619   if (exit $ac_status) && test -s "$ac_outfile"; then
8620     # The compiler can only warn and ignore the option if not recognized
8621     # So say no if there are warnings other than the usual output.
8622     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8623     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8624     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8625       lt_cv_prog_compiler_rtti_exceptions=yes
8626     fi
8627   fi
8628   $rm conftest*
8629
8630fi
8631echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8632echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8633
8634if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8635    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8636else
8637    :
8638fi
8639
8640fi
8641
8642lt_prog_compiler_wl=
8643lt_prog_compiler_pic=
8644lt_prog_compiler_static=
8645
8646echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8647echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8648
8649  if test "$GCC" = yes; then
8650    lt_prog_compiler_wl='-Wl,'
8651    lt_prog_compiler_static='-static'
8652
8653    case $host_os in
8654      aix*)
8655      # All AIX code is PIC.
8656      if test "$host_cpu" = ia64; then
8657        # AIX 5 now supports IA64 processor
8658        lt_prog_compiler_static='-Bstatic'
8659      fi
8660      ;;
8661
8662    amigaos*)
8663      # FIXME: we need at least 68020 code to build shared libraries, but
8664      # adding the `-m68020' flag to GCC prevents building anything better,
8665      # like `-m68040'.
8666      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8667      ;;
8668
8669    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8670      # PIC is the default for these OSes.
8671      ;;
8672
8673    mingw* | pw32* | os2*)
8674      # This hack is so that the source file can tell whether it is being
8675      # built for inclusion in a dll (and should export symbols for example).
8676      lt_prog_compiler_pic='-DDLL_EXPORT'
8677      ;;
8678
8679    darwin* | rhapsody*)
8680      # PIC is the default on this platform
8681      # Common symbols not allowed in MH_DYLIB files
8682      lt_prog_compiler_pic='-fno-common'
8683      ;;
8684
8685    interix3*)
8686      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8687      # Instead, we relocate shared libraries at runtime.
8688      ;;
8689
8690    msdosdjgpp*)
8691      # Just because we use GCC doesn't mean we suddenly get shared libraries
8692      # on systems that don't support them.
8693      lt_prog_compiler_can_build_shared=no
8694      enable_shared=no
8695      ;;
8696
8697    sysv4*MP*)
8698      if test -d /usr/nec; then
8699        lt_prog_compiler_pic=-Kconform_pic
8700      fi
8701      ;;
8702
8703    hpux*)
8704      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8705      # not for PA HP-UX.
8706      case $host_cpu in
8707      hppa*64*|ia64*)
8708        # +Z the default
8709        ;;
8710      *)
8711        lt_prog_compiler_pic='-fPIC'
8712        ;;
8713      esac
8714      ;;
8715
8716    *)
8717      lt_prog_compiler_pic='-fPIC'
8718      ;;
8719    esac
8720  else
8721    # PORTME Check for flag to pass linker flags through the system compiler.
8722    case $host_os in
8723    aix*)
8724      lt_prog_compiler_wl='-Wl,'
8725      if test "$host_cpu" = ia64; then
8726        # AIX 5 now supports IA64 processor
8727        lt_prog_compiler_static='-Bstatic'
8728      else
8729        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8730      fi
8731      ;;
8732      darwin*)
8733        # PIC is the default on this platform
8734        # Common symbols not allowed in MH_DYLIB files
8735       case $cc_basename in
8736         xlc*)
8737         lt_prog_compiler_pic='-qnocommon'
8738         lt_prog_compiler_wl='-Wl,'
8739         ;;
8740       esac
8741       ;;
8742
8743    mingw* | pw32* | os2*)
8744      # This hack is so that the source file can tell whether it is being
8745      # built for inclusion in a dll (and should export symbols for example).
8746      lt_prog_compiler_pic='-DDLL_EXPORT'
8747      ;;
8748
8749    hpux9* | hpux10* | hpux11*)
8750      lt_prog_compiler_wl='-Wl,'
8751      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8752      # not for PA HP-UX.
8753      case $host_cpu in
8754      hppa*64*|ia64*)
8755        # +Z the default
8756        ;;
8757      *)
8758        lt_prog_compiler_pic='+Z'
8759        ;;
8760      esac
8761      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8762      lt_prog_compiler_static='${wl}-a ${wl}archive'
8763      ;;
8764
8765    irix5* | irix6* | nonstopux*)
8766      lt_prog_compiler_wl='-Wl,'
8767      # PIC (with -KPIC) is the default.
8768      lt_prog_compiler_static='-non_shared'
8769      ;;
8770
8771    newsos6)
8772      lt_prog_compiler_pic='-KPIC'
8773      lt_prog_compiler_static='-Bstatic'
8774      ;;
8775
8776    linux*)
8777      case $cc_basename in
8778      icc* | ecc*)
8779        lt_prog_compiler_wl='-Wl,'
8780        lt_prog_compiler_pic='-KPIC'
8781        lt_prog_compiler_static='-static'
8782        ;;
8783      pgcc* | pgf77* | pgf90* | pgf95*)
8784        # Portland Group compilers (*not* the Pentium gcc compiler,
8785        # which looks to be a dead project)
8786        lt_prog_compiler_wl='-Wl,'
8787        lt_prog_compiler_pic='-fpic'
8788        lt_prog_compiler_static='-Bstatic'
8789        ;;
8790      ccc*)
8791        lt_prog_compiler_wl='-Wl,'
8792        # All Alpha code is PIC.
8793        lt_prog_compiler_static='-non_shared'
8794        ;;
8795      esac
8796      ;;
8797
8798    osf3* | osf4* | osf5*)
8799      lt_prog_compiler_wl='-Wl,'
8800      # All OSF/1 code is PIC.
8801      lt_prog_compiler_static='-non_shared'
8802      ;;
8803
8804    solaris*)
8805      lt_prog_compiler_pic='-KPIC'
8806      lt_prog_compiler_static='-Bstatic'
8807      case $cc_basename in
8808      f77* | f90* | f95*)
8809        lt_prog_compiler_wl='-Qoption ld ';;
8810      *)
8811        lt_prog_compiler_wl='-Wl,';;
8812      esac
8813      ;;
8814
8815    sunos4*)
8816      lt_prog_compiler_wl='-Qoption ld '
8817      lt_prog_compiler_pic='-PIC'
8818      lt_prog_compiler_static='-Bstatic'
8819      ;;
8820
8821    sysv4 | sysv4.2uw2* | sysv4.3*)
8822      lt_prog_compiler_wl='-Wl,'
8823      lt_prog_compiler_pic='-KPIC'
8824      lt_prog_compiler_static='-Bstatic'
8825      ;;
8826
8827    sysv4*MP*)
8828      if test -d /usr/nec ;then
8829        lt_prog_compiler_pic='-Kconform_pic'
8830        lt_prog_compiler_static='-Bstatic'
8831      fi
8832      ;;
8833
8834    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8835      lt_prog_compiler_wl='-Wl,'
8836      lt_prog_compiler_pic='-KPIC'
8837      lt_prog_compiler_static='-Bstatic'
8838      ;;
8839
8840    unicos*)
8841      lt_prog_compiler_wl='-Wl,'
8842      lt_prog_compiler_can_build_shared=no
8843      ;;
8844
8845    uts4*)
8846      lt_prog_compiler_pic='-pic'
8847      lt_prog_compiler_static='-Bstatic'
8848      ;;
8849
8850    *)
8851      lt_prog_compiler_can_build_shared=no
8852      ;;
8853    esac
8854  fi
8855
8856echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8857echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8858
8859#
8860# Check to make sure the PIC flag actually works.
8861#
8862if test -n "$lt_prog_compiler_pic"; then
8863
8864echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8865echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8866if test "${lt_prog_compiler_pic_works+set}" = set; then
8867  echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869  lt_prog_compiler_pic_works=no
8870  ac_outfile=conftest.$ac_objext
8871   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8872   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8873   # Insert the option either (1) after the last *FLAGS variable, or
8874   # (2) before a word containing "conftest.", or (3) at the end.
8875   # Note that $ac_compile itself does not contain backslashes and begins
8876   # with a dollar sign (not a hyphen), so the echo should work correctly.
8877   # The option is referenced via a variable to avoid confusing sed.
8878   lt_compile=`echo "$ac_compile" | $SED \
8879   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8880   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8881   -e 's:$: $lt_compiler_flag:'`
8882   (eval echo "\"\$as_me:8882: $lt_compile\"" >&5)
8883   (eval "$lt_compile" 2>conftest.err)
8884   ac_status=$?
8885   cat conftest.err >&5
8886   echo "$as_me:8886: \$? = $ac_status" >&5
8887   if (exit $ac_status) && test -s "$ac_outfile"; then
8888     # The compiler can only warn and ignore the option if not recognized
8889     # So say no if there are warnings other than the usual output.
8890     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8891     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8892     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8893       lt_prog_compiler_pic_works=yes
8894     fi
8895   fi
8896   $rm conftest*
8897
8898fi
8899echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8900echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8901
8902if test x"$lt_prog_compiler_pic_works" = xyes; then
8903    case $lt_prog_compiler_pic in
8904     "" | " "*) ;;
8905     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8906     esac
8907else
8908    lt_prog_compiler_pic=
8909     lt_prog_compiler_can_build_shared=no
8910fi
8911
8912fi
8913case $host_os in
8914  # For platforms which do not support PIC, -DPIC is meaningless:
8915  *djgpp*)
8916    lt_prog_compiler_pic=
8917    ;;
8918  *)
8919    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8920    ;;
8921esac
8922
8923#
8924# Check to make sure the static flag actually works.
8925#
8926wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8927echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8928echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8929if test "${lt_prog_compiler_static_works+set}" = set; then
8930  echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932  lt_prog_compiler_static_works=no
8933   save_LDFLAGS="$LDFLAGS"
8934   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8935   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8936   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8937     # The linker can only warn and ignore the option if not recognized
8938     # So say no if there are warnings
8939     if test -s conftest.err; then
8940       # Append any errors to the config.log.
8941       cat conftest.err 1>&5
8942       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8943       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944       if diff conftest.exp conftest.er2 >/dev/null; then
8945         lt_prog_compiler_static_works=yes
8946       fi
8947     else
8948       lt_prog_compiler_static_works=yes
8949     fi
8950   fi
8951   $rm conftest*
8952   LDFLAGS="$save_LDFLAGS"
8953
8954fi
8955echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8956echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8957
8958if test x"$lt_prog_compiler_static_works" = xyes; then
8959    :
8960else
8961    lt_prog_compiler_static=
8962fi
8963
8964
8965echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8966echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8967if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8968  echo $ECHO_N "(cached) $ECHO_C" >&6
8969else
8970  lt_cv_prog_compiler_c_o=no
8971   $rm -r conftest 2>/dev/null
8972   mkdir conftest
8973   cd conftest
8974   mkdir out
8975   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977   lt_compiler_flag="-o out/conftest2.$ac_objext"
8978   # Insert the option either (1) after the last *FLAGS variable, or
8979   # (2) before a word containing "conftest.", or (3) at the end.
8980   # Note that $ac_compile itself does not contain backslashes and begins
8981   # with a dollar sign (not a hyphen), so the echo should work correctly.
8982   lt_compile=`echo "$ac_compile" | $SED \
8983   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8984   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8985   -e 's:$: $lt_compiler_flag:'`
8986   (eval echo "\"\$as_me:8986: $lt_compile\"" >&5)
8987   (eval "$lt_compile" 2>out/conftest.err)
8988   ac_status=$?
8989   cat out/conftest.err >&5
8990   echo "$as_me:8990: \$? = $ac_status" >&5
8991   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8992   then
8993     # The compiler can only warn and ignore the option if not recognized
8994     # So say no if there are warnings
8995     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8996     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8997     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8998       lt_cv_prog_compiler_c_o=yes
8999     fi
9000   fi
9001   chmod u+w . 2>&5
9002   $rm conftest*
9003   # SGI C++ compiler will create directory out/ii_files/ for
9004   # template instantiation
9005   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9006   $rm out/* && rmdir out
9007   cd ..
9008   rmdir conftest
9009   $rm conftest*
9010
9011fi
9012echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9013echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9014
9015
9016hard_links="nottested"
9017if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9018  # do not overwrite the value of need_locks provided by the user
9019  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9020echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9021  hard_links=yes
9022  $rm conftest*
9023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9024  touch conftest.a
9025  ln conftest.a conftest.b 2>&5 || hard_links=no
9026  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9027  echo "$as_me:$LINENO: result: $hard_links" >&5
9028echo "${ECHO_T}$hard_links" >&6
9029  if test "$hard_links" = no; then
9030    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9031echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9032    need_locks=warn
9033  fi
9034else
9035  need_locks=no
9036fi
9037
9038echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9039echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9040
9041  runpath_var=
9042  allow_undefined_flag=
9043  enable_shared_with_static_runtimes=no
9044  archive_cmds=
9045  archive_expsym_cmds=
9046  old_archive_From_new_cmds=
9047  old_archive_from_expsyms_cmds=
9048  export_dynamic_flag_spec=
9049  whole_archive_flag_spec=
9050  thread_safe_flag_spec=
9051  hardcode_libdir_flag_spec=
9052  hardcode_libdir_flag_spec_ld=
9053  hardcode_libdir_separator=
9054  hardcode_direct=no
9055  hardcode_minus_L=no
9056  hardcode_shlibpath_var=unsupported
9057  link_all_deplibs=unknown
9058  hardcode_automatic=no
9059  module_cmds=
9060  module_expsym_cmds=
9061  always_export_symbols=no
9062  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9063  # include_expsyms should be a list of space-separated symbols to be *always*
9064  # included in the symbol list
9065  include_expsyms=
9066  # exclude_expsyms can be an extended regexp of symbols to exclude
9067  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9068  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9069  # as well as any symbol that contains `d'.
9070  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9071  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9072  # platforms (ab)use it in PIC code, but their linkers get confused if
9073  # the symbol is explicitly referenced.  Since portable code cannot
9074  # rely on this symbol name, it's probably fine to never include it in
9075  # preloaded symbol tables.
9076  extract_expsyms_cmds=
9077  # Just being paranoid about ensuring that cc_basename is set.
9078  for cc_temp in $compiler""; do
9079  case $cc_temp in
9080    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9081    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9082    \-*) ;;
9083    *) break;;
9084  esac
9085done
9086cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9087
9088  case $host_os in
9089  cygwin* | mingw* | pw32*)
9090    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9091    # When not using gcc, we currently assume that we are using
9092    # Microsoft Visual C++.
9093    if test "$GCC" != yes; then
9094      with_gnu_ld=no
9095    fi
9096    ;;
9097  interix*)
9098    # we just hope/assume this is gcc and not c89 (= MSVC++)
9099    with_gnu_ld=yes
9100    ;;
9101  openbsd*)
9102    with_gnu_ld=no
9103    ;;
9104  esac
9105
9106  ld_shlibs=yes
9107  if test "$with_gnu_ld" = yes; then
9108    # If archive_cmds runs LD, not CC, wlarc should be empty
9109    wlarc='${wl}'
9110
9111    # Set some defaults for GNU ld with shared library support. These
9112    # are reset later if shared libraries are not supported. Putting them
9113    # here allows them to be overridden if necessary.
9114    runpath_var=LD_RUN_PATH
9115    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9116    export_dynamic_flag_spec='${wl}--export-dynamic'
9117    # ancient GNU ld didn't support --whole-archive et. al.
9118    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9119        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9120      else
9121        whole_archive_flag_spec=
9122    fi
9123    supports_anon_versioning=no
9124    case `$LD -v 2>/dev/null` in
9125      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9126      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9127      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9128      *\ 2.11.*) ;; # other 2.11 versions
9129      *) supports_anon_versioning=yes ;;
9130    esac
9131
9132    # See if GNU ld supports shared libraries.
9133    case $host_os in
9134    aix3* | aix4* | aix5*)
9135      # On AIX/PPC, the GNU linker is very broken
9136      if test "$host_cpu" != ia64; then
9137        ld_shlibs=no
9138        cat <<EOF 1>&2
9139
9140*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9141*** to be unable to reliably create shared libraries on AIX.
9142*** Therefore, libtool is disabling shared libraries support.  If you
9143*** really care for shared libraries, you may want to modify your PATH
9144*** so that a non-GNU linker is found, and then restart.
9145
9146EOF
9147      fi
9148      ;;
9149
9150    amigaos*)
9151      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)'
9152      hardcode_libdir_flag_spec='-L$libdir'
9153      hardcode_minus_L=yes
9154
9155      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9156      # that the semantics of dynamic libraries on AmigaOS, at least up
9157      # to version 4, is to share data among multiple programs linked
9158      # with the same dynamic library.  Since this doesn't match the
9159      # behavior of shared libraries on other platforms, we can't use
9160      # them.
9161      ld_shlibs=no
9162      ;;
9163
9164    beos*)
9165      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9166        allow_undefined_flag=unsupported
9167        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9168        # support --undefined.  This deserves some investigation.  FIXME
9169        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170      else
9171        ld_shlibs=no
9172      fi
9173      ;;
9174
9175    cygwin* | mingw* | pw32*)
9176      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9177      # as there is no search path for DLLs.
9178      hardcode_libdir_flag_spec='-L$libdir'
9179      allow_undefined_flag=unsupported
9180      always_export_symbols=no
9181      enable_shared_with_static_runtimes=yes
9182      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9183
9184      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9185        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9186        # If the export-symbols file already is a .def file (1st line
9187        # is EXPORTS), use it as is; otherwise, prepend...
9188        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9189          cp $export_symbols $output_objdir/$soname.def;
9190        else
9191          echo EXPORTS > $output_objdir/$soname.def;
9192          cat $export_symbols >> $output_objdir/$soname.def;
9193        fi~
9194        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9195      else
9196        ld_shlibs=no
9197      fi
9198      ;;
9199
9200    interix3*)
9201      hardcode_direct=no
9202      hardcode_shlibpath_var=no
9203      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9204      export_dynamic_flag_spec='${wl}-E'
9205      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9206      # Instead, shared libraries are loaded at an image base (0x10000000 by
9207      # default) and relocated if they conflict, which is a slow very memory
9208      # consuming and fragmenting process.  To avoid this, we pick a random,
9209      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9210      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9211      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9212      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'
9213      ;;
9214
9215    linux*)
9216      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9217        tmp_addflag=
9218        case $cc_basename,$host_cpu in
9219        pgcc*)                          # Portland Group C compiler
9220          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'
9221          tmp_addflag=' $pic_flag'
9222          ;;
9223        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9224          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'
9225          tmp_addflag=' $pic_flag -Mnomain' ;;
9226        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9227          tmp_addflag=' -i_dynamic' ;;
9228        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9229          tmp_addflag=' -i_dynamic -nofor_main' ;;
9230        ifc* | ifort*)                  # Intel Fortran compiler
9231          tmp_addflag=' -nofor_main' ;;
9232        esac
9233        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234
9235        if test $supports_anon_versioning = yes; then
9236          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9237  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238  $echo "local: *; };" >> $output_objdir/$libname.ver~
9239          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9240        fi
9241      else
9242        ld_shlibs=no
9243      fi
9244      ;;
9245
9246    netbsd*)
9247      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9248        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9249        wlarc=
9250      else
9251        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253      fi
9254      ;;
9255
9256    solaris*)
9257      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9258        ld_shlibs=no
9259        cat <<EOF 1>&2
9260
9261*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9262*** create shared libraries on Solaris systems.  Therefore, libtool
9263*** is disabling shared libraries support.  We urge you to upgrade GNU
9264*** binutils to release 2.9.1 or newer.  Another option is to modify
9265*** your PATH or compiler configuration so that the native linker is
9266*** used, and then restart.
9267
9268EOF
9269      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9270        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272      else
9273        ld_shlibs=no
9274      fi
9275      ;;
9276
9277    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9278      case `$LD -v 2>&1` in
9279        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9280        ld_shlibs=no
9281        cat <<_LT_EOF 1>&2
9282
9283*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9284*** reliably create shared libraries on SCO systems.  Therefore, libtool
9285*** is disabling shared libraries support.  We urge you to upgrade GNU
9286*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9287*** your PATH or compiler configuration so that the native linker is
9288*** used, and then restart.
9289
9290_LT_EOF
9291        ;;
9292        *)
9293          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9294            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9295            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9296            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9297          else
9298            ld_shlibs=no
9299          fi
9300        ;;
9301      esac
9302      ;;
9303
9304    sunos4*)
9305      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306      wlarc=
9307      hardcode_direct=yes
9308      hardcode_shlibpath_var=no
9309      ;;
9310
9311    *)
9312      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9313        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9315      else
9316        ld_shlibs=no
9317      fi
9318      ;;
9319    esac
9320
9321    if test "$ld_shlibs" = no; then
9322      runpath_var=
9323      hardcode_libdir_flag_spec=
9324      export_dynamic_flag_spec=
9325      whole_archive_flag_spec=
9326    fi
9327  else
9328    # PORTME fill in a description of your system's linker (not GNU ld)
9329    case $host_os in
9330    aix3*)
9331      allow_undefined_flag=unsupported
9332      always_export_symbols=yes
9333      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'
9334      # Note: this linker hardcodes the directories in LIBPATH if there
9335      # are no directories specified by -L.
9336      hardcode_minus_L=yes
9337      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9338        # Neither direct hardcoding nor static linking is supported with a
9339        # broken collect2.
9340        hardcode_direct=unsupported
9341      fi
9342      ;;
9343
9344    aix4* | aix5*)
9345      if test "$host_cpu" = ia64; then
9346        # On IA64, the linker does run time linking by default, so we don't
9347        # have to do anything special.
9348        aix_use_runtimelinking=no
9349        exp_sym_flag='-Bexport'
9350        no_entry_flag=""
9351      else
9352        # If we're using GNU nm, then we don't want the "-C" option.
9353        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9354        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9355          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'
9356        else
9357          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'
9358        fi
9359        aix_use_runtimelinking=no
9360
9361        # Test if we are trying to use run time linking or normal
9362        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9363        # need to do runtime linking.
9364        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9365          for ld_flag in $LDFLAGS; do
9366          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9367            aix_use_runtimelinking=yes
9368            break
9369          fi
9370          done
9371          ;;
9372        esac
9373
9374        exp_sym_flag='-bexport'
9375        no_entry_flag='-bnoentry'
9376      fi
9377
9378      # When large executables or shared objects are built, AIX ld can
9379      # have problems creating the table of contents.  If linking a library
9380      # or program results in "error TOC overflow" add -mminimal-toc to
9381      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9382      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9383
9384      archive_cmds=''
9385      hardcode_direct=yes
9386      hardcode_libdir_separator=':'
9387      link_all_deplibs=yes
9388
9389      if test "$GCC" = yes; then
9390        case $host_os in aix4.[012]|aix4.[012].*)
9391        # We only want to do this on AIX 4.2 and lower, the check
9392        # below for broken collect2 doesn't work under 4.3+
9393          collect2name=`${CC} -print-prog-name=collect2`
9394          if test -f "$collect2name" && \
9395           strings "$collect2name" | grep resolve_lib_name >/dev/null
9396          then
9397          # We have reworked collect2
9398          hardcode_direct=yes
9399          else
9400          # We have old collect2
9401          hardcode_direct=unsupported
9402          # It fails to find uninstalled libraries when the uninstalled
9403          # path is not listed in the libpath.  Setting hardcode_minus_L
9404          # to unsupported forces relinking
9405          hardcode_minus_L=yes
9406          hardcode_libdir_flag_spec='-L$libdir'
9407          hardcode_libdir_separator=
9408          fi
9409          ;;
9410        esac
9411        shared_flag='-shared'
9412        if test "$aix_use_runtimelinking" = yes; then
9413          shared_flag="$shared_flag "'${wl}-G'
9414        fi
9415      else
9416        # not using gcc
9417        if test "$host_cpu" = ia64; then
9418        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9419        # chokes on -Wl,-G. The following line is correct:
9420          shared_flag='-G'
9421        else
9422          if test "$aix_use_runtimelinking" = yes; then
9423            shared_flag='${wl}-G'
9424          else
9425            shared_flag='${wl}-bM:SRE'
9426          fi
9427        fi
9428      fi
9429
9430      # It seems that -bexpall does not export symbols beginning with
9431      # underscore (_), so it is better to generate a list of symbols to export.
9432      always_export_symbols=yes
9433      if test "$aix_use_runtimelinking" = yes; then
9434        # Warning - without using the other runtime loading flags (-brtl),
9435        # -berok will link without error, but may produce a broken library.
9436        allow_undefined_flag='-berok'
9437       # Determine the default libpath from the value encoded in an empty executable.
9438       cat >conftest.$ac_ext <<_ACEOF
9439/* confdefs.h.  */
9440_ACEOF
9441cat confdefs.h >>conftest.$ac_ext
9442cat >>conftest.$ac_ext <<_ACEOF
9443/* end confdefs.h.  */
9444
9445int
9446main ()
9447{
9448
9449  ;
9450  return 0;
9451}
9452_ACEOF
9453rm -f conftest.$ac_objext conftest$ac_exeext
9454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455  (eval $ac_link) 2>conftest.er1
9456  ac_status=$?
9457  grep -v '^ *+' conftest.er1 >conftest.err
9458  rm -f conftest.er1
9459  cat conftest.err >&5
9460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461  (exit $ac_status); } &&
9462         { ac_try='test -z "$ac_c_werror_flag"
9463                         || test ! -s conftest.err'
9464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465  (eval $ac_try) 2>&5
9466  ac_status=$?
9467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468  (exit $ac_status); }; } &&
9469         { ac_try='test -s conftest$ac_exeext'
9470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471  (eval $ac_try) 2>&5
9472  ac_status=$?
9473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474  (exit $ac_status); }; }; then
9475
9476aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9477}'`
9478# Check for a 64-bit object if we didn't find anything.
9479if 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; }
9480}'`; fi
9481else
9482  echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485fi
9486rm -f conftest.err conftest.$ac_objext \
9487      conftest$ac_exeext conftest.$ac_ext
9488if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9489
9490       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9491        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"
9492       else
9493        if test "$host_cpu" = ia64; then
9494          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9495          allow_undefined_flag="-z nodefs"
9496          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"
9497        else
9498         # Determine the default libpath from the value encoded in an empty executable.
9499         cat >conftest.$ac_ext <<_ACEOF
9500/* confdefs.h.  */
9501_ACEOF
9502cat confdefs.h >>conftest.$ac_ext
9503cat >>conftest.$ac_ext <<_ACEOF
9504/* end confdefs.h.  */
9505
9506int
9507main ()
9508{
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514rm -f conftest.$ac_objext conftest$ac_exeext
9515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516  (eval $ac_link) 2>conftest.er1
9517  ac_status=$?
9518  grep -v '^ *+' conftest.er1 >conftest.err
9519  rm -f conftest.er1
9520  cat conftest.err >&5
9521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522  (exit $ac_status); } &&
9523         { ac_try='test -z "$ac_c_werror_flag"
9524                         || test ! -s conftest.err'
9525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526  (eval $ac_try) 2>&5
9527  ac_status=$?
9528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529  (exit $ac_status); }; } &&
9530         { ac_try='test -s conftest$ac_exeext'
9531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532  (eval $ac_try) 2>&5
9533  ac_status=$?
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); }; }; then
9536
9537aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9538}'`
9539# Check for a 64-bit object if we didn't find anything.
9540if 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; }
9541}'`; fi
9542else
9543  echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546fi
9547rm -f conftest.err conftest.$ac_objext \
9548      conftest$ac_exeext conftest.$ac_ext
9549if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9550
9551         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9552          # Warning - without using the other run time loading flags,
9553          # -berok will link without error, but may produce a broken library.
9554          no_undefined_flag=' ${wl}-bernotok'
9555          allow_undefined_flag=' ${wl}-berok'
9556          # Exported symbols can be pulled into shared objects from archives
9557          whole_archive_flag_spec='$convenience'
9558          archive_cmds_need_lc=yes
9559          # This is similar to how AIX traditionally builds its shared libraries.
9560          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'
9561        fi
9562      fi
9563      ;;
9564
9565    amigaos*)
9566      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)'
9567      hardcode_libdir_flag_spec='-L$libdir'
9568      hardcode_minus_L=yes
9569      # see comment about different semantics on the GNU ld section
9570      ld_shlibs=no
9571      ;;
9572
9573    bsdi[45]*)
9574      export_dynamic_flag_spec=-rdynamic
9575      ;;
9576
9577    cygwin* | mingw* | pw32*)
9578      # When not using gcc, we currently assume that we are using
9579      # Microsoft Visual C++.
9580      # hardcode_libdir_flag_spec is actually meaningless, as there is
9581      # no search path for DLLs.
9582      hardcode_libdir_flag_spec=' '
9583      allow_undefined_flag=unsupported
9584      # Tell ltmain to make .lib files, not .a files.
9585      libext=lib
9586      # Tell ltmain to make .dll files, not .so files.
9587      shrext_cmds=".dll"
9588      # FIXME: Setting linknames here is a bad hack.
9589      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9590      # The linker will automatically build a .lib file if we build a DLL.
9591      old_archive_From_new_cmds='true'
9592      # FIXME: Should let the user specify the lib program.
9593      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9594      fix_srcfile_path='`cygpath -w "$srcfile"`'
9595      enable_shared_with_static_runtimes=yes
9596      ;;
9597
9598    darwin* | rhapsody*)
9599      case $host_os in
9600        rhapsody* | darwin1.[012])
9601         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9602         ;;
9603       *) # Darwin 1.3 on
9604         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9605           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9606         else
9607           case ${MACOSX_DEPLOYMENT_TARGET} in
9608             10.[012])
9609               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9610               ;;
9611             10.*)
9612               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9613               ;;
9614           esac
9615         fi
9616         ;;
9617      esac
9618      archive_cmds_need_lc=no
9619      hardcode_direct=no
9620      hardcode_automatic=yes
9621      hardcode_shlibpath_var=unsupported
9622      whole_archive_flag_spec=''
9623      link_all_deplibs=yes
9624    if test "$GCC" = yes ; then
9625        output_verbose_link_cmd='echo'
9626        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9627      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9628      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9629      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}'
9630      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}'
9631    else
9632      case $cc_basename in
9633        xlc*)
9634         output_verbose_link_cmd='echo'
9635         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9636         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9637          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9638         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}'
9639          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}'
9640          ;;
9641       *)
9642         ld_shlibs=no
9643          ;;
9644      esac
9645    fi
9646      ;;
9647
9648    dgux*)
9649      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650      hardcode_libdir_flag_spec='-L$libdir'
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    freebsd1*)
9655      ld_shlibs=no
9656      ;;
9657
9658    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9659    # support.  Future versions do this automatically, but an explicit c++rt0.o
9660    # does not break anything, and helps significantly (at the cost of a little
9661    # extra space).
9662    freebsd2.2*)
9663      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9664      hardcode_libdir_flag_spec='-R$libdir'
9665      hardcode_direct=yes
9666      hardcode_shlibpath_var=no
9667      ;;
9668
9669    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9670    freebsd2*)
9671      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9672      hardcode_direct=yes
9673      hardcode_minus_L=yes
9674      hardcode_shlibpath_var=no
9675      ;;
9676
9677    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9678    freebsd* | kfreebsd*-gnu | dragonfly*)
9679      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9680      hardcode_libdir_flag_spec='-R$libdir'
9681      hardcode_direct=yes
9682      hardcode_shlibpath_var=no
9683      ;;
9684
9685    hpux9*)
9686      if test "$GCC" = yes; then
9687        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'
9688      else
9689        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'
9690      fi
9691      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9692      hardcode_libdir_separator=:
9693      hardcode_direct=yes
9694
9695      # hardcode_minus_L: Not really in the search PATH,
9696      # but as the default location of the library.
9697      hardcode_minus_L=yes
9698      export_dynamic_flag_spec='${wl}-E'
9699      ;;
9700
9701    hpux10*)
9702      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9703        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9704      else
9705        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9706      fi
9707      if test "$with_gnu_ld" = no; then
9708        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9709        hardcode_libdir_separator=:
9710
9711        hardcode_direct=yes
9712        export_dynamic_flag_spec='${wl}-E'
9713
9714        # hardcode_minus_L: Not really in the search PATH,
9715        # but as the default location of the library.
9716        hardcode_minus_L=yes
9717      fi
9718      ;;
9719
9720    hpux11*)
9721      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9722        case $host_cpu in
9723        hppa*64*)
9724          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9725          ;;
9726        ia64*)
9727          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9728          ;;
9729        *)
9730          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9731          ;;
9732        esac
9733      else
9734        case $host_cpu in
9735        hppa*64*)
9736          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737          ;;
9738        ia64*)
9739          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9740          ;;
9741        *)
9742          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9743          ;;
9744        esac
9745      fi
9746      if test "$with_gnu_ld" = no; then
9747        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9748        hardcode_libdir_separator=:
9749
9750        case $host_cpu in
9751        hppa*64*|ia64*)
9752          hardcode_libdir_flag_spec_ld='+b $libdir'
9753          hardcode_direct=no
9754          hardcode_shlibpath_var=no
9755          ;;
9756        *)
9757          hardcode_direct=yes
9758          export_dynamic_flag_spec='${wl}-E'
9759
9760          # hardcode_minus_L: Not really in the search PATH,
9761          # but as the default location of the library.
9762          hardcode_minus_L=yes
9763          ;;
9764        esac
9765      fi
9766      ;;
9767
9768    irix5* | irix6* | nonstopux*)
9769      if test "$GCC" = yes; then
9770        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'
9771      else
9772        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'
9773        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9774      fi
9775      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9776      hardcode_libdir_separator=:
9777      link_all_deplibs=yes
9778      ;;
9779
9780    netbsd*)
9781      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9782        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9783      else
9784        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9785      fi
9786      hardcode_libdir_flag_spec='-R$libdir'
9787      hardcode_direct=yes
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    newsos6)
9792      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793      hardcode_direct=yes
9794      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795      hardcode_libdir_separator=:
9796      hardcode_shlibpath_var=no
9797      ;;
9798
9799    openbsd*)
9800      hardcode_direct=yes
9801      hardcode_shlibpath_var=no
9802      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9803        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9804        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9805        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9806        export_dynamic_flag_spec='${wl}-E'
9807      else
9808       case $host_os in
9809         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9810           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811           hardcode_libdir_flag_spec='-R$libdir'
9812           ;;
9813         *)
9814           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9815           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9816           ;;
9817       esac
9818      fi
9819      ;;
9820
9821    os2*)
9822      hardcode_libdir_flag_spec='-L$libdir'
9823      hardcode_minus_L=yes
9824      allow_undefined_flag=unsupported
9825      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'
9826      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9827      ;;
9828
9829    osf3*)
9830      if test "$GCC" = yes; then
9831        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9832        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'
9833      else
9834        allow_undefined_flag=' -expect_unresolved \*'
9835        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'
9836      fi
9837      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9838      hardcode_libdir_separator=:
9839      ;;
9840
9841    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9842      if test "$GCC" = yes; then
9843        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9844        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'
9845        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9846      else
9847        allow_undefined_flag=' -expect_unresolved \*'
9848        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'
9849        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9850        $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'
9851
9852        # Both c and cxx compiler support -rpath directly
9853        hardcode_libdir_flag_spec='-rpath $libdir'
9854      fi
9855      hardcode_libdir_separator=:
9856      ;;
9857
9858    solaris*)
9859      no_undefined_flag=' -z text'
9860      if test "$GCC" = yes; then
9861        wlarc='${wl}'
9862        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9863        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9864          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9865      else
9866        wlarc=''
9867        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9869        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9870      fi
9871      hardcode_libdir_flag_spec='-R$libdir'
9872      hardcode_shlibpath_var=no
9873      case $host_os in
9874      solaris2.[0-5] | solaris2.[0-5].*) ;;
9875      *)
9876        # The compiler driver will combine linker options so we
9877        # cannot just pass the convience library names through
9878        # without $wl, iff we do not link with $LD.
9879        # Luckily, gcc supports the same syntax we need for Sun Studio.
9880        # Supported since Solaris 2.6 (maybe 2.5.1?)
9881        case $wlarc in
9882        '')
9883          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9884        *)
9885          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' ;;
9886        esac ;;
9887      esac
9888      link_all_deplibs=yes
9889      ;;
9890
9891    sunos4*)
9892      if test "x$host_vendor" = xsequent; then
9893        # Use $CC to link under sequent, because it throws in some extra .o
9894        # files that make .init and .fini sections work.
9895        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9896      else
9897        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9898      fi
9899      hardcode_libdir_flag_spec='-L$libdir'
9900      hardcode_direct=yes
9901      hardcode_minus_L=yes
9902      hardcode_shlibpath_var=no
9903      ;;
9904
9905    sysv4)
9906      case $host_vendor in
9907        sni)
9908          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909          hardcode_direct=yes # is this really true???
9910        ;;
9911        siemens)
9912          ## LD is ld it makes a PLAMLIB
9913          ## CC just makes a GrossModule.
9914          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9915          reload_cmds='$CC -r -o $output$reload_objs'
9916          hardcode_direct=no
9917        ;;
9918        motorola)
9919          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9921        ;;
9922      esac
9923      runpath_var='LD_RUN_PATH'
9924      hardcode_shlibpath_var=no
9925      ;;
9926
9927    sysv4.3*)
9928      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929      hardcode_shlibpath_var=no
9930      export_dynamic_flag_spec='-Bexport'
9931      ;;
9932
9933    sysv4*MP*)
9934      if test -d /usr/nec; then
9935        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936        hardcode_shlibpath_var=no
9937        runpath_var=LD_RUN_PATH
9938        hardcode_runpath_var=yes
9939        ld_shlibs=yes
9940      fi
9941      ;;
9942
9943    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9944      no_undefined_flag='${wl}-z,text'
9945      archive_cmds_need_lc=no
9946      hardcode_shlibpath_var=no
9947      runpath_var='LD_RUN_PATH'
9948
9949      if test "$GCC" = yes; then
9950        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9951        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952      else
9953        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9954        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9955      fi
9956      ;;
9957
9958    sysv5* | sco3.2v5* | sco5v6*)
9959      # Note: We can NOT use -z defs as we might desire, because we do not
9960      # link with -lc, and that would cause any symbols used from libc to
9961      # always be unresolved, which means just about no library would
9962      # ever link correctly.  If we're not using GNU ld we use -z text
9963      # though, which does catch some bad symbols but isn't as heavy-handed
9964      # as -z defs.
9965      no_undefined_flag='${wl}-z,text'
9966      allow_undefined_flag='${wl}-z,nodefs'
9967      archive_cmds_need_lc=no
9968      hardcode_shlibpath_var=no
9969      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9970      hardcode_libdir_separator=':'
9971      link_all_deplibs=yes
9972      export_dynamic_flag_spec='${wl}-Bexport'
9973      runpath_var='LD_RUN_PATH'
9974
9975      if test "$GCC" = yes; then
9976        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9977        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9978      else
9979        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9980        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981      fi
9982      ;;
9983
9984    uts4*)
9985      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9986      hardcode_libdir_flag_spec='-L$libdir'
9987      hardcode_shlibpath_var=no
9988      ;;
9989
9990    *)
9991      ld_shlibs=no
9992      ;;
9993    esac
9994  fi
9995
9996echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9997echo "${ECHO_T}$ld_shlibs" >&6
9998test "$ld_shlibs" = no && can_build_shared=no
9999
10000#
10001# Do we need to explicitly link libc?
10002#
10003case "x$archive_cmds_need_lc" in
10004x|xyes)
10005  # Assume -lc should be added
10006  archive_cmds_need_lc=yes
10007
10008  if test "$enable_shared" = yes && test "$GCC" = yes; then
10009    case $archive_cmds in
10010    *'~'*)
10011      # FIXME: we may have to deal with multi-command sequences.
10012      ;;
10013    '$CC '*)
10014      # Test whether the compiler implicitly links with -lc since on some
10015      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10016      # to ld, don't add -lc before -lgcc.
10017      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10018echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10019      $rm conftest*
10020      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10021
10022      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023  (eval $ac_compile) 2>&5
10024  ac_status=$?
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); } 2>conftest.err; then
10027        soname=conftest
10028        lib=conftest
10029        libobjs=conftest.$ac_objext
10030        deplibs=
10031        wl=$lt_prog_compiler_wl
10032        pic_flag=$lt_prog_compiler_pic
10033        compiler_flags=-v
10034        linker_flags=-v
10035        verstring=
10036        output_objdir=.
10037        libname=conftest
10038        lt_save_allow_undefined_flag=$allow_undefined_flag
10039        allow_undefined_flag=
10040        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10041  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }
10045        then
10046          archive_cmds_need_lc=no
10047        else
10048          archive_cmds_need_lc=yes
10049        fi
10050        allow_undefined_flag=$lt_save_allow_undefined_flag
10051      else
10052        cat conftest.err 1>&5
10053      fi
10054      $rm conftest*
10055      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10056echo "${ECHO_T}$archive_cmds_need_lc" >&6
10057      ;;
10058    esac
10059  fi
10060  ;;
10061esac
10062
10063echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10064echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10065library_names_spec=
10066libname_spec='lib$name'
10067soname_spec=
10068shrext_cmds=".so"
10069postinstall_cmds=
10070postuninstall_cmds=
10071finish_cmds=
10072finish_eval=
10073shlibpath_var=
10074shlibpath_overrides_runpath=unknown
10075version_type=none
10076dynamic_linker="$host_os ld.so"
10077sys_lib_dlsearch_path_spec="/lib /usr/lib"
10078if test "$GCC" = yes; then
10079  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10080  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10081    # if the path contains ";" then we assume it to be the separator
10082    # otherwise default to the standard path separator (i.e. ":") - it is
10083    # assumed that no part of a normal pathname contains ";" but that should
10084    # okay in the real world where ";" in dirpaths is itself problematic.
10085    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10086  else
10087    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10088  fi
10089else
10090  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10091fi
10092need_lib_prefix=unknown
10093hardcode_into_libs=no
10094
10095# when you set need_version to no, make sure it does not cause -set_version
10096# flags to be left without arguments
10097need_version=unknown
10098
10099case $host_os in
10100aix3*)
10101  version_type=linux
10102  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10103  shlibpath_var=LIBPATH
10104
10105  # AIX 3 has no versioning support, so we append a major version to the name.
10106  soname_spec='${libname}${release}${shared_ext}$major'
10107  ;;
10108
10109aix4* | aix5*)
10110  version_type=linux
10111  need_lib_prefix=no
10112  need_version=no
10113  hardcode_into_libs=yes
10114  if test "$host_cpu" = ia64; then
10115    # AIX 5 supports IA64
10116    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10117    shlibpath_var=LD_LIBRARY_PATH
10118  else
10119    # With GCC up to 2.95.x, collect2 would create an import file
10120    # for dependence libraries.  The import file would start with
10121    # the line `#! .'.  This would cause the generated library to
10122    # depend on `.', always an invalid library.  This was fixed in
10123    # development snapshots of GCC prior to 3.0.
10124    case $host_os in
10125      aix4 | aix4.[01] | aix4.[01].*)
10126      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10127           echo ' yes '
10128           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10129        :
10130      else
10131        can_build_shared=no
10132      fi
10133      ;;
10134    esac
10135    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10136    # soname into executable. Probably we can add versioning support to
10137    # collect2, so additional links can be useful in future.
10138    if test "$aix_use_runtimelinking" = yes; then
10139      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10140      # instead of lib<name>.a to let people know that these are not
10141      # typical AIX shared libraries.
10142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143    else
10144      # We preserve .a as extension for shared libraries through AIX4.2
10145      # and later when we are not doing run time linking.
10146      library_names_spec='${libname}${release}.a $libname.a'
10147      soname_spec='${libname}${release}${shared_ext}$major'
10148    fi
10149    shlibpath_var=LIBPATH
10150  fi
10151  ;;
10152
10153amigaos*)
10154  library_names_spec='$libname.ixlibrary $libname.a'
10155  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10156  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'
10157  ;;
10158
10159beos*)
10160  library_names_spec='${libname}${shared_ext}'
10161  dynamic_linker="$host_os ld.so"
10162  shlibpath_var=LIBRARY_PATH
10163  ;;
10164
10165bsdi[45]*)
10166  version_type=linux
10167  need_version=no
10168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169  soname_spec='${libname}${release}${shared_ext}$major'
10170  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10171  shlibpath_var=LD_LIBRARY_PATH
10172  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10173  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10174  # the default ld.so.conf also contains /usr/contrib/lib and
10175  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10176  # libtool to hard-code these into programs
10177  ;;
10178
10179cygwin* | mingw* | pw32*)
10180  version_type=windows
10181  shrext_cmds=".dll"
10182  need_version=no
10183  need_lib_prefix=no
10184
10185  case $GCC,$host_os in
10186  yes,cygwin* | yes,mingw* | yes,pw32*)
10187    library_names_spec='$libname.dll.a'
10188    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10189    postinstall_cmds='base_file=`basename \${file}`~
10190      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10191      dldir=$destdir/`dirname \$dlpath`~
10192      test -d \$dldir || mkdir -p \$dldir~
10193      $install_prog $dir/$dlname \$dldir/$dlname~
10194      chmod a+x \$dldir/$dlname'
10195    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10196      dlpath=$dir/\$dldll~
10197       $rm \$dlpath'
10198    shlibpath_overrides_runpath=yes
10199
10200    case $host_os in
10201    cygwin*)
10202      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10203      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10205      ;;
10206    mingw*)
10207      # MinGW DLLs use traditional 'lib' prefix
10208      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10210      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10211        # It is most probably a Windows format PATH printed by
10212        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10213        # path with ; separators, and with drive letters. We can handle the
10214        # drive letters (cygwin fileutils understands them), so leave them,
10215        # especially as we might pass files found there to a mingw objdump,
10216        # which wouldn't understand a cygwinified path. Ahh.
10217        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10218      else
10219        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10220      fi
10221      ;;
10222    pw32*)
10223      # pw32 DLLs use 'pw' prefix rather than 'lib'
10224      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225      ;;
10226    esac
10227    ;;
10228
10229  *)
10230    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10231    ;;
10232  esac
10233  dynamic_linker='Win32 ld.exe'
10234  # FIXME: first we should search . and the directory the executable is in
10235  shlibpath_var=PATH
10236  ;;
10237
10238darwin* | rhapsody*)
10239  dynamic_linker="$host_os dyld"
10240  version_type=darwin
10241  need_lib_prefix=no
10242  need_version=no
10243  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10244  soname_spec='${libname}${release}${major}$shared_ext'
10245  shlibpath_overrides_runpath=yes
10246  shlibpath_var=DYLD_LIBRARY_PATH
10247  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10248  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10249  if test "$GCC" = yes; then
10250    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"`
10251  else
10252    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10253  fi
10254  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10255  ;;
10256
10257dgux*)
10258  version_type=linux
10259  need_lib_prefix=no
10260  need_version=no
10261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10262  soname_spec='${libname}${release}${shared_ext}$major'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  ;;
10265
10266freebsd1*)
10267  dynamic_linker=no
10268  ;;
10269
10270kfreebsd*-gnu)
10271  version_type=linux
10272  need_lib_prefix=no
10273  need_version=no
10274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10275  soname_spec='${libname}${release}${shared_ext}$major'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  shlibpath_overrides_runpath=no
10278  hardcode_into_libs=yes
10279  dynamic_linker='GNU ld.so'
10280  ;;
10281
10282freebsd* | dragonfly*)
10283  # DragonFly does not have aout.  When/if they implement a new
10284  # versioning mechanism, adjust this.
10285  if test -x /usr/bin/objformat; then
10286    objformat=`/usr/bin/objformat`
10287  else
10288    case $host_os in
10289    freebsd[123]*) objformat=aout ;;
10290    *) objformat=elf ;;
10291    esac
10292  fi
10293  version_type=freebsd-$objformat
10294  case $version_type in
10295    freebsd-elf*)
10296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10297      need_version=no
10298      need_lib_prefix=no
10299      ;;
10300    freebsd-*)
10301      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10302      need_version=yes
10303      ;;
10304  esac
10305  shlibpath_var=LD_LIBRARY_PATH
10306  case $host_os in
10307  freebsd2*)
10308    shlibpath_overrides_runpath=yes
10309    ;;
10310  freebsd3.[01]* | freebsdelf3.[01]*)
10311    shlibpath_overrides_runpath=yes
10312    hardcode_into_libs=yes
10313    ;;
10314  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10315  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10316    shlibpath_overrides_runpath=no
10317    hardcode_into_libs=yes
10318    ;;
10319  freebsd*) # from 4.6 on
10320    shlibpath_overrides_runpath=yes
10321    hardcode_into_libs=yes
10322    ;;
10323  esac
10324  ;;
10325
10326gnu*)
10327  version_type=linux
10328  need_lib_prefix=no
10329  need_version=no
10330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  shlibpath_var=LD_LIBRARY_PATH
10333  hardcode_into_libs=yes
10334  ;;
10335
10336hpux9* | hpux10* | hpux11*)
10337  # Give a soname corresponding to the major version so that dld.sl refuses to
10338  # link against other versions.
10339  version_type=sunos
10340  need_lib_prefix=no
10341  need_version=no
10342  case $host_cpu in
10343  ia64*)
10344    shrext_cmds='.so'
10345    hardcode_into_libs=yes
10346    dynamic_linker="$host_os dld.so"
10347    shlibpath_var=LD_LIBRARY_PATH
10348    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350    soname_spec='${libname}${release}${shared_ext}$major'
10351    if test "X$HPUX_IA64_MODE" = X32; then
10352      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10353    else
10354      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10355    fi
10356    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10357    ;;
10358   hppa*64*)
10359     shrext_cmds='.sl'
10360     hardcode_into_libs=yes
10361     dynamic_linker="$host_os dld.sl"
10362     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10363     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365     soname_spec='${libname}${release}${shared_ext}$major'
10366     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10367     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10368     ;;
10369   *)
10370    shrext_cmds='.sl'
10371    dynamic_linker="$host_os dld.sl"
10372    shlibpath_var=SHLIB_PATH
10373    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375    soname_spec='${libname}${release}${shared_ext}$major'
10376    ;;
10377  esac
10378  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10379  postinstall_cmds='chmod 555 $lib'
10380  ;;
10381
10382interix3*)
10383  version_type=linux
10384  need_lib_prefix=no
10385  need_version=no
10386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387  soname_spec='${libname}${release}${shared_ext}$major'
10388  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10389  shlibpath_var=LD_LIBRARY_PATH
10390  shlibpath_overrides_runpath=no
10391  hardcode_into_libs=yes
10392  ;;
10393
10394irix5* | irix6* | nonstopux*)
10395  case $host_os in
10396    nonstopux*) version_type=nonstopux ;;
10397    *)
10398        if test "$lt_cv_prog_gnu_ld" = yes; then
10399                version_type=linux
10400        else
10401                version_type=irix
10402        fi ;;
10403  esac
10404  need_lib_prefix=no
10405  need_version=no
10406  soname_spec='${libname}${release}${shared_ext}$major'
10407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10408  case $host_os in
10409  irix5* | nonstopux*)
10410    libsuff= shlibsuff=
10411    ;;
10412  *)
10413    case $LD in # libtool.m4 will add one of these switches to LD
10414    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10415      libsuff= shlibsuff= libmagic=32-bit;;
10416    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10417      libsuff=32 shlibsuff=N32 libmagic=N32;;
10418    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10419      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10420    *) libsuff= shlibsuff= libmagic=never-match;;
10421    esac
10422    ;;
10423  esac
10424  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10425  shlibpath_overrides_runpath=no
10426  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10427  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10428  hardcode_into_libs=yes
10429  ;;
10430
10431# No shared lib support for Linux oldld, aout, or coff.
10432linux*oldld* | linux*aout* | linux*coff*)
10433  dynamic_linker=no
10434  ;;
10435
10436# This must be Linux ELF.
10437linux*)
10438  version_type=linux
10439  need_lib_prefix=no
10440  need_version=no
10441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442  soname_spec='${libname}${release}${shared_ext}$major'
10443  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10444  shlibpath_var=LD_LIBRARY_PATH
10445  shlibpath_overrides_runpath=no
10446  # This implies no fast_install, which is unacceptable.
10447  # Some rework will be needed to allow for fast_install
10448  # before this can be enabled.
10449  hardcode_into_libs=yes
10450
10451  # Append ld.so.conf contents to the search path
10452  if test -f /etc/ld.so.conf; then
10453    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' ' '`
10454    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10455  fi
10456
10457  # We used to test for /lib/ld.so.1 and disable shared libraries on
10458  # powerpc, because MkLinux only supported shared libraries with the
10459  # GNU dynamic linker.  Since this was broken with cross compilers,
10460  # most powerpc-linux boxes support dynamic linking these days and
10461  # people can always --disable-shared, the test was removed, and we
10462  # assume the GNU/Linux dynamic linker is in use.
10463  dynamic_linker='GNU/Linux ld.so'
10464  ;;
10465
10466knetbsd*-gnu)
10467  version_type=linux
10468  need_lib_prefix=no
10469  need_version=no
10470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10471  soname_spec='${libname}${release}${shared_ext}$major'
10472  shlibpath_var=LD_LIBRARY_PATH
10473  shlibpath_overrides_runpath=no
10474  hardcode_into_libs=yes
10475  dynamic_linker='GNU ld.so'
10476  ;;
10477
10478netbsd*)
10479  version_type=sunos
10480  need_lib_prefix=no
10481  need_version=no
10482  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10484    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10485    dynamic_linker='NetBSD (a.out) ld.so'
10486  else
10487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10488    soname_spec='${libname}${release}${shared_ext}$major'
10489    dynamic_linker='NetBSD ld.elf_so'
10490  fi
10491  shlibpath_var=LD_LIBRARY_PATH
10492  shlibpath_overrides_runpath=yes
10493  hardcode_into_libs=yes
10494  ;;
10495
10496newsos6)
10497  version_type=linux
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499  shlibpath_var=LD_LIBRARY_PATH
10500  shlibpath_overrides_runpath=yes
10501  ;;
10502
10503nto-qnx*)
10504  version_type=linux
10505  need_lib_prefix=no
10506  need_version=no
10507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508  soname_spec='${libname}${release}${shared_ext}$major'
10509  shlibpath_var=LD_LIBRARY_PATH
10510  shlibpath_overrides_runpath=yes
10511  ;;
10512
10513openbsd*)
10514  version_type=sunos
10515  sys_lib_dlsearch_path_spec="/usr/lib"
10516  need_lib_prefix=no
10517  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10518  case $host_os in
10519    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10520    *)                         need_version=no  ;;
10521  esac
10522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10523  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10524  shlibpath_var=LD_LIBRARY_PATH
10525  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10526    case $host_os in
10527      openbsd2.[89] | openbsd2.[89].*)
10528        shlibpath_overrides_runpath=no
10529        ;;
10530      *)
10531        shlibpath_overrides_runpath=yes
10532        ;;
10533      esac
10534  else
10535    shlibpath_overrides_runpath=yes
10536  fi
10537  ;;
10538
10539os2*)
10540  libname_spec='$name'
10541  shrext_cmds=".dll"
10542  need_lib_prefix=no
10543  library_names_spec='$libname${shared_ext} $libname.a'
10544  dynamic_linker='OS/2 ld.exe'
10545  shlibpath_var=LIBPATH
10546  ;;
10547
10548osf3* | osf4* | osf5*)
10549  version_type=osf
10550  need_lib_prefix=no
10551  need_version=no
10552  soname_spec='${libname}${release}${shared_ext}$major'
10553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554  shlibpath_var=LD_LIBRARY_PATH
10555  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10556  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10557  ;;
10558
10559solaris*)
10560  version_type=linux
10561  need_lib_prefix=no
10562  need_version=no
10563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564  soname_spec='${libname}${release}${shared_ext}$major'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  shlibpath_overrides_runpath=yes
10567  hardcode_into_libs=yes
10568  # ldd complains unless libraries are executable
10569  postinstall_cmds='chmod +x $lib'
10570  ;;
10571
10572sunos4*)
10573  version_type=sunos
10574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10575  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10576  shlibpath_var=LD_LIBRARY_PATH
10577  shlibpath_overrides_runpath=yes
10578  if test "$with_gnu_ld" = yes; then
10579    need_lib_prefix=no
10580  fi
10581  need_version=yes
10582  ;;
10583
10584sysv4 | sysv4.3*)
10585  version_type=linux
10586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587  soname_spec='${libname}${release}${shared_ext}$major'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  case $host_vendor in
10590    sni)
10591      shlibpath_overrides_runpath=no
10592      need_lib_prefix=no
10593      export_dynamic_flag_spec='${wl}-Blargedynsym'
10594      runpath_var=LD_RUN_PATH
10595      ;;
10596    siemens)
10597      need_lib_prefix=no
10598      ;;
10599    motorola)
10600      need_lib_prefix=no
10601      need_version=no
10602      shlibpath_overrides_runpath=no
10603      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10604      ;;
10605  esac
10606  ;;
10607
10608sysv4*MP*)
10609  if test -d /usr/nec ;then
10610    version_type=linux
10611    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10612    soname_spec='$libname${shared_ext}.$major'
10613    shlibpath_var=LD_LIBRARY_PATH
10614  fi
10615  ;;
10616
10617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10618  version_type=freebsd-elf
10619  need_lib_prefix=no
10620  need_version=no
10621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10622  soname_spec='${libname}${release}${shared_ext}$major'
10623  shlibpath_var=LD_LIBRARY_PATH
10624  hardcode_into_libs=yes
10625  if test "$with_gnu_ld" = yes; then
10626    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10627    shlibpath_overrides_runpath=no
10628  else
10629    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10630    shlibpath_overrides_runpath=yes
10631    case $host_os in
10632      sco3.2v5*)
10633        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10634        ;;
10635    esac
10636  fi
10637  sys_lib_dlsearch_path_spec='/usr/lib'
10638  ;;
10639
10640uts4*)
10641  version_type=linux
10642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643  soname_spec='${libname}${release}${shared_ext}$major'
10644  shlibpath_var=LD_LIBRARY_PATH
10645  ;;
10646
10647*)
10648  dynamic_linker=no
10649  ;;
10650esac
10651echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10652echo "${ECHO_T}$dynamic_linker" >&6
10653test "$dynamic_linker" = no && can_build_shared=no
10654
10655variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10656if test "$GCC" = yes; then
10657  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10658fi
10659
10660echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10661echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10662hardcode_action=
10663if test -n "$hardcode_libdir_flag_spec" || \
10664   test -n "$runpath_var" || \
10665   test "X$hardcode_automatic" = "Xyes" ; then
10666
10667  # We can hardcode non-existant directories.
10668  if test "$hardcode_direct" != no &&
10669     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10670     # have to relink, otherwise we might link with an installed library
10671     # when we should be linking with a yet-to-be-installed one
10672     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10673     test "$hardcode_minus_L" != no; then
10674    # Linking always hardcodes the temporary library directory.
10675    hardcode_action=relink
10676  else
10677    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10678    hardcode_action=immediate
10679  fi
10680else
10681  # We cannot hardcode anything, or else we can only hardcode existing
10682  # directories.
10683  hardcode_action=unsupported
10684fi
10685echo "$as_me:$LINENO: result: $hardcode_action" >&5
10686echo "${ECHO_T}$hardcode_action" >&6
10687
10688if test "$hardcode_action" = relink; then
10689  # Fast installation is not supported
10690  enable_fast_install=no
10691elif test "$shlibpath_overrides_runpath" = yes ||
10692     test "$enable_shared" = no; then
10693  # Fast installation is not necessary
10694  enable_fast_install=needless
10695fi
10696
10697striplib=
10698old_striplib=
10699echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10700echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10701if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10702  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10703  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10704  echo "$as_me:$LINENO: result: yes" >&5
10705echo "${ECHO_T}yes" >&6
10706else
10707# FIXME - insert some real tests, host_os isn't really good enough
10708  case $host_os in
10709   darwin*)
10710       if test -n "$STRIP" ; then
10711         striplib="$STRIP -x"
10712         echo "$as_me:$LINENO: result: yes" >&5
10713echo "${ECHO_T}yes" >&6
10714       else
10715  echo "$as_me:$LINENO: result: no" >&5
10716echo "${ECHO_T}no" >&6
10717fi
10718       ;;
10719   *)
10720  echo "$as_me:$LINENO: result: no" >&5
10721echo "${ECHO_T}no" >&6
10722    ;;
10723  esac
10724fi
10725
10726if test "x$enable_dlopen" != xyes; then
10727  enable_dlopen=unknown
10728  enable_dlopen_self=unknown
10729  enable_dlopen_self_static=unknown
10730else
10731  lt_cv_dlopen=no
10732  lt_cv_dlopen_libs=
10733
10734  case $host_os in
10735  beos*)
10736    lt_cv_dlopen="load_add_on"
10737    lt_cv_dlopen_libs=