source: releases/2.9.7/configure

Last change on this file was 2224, checked in by tkr, 4 years ago

temporarily committing release candidate

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