source: branches/CouenneClassifier/Couenne/configure @ 1123

Last change on this file since 1123 was 1123, checked in by pbelotti, 5 years ago

updated coinutils and made usable with new thirdparty packages

File size: 1014.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Couenne trunk.
4#
5# Report bugs to <couenne@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 Carnegie Mellon University, International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Couenne'
431PACKAGE_TARNAME='couenne'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Couenne trunk'
434PACKAGE_BUGREPORT='couenne@list.coin-or.org'
435
436ac_unique_file="src/expression/expression.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COUENNE_SVN_REV CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX 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 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BONMIN_LIBS BONMIN_CFLAGS BONMIN_DATA BONMIN_DEPENDENCIES BONMIN_LIBS_INSTALLED BONMIN_CFLAGS_INSTALLED BONMIN_DATA_INSTALLED COUENNELIB_CFLAGS COUENNELIB_LIBS COUENNELIB_PCLIBS COUENNELIB_PCREQUIRES COUENNELIB_DEPENDENCIES COUENNELIB_CFLAGS_INSTALLED COUENNELIB_LIBS_INSTALLED COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE SCIP_LIBS SCIP_CFLAGS SCIP_DATA SCIP_DEPENDENCIES SCIP_LIBS_INSTALLED SCIP_CFLAGS_INSTALLED SCIP_DATA_INSTALLED COIN_HAS_SCIP_TRUE COIN_HAS_SCIP_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE CPXINCDIR GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CXXDEFS_set=${CXXDEFS+set}
977ac_env_CXXDEFS_value=$CXXDEFS
978ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
979ac_cv_env_CXXDEFS_value=$CXXDEFS
980ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
981ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
982ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
983ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
984ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
985ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
986ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
987ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
988ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
989ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
990ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
991ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_MPICXX_set=${MPICXX+set}
1001ac_env_MPICXX_value=$MPICXX
1002ac_cv_env_MPICXX_set=${MPICXX+set}
1003ac_cv_env_MPICXX_value=$MPICXX
1004ac_env_CPP_set=${CPP+set}
1005ac_env_CPP_value=$CPP
1006ac_cv_env_CPP_set=${CPP+set}
1007ac_cv_env_CPP_value=$CPP
1008ac_env_CXXCPP_set=${CXXCPP+set}
1009ac_env_CXXCPP_value=$CXXCPP
1010ac_cv_env_CXXCPP_set=${CXXCPP+set}
1011ac_cv_env_CXXCPP_value=$CXXCPP
1012ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1013ac_env_PKG_CONFIG_value=$PKG_CONFIG
1014ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1015ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Couenne trunk to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Couenne trunk:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097
1098  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1099  --enable-debug          compile all projects with debug options tests
1100                          (implies --disable-shared)
1101  --enable-debug-couenne compile project Couenne with debug compiler flags
1102  --enable-static[=PKGS]
1103                          build static libraries [default=no]
1104  --disable-dependency-tracking  speeds up one-time build
1105  --enable-dependency-tracking   do not reject slow dependency extractors
1106  --enable-maintainer-mode  enable make rules and dependencies not useful
1107                          (and sometimes confusing) to the casual installer
1108  --enable-shared[=PKGS]
1109                          build shared libraries [default=yes]
1110  --enable-fast-install[=PKGS]
1111                          optimize for fast installation [default=yes]
1112  --disable-libtool-lock  avoid locking (might break parallel builds)
1113  --disable-pkg-config    disable use of pkg-config (if available)
1114  --disable-interpackage-dependencies
1115                          disables deduction of Makefile dependencies from
1116                          package linker flags
1117  --disable-nauty-libcheck
1118                          skip the link check at configuration time
1119
1120Optional Packages:
1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1123  --with-couenne-verbosity
1124                          specify the debug verbosity level for project
1125                          Couenne
1126  --with-couenne-checklevel
1127                          specify the sanity check level for project Couenne
1128  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129  --with-pic              try to use only PIC/non-PIC objects [default=use
1130                          both]
1131  --with-tags[=TAGS]
1132                          include additional configurations [automatic]
1133  --with-coin-instdir     prefix of installation directory for precompiled
1134                          COIN packages
1135
1136  --with-bonmin-lib linker flags for using package Bonmin
1137  --with-bonmin-incdir directory with header files for using package Bonmin
1138  --with-bonmin-datadir directory with data files for using package Bonmin
1139  --with-asl-lib linker flags for using package ASL
1140  --with-asl-incdir directory with header files for using package ASL
1141  --with-asl-datadir directory with data files for using package ASL
1142  --with-nauty-incdir specify the header file directory for library Nauty
1143  --with-nauty-lib specify the flags used to link with the library Nauty
1144  --with-scip-lib linker flags for using package SCIP
1145  --with-scip-incdir directory with header files for using package SCIP
1146  --with-scip-datadir directory with data files for using package SCIP
1147  --with-cpx-lib linker flags for using package Cpx
1148  --with-cpx-incdir directory with header files for using package Cpx
1149  --with-cpx-datadir directory with data files for using package Cpx
1150  --with-cplex-incdir     specify the header file directory for library cplex
1151  --with-grb-lib linker flags for using package Grb
1152  --with-grb-incdir directory with header files for using package Grb
1153  --with-grb-datadir directory with data files for using package Grb
1154  --with-msk-lib linker flags for using package Msk
1155  --with-msk-incdir directory with header files for using package Msk
1156  --with-msk-datadir directory with data files for using package Msk
1157  --with-spx-lib linker flags for using package Spx
1158  --with-spx-incdir directory with header files for using package Spx
1159  --with-spx-datadir directory with data files for using package Spx
1160  --with-xpr-lib linker flags for using package Xpr
1161  --with-xpr-incdir directory with header files for using package Xpr
1162  --with-xpr-datadir directory with data files for using package Xpr
1163
1164Some influential environment variables:
1165  CDEFS       Additional -D flags to be used when compiling C code.
1166  ADD_CFLAGS  Additional C compiler options
1167  DBG_CFLAGS  Debug C compiler options
1168  OPT_CFLAGS  Optimize C compiler options
1169  CC          C compiler command
1170  CFLAGS      C compiler flags
1171  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1172              nonstandard directory <lib dir>
1173  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1174              headers in a nonstandard directory <include dir>
1175  MPICC       C MPI Compiler
1176  ADD_FFLAGS  Additional Fortran compiler options
1177  DBG_FFLAGS  Debug Fortran compiler options
1178  OPT_FFLAGS  Optimize Fortran compiler options
1179  F77         Fortran 77 compiler command
1180  FFLAGS      Fortran 77 compiler flags
1181  MPIF77      Fortran MPI Compiler
1182  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1183  ADD_CXXFLAGS
1184              Additional C++ compiler options
1185  DBG_CXXFLAGS
1186              Debug C++ compiler options
1187  OPT_CXXFLAGS
1188              Optimize C++ compiler options
1189  CXX         C++ compiler command
1190  CXXFLAGS    C++ compiler flags
1191  MPICXX      C++ MPI Compiler
1192  CPP         C preprocessor
1193  CXXCPP      C++ preprocessor
1194  PKG_CONFIG  path to pkg-config utility
1195
1196Use these variables to override the choices made by `configure' or to help
1197it to find libraries and programs with nonstandard names/locations.
1198
1199Report bugs to <couenne@list.coin-or.org>.
1200_ACEOF
1201fi
1202
1203if test "$ac_init_help" = "recursive"; then
1204  # If there are subdirs, report their specific --help.
1205  ac_popdir=`pwd`
1206  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1207    test -d $ac_dir || continue
1208    ac_builddir=.
1209
1210if test "$ac_dir" != .; then
1211  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1212  # A "../" for each directory in $ac_dir_suffix.
1213  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1214else
1215  ac_dir_suffix= ac_top_builddir=
1216fi
1217
1218case $srcdir in
1219  .)  # No --srcdir option.  We are building in place.
1220    ac_srcdir=.
1221    if test -z "$ac_top_builddir"; then
1222       ac_top_srcdir=.
1223    else
1224       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1225    fi ;;
1226  [\\/]* | ?:[\\/]* )  # Absolute path.
1227    ac_srcdir=$srcdir$ac_dir_suffix;
1228    ac_top_srcdir=$srcdir ;;
1229  *) # Relative path.
1230    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1231    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1232esac
1233
1234# Do not use `cd foo && pwd` to compute absolute paths, because
1235# the directories may not exist.
1236case `pwd` in
1237.) ac_abs_builddir="$ac_dir";;
1238*)
1239  case "$ac_dir" in
1240  .) ac_abs_builddir=`pwd`;;
1241  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1242  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1243  esac;;
1244esac
1245case $ac_abs_builddir in
1246.) ac_abs_top_builddir=${ac_top_builddir}.;;
1247*)
1248  case ${ac_top_builddir}. in
1249  .) ac_abs_top_builddir=$ac_abs_builddir;;
1250  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1251  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1252  esac;;
1253esac
1254case $ac_abs_builddir in
1255.) ac_abs_srcdir=$ac_srcdir;;
1256*)
1257  case $ac_srcdir in
1258  .) ac_abs_srcdir=$ac_abs_builddir;;
1259  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1260  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1261  esac;;
1262esac
1263case $ac_abs_builddir in
1264.) ac_abs_top_srcdir=$ac_top_srcdir;;
1265*)
1266  case $ac_top_srcdir in
1267  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1268  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1269  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1270  esac;;
1271esac
1272
1273    cd $ac_dir
1274    # Check for guested configure; otherwise get Cygnus style configure.
1275    if test -f $ac_srcdir/configure.gnu; then
1276      echo
1277      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1278    elif test -f $ac_srcdir/configure; then
1279      echo
1280      $SHELL $ac_srcdir/configure  --help=recursive
1281    elif test -f $ac_srcdir/configure.ac ||
1282           test -f $ac_srcdir/configure.in; then
1283      echo
1284      $ac_configure --help
1285    else
1286      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1287    fi
1288    cd $ac_popdir
1289  done
1290fi
1291
1292test -n "$ac_init_help" && exit 0
1293if $ac_init_version; then
1294  cat <<\_ACEOF
1295Couenne configure trunk
1296generated by GNU Autoconf 2.59
1297
1298Copyright (C) 2003 Free Software Foundation, Inc.
1299This configure script is free software; the Free Software Foundation
1300gives unlimited permission to copy, distribute and modify it.
1301
1302
1303Copyright 2006 Carnegie Mellon University, International Business Machines and others.
1304All Rights Reserved.
1305This file is part of the open source package Coin which is distributed
1306under the Eclipse Public License.
1307_ACEOF
1308  exit 0
1309fi
1310exec 5>config.log
1311cat >&5 <<_ACEOF
1312This file contains any messages produced by compilers while
1313running configure, to aid debugging if configure makes a mistake.
1314
1315It was created by Couenne $as_me trunk, which was
1316generated by GNU Autoconf 2.59.  Invocation command line was
1317
1318  $ $0 $@
1319
1320_ACEOF
1321{
1322cat <<_ASUNAME
1323## --------- ##
1324## Platform. ##
1325## --------- ##
1326
1327hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1328uname -m = `(uname -m) 2>/dev/null || echo unknown`
1329uname -r = `(uname -r) 2>/dev/null || echo unknown`
1330uname -s = `(uname -s) 2>/dev/null || echo unknown`
1331uname -v = `(uname -v) 2>/dev/null || echo unknown`
1332
1333/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1334/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1335
1336/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1337/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1338/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1339hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1340/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1341/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1342/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1343
1344_ASUNAME
1345
1346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347for as_dir in $PATH
1348do
1349  IFS=$as_save_IFS
1350  test -z "$as_dir" && as_dir=.
1351  echo "PATH: $as_dir"
1352done
1353
1354} >&5
1355
1356cat >&5 <<_ACEOF
1357
1358
1359## ----------- ##
1360## Core tests. ##
1361## ----------- ##
1362
1363_ACEOF
1364
1365
1366# Keep a trace of the command line.
1367# Strip out --no-create and --no-recursion so they do not pile up.
1368# Strip out --silent because we don't want to record it for future runs.
1369# Also quote any args containing shell meta-characters.
1370# Make two passes to allow for proper duplicate-argument suppression.
1371ac_configure_args=
1372ac_configure_args0=
1373ac_configure_args1=
1374ac_sep=
1375ac_must_keep_next=false
1376for ac_pass in 1 2
1377do
1378  for ac_arg
1379  do
1380    case $ac_arg in
1381    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1382    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1383    | -silent | --silent | --silen | --sile | --sil)
1384      continue ;;
1385    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1386      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1387    esac
1388    case $ac_pass in
1389    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1390    2)
1391      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1392      if test $ac_must_keep_next = true; then
1393        ac_must_keep_next=false # Got value, back to normal.
1394      else
1395        case $ac_arg in
1396          *=* | --config-cache | -C | -disable-* | --disable-* \
1397          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1398          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1399          | -with-* | --with-* | -without-* | --without-* | --x)
1400            case "$ac_configure_args0 " in
1401              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1402            esac
1403            ;;
1404          -* ) ac_must_keep_next=true ;;
1405        esac
1406      fi
1407      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1408      # Get rid of the leading space.
1409      ac_sep=" "
1410      ;;
1411    esac
1412  done
1413done
1414$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1415$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1416
1417# When interrupted or exit'd, cleanup temporary files, and complete
1418# config.log.  We remove comments because anyway the quotes in there
1419# would cause problems or look ugly.
1420# WARNING: Be sure not to use single quotes in there, as some shells,
1421# such as our DU 5.0 friend, will then `close' the trap.
1422trap 'exit_status=$?
1423  # Save into config.log some information that might help in debugging.
1424  {
1425    echo
1426
1427    cat <<\_ASBOX
1428## ---------------- ##
1429## Cache variables. ##
1430## ---------------- ##
1431_ASBOX
1432    echo
1433    # The following way of writing the cache mishandles newlines in values,
1434{
1435  (set) 2>&1 |
1436    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1437    *ac_space=\ *)
1438      sed -n \
1439        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1440          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1441      ;;
1442    *)
1443      sed -n \
1444        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1445      ;;
1446    esac;
1447}
1448    echo
1449
1450    cat <<\_ASBOX
1451## ----------------- ##
1452## Output variables. ##
1453## ----------------- ##
1454_ASBOX
1455    echo
1456    for ac_var in $ac_subst_vars
1457    do
1458      eval ac_val=$`echo $ac_var`
1459      echo "$ac_var='"'"'$ac_val'"'"'"
1460    done | sort
1461    echo
1462
1463    if test -n "$ac_subst_files"; then
1464      cat <<\_ASBOX
1465## ------------- ##
1466## Output files. ##
1467## ------------- ##
1468_ASBOX
1469      echo
1470      for ac_var in $ac_subst_files
1471      do
1472        eval ac_val=$`echo $ac_var`
1473        echo "$ac_var='"'"'$ac_val'"'"'"
1474      done | sort
1475      echo
1476    fi
1477
1478    if test -s confdefs.h; then
1479      cat <<\_ASBOX
1480## ----------- ##
1481## confdefs.h. ##
1482## ----------- ##
1483_ASBOX
1484      echo
1485      sed "/^$/d" confdefs.h | sort
1486      echo
1487    fi
1488    test "$ac_signal" != 0 &&
1489      echo "$as_me: caught signal $ac_signal"
1490    echo "$as_me: exit $exit_status"
1491  } >&5
1492  rm -f core *.core &&
1493  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1494    exit $exit_status
1495     ' 0
1496for ac_signal in 1 2 13 15; do
1497  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1498done
1499ac_signal=0
1500
1501# confdefs.h avoids OS command line length limits that DEFS can exceed.
1502rm -rf conftest* confdefs.h
1503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1504echo >confdefs.h
1505
1506# Predefined preprocessor variables.
1507
1508cat >>confdefs.h <<_ACEOF
1509#define PACKAGE_NAME "$PACKAGE_NAME"
1510_ACEOF
1511
1512
1513cat >>confdefs.h <<_ACEOF
1514#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1515_ACEOF
1516
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_VERSION "$PACKAGE_VERSION"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_STRING "$PACKAGE_STRING"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1530_ACEOF
1531
1532
1533# Let the site file select an alternate cache file if it wants to.
1534# Prefer explicitly selected file to automatically selected ones.
1535if test -z "$CONFIG_SITE"; then
1536  if test "x$prefix" != xNONE; then
1537    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1538  else
1539    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1540  fi
1541fi
1542for ac_site_file in $CONFIG_SITE; do
1543  if test -r "$ac_site_file"; then
1544    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1545echo "$as_me: loading site script $ac_site_file" >&6;}
1546    sed 's/^/| /' "$ac_site_file" >&5
1547    . "$ac_site_file"
1548  fi
1549done
1550
1551if test -r "$cache_file"; then
1552  # Some versions of bash will fail to source /dev/null (special
1553  # files actually), so we avoid doing that.
1554  if test -f "$cache_file"; then
1555    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1556echo "$as_me: loading cache $cache_file" >&6;}
1557    case $cache_file in
1558      [\\/]* | ?:[\\/]* ) . $cache_file;;
1559      *)                      . ./$cache_file;;
1560    esac
1561  fi
1562else
1563  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1564echo "$as_me: creating cache $cache_file" >&6;}
1565  >$cache_file
1566fi
1567
1568# Check that the precious variables saved in the cache have kept the same
1569# value.
1570ac_cache_corrupted=false
1571for ac_var in `(set) 2>&1 |
1572               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1573  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1574  eval ac_new_set=\$ac_env_${ac_var}_set
1575  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1576  eval ac_new_val="\$ac_env_${ac_var}_value"
1577  case $ac_old_set,$ac_new_set in
1578    set,)
1579      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1580echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1581      ac_cache_corrupted=: ;;
1582    ,set)
1583      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1584echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1585      ac_cache_corrupted=: ;;
1586    ,);;
1587    *)
1588      if test "x$ac_old_val" != "x$ac_new_val"; then
1589        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1590echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1591        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1592echo "$as_me:   former value:  $ac_old_val" >&2;}
1593        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1594echo "$as_me:   current value: $ac_new_val" >&2;}
1595        ac_cache_corrupted=:
1596      fi;;
1597  esac
1598  # Pass precious variables to config.status.
1599  if test "$ac_new_set" = set; then
1600    case $ac_new_val in
1601    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1602      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1603    *) ac_arg=$ac_var=$ac_new_val ;;
1604    esac
1605    case " $ac_configure_args " in
1606      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1607      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1608    esac
1609  fi
1610done
1611if $ac_cache_corrupted; then
1612  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1613echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1614  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1615echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1616   { (exit 1); exit 1; }; }
1617fi
1618
1619ac_ext=c
1620ac_cpp='$CPP $CPPFLAGS'
1621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1623ac_compiler_gnu=$ac_cv_c_compiler_gnu
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654# List one file in the package so that the configure script can test
1655# whether the package is actually there
1656
1657
1658# Where should everything be installed by default?  Here, we want it
1659# to be installed directly in 'bin', 'lib', 'include' subdirectories
1660# of the directory where configure is run.  The default would be
1661# /usr/local.
1662
1663
1664# to make correct call to Fortran routines
1665
1666ac_aux_dir=
1667for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1668  if test -f $ac_dir/install-sh; then
1669    ac_aux_dir=$ac_dir
1670    ac_install_sh="$ac_aux_dir/install-sh -c"
1671    break
1672  elif test -f $ac_dir/install.sh; then
1673    ac_aux_dir=$ac_dir
1674    ac_install_sh="$ac_aux_dir/install.sh -c"
1675    break
1676  elif test -f $ac_dir/shtool; then
1677    ac_aux_dir=$ac_dir
1678    ac_install_sh="$ac_aux_dir/shtool install -c"
1679    break
1680  fi
1681done
1682if test -z "$ac_aux_dir"; then
1683  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1684echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1685   { (exit 1); exit 1; }; }
1686fi
1687ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1688ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1689ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1690
1691# Make sure we can run config.sub.
1692$ac_config_sub sun4 >/dev/null 2>&1 ||
1693  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1694echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1695   { (exit 1); exit 1; }; }
1696
1697echo "$as_me:$LINENO: checking build system type" >&5
1698echo $ECHO_N "checking build system type... $ECHO_C" >&6
1699if test "${ac_cv_build+set}" = set; then
1700  echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702  ac_cv_build_alias=$build_alias
1703test -z "$ac_cv_build_alias" &&
1704  ac_cv_build_alias=`$ac_config_guess`
1705test -z "$ac_cv_build_alias" &&
1706  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1707echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1708   { (exit 1); exit 1; }; }
1709ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1710  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1711echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1712   { (exit 1); exit 1; }; }
1713
1714fi
1715echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1716echo "${ECHO_T}$ac_cv_build" >&6
1717build=$ac_cv_build
1718build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1719build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1720build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721
1722
1723
1724
1725  # for backward compatibility
1726  # Check whether --enable-doscompile or --disable-doscompile was given.
1727if test "${enable_doscompile+set}" = set; then
1728  enableval="$enable_doscompile"
1729  enable_doscompile=$enableval
1730else
1731  enable_doscompile=no
1732fi;
1733
1734  # Check whether --enable-msvc or --disable-msvc was given.
1735if test "${enable_msvc+set}" = set; then
1736  enableval="$enable_msvc"
1737  enable_msvc=$enableval
1738else
1739  enable_msvc=no
1740     if test "$enable_doscompile" = msvc ; then
1741       enable_msvc=yes
1742     elif test "$enable_doscompile" != no ; then
1743       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1744echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1745   { (exit 1); exit 1; }; }
1746     fi
1747
1748fi;
1749
1750  if test "$enable_msvc" = MD; then
1751    enable_shared=yes
1752    enable_msvc=yes
1753  fi
1754
1755  if test "$enable_msvc" = yes; then
1756    case $build in
1757      *-cygwin* | *-mingw*) ;;
1758      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1759echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1760   { (exit 1); exit 1; }; } ;;
1761    esac
1762  fi
1763
1764
1765 case $build in
1766  *-mingw*)
1767    if test "${LD+set}" = set; then :; else
1768      LD=link
1769    fi
1770    ;;
1771 esac
1772 if test $enable_msvc = yes ; then
1773   if test "x${LD+set}" = xset; then :; else
1774     LD=link
1775   fi
1776 fi
1777
1778
1779
1780
1781ac_ext=c
1782ac_cpp='$CPP $CPPFLAGS'
1783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786
1787
1788# For consistency, we set the C compiler to the same value of the C++
1789# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1790if test x"$CXX" != x; then
1791  case "$CXX" in
1792    clang* ) ;;
1793    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1794      if test x"$CC" = x; then
1795        CC="$CXX"
1796        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1797echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1798      fi
1799      ;;
1800  esac
1801fi
1802
1803
1804
1805
1806
1807
1808coin_has_cc=yes
1809
1810save_cflags="$CFLAGS"
1811
1812# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1813# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1814# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1815# compiler. In this case, put cc after gcc.
1816
1817case $build in
1818  *-cygwin* | *-mingw*)
1819             if test "$enable_msvc" = yes ; then
1820               comps="icl cl gcc"
1821             else
1822               comps="gcc icl cl"
1823             fi ;;
1824  *-*-solaris*)
1825             # Extract the first word of "cc", so it can be a program name with args.
1826set dummy cc; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1830  echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832  if test -n "$sol_cc_compiler"; then
1833  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1834else
1835  ac_prog_rejected=no
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  test -z "$as_dir" && as_dir=.
1841  for ac_exec_ext in '' $ac_executable_extensions; do
1842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1844       ac_prog_rejected=yes
1845       continue
1846     fi
1847    ac_cv_prog_sol_cc_compiler="cc"
1848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849    break 2
1850  fi
1851done
1852done
1853
1854if test $ac_prog_rejected = yes; then
1855  # We found a bogon in the path, so make sure we never use it.
1856  set dummy $ac_cv_prog_sol_cc_compiler
1857  shift
1858  if test $# != 0; then
1859    # We chose a different compiler from the bogus one.
1860    # However, it has the same basename, so the bogon will be chosen
1861    # first if we set sol_cc_compiler to just the basename; use the full file name.
1862    shift
1863    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1864  fi
1865fi
1866fi
1867fi
1868sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1869if test -n "$sol_cc_compiler"; then
1870  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1871echo "${ECHO_T}$sol_cc_compiler" >&6
1872else
1873  echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
1875fi
1876
1877             if test "$sol_cc_compiler" = "cc" ; then
1878               comps="cc xlc gcc pgcc icc"
1879             else
1880               comps="xlc gcc pgcc icc cc"
1881             fi
1882             ;;
1883  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1884  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1885  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1886esac
1887
1888# We delete the cached value, since the test might not have been
1889# performed with our choice of compilers earlier
1890$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1891# AC_MSG_NOTICE([C compiler candidates: $comps])
1892ac_ext=c
1893ac_cpp='$CPP $CPPFLAGS'
1894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897if test -n "$ac_tool_prefix"; then
1898  for ac_prog in $comps
1899  do
1900    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1901set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_CC+set}" = set; then
1905  echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907  if test -n "$CC"; then
1908  ac_cv_prog_CC="$CC" # Let the user override the test.
1909else
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913  IFS=$as_save_IFS
1914  test -z "$as_dir" && as_dir=.
1915  for ac_exec_ext in '' $ac_executable_extensions; do
1916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919    break 2
1920  fi
1921done
1922done
1923
1924fi
1925fi
1926CC=$ac_cv_prog_CC
1927if test -n "$CC"; then
1928  echo "$as_me:$LINENO: result: $CC" >&5
1929echo "${ECHO_T}$CC" >&6
1930else
1931  echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935    test -n "$CC" && break
1936  done
1937fi
1938if test -z "$CC"; then
1939  ac_ct_CC=$CC
1940  for ac_prog in $comps
1941do
1942  # Extract the first word of "$ac_prog", so it can be a program name with args.
1943set dummy $ac_prog; ac_word=$2
1944echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1947  echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949  if test -n "$ac_ct_CC"; then
1950  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951else
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957  for ac_exec_ext in '' $ac_executable_extensions; do
1958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959    ac_cv_prog_ac_ct_CC="$ac_prog"
1960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961    break 2
1962  fi
1963done
1964done
1965
1966fi
1967fi
1968ac_ct_CC=$ac_cv_prog_ac_ct_CC
1969if test -n "$ac_ct_CC"; then
1970  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1971echo "${ECHO_T}$ac_ct_CC" >&6
1972else
1973  echo "$as_me:$LINENO: result: no" >&5
1974echo "${ECHO_T}no" >&6
1975fi
1976
1977  test -n "$ac_ct_CC" && break
1978done
1979
1980  CC=$ac_ct_CC
1981fi
1982
1983
1984test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1985See \`config.log' for more details." >&5
1986echo "$as_me: error: no acceptable C compiler found in \$PATH
1987See \`config.log' for more details." >&2;}
1988   { (exit 1); exit 1; }; }
1989
1990# Provide some information about the compiler.
1991echo "$as_me:$LINENO:" \
1992     "checking for C compiler version" >&5
1993ac_compiler=`set X $ac_compile; echo $2`
1994{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1995  (eval $ac_compiler --version </dev/null >&5) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }
1999{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2000  (eval $ac_compiler -v </dev/null >&5) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2005  (eval $ac_compiler -V </dev/null >&5) 2>&5
2006  ac_status=$?
2007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008  (exit $ac_status); }
2009
2010cat >conftest.$ac_ext <<_ACEOF
2011/* confdefs.h.  */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h.  */
2016
2017int
2018main ()
2019{
2020
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025ac_clean_files_save=$ac_clean_files
2026ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027# Try to create an executable without -o first, disregard a.out.
2028# It will help us diagnose broken compilers, and finding out an intuition
2029# of exeext.
2030echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2031echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2032ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034  (eval $ac_link_default) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }; then
2038  # Find the output, starting from the most likely.  This scheme is
2039# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040# resort.
2041
2042# Be careful to initialize this variable, since it used to be cached.
2043# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044ac_cv_exeext=
2045# b.out is created by i960 compilers.
2046for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047do
2048  test -f "$ac_file" || continue
2049  case $ac_file in
2050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2051        ;;
2052    conftest.$ac_ext )
2053        # This is the source file.
2054        ;;
2055    [ab].out )
2056        # We found the default executable, but exeext='' is most
2057        # certainly right.
2058        break;;
2059    *.* )
2060        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061        # FIXME: I believe we export ac_cv_exeext for Libtool,
2062        # but it would be cool to find out if it's true.  Does anybody
2063        # maintain Libtool? --akim.
2064        export ac_cv_exeext
2065        break;;
2066    * )
2067        break;;
2068  esac
2069done
2070else
2071  echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: C compiler cannot create executables
2077See \`config.log' for more details." >&2;}
2078   { (exit 77); exit 77; }; }
2079fi
2080
2081ac_exeext=$ac_cv_exeext
2082echo "$as_me:$LINENO: result: $ac_file" >&5
2083echo "${ECHO_T}$ac_file" >&6
2084
2085# Check the compiler produces executables we can run.  If not, either
2086# the compiler is broken, or we cross compile.
2087echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2088echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2089# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090# If not cross compiling, check that we can run a simple program.
2091if test "$cross_compiling" != yes; then
2092  if { ac_try='./$ac_file'
2093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094  (eval $ac_try) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; }; then
2098    cross_compiling=no
2099  else
2100    if test "$cross_compiling" = maybe; then
2101        cross_compiling=yes
2102    else
2103        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2104If you meant to cross compile, use \`--host'.
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: cannot run C compiled programs.
2107If you meant to cross compile, use \`--host'.
2108See \`config.log' for more details." >&2;}
2109   { (exit 1); exit 1; }; }
2110    fi
2111  fi
2112fi
2113echo "$as_me:$LINENO: result: yes" >&5
2114echo "${ECHO_T}yes" >&6
2115
2116rm -f a.out a.exe conftest$ac_cv_exeext b.out
2117ac_clean_files=$ac_clean_files_save
2118# Check the compiler produces executables we can run.  If not, either
2119# the compiler is broken, or we cross compile.
2120echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123echo "${ECHO_T}$cross_compiling" >&6
2124
2125echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128  (eval $ac_link) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }; then
2132  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2134# work properly (i.e., refer to `conftest.exe'), while it won't with
2135# `rm'.
2136for ac_file in conftest.exe conftest conftest.*; do
2137  test -f "$ac_file" || continue
2138  case $ac_file in
2139    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2140    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141          export ac_cv_exeext
2142          break;;
2143    * ) break;;
2144  esac
2145done
2146else
2147  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152fi
2153
2154rm -f conftest$ac_cv_exeext
2155echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156echo "${ECHO_T}$ac_cv_exeext" >&6
2157
2158rm -f conftest.$ac_ext
2159EXEEXT=$ac_cv_exeext
2160ac_exeext=$EXEEXT
2161echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163if test "${ac_cv_objext+set}" = set; then
2164  echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166  cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181rm -f conftest.o conftest.obj
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183  (eval $ac_compile) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191       break;;
2192  esac
2193done
2194else
2195  echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201See \`config.log' for more details." >&2;}
2202   { (exit 1); exit 1; }; }
2203fi
2204
2205rm -f conftest.$ac_cv_objext conftest.$ac_ext
2206fi
2207echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208echo "${ECHO_T}$ac_cv_objext" >&6
2209OBJEXT=$ac_cv_objext
2210ac_objext=$OBJEXT
2211echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2212echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2213if test "${ac_cv_c_compiler_gnu+set}" = set; then
2214  echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216  cat >conftest.$ac_ext <<_ACEOF
2217/* confdefs.h.  */
2218_ACEOF
2219cat confdefs.h >>conftest.$ac_ext
2220cat >>conftest.$ac_ext <<_ACEOF
2221/* end confdefs.h.  */
2222
2223int
2224main ()
2225{
2226#ifndef __GNUC__
2227       choke me
2228#endif
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234rm -f conftest.$ac_objext
2235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236  (eval $ac_compile) 2>conftest.er1
2237  ac_status=$?
2238  grep -v '^ *+' conftest.er1 >conftest.err
2239  rm -f conftest.er1
2240  cat conftest.err >&5
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); } &&
2243         { ac_try='test -z "$ac_c_werror_flag"
2244                         || test ! -s conftest.err'
2245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246  (eval $ac_try) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }; } &&
2250         { ac_try='test -s conftest.$ac_objext'
2251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252  (eval $ac_try) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; }; then
2256  ac_compiler_gnu=yes
2257else
2258  echo "$as_me: failed program was:" >&5
2259sed 's/^/| /' conftest.$ac_ext >&5
2260
2261ac_compiler_gnu=no
2262fi
2263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2264ac_cv_c_compiler_gnu=$ac_compiler_gnu
2265
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2268echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2269GCC=`test $ac_compiler_gnu = yes && echo yes`
2270ac_test_CFLAGS=${CFLAGS+set}
2271ac_save_CFLAGS=$CFLAGS
2272CFLAGS="-g"
2273echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2274echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2275if test "${ac_cv_prog_cc_g+set}" = set; then
2276  echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278  cat >conftest.$ac_ext <<_ACEOF
2279/* confdefs.h.  */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h.  */
2284
2285int
2286main ()
2287{
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295  (eval $ac_compile) 2>conftest.er1
2296  ac_status=$?
2297  grep -v '^ *+' conftest.er1 >conftest.err
2298  rm -f conftest.er1
2299  cat conftest.err >&5
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); } &&
2302         { ac_try='test -z "$ac_c_werror_flag"
2303                         || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309         { ac_try='test -s conftest.$ac_objext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  ac_cv_prog_cc_g=yes
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320ac_cv_prog_cc_g=no
2321fi
2322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2325echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2326if test "$ac_test_CFLAGS" = set; then
2327  CFLAGS=$ac_save_CFLAGS
2328elif test $ac_cv_prog_cc_g = yes; then
2329  if test "$GCC" = yes; then
2330    CFLAGS="-g -O2"
2331  else
2332    CFLAGS="-g"
2333  fi
2334else
2335  if test "$GCC" = yes; then
2336    CFLAGS="-O2"
2337  else
2338    CFLAGS=
2339  fi
2340fi
2341echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2342echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2343if test "${ac_cv_prog_cc_stdc+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  ac_cv_prog_cc_stdc=no
2347ac_save_CC=$CC
2348cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354#include <stdarg.h>
2355#include <stdio.h>
2356#include <sys/types.h>
2357#include <sys/stat.h>
2358/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2359struct buf { int x; };
2360FILE * (*rcsopen) (struct buf *, struct stat *, int);
2361static char *e (p, i)
2362     char **p;
2363     int i;
2364{
2365  return p[i];
2366}
2367static char *f (char * (*g) (char **, int), char **p, ...)
2368{
2369  char *s;
2370  va_list v;
2371  va_start (v,p);
2372  s = g (p, va_arg (v,int));
2373  va_end (v);
2374  return s;
2375}
2376
2377/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2378   function prototypes and stuff, but not '\xHH' hex character constants.
2379   These don't provoke an error unfortunately, instead are silently treated
2380   as 'x'.  The following induces an error, until -std1 is added to get
2381   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2382   array size at least.  It's necessary to write '\x00'==0 to get something
2383   that's true only with -std1.  */
2384int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2385
2386int test (int i, double x);
2387struct s1 {int (*f) (int a);};
2388struct s2 {int (*f) (double a);};
2389int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2390int argc;
2391char **argv;
2392int
2393main ()
2394{
2395return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400# Don't try gcc -ansi; that turns off useful extensions and
2401# breaks some systems' header files.
2402# AIX                   -qlanglvl=ansi
2403# Ultrix and OSF/1      -std1
2404# HP-UX 10.20 and later -Ae
2405# HP-UX older versions  -Aa -D_HPUX_SOURCE
2406# SVR4                  -Xc -D__EXTENSIONS__
2407for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2408do
2409  CC="$ac_save_CC $ac_arg"
2410  rm -f conftest.$ac_objext
2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412  (eval $ac_compile) 2>conftest.er1
2413  ac_status=$?
2414  grep -v '^ *+' conftest.er1 >conftest.err
2415  rm -f conftest.er1
2416  cat conftest.err >&5
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); } &&
2419         { ac_try='test -z "$ac_c_werror_flag"
2420                         || test ! -s conftest.err'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; } &&
2426         { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  ac_cv_prog_cc_stdc=$ac_arg
2433break
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438fi
2439rm -f conftest.err conftest.$ac_objext
2440done
2441rm -f conftest.$ac_ext conftest.$ac_objext
2442CC=$ac_save_CC
2443
2444fi
2445
2446case "x$ac_cv_prog_cc_stdc" in
2447  x|xno)
2448    echo "$as_me:$LINENO: result: none needed" >&5
2449echo "${ECHO_T}none needed" >&6 ;;
2450  *)
2451    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2452echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2453    CC="$CC $ac_cv_prog_cc_stdc" ;;
2454esac
2455
2456# Some people use a C++ compiler to compile C.  Since we use `exit',
2457# in C++ we need to declare it.  In case someone uses the same compiler
2458# for both compiling C and C++ we need to have the C++ compiler decide
2459# the declaration of exit, since it's the most demanding environment.
2460cat >conftest.$ac_ext <<_ACEOF
2461#ifndef __cplusplus
2462  choke me
2463#endif
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467  (eval $ac_compile) 2>conftest.er1
2468  ac_status=$?
2469  grep -v '^ *+' conftest.er1 >conftest.err
2470  rm -f conftest.er1
2471  cat conftest.err >&5
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); } &&
2474         { ac_try='test -z "$ac_c_werror_flag"
2475                         || test ! -s conftest.err'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; } &&
2481         { ac_try='test -s conftest.$ac_objext'
2482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483  (eval $ac_try) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  for ac_declaration in \
2488   '' \
2489   'extern "C" void std::exit (int) throw (); using std::exit;' \
2490   'extern "C" void std::exit (int); using std::exit;' \
2491   'extern "C" void exit (int) throw ();' \
2492   'extern "C" void exit (int);' \
2493   'void exit (int);'
2494do
2495  cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h.  */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h.  */
2501$ac_declaration
2502#include <stdlib.h>
2503int
2504main ()
2505{
2506exit (42);
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  :
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538continue
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541  cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h.  */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h.  */
2547$ac_declaration
2548int
2549main ()
2550{
2551exit (42);
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565         { ac_try='test -z "$ac_c_werror_flag"
2566                         || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572         { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  break
2579else
2580  echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583fi
2584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585done
2586rm -f conftest*
2587if test -n "$ac_declaration"; then
2588  echo '#ifdef __cplusplus' >>confdefs.h
2589  echo $ac_declaration      >>confdefs.h
2590  echo '#endif'             >>confdefs.h
2591fi
2592
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599ac_ext=c
2600ac_cpp='$CPP $CPPFLAGS'
2601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604
2605if test -z "$CC" ; then
2606  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2607echo "$as_me: error: Failed to find a C compiler!" >&2;}
2608   { (exit 1); exit 1; }; }
2609fi
2610# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2611case "$CC" in
2612  clang* ) ;;
2613  cl* | */cl* | CL* | */CL* )
2614    if test "$ac_cv_prog_cc_g" = yes ; then
2615      ac_cv_prog_cc_g=no
2616      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2617echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2618    fi ;;
2619  * )
2620    if test x"$CYGPATH_W" = x ; then
2621      CYGPATH_W=echo
2622    fi
2623    ;;
2624esac
2625CFLAGS="$save_cflags"
2626
2627# add automake conditional so we can recognize cl compiler in makefile
2628coin_cc_is_cl=false
2629case "$CC" in
2630  clang* ) ;;
2631  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2632    coin_cc_is_cl=true
2633    ;;
2634esac
2635
2636
2637if test $coin_cc_is_cl = true; then
2638  COIN_CC_IS_CL_TRUE=
2639  COIN_CC_IS_CL_FALSE='#'
2640else
2641  COIN_CC_IS_CL_TRUE='#'
2642  COIN_CC_IS_CL_FALSE=
2643fi
2644
2645
2646# Check if a project specific CFLAGS variable has been set
2647if test x$COIN_PRJCT != x; then
2648  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2649  if test x$coin_tmp = xset; then
2650    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2651  fi
2652fi
2653
2654if test x"$CFLAGS" = x; then
2655
2656  coin_add_cflags=
2657  coin_opt_cflags=
2658  coin_dbg_cflags=
2659  coin_warn_cflags=
2660
2661  if test "$GCC" = "yes"; then
2662    case "$CC" in
2663      icc* | */icc*)
2664        ;;
2665      *)
2666        coin_opt_cflags="-O3"
2667        coin_add_cflags="-pipe"
2668        coin_dbg_cflags="-g -O0"
2669        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2670        case $build in
2671          *-darwin*)
2672            ;;
2673          *)
2674            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2675            ;;
2676        esac
2677    esac
2678  fi
2679  if test -z "$coin_opt_cflags"; then
2680    case $build in
2681      *-cygwin* | *-mingw*)
2682        case "$CC" in
2683          clang* ) ;;
2684          cl* | */cl* | CL* | */CL*)
2685            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2686              coin_opt_cflags='-MD -O2'
2687              coin_dbg_cflags='-MDd'
2688            else
2689              coin_opt_cflags='-MT -O2'
2690              coin_dbg_cflags='-MTd'
2691            fi
2692            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2693            ;;
2694          icl* | */icl* | ICL* | */ICL*)
2695            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2696              coin_opt_cflags='-MD -Ox'
2697              coin_dbg_cflags='-MDd -debug'
2698            else
2699              coin_opt_cflags='-MT -Ox'
2700              coin_dbg_cflags='-MTd -debug'
2701            fi
2702            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2703            ;;
2704        esac
2705        ;;
2706      *-linux-*)
2707        case "$CC" in
2708          icc* | */icc*)
2709            coin_opt_cflags="-O3 -ip -mp1"
2710            coin_add_cflags=""
2711            coin_dbg_cflags="-g"
2712            # Check if -i_dynamic is necessary (for new glibc library)
2713            CFLAGS=
2714            cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h.  */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h.  */
2720
2721int
2722main ()
2723{
2724int i=0; i++;
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext conftest$ac_exeext
2730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731  (eval $ac_link) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest$ac_exeext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  :
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756coin_add_cflags="-i_dynamic $coin_add_cflags"
2757fi
2758rm -f conftest.err conftest.$ac_objext \
2759      conftest$ac_exeext conftest.$ac_ext
2760            ;;
2761          pgcc* | */pgcc*)
2762            coin_opt_cflags="-fast"
2763            coin_add_cflags="-Kieee -pc 64"
2764            coin_dbg_cflags="-g"
2765            ;;
2766        esac
2767        ;;
2768      *-ibm-*)
2769        case "$CC" in
2770          xlc* | */xlc* | mpxlc* | */mpxlc*)
2771            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2772            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2773            coin_dbg_cflags="-g"
2774          ;;
2775        esac
2776        ;;
2777      *-hp-*)
2778        coin_opt_cflags="-O"
2779        coin_add_cflags="-Ae"
2780        coin_dbg_cflags="-g"
2781        ;;
2782      *-*-solaris*)
2783        coin_opt_cflags="-xO4"
2784        coin_dbg_cflags="-g"
2785        ;;
2786      *-sgi-*)
2787        coin_opt_cflags="-O -OPT:Olimit=0"
2788        coin_dbg_cflags="-g"
2789        ;;
2790    esac
2791  fi
2792
2793  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2794    coin_dbg_cflags="-g"
2795  fi
2796
2797  if test -z "$coin_opt_cflags"; then
2798    # Try if -O option works if nothing else is set
2799    CFLAGS="-O"
2800    cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806
2807int
2808main ()
2809{
2810int i=0; i++;
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815rm -f conftest.$ac_objext conftest$ac_exeext
2816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2817  (eval $ac_link) 2>conftest.er1
2818  ac_status=$?
2819  grep -v '^ *+' conftest.er1 >conftest.err
2820  rm -f conftest.er1
2821  cat conftest.err >&5
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); } &&
2824         { ac_try='test -z "$ac_c_werror_flag"
2825                         || test ! -s conftest.err'
2826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827  (eval $ac_try) 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }; } &&
2831         { ac_try='test -s conftest$ac_exeext'
2832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833  (eval $ac_try) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); }; }; then
2837  coin_opt_cflags="-O"
2838else
2839  echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842fi
2843rm -f conftest.err conftest.$ac_objext \
2844      conftest$ac_exeext conftest.$ac_ext
2845  fi
2846
2847  # if PM doesn't want the warning messages, take them out
2848  if test x"$coin_skip_warn_cflags" = xyes; then
2849    coin_warn_cflags=
2850  fi
2851
2852  if test x${DBG_CFLAGS+set} != xset; then
2853    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2854  fi
2855  if test x${OPT_CFLAGS+set} != xset; then
2856    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2857  fi
2858
2859  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2860  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2861
2862  if test "$coin_debug_compile" = "true"; then
2863    CFLAGS="$DBG_CFLAGS"
2864  else
2865    CFLAGS="$OPT_CFLAGS"
2866  fi
2867else
2868  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2869  if test x${DBG_CFLAGS+set} != xset; then
2870    DBG_CFLAGS="$CFLAGS"
2871  fi
2872  if test x${OPT_CFLAGS+set} != xset; then
2873    OPT_CFLAGS="$CFLAGS"
2874  fi
2875fi
2876
2877# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2878if test x$COIN_PRJCT != x; then
2879  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2880fi
2881
2882# Try if CFLAGS works
2883save_CFLAGS="$CFLAGS"
2884cat >conftest.$ac_ext <<_ACEOF
2885/* confdefs.h.  */
2886_ACEOF
2887cat confdefs.h >>conftest.$ac_ext
2888cat >>conftest.$ac_ext <<_ACEOF
2889/* end confdefs.h.  */
2890
2891int
2892main ()
2893{
2894int i=0; i++;
2895  ;
2896  return 0;
2897}
2898_ACEOF
2899rm -f conftest.$ac_objext conftest$ac_exeext
2900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2901  (eval $ac_link) 2>conftest.er1
2902  ac_status=$?
2903  grep -v '^ *+' conftest.er1 >conftest.err
2904  rm -f conftest.er1
2905  cat conftest.err >&5
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); } &&
2908         { ac_try='test -z "$ac_c_werror_flag"
2909                         || test ! -s conftest.err'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; } &&
2915         { ac_try='test -s conftest$ac_exeext'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; }; then
2921  :
2922else
2923  echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926CFLAGS=
2927fi
2928rm -f conftest.err conftest.$ac_objext \
2929      conftest$ac_exeext conftest.$ac_ext
2930if test -z "$CFLAGS"; then
2931  { 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
2932echo "$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;}
2933  CFLAGS='-O'
2934  cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h.  */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h.  */
2940
2941int
2942main ()
2943{
2944int i=0; i++;
2945  ;
2946  return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext conftest$ac_exeext
2950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2951  (eval $ac_link) 2>conftest.er1
2952  ac_status=$?
2953  grep -v '^ *+' conftest.er1 >conftest.err
2954  rm -f conftest.er1
2955  cat conftest.err >&5
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); } &&
2958         { ac_try='test -z "$ac_c_werror_flag"
2959                         || test ! -s conftest.err'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; } &&
2965         { ac_try='test -s conftest$ac_exeext'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; }; then
2971  :
2972else
2973  echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976CFLAGS=
2977fi
2978rm -f conftest.err conftest.$ac_objext \
2979      conftest$ac_exeext conftest.$ac_ext
2980  if test -z "$CFLAGS"; then
2981    { 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
2982echo "$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;}
2983  fi
2984fi
2985
2986{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2987echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2988
2989
2990if test x"$MPICC" = x; then :; else
2991  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2992echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2993  CC="$MPICC"
2994fi
2995
2996# Correct the LD variable if we are using the MS or Intel-windows compiler
2997case "$CC" in
2998  clang* ) ;;
2999  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3000
3001 case $build in
3002  *-mingw*)
3003    if test "${LD+set}" = set; then :; else
3004      LD=link
3005    fi
3006    ;;
3007 esac
3008 if test $enable_msvc = yes ; then
3009   if test "x${LD+set}" = xset; then :; else
3010     LD=link
3011   fi
3012 fi
3013
3014    ;;
3015esac
3016
3017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
3023
3024case $build in
3025  *-cygwin* | *-mingw*)
3026     if test "$enable_msvc" = yes ; then
3027       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3028     else
3029       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3030     fi ;;
3031  *-*-solaris*)
3032     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3033  *-linux-gnu*)
3034     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3035  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3036 esac
3037
3038
3039
3040
3041
3042
3043ac_ext=f
3044ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3045ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3047
3048
3049
3050
3051
3052
3053coin_has_f77=yes
3054
3055save_fflags="$FFLAGS"
3056
3057# We delete the cached value, since the test might not have been
3058# performed with our choice of compilers earlier
3059$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3060
3061# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3062# coin_f77_comps to see if there's a program that matches one of the names.
3063# If there's no such program, F77 = unavailable. If we match the name,
3064# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3065# compiler.
3066# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3067
3068
3069{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3070echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3071if test -n "$ac_tool_prefix"; then
3072  for ac_prog in $coin_f77_comps
3073  do
3074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076echo "$as_me:$LINENO: checking for $ac_word" >&5
3077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078if test "${ac_cv_prog_F77+set}" = set; then
3079  echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081  if test -n "$F77"; then
3082  ac_cv_prog_F77="$F77" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089  for ac_exec_ext in '' $ac_executable_extensions; do
3090  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093    break 2
3094  fi
3095done
3096done
3097
3098fi
3099fi
3100F77=$ac_cv_prog_F77
3101if test -n "$F77"; then
3102  echo "$as_me:$LINENO: result: $F77" >&5
3103echo "${ECHO_T}$F77" >&6
3104else
3105  echo "$as_me:$LINENO: result: no" >&5
3106echo "${ECHO_T}no" >&6
3107fi
3108
3109    test -n "$F77" && break
3110  done
3111fi
3112if test -z "$F77"; then
3113  ac_ct_F77=$F77
3114  for ac_prog in $coin_f77_comps
3115do
3116  # Extract the first word of "$ac_prog", so it can be a program name with args.
3117set dummy $ac_prog; ac_word=$2
3118echo "$as_me:$LINENO: checking for $ac_word" >&5
3119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3121  echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123  if test -n "$ac_ct_F77"; then
3124  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129  IFS=$as_save_IFS
3130  test -z "$as_dir" && as_dir=.
3131  for ac_exec_ext in '' $ac_executable_extensions; do
3132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133    ac_cv_prog_ac_ct_F77="$ac_prog"
3134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135    break 2
3136  fi
3137done
3138done
3139
3140fi
3141fi
3142ac_ct_F77=$ac_cv_prog_ac_ct_F77
3143if test -n "$ac_ct_F77"; then
3144  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3145echo "${ECHO_T}$ac_ct_F77" >&6
3146else
3147  echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149fi
3150
3151  test -n "$ac_ct_F77" && break
3152done
3153test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3154
3155  F77=$ac_ct_F77
3156fi
3157
3158
3159if test "$F77" != "unavailable" ; then
3160  ac_ext=f
3161ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3162ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3164if test -n "$ac_tool_prefix"; then
3165  for ac_prog in $coin_f77_comps
3166  do
3167    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_F77+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  if test -n "$F77"; then
3175  ac_cv_prog_F77="$F77" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182  for ac_exec_ext in '' $ac_executable_extensions; do
3183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189done
3190
3191fi
3192fi
3193F77=$ac_cv_prog_F77
3194if test -n "$F77"; then
3195  echo "$as_me:$LINENO: result: $F77" >&5
3196echo "${ECHO_T}$F77" >&6
3197else
3198  echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200fi
3201
3202    test -n "$F77" && break
3203  done
3204fi
3205if test -z "$F77"; then
3206  ac_ct_F77=$F77
3207  for ac_prog in $coin_f77_comps
3208do
3209  # Extract the first word of "$ac_prog", so it can be a program name with args.
3210set dummy $ac_prog; ac_word=$2
3211echo "$as_me:$LINENO: checking for $ac_word" >&5
3212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  if test -n "$ac_ct_F77"; then
3217  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  test -z "$as_dir" && as_dir=.
3224  for ac_exec_ext in '' $ac_executable_extensions; do
3225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226    ac_cv_prog_ac_ct_F77="$ac_prog"
3227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228    break 2
3229  fi
3230done
3231done
3232
3233fi
3234fi
3235ac_ct_F77=$ac_cv_prog_ac_ct_F77
3236if test -n "$ac_ct_F77"; then
3237  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3238echo "${ECHO_T}$ac_ct_F77" >&6
3239else
3240  echo "$as_me:$LINENO: result: no" >&5
3241echo "${ECHO_T}no" >&6
3242fi
3243
3244  test -n "$ac_ct_F77" && break
3245done
3246
3247  F77=$ac_ct_F77
3248fi
3249
3250
3251# Provide some information about the compiler.
3252echo "$as_me:3252:" \
3253     "checking for Fortran 77 compiler version" >&5
3254ac_compiler=`set X $ac_compile; echo $2`
3255{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3256  (eval $ac_compiler --version </dev/null >&5) 2>&5
3257  ac_status=$?
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }
3260{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3261  (eval $ac_compiler -v </dev/null >&5) 2>&5
3262  ac_status=$?
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); }
3265{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3266  (eval $ac_compiler -V </dev/null >&5) 2>&5
3267  ac_status=$?
3268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); }
3270rm -f a.out
3271
3272# If we don't use `.F' as extension, the preprocessor is not run on the
3273# input file.  (Note that this only needs to work for GNU compilers.)
3274ac_save_ext=$ac_ext
3275ac_ext=F
3276echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3277echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3278if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3279  echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281  cat >conftest.$ac_ext <<_ACEOF
3282      program main
3283#ifndef __GNUC__
3284       choke me
3285#endif
3286
3287      end
3288_ACEOF
3289rm -f conftest.$ac_objext
3290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291  (eval $ac_compile) 2>conftest.er1
3292  ac_status=$?
3293  grep -v '^ *+' conftest.er1 >conftest.err
3294  rm -f conftest.er1
3295  cat conftest.err >&5
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); } &&
3298         { ac_try='test -z "$ac_f77_werror_flag"
3299                         || test ! -s conftest.err'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; } &&
3305         { ac_try='test -s conftest.$ac_objext'
3306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307  (eval $ac_try) 2>&5
3308  ac_status=$?
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); }; }; then
3311  ac_compiler_gnu=yes
3312else
3313  echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316ac_compiler_gnu=no
3317fi
3318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3320
3321fi
3322echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3323echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3324ac_ext=$ac_save_ext
3325ac_test_FFLAGS=${FFLAGS+set}
3326ac_save_FFLAGS=$FFLAGS
3327FFLAGS=
3328echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3329echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3330if test "${ac_cv_prog_f77_g+set}" = set; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  FFLAGS=-g
3334cat >conftest.$ac_ext <<_ACEOF
3335      program main
3336
3337      end
3338_ACEOF
3339rm -f conftest.$ac_objext
3340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341  (eval $ac_compile) 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } &&
3348         { ac_try='test -z "$ac_f77_werror_flag"
3349                         || test ! -s conftest.err'
3350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351  (eval $ac_try) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }; } &&
3355         { ac_try='test -s conftest.$ac_objext'
3356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357  (eval $ac_try) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }; }; then
3361  ac_cv_prog_f77_g=yes
3362else
3363  echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366ac_cv_prog_f77_g=no
3367fi
3368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369
3370fi
3371echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3372echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3373if test "$ac_test_FFLAGS" = set; then
3374  FFLAGS=$ac_save_FFLAGS
3375elif test $ac_cv_prog_f77_g = yes; then
3376  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3377    FFLAGS="-g -O2"
3378  else
3379    FFLAGS="-g"
3380  fi
3381else
3382  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3383    FFLAGS="-O2"
3384  else
3385    FFLAGS=
3386  fi
3387fi
3388
3389G77=`test $ac_compiler_gnu = yes && echo yes`
3390ac_ext=f
3391ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3392ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3394
3395else
3396  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3397echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3398fi
3399
3400FFLAGS="$save_fflags"
3401
3402# Check if a project specific FFLAGS variable has been set
3403if test x$COIN_PRJCT != x; then
3404  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3405  if test x$coin_tmp = xset; then
3406    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3407  fi
3408fi
3409
3410if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3411
3412  coin_add_fflags=
3413  coin_opt_fflags=
3414  coin_dbg_fflags=
3415  coin_warn_fflags=
3416
3417  if test "$G77" = "yes"; then
3418    coin_opt_fflags="-O3"
3419    coin_add_fflags="-pipe"
3420    coin_dbg_fflags="-g -O0"
3421  else
3422    case $build in
3423      *-cygwin* | *-mingw*)
3424        case $F77 in
3425          ifort* | */ifort* | IFORT* | */IFORT* )
3426            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3427              coin_opt_fflags='-MD -O3'
3428              coin_dbg_fflags='-MDd -debug'
3429            else
3430              coin_opt_fflags='-MT -O3'
3431              coin_dbg_fflags='-MTd -debug'
3432            fi
3433            coin_add_fflags='-fpp -nologo'
3434          ;;
3435          compile_f2c*)
3436            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3437              coin_opt_fflags='-MD -O2'
3438              coin_dbg_fflags='-MDd'
3439            else
3440              coin_opt_fflags='-MT -O2'
3441              coin_dbg_fflags='-MTd'
3442            fi
3443            coin_add_fflags='-nologo -wd4996'
3444          ;;
3445        esac
3446        ;;
3447      *-linux-*)
3448        case $F77 in
3449          ifc* | */ifc* | ifort* | */ifort*)
3450            coin_opt_fflags="-O3 -ip"
3451            coin_add_fflags="-cm -w90 -w95"
3452            coin_dbg_fflags="-g -CA -CB -CS"
3453            # Check if -i_dynamic is necessary (for new glibc library)
3454            FFLAGS=
3455            cat >conftest.$ac_ext <<_ACEOF
3456      program main
3457      write(*,*) 'Hello world'
3458      end
3459_ACEOF
3460rm -f conftest.$ac_objext conftest$ac_exeext
3461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3462  (eval $ac_link) 2>conftest.er1
3463  ac_status=$?
3464  grep -v '^ *+' conftest.er1 >conftest.err
3465  rm -f conftest.er1
3466  cat conftest.err >&5
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); } &&
3469         { ac_try='test -z "$ac_f77_werror_flag"
3470                         || test ! -s conftest.err'
3471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472  (eval $ac_try) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; } &&
3476         { ac_try='test -s conftest$ac_exeext'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; }; then
3482  :
3483else
3484  echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487coin_add_fflags="-i_dynamic $coin_add_fflags"
3488fi
3489rm -f conftest.err conftest.$ac_objext \
3490      conftest$ac_exeext conftest.$ac_ext
3491            ;;
3492          pgf77* | */pgf77* | pgf90* | */pgf90*)
3493            coin_opt_fflags="-fast"
3494            coin_add_fflags="-Kieee -pc 64"
3495            coin_dbg_fflags="-g"
3496          ;;
3497        esac
3498        ;;
3499      *-ibm-*)
3500        case "$F77" in
3501          xlf* | */xlf* | mpxlf* | */mpxlf* )
3502            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3503            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3504            coin_dbg_fflags="-g -C"
3505            ;;
3506        esac
3507        ;;
3508      *-hp-*)
3509        coin_opt_fflags="+O3"
3510        coin_add_fflags="+U77"
3511        coin_dbg_fflags="-C -g"
3512        ;;
3513      *-*-solaris*)
3514        coin_opt_fflags="-O4"
3515        coin_dbg_fflags="-g"
3516        ;;
3517      *-sgi-*)
3518        coin_opt_fflags="-O5 -OPT:Olimit=0"
3519        coin_dbg_fflags="-g"
3520        ;;
3521    esac
3522  fi
3523
3524  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3525    coin_dbg_fflags="-g"
3526  fi
3527
3528  if test -z "$coin_opt_fflags"; then
3529    # Try if -O option works if nothing else is set
3530    FFLAGS=-O
3531    cat >conftest.$ac_ext <<_ACEOF
3532      program main
3533      integer i
3534      end
3535_ACEOF
3536rm -f conftest.$ac_objext conftest$ac_exeext
3537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3538  (eval $ac_link) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545         { ac_try='test -z "$ac_f77_werror_flag"
3546                         || test ! -s conftest.err'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; } &&
3552         { ac_try='test -s conftest$ac_exeext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  coin_opt_fflags="-O"
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563fi
3564rm -f conftest.err conftest.$ac_objext \
3565      conftest$ac_exeext conftest.$ac_ext
3566  fi
3567
3568  # if PM doesn't want the warning messages, take them out
3569  if test x"$coin_skip_warn_fflags" = xyes; then
3570    coin_warn_fflags=
3571  fi
3572
3573  if test x${DBG_FFLAGS+set} != xset; then
3574    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3575  fi
3576  if test x${OPT_FFLAGS+set} != xset; then
3577    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3578  fi
3579
3580  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3581  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3582
3583  if test "$coin_debug_compile" = "true"; then
3584    FFLAGS="$DBG_FFLAGS"
3585  else
3586    FFLAGS="$OPT_FFLAGS"
3587  fi
3588else
3589  FFLAGS="$FFLAGS $ADD_FFLAGS"
3590  if test x${DBG_FFLAGS+set} != xset; then
3591    DBG_FFLAGS="$FFLAGS"
3592  fi
3593  if test x${OPT_FFLAGS+set} != xset; then
3594    OPT_FFLAGS="$FFLAGS"
3595  fi
3596fi
3597
3598# Try if FFLAGS works
3599if test "$F77" != "unavailable" ; then
3600  cat >conftest.$ac_ext <<_ACEOF
3601      program main
3602      integer i
3603      end
3604_ACEOF
3605rm -f conftest.$ac_objext conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607  (eval $ac_link) 2>conftest.er1
3608  ac_status=$?
3609  grep -v '^ *+' conftest.er1 >conftest.err
3610  rm -f conftest.er1
3611  cat conftest.err >&5
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); } &&
3614         { ac_try='test -z "$ac_f77_werror_flag"
3615                         || test ! -s conftest.err'
3616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617  (eval $ac_try) 2>&5
3618  ac_status=$?
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); }; } &&
3621         { ac_try='test -s conftest$ac_exeext'
3622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623  (eval $ac_try) 2>&5
3624  ac_status=$?
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); }; }; then
3627  :
3628else
3629  echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632FFLAGS=
3633fi
3634rm -f conftest.err conftest.$ac_objext \
3635      conftest$ac_exeext conftest.$ac_ext
3636  if test -z "$FFLAGS"; then
3637    { 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
3638echo "$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;}
3639    FFLAGS='-O'
3640    cat >conftest.$ac_ext <<_ACEOF
3641      program main
3642      integer i
3643      end
3644_ACEOF
3645rm -f conftest.$ac_objext conftest$ac_exeext
3646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647  (eval $ac_link) 2>conftest.er1
3648  ac_status=$?
3649  grep -v '^ *+' conftest.er1 >conftest.err
3650  rm -f conftest.er1
3651  cat conftest.err >&5
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); } &&
3654         { ac_try='test -z "$ac_f77_werror_flag"
3655                         || test ! -s conftest.err'
3656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657  (eval $ac_try) 2>&5
3658  ac_status=$?
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); }; } &&
3661         { ac_try='test -s conftest$ac_exeext'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; }; then
3667  :
3668else
3669  echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672FFLAGS=
3673fi
3674rm -f conftest.err conftest.$ac_objext \
3675      conftest$ac_exeext conftest.$ac_ext
3676    if test -z "$FFLAGS"; then
3677      { 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
3678echo "$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;}
3679    fi
3680  fi
3681fi
3682
3683{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3684echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3685
3686
3687if test x"$MPIF77" = x; then :; else
3688  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3689echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3690  F77="$MPIF77"
3691fi
3692
3693# correct the LD variable if we use the intel fortran compiler in windows
3694case "$F77" in
3695  ifort* | */ifort* | IFORT* | */IFORT*)
3696
3697 case $build in
3698  *-mingw*)
3699    if test "${LD+set}" = set; then :; else
3700      LD=link
3701    fi
3702    ;;
3703 esac
3704 if test $enable_msvc = yes ; then
3705   if test "x${LD+set}" = xset; then :; else
3706     LD=link
3707   fi
3708 fi
3709
3710    ;;
3711esac
3712
3713ac_ext=c
3714ac_cpp='$CPP $CPPFLAGS'
3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719
3720
3721# get FLIBS
3722ac_ext=f
3723ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3724ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3726echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3727echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3728if test "${ac_cv_prog_f77_v+set}" = set; then
3729  echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731  cat >conftest.$ac_ext <<_ACEOF
3732      program main
3733
3734      end
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738  (eval $ac_compile) 2>conftest.er1
3739  ac_status=$?
3740  grep -v '^ *+' conftest.er1 >conftest.err
3741  rm -f conftest.er1
3742  cat conftest.err >&5
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); } &&
3745         { ac_try='test -z "$ac_f77_werror_flag"
3746                         || test ! -s conftest.err'
3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748  (eval $ac_try) 2>&5
3749  ac_status=$?
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); }; } &&
3752         { ac_try='test -s conftest.$ac_objext'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; }; then
3758  ac_cv_prog_f77_v=
3759# Try some options frequently used verbose output
3760for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3761  cat >conftest.$ac_ext <<_ACEOF
3762      program main
3763
3764      end
3765_ACEOF
3766
3767# Compile and link our simple test program by passing a flag (argument
3768# 1 to this macro) to the Fortran compiler in order to get
3769# "verbose" output that we can then parse for the Fortran linker
3770# flags.
3771ac_save_FFLAGS=$FFLAGS
3772FFLAGS="$FFLAGS $ac_verb"
3773(eval echo $as_me:3773: \"$ac_link\") >&5
3774ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3775echo "$ac_f77_v_output" >&5
3776FFLAGS=$ac_save_FFLAGS
3777
3778rm -f conftest*
3779
3780# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3781# /foo, /bar, and /baz are search directories for the Fortran linker.
3782# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3783ac_f77_v_output="`echo $ac_f77_v_output |
3784        grep 'LPATH is:' |
3785        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3786
3787case $ac_f77_v_output in
3788  # If we are using xlf then replace all the commas with spaces.
3789  *xlfentry*)
3790    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3791
3792  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3793  # $LIBS confuse us, and the libraries appear later in the output anyway).
3794  *mGLOB_options_string*)
3795    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3796
3797  # If we are using Cray Fortran then delete quotes.
3798  # Use "\"" instead of '"' for font-lock-mode.
3799  # FIXME: a more general fix for quoted arguments with spaces?
3800  *cft90*)
3801    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3802esac
3803
3804
3805  # look for -l* and *.a constructs in the output
3806  for ac_arg in $ac_f77_v_output; do
3807     case $ac_arg in
3808        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3809          ac_cv_prog_f77_v=$ac_verb
3810          break 2 ;;
3811     esac
3812  done
3813done
3814if test -z "$ac_cv_prog_f77_v"; then
3815   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3816echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3817fi
3818else
3819  echo "$as_me: failed program was:" >&5
3820sed 's/^/| /' conftest.$ac_ext >&5
3821
3822{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3823echo "$as_me: WARNING: compilation failed" >&2;}
3824fi
3825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3826
3827fi
3828echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3829echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3830echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3831echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3832if test "${ac_cv_f77_libs+set}" = set; then
3833  echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835  if test "x$FLIBS" != "x"; then
3836  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3837else
3838
3839cat >conftest.$ac_ext <<_ACEOF
3840      program main
3841
3842      end
3843_ACEOF
3844
3845# Compile and link our simple test program by passing a flag (argument
3846# 1 to this macro) to the Fortran compiler in order to get
3847# "verbose" output that we can then parse for the Fortran linker
3848# flags.
3849ac_save_FFLAGS=$FFLAGS
3850FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3851(eval echo $as_me:3851: \"$ac_link\") >&5
3852ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3853echo "$ac_f77_v_output" >&5
3854FFLAGS=$ac_save_FFLAGS
3855
3856rm -f conftest*
3857
3858# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3859# /foo, /bar, and /baz are search directories for the Fortran linker.
3860# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3861ac_f77_v_output="`echo $ac_f77_v_output |
3862        grep 'LPATH is:' |
3863        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3864
3865case $ac_f77_v_output in
3866  # If we are using xlf then replace all the commas with spaces.
3867  *xlfentry*)
3868    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3869
3870  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3871  # $LIBS confuse us, and the libraries appear later in the output anyway).
3872  *mGLOB_options_string*)
3873    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3874
3875  # If we are using Cray Fortran then delete quotes.
3876  # Use "\"" instead of '"' for font-lock-mode.
3877  # FIXME: a more general fix for quoted arguments with spaces?
3878  *cft90*)
3879    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3880esac
3881
3882
3883
3884ac_cv_f77_libs=
3885
3886# Save positional arguments (if any)
3887ac_save_positional="$@"
3888
3889set X $ac_f77_v_output
3890while test $# != 1; do
3891  shift
3892  ac_arg=$1
3893  case $ac_arg in
3894        [\\/]*.a | ?:[\\/]*.a)
3895            ac_exists=false
3896  for ac_i in $ac_cv_f77_libs; do
3897    if test x"$ac_arg" = x"$ac_i"; then
3898      ac_exists=true
3899      break
3900    fi
3901  done
3902
3903  if test x"$ac_exists" = xtrue; then
3904  :
3905else
3906  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3907fi
3908
3909          ;;
3910        -bI:*)
3911            ac_exists=false
3912  for ac_i in $ac_cv_f77_libs; do
3913    if test x"$ac_arg" = x"$ac_i"; then
3914      ac_exists=true
3915      break
3916    fi
3917  done
3918
3919  if test x"$ac_exists" = xtrue; then
3920  :
3921else
3922  if test "$ac_compiler_gnu" = yes; then
3923  for ac_link_opt in $ac_arg; do
3924    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
3925  done
3926else
3927  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3928fi
3929fi
3930
3931          ;;
3932          # Ignore these flags.
3933        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
3934          ;;
3935        -lkernel32)
3936          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3937          ;;
3938        -[LRuY])
3939          # These flags, when seen by themselves, take an argument.
3940          # We remove the space between option and argument and re-iterate
3941          # unless we find an empty arg or a new option (starting with -)
3942          case $2 in
3943             "" | -*);;
3944             *)
3945                ac_arg="$ac_arg$2"
3946                shift; shift
3947                set X $ac_arg "$@"
3948                ;;
3949          esac
3950          ;;
3951        -YP,*)
3952          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3953              ac_exists=false
3954  for ac_i in $ac_cv_f77_libs; do
3955    if test x"$ac_j" = x"$ac_i"; then
3956      ac_exists=true
3957      break
3958    fi
3959  done
3960
3961  if test x"$ac_exists" = xtrue; then
3962  :
3963else
3964  ac_arg="$ac_arg $ac_j"
3965                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
3966fi
3967
3968          done
3969          ;;
3970        -[lLR]*)
3971            ac_exists=false
3972  for ac_i in $ac_cv_f77_libs; do
3973    if test x"$ac_arg" = x"$ac_i"; then
3974      ac_exists=true
3975      break
3976    fi
3977  done
3978
3979  if test x"$ac_exists" = xtrue; then
3980  :
3981else
3982  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3983fi
3984
3985          ;;
3986          # Ignore everything else.
3987  esac
3988done
3989# restore positional arguments
3990set X $ac_save_positional; shift
3991
3992# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3993# then we insist that the "run path" must be an absolute path (i.e. it
3994# must begin with a "/").
3995case `(uname -sr) 2>/dev/null` in
3996   "SunOS 5"*)
3997      ac_ld_run_path=`echo $ac_f77_v_output |
3998                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3999      test "x$ac_ld_run_path" != x &&
4000        if test "$ac_compiler_gnu" = yes; then
4001  for ac_link_opt in $ac_ld_run_path; do
4002    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4003  done
4004else
4005  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4006fi
4007      ;;
4008esac
4009fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4010
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4013echo "${ECHO_T}$ac_cv_f77_libs" >&6
4014FLIBS="$ac_cv_f77_libs"
4015
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023orig_FLIBS="$FLIBS"
4024
4025# If FLIBS has been set by the user, we just restore its value here
4026if test x"$save_FLIBS" != x; then
4027  FLIBS="$save_FLIBS"
4028else
4029  # This is to correct a missing exclusion in autoconf 2.59
4030  if test x"$FLIBS" != x; then
4031    my_flibs=
4032    for flag in $FLIBS; do
4033      case $flag in
4034        -lcrt*.o) ;;
4035        -lcygwin) ;;
4036        -lgcc*)   ;;
4037               *) my_flibs="$my_flibs $flag" ;;
4038      esac
4039    done
4040    FLIBS="$my_flibs"
4041  fi
4042
4043  case $build in
4044  # The following is a fix to define FLIBS for ifort on Windows
4045  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4046  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4047  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4048  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4049  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4050     *-cygwin* | *-mingw*)
4051       case "$F77" in
4052#         ifort* | */ifort* | IFORT* | */IFORT*)
4053#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4054#           if "$coin_debug_compile" = true ; then
4055#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4056#           else
4057#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4058#           fi
4059#           ;;
4060         compile_f2c*)
4061           FLIBS=`$F77 -FLIBS` ;;
4062       esac;;
4063     *-hp-*)
4064         FLIBS="$FLIBS -lm";;
4065     *-ibm-*)
4066         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4067     *-linux-*)
4068       case "$F77" in
4069         pgf77* | */pgf77* | pgf90* | */pgf90*)
4070# ask linker to go through the archives multiple times
4071# (the Fortran compiler seems to do that automatically...)
4072           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4073       esac
4074  esac
4075  ac_cv_f77_libs="$FLIBS"
4076fi
4077
4078if test "x$orig_FLIBS" != "x$FLIBS" ; then
4079  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4080echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4081fi
4082
4083ac_ext=f
4084ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4085ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4087
4088echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4089echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4090if test "${ac_cv_f77_dummy_main+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  ac_f77_dm_save_LIBS=$LIBS
4094 LIBS="$LIBS $FLIBS"
4095 ac_fortran_dm_var=F77_DUMMY_MAIN
4096 ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102 # First, try linking without a dummy main:
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h.  */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h.  */
4109
4110#ifdef F77_DUMMY_MAIN
4111
4112#  ifdef __cplusplus
4113     extern "C"
4114#  endif
4115   int F77_DUMMY_MAIN() { return 1; }
4116
4117#endif
4118int
4119main ()
4120{
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126rm -f conftest.$ac_objext conftest$ac_exeext
4127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4128  (eval $ac_link) 2>conftest.er1
4129  ac_status=$?
4130  grep -v '^ *+' conftest.er1 >conftest.err
4131  rm -f conftest.er1
4132  cat conftest.err >&5
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); } &&
4135         { ac_try='test -z "$ac_c_werror_flag"
4136                         || test ! -s conftest.err'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; } &&
4142         { ac_try='test -s conftest$ac_exeext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  ac_cv_fortran_dummy_main=none
4149else
4150  echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153ac_cv_fortran_dummy_main=unknown
4154fi
4155rm -f conftest.err conftest.$ac_objext \
4156      conftest$ac_exeext conftest.$ac_ext
4157
4158 if test $ac_cv_fortran_dummy_main = unknown; then
4159   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4160     cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h.  */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h.  */
4166#define $ac_fortran_dm_var $ac_func
4167#ifdef F77_DUMMY_MAIN
4168
4169#  ifdef __cplusplus
4170     extern "C"
4171#  endif
4172   int F77_DUMMY_MAIN() { return 1; }
4173
4174#endif
4175int
4176main ()
4177{
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext conftest$ac_exeext
4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185  (eval $ac_link) 2>conftest.er1
4186  ac_status=$?
4187  grep -v '^ *+' conftest.er1 >conftest.err
4188  rm -f conftest.er1
4189  cat conftest.err >&5
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); } &&
4192         { ac_try='test -z "$ac_c_werror_flag"
4193                         || test ! -s conftest.err'
4194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195  (eval $ac_try) 2>&5
4196  ac_status=$?
4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198  (exit $ac_status); }; } &&
4199         { ac_try='test -s conftest$ac_exeext'
4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201  (eval $ac_try) 2>&5
4202  ac_status=$?
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; }; then
4205  ac_cv_fortran_dummy_main=$ac_func; break
4206else
4207  echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210fi
4211rm -f conftest.err conftest.$ac_objext \
4212      conftest$ac_exeext conftest.$ac_ext
4213   done
4214 fi
4215 ac_ext=f
4216ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4217ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4219 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4220 rm -f conftest*
4221 LIBS=$ac_f77_dm_save_LIBS
4222
4223fi
4224echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4225echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4226F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4227if test "$F77_DUMMY_MAIN" != unknown; then
4228  if test $F77_DUMMY_MAIN != none; then
4229
4230cat >>confdefs.h <<_ACEOF
4231#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4232_ACEOF
4233
4234  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4235
4236cat >>confdefs.h <<\_ACEOF
4237#define FC_DUMMY_MAIN_EQ_F77 1
4238_ACEOF
4239
4240  fi
4241fi
4242else
4243  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4244See \`config.log' for more details." >&5
4245echo "$as_me: error: linking to Fortran libraries from C fails
4246See \`config.log' for more details." >&2;}
4247   { (exit 1); exit 1; }; }
4248fi
4249
4250
4251ac_ext=f
4252ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4253ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4255
4256ac_ext=f
4257ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4258ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4260echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4261echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4262if test "${ac_cv_f77_mangling+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  cat >conftest.$ac_ext <<_ACEOF
4266      subroutine foobar()
4267      return
4268      end
4269      subroutine foo_bar()
4270      return
4271      end
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275  (eval $ac_compile) 2>conftest.er1
4276  ac_status=$?
4277  grep -v '^ *+' conftest.er1 >conftest.err
4278  rm -f conftest.er1
4279  cat conftest.err >&5
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); } &&
4282         { ac_try='test -z "$ac_f77_werror_flag"
4283                         || test ! -s conftest.err'
4284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285  (eval $ac_try) 2>&5
4286  ac_status=$?
4287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288  (exit $ac_status); }; } &&
4289         { ac_try='test -s conftest.$ac_objext'
4290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291  (eval $ac_try) 2>&5
4292  ac_status=$?
4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294  (exit $ac_status); }; }; then
4295  mv conftest.$ac_objext cfortran_test.$ac_objext
4296
4297  ac_save_LIBS=$LIBS
4298  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4299
4300  ac_ext=c
4301ac_cpp='$CPP $CPPFLAGS'
4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305  ac_success=no
4306  for ac_foobar in foobar FOOBAR; do
4307    for ac_underscore in "" "_"; do
4308      ac_func="$ac_foobar$ac_underscore"
4309      cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h.  */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h.  */
4315
4316/* Override any gcc2 internal prototype to avoid an error.  */
4317#ifdef __cplusplus
4318extern "C"
4319#endif
4320/* We use char because int might match the return type of a gcc2
4321   builtin and then its argument prototype would still apply.  */
4322char $ac_func ();
4323#ifdef F77_DUMMY_MAIN
4324
4325#  ifdef __cplusplus
4326     extern "C"
4327#  endif
4328   int F77_DUMMY_MAIN() { return 1; }
4329
4330#endif
4331int
4332main ()
4333{
4334$ac_func ();
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext conftest$ac_exeext
4340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341  (eval $ac_link) 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } &&
4348         { ac_try='test -z "$ac_c_werror_flag"
4349                         || test ! -s conftest.err'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; } &&
4355         { ac_try='test -s conftest$ac_exeext'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; }; then
4361  ac_success=yes; break 2
4362else
4363  echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366fi
4367rm -f conftest.err conftest.$ac_objext \
4368      conftest$ac_exeext conftest.$ac_ext
4369    done
4370  done
4371  ac_ext=f
4372ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4373ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4375
4376  if test "$ac_success" = "yes"; then
4377     case $ac_foobar in
4378        foobar)
4379           ac_case=lower
4380           ac_foo_bar=foo_bar
4381           ;;
4382        FOOBAR)
4383           ac_case=upper
4384           ac_foo_bar=FOO_BAR
4385           ;;
4386     esac
4387
4388     ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393     ac_success_extra=no
4394     for ac_extra in "" "_"; do
4395        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4396        cat >conftest.$ac_ext <<_ACEOF
4397/* confdefs.h.  */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h.  */
4402
4403/* Override any gcc2 internal prototype to avoid an error.  */
4404#ifdef __cplusplus
4405extern "C"
4406#endif
4407/* We use char because int might match the return type of a gcc2
4408   builtin and then its argument prototype would still apply.  */
4409char $ac_func ();
4410#ifdef F77_DUMMY_MAIN
4411
4412#  ifdef __cplusplus
4413     extern "C"
4414#  endif
4415   int F77_DUMMY_MAIN() { return 1; }
4416
4417#endif
4418int
4419main ()
4420{
4421$ac_func ();
4422  ;
4423  return 0;
4424}
4425_ACEOF
4426rm -f conftest.$ac_objext conftest$ac_exeext
4427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428  (eval $ac_link) 2>conftest.er1
4429  ac_status=$?
4430  grep -v '^ *+' conftest.er1 >conftest.err
4431  rm -f conftest.er1
4432  cat conftest.err >&5
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); } &&
4435         { ac_try='test -z "$ac_c_werror_flag"
4436                         || test ! -s conftest.err'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; } &&
4442         { ac_try='test -s conftest$ac_exeext'
4443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444  (eval $ac_try) 2>&5
4445  ac_status=$?
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); }; }; then
4448  ac_success_extra=yes; break
4449else
4450  echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453fi
4454rm -f conftest.err conftest.$ac_objext \
4455      conftest$ac_exeext conftest.$ac_ext
4456     done
4457     ac_ext=f
4458ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4459ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4461
4462     if test "$ac_success_extra" = "yes"; then
4463        ac_cv_f77_mangling="$ac_case case"
4464        if test -z "$ac_underscore"; then
4465           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4466        else
4467           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4468        fi
4469        if test -z "$ac_extra"; then
4470           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4471        else
4472           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4473        fi
4474      else
4475        ac_cv_f77_mangling="unknown"
4476      fi
4477  else
4478     ac_cv_f77_mangling="unknown"
4479  fi
4480
4481  LIBS=$ac_save_LIBS
4482  rm -f cfortran_test* conftest*
4483else
4484  echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4488See \`config.log' for more details." >&5
4489echo "$as_me: error: cannot compile a simple Fortran program
4490See \`config.log' for more details." >&2;}
4491   { (exit 1); exit 1; }; }
4492fi
4493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494
4495fi
4496echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4497echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4498
4499ac_ext=f
4500ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4501ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4503
4504
4505ac_ext=f
4506ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4507ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4509
4510ac_ext=f
4511ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4512ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4514
4515
4516case $ac_cv_f77_mangling in
4517  "lower case, no underscore, no extra underscore")
4518          cat >>confdefs.h <<\_ACEOF
4519#define F77_FUNC(name,NAME) name
4520_ACEOF
4521
4522          cat >>confdefs.h <<\_ACEOF
4523#define F77_FUNC_(name,NAME) name
4524_ACEOF
4525 ;;
4526  "lower case, no underscore, extra underscore")
4527          cat >>confdefs.h <<\_ACEOF
4528#define F77_FUNC(name,NAME) name
4529_ACEOF
4530
4531          cat >>confdefs.h <<\_ACEOF
4532#define F77_FUNC_(name,NAME) name ## _
4533_ACEOF
4534 ;;
4535  "lower case, underscore, no extra underscore")
4536          cat >>confdefs.h <<\_ACEOF
4537#define F77_FUNC(name,NAME) name ## _
4538_ACEOF
4539
4540          cat >>confdefs.h <<\_ACEOF
4541#define F77_FUNC_(name,NAME) name ## _
4542_ACEOF
4543 ;;
4544  "lower case, underscore, extra underscore")
4545          cat >>confdefs.h <<\_ACEOF
4546#define F77_FUNC(name,NAME) name ## _
4547_ACEOF
4548
4549          cat >>confdefs.h <<\_ACEOF
4550#define F77_FUNC_(name,NAME) name ## __
4551_ACEOF
4552 ;;
4553  "upper case, no underscore, no extra underscore")
4554          cat >>confdefs.h <<\_ACEOF
4555#define F77_FUNC(name,NAME) NAME
4556_ACEOF
4557
4558          cat >>confdefs.h <<\_ACEOF
4559#define F77_FUNC_(name,NAME) NAME
4560_ACEOF
4561 ;;
4562  "upper case, no underscore, extra underscore")
4563          cat >>confdefs.h <<\_ACEOF
4564#define F77_FUNC(name,NAME) NAME
4565_ACEOF
4566
4567          cat >>confdefs.h <<\_ACEOF
4568#define F77_FUNC_(name,NAME) NAME ## _
4569_ACEOF
4570 ;;
4571  "upper case, underscore, no extra underscore")
4572          cat >>confdefs.h <<\_ACEOF
4573#define F77_FUNC(name,NAME) NAME ## _
4574_ACEOF
4575
4576          cat >>confdefs.h <<\_ACEOF
4577#define F77_FUNC_(name,NAME) NAME ## _
4578_ACEOF
4579 ;;
4580  "upper case, underscore, extra underscore")
4581          cat >>confdefs.h <<\_ACEOF
4582#define F77_FUNC(name,NAME) NAME ## _
4583_ACEOF
4584
4585          cat >>confdefs.h <<\_ACEOF
4586#define F77_FUNC_(name,NAME) NAME ## __
4587_ACEOF
4588 ;;
4589  *)
4590          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4591echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4592          ;;
4593esac
4594
4595ac_ext=f
4596ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4597ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4599
4600ac_ext=c
4601ac_cpp='$CPP $CPPFLAGS'
4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606
4607
4608
4609#############################################################################
4610#                         Standard build tool stuff                         #
4611#############################################################################
4612
4613# Get the system type
4614
4615
4616# Initialization specifically for project main directories
4617
4618# As backup, we make sure we don't loose an FLIBS if it has been set
4619# by the user
4620save_FLIBS="$FLIBS"
4621
4622# A useful makefile conditional that is always false
4623
4624
4625if false; then
4626  ALWAYS_FALSE_TRUE=
4627  ALWAYS_FALSE_FALSE='#'
4628else
4629  ALWAYS_FALSE_TRUE='#'
4630  ALWAYS_FALSE_FALSE=
4631fi
4632
4633
4634# We set the following variable so that we know later in AC_COIN_FINALIZE
4635# that we are in a project main directory
4636coin_projectdir=yes
4637
4638# Set the project's version numbers
4639
4640
4641cat >>confdefs.h <<_ACEOF
4642#define COUENNE_VERSION "$PACKAGE_VERSION"
4643_ACEOF
4644
4645
4646  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
4647  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
4648  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
4649  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
4650  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
4651  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
4652
4653cat >>confdefs.h <<_ACEOF
4654#define COUENNE_VERSION_MAJOR $coin_majorver
4655_ACEOF
4656
4657
4658cat >>confdefs.h <<_ACEOF
4659#define COUENNE_VERSION_MINOR $coin_minorver
4660_ACEOF
4661
4662
4663cat >>confdefs.h <<_ACEOF
4664#define COUENNE_VERSION_RELEASE $coin_releasever
4665_ACEOF
4666
4667
4668  # We use the following variable to have a string with the upper case
4669  # version of the project name
4670  COIN_PRJCT=COUENNE
4671
4672  # Set the project's SVN revision number. The complicated sed expression
4673  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
4674  # as a single number.
4675  # Extract the first word of "svnversion", so it can be a program name with args.
4676set dummy svnversion; ac_word=$2
4677echo "$as_me:$LINENO: checking for $ac_word" >&5
4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679if test "${ac_cv_prog_have_svnversion+set}" = set; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682  if test -n "$have_svnversion"; then
4683  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
4684else
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688  IFS=$as_save_IFS
4689  test -z "$as_dir" && as_dir=.
4690  for ac_exec_ext in '' $ac_executable_extensions; do
4691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692    ac_cv_prog_have_svnversion="yes"
4693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694    break 2
4695  fi
4696done
4697done
4698
4699  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
4700fi
4701fi
4702have_svnversion=$ac_cv_prog_have_svnversion
4703if test -n "$have_svnversion"; then
4704  echo "$as_me:$LINENO: result: $have_svnversion" >&5
4705echo "${ECHO_T}$have_svnversion" >&6
4706else
4707  echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709fi
4710
4711  if test "x$have_svnversion" = xyes; then
4712
4713    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
4714    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
4715      COUENNE_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
4716
4717cat >>confdefs.h <<_ACEOF
4718#define COUENNE_SVN_REV $COUENNE_SVN_REV
4719_ACEOF
4720
4721    fi
4722  fi
4723
4724
4725
4726# Capture libtool library version, if given.
4727
4728
4729
4730
4731# Check if user wants to produce debugging code
4732
4733echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
4734echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
4735
4736# Check whether --enable-debug or --disable-debug was given.
4737if test "${enable_debug+set}" = set; then
4738  enableval="$enable_debug"
4739  case "${enableval}" in
4740   yes) coin_debug_compile=true
4741        if test "${enable_shared+set}" = set; then :; else
4742          enable_shared=no
4743        fi
4744        ;;
4745   no)  coin_debug_compile=false
4746        ;;
4747   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
4748echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
4749   { (exit 1); exit 1; }; }
4750        ;;
4751esac
4752else
4753  coin_debug_compile=false
4754fi;
4755
4756# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
4757if test "${enable_debug_couenne+set}" = set; then
4758  enableval="$enable_debug_couenne"
4759  case "${enableval}" in
4760    yes) coin_debug_compile=true
4761         ;;
4762    no)  coin_debug_compile=false
4763         ;;
4764    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
4765echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
4766   { (exit 1); exit 1; }; }
4767         ;;
4768 esac
4769else
4770  :
4771fi;
4772
4773 # m4_ifvaln([Couenne],
4774
4775if test $coin_debug_compile = true; then
4776  echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778else
4779  echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781fi
4782
4783
4784# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
4785if test "${with_couenne_verbosity+set}" = set; then
4786  withval="$with_couenne_verbosity"
4787  if test "$withval" = yes; then
4788                withval=1
4789              fi
4790              coin_couenne_verbosity=$withval
4791else
4792  coin_couenne_verbosity=0
4793fi;
4794
4795cat >>confdefs.h <<_ACEOF
4796#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
4797_ACEOF
4798
4799
4800
4801# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
4802if test "${with_couenne_checklevel+set}" = set; then
4803  withval="$with_couenne_checklevel"
4804  if test "$withval" = yes; then
4805                withval=1
4806              fi
4807              coin_couenne_checklevel=$withval
4808else
4809  coin_couenne_checklevel=0
4810fi;
4811
4812cat >>confdefs.h <<_ACEOF
4813#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
4814_ACEOF
4815
4816
4817 # m4_ifvaln([Couenne],
4818
4819
4820
4821# Get the name of the C++ compiler and appropriate compiler options
4822
4823 #Let's try if that overcomes configuration problem with VC++ 6.0
4824
4825ac_ext=cc
4826ac_cpp='$CXXCPP $CPPFLAGS'
4827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4830
4831
4832
4833
4834
4835
4836
4837coin_has_cxx=yes
4838
4839save_cxxflags="$CXXFLAGS"
4840# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
4841case $build in
4842  *-cygwin* | *-mingw*)
4843      if test "$enable_msvc" = yes ; then
4844         comps="icl cl g++"
4845      else
4846         comps="g++ icl cl"
4847      fi ;;
4848  *-*-solaris*)
4849             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
4850  *-darwin*) comps="g++ c++ CC" ;;
4851  *-linux-gnu*)
4852             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
4853          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
4854esac
4855
4856# We delete the cached value, since the test might not have been
4857# performed with our choice of compilers earlier
4858$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
4859# AC_MSG_NOTICE([C++ compiler candidates: $comps])
4860ac_ext=cc
4861ac_cpp='$CXXCPP $CPPFLAGS'
4862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4865if test -n "$ac_tool_prefix"; then
4866  for ac_prog in $CCC $comps
4867  do
4868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870echo "$as_me:$LINENO: checking for $ac_word" >&5
4871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4872if test "${ac_cv_prog_CXX+set}" = set; then
4873  echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875  if test -n "$CXX"; then
4876  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4877else
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881  IFS=$as_save_IFS
4882  test -z "$as_dir" && as_dir=.
4883  for ac_exec_ext in '' $ac_executable_extensions; do
4884  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887    break 2
4888  fi
4889done
4890done
4891
4892fi
4893fi
4894CXX=$ac_cv_prog_CXX
4895if test -n "$CXX"; then
4896  echo "$as_me:$LINENO: result: $CXX" >&5
4897echo "${ECHO_T}$CXX" >&6
4898else
4899  echo "$as_me:$LINENO: result: no" >&5
4900echo "${ECHO_T}no" >&6
4901fi
4902
4903    test -n "$CXX" && break
4904  done
4905fi
4906if test -z "$CXX"; then
4907  ac_ct_CXX=$CXX
4908  for ac_prog in $CCC $comps
4909do
4910  # Extract the first word of "$ac_prog", so it can be a program name with args.
4911set dummy $ac_prog; ac_word=$2
4912echo "$as_me:$LINENO: checking for $ac_word" >&5
4913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4915  echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917  if test -n "$ac_ct_CXX"; then
4918  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923  IFS=$as_save_IFS
4924  test -z "$as_dir" && as_dir=.
4925  for ac_exec_ext in '' $ac_executable_extensions; do
4926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927    ac_cv_prog_ac_ct_CXX="$ac_prog"
4928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929    break 2
4930  fi
4931done
4932done
4933
4934fi
4935fi
4936ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4937if test -n "$ac_ct_CXX"; then
4938  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4939echo "${ECHO_T}$ac_ct_CXX" >&6
4940else
4941  echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943fi
4944
4945  test -n "$ac_ct_CXX" && break
4946done
4947test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4948
4949  CXX=$ac_ct_CXX
4950fi
4951
4952
4953# Provide some information about the compiler.
4954echo "$as_me:$LINENO:" \
4955     "checking for C++ compiler version" >&5
4956ac_compiler=`set X $ac_compile; echo $2`
4957{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4958  (eval $ac_compiler --version </dev/null >&5) 2>&5
4959  ac_status=$?
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); }
4962{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4963  (eval $ac_compiler -v </dev/null >&5) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }
4967{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4968  (eval $ac_compiler -V </dev/null >&5) 2>&5
4969  ac_status=$?
4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971  (exit $ac_status); }
4972
4973echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4974echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4975if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978  cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h.  */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h.  */
4984
4985#ifdef F77_DUMMY_MAIN
4986
4987#  ifdef __cplusplus
4988     extern "C"
4989#  endif
4990   int F77_DUMMY_MAIN() { return 1; }
4991
4992#endif
4993int
4994main ()
4995{
4996#ifndef __GNUC__
4997       choke me
4998#endif
4999
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006  (eval $ac_compile) 2>conftest.er1
5007  ac_status=$?
5008  grep -v '^ *+' conftest.er1 >conftest.err
5009  rm -f conftest.er1
5010  cat conftest.err >&5
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); } &&
5013         { ac_try='test -z "$ac_cxx_werror_flag"
5014                         || test ! -s conftest.err'
5015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016  (eval $ac_try) 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; } &&
5020         { ac_try='test -s conftest.$ac_objext'
5021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022  (eval $ac_try) 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); }; }; then
5026  ac_compiler_gnu=yes
5027else
5028  echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031ac_compiler_gnu=no
5032fi
5033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5035
5036fi
5037echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5038echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5039GXX=`test $ac_compiler_gnu = yes && echo yes`
5040ac_test_CXXFLAGS=${CXXFLAGS+set}
5041ac_save_CXXFLAGS=$CXXFLAGS
5042CXXFLAGS="-g"
5043echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5044echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5045if test "${ac_cv_prog_cxx_g+set}" = set; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048  cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h.  */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h.  */
5054
5055#ifdef F77_DUMMY_MAIN
5056
5057#  ifdef __cplusplus
5058     extern "C"
5059#  endif
5060   int F77_DUMMY_MAIN() { return 1; }
5061
5062#endif
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073  (eval $ac_compile) 2>conftest.er1
5074  ac_status=$?
5075  grep -v '^ *+' conftest.er1 >conftest.err
5076  rm -f conftest.er1
5077  cat conftest.err >&5
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); } &&
5080         { ac_try='test -z "$ac_cxx_werror_flag"
5081                         || test ! -s conftest.err'
5082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083  (eval $ac_try) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }; } &&
5087         { ac_try='test -s conftest.$ac_objext'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; }; then
5093  ac_cv_prog_cxx_g=yes
5094else
5095  echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098ac_cv_prog_cxx_g=no
5099fi
5100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
5102echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5103echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5104if test "$ac_test_CXXFLAGS" = set; then
5105  CXXFLAGS=$ac_save_CXXFLAGS
5106elif test $ac_cv_prog_cxx_g = yes; then
5107  if test "$GXX" = yes; then
5108    CXXFLAGS="-g -O2"
5109  else
5110    CXXFLAGS="-g"
5111  fi
5112else
5113  if test "$GXX" = yes; then
5114    CXXFLAGS="-O2"
5115  else
5116    CXXFLAGS=
5117  fi
5118fi
5119for ac_declaration in \
5120   '' \
5121   'extern "C" void std::exit (int) throw (); using std::exit;' \
5122   'extern "C" void std::exit (int); using std::exit;' \
5123   'extern "C" void exit (int) throw ();' \
5124   'extern "C" void exit (int);' \
5125   'void exit (int);'
5126do
5127  cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h.  */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h.  */
5133$ac_declaration
5134#include <stdlib.h>
5135#ifdef F77_DUMMY_MAIN
5136
5137#  ifdef __cplusplus
5138     extern "C"
5139#  endif
5140   int F77_DUMMY_MAIN() { return 1; }
5141
5142#endif
5143int
5144main ()
5145{
5146exit (42);
5147  ;
5148  return 0;
5149}
5150_ACEOF
5151rm -f conftest.$ac_objext
5152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153  (eval $ac_compile) 2>conftest.er1
5154  ac_status=$?
5155  grep -v '^ *+' conftest.er1 >conftest.err
5156  rm -f conftest.er1
5157  cat conftest.err >&5
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); } &&
5160         { ac_try='test -z "$ac_cxx_werror_flag"
5161                         || test ! -s conftest.err'
5162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163  (eval $ac_try) 2>&5
5164  ac_status=$?
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); }; } &&
5167         { ac_try='test -s conftest.$ac_objext'
5168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169  (eval $ac_try) 2>&5
5170  ac_status=$?
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); }; }; then
5173  :
5174else
5175  echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178continue
5179fi
5180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181  cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h.  */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h.  */
5187$ac_declaration
5188#ifdef F77_DUMMY_MAIN
5189
5190#  ifdef __cplusplus
5191     extern "C"
5192#  endif
5193   int F77_DUMMY_MAIN() { return 1; }
5194
5195#endif
5196int
5197main ()
5198{
5199exit (42);
5200  ;
5201  return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206  (eval $ac_compile) 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } &&
5213         { ac_try='test -z "$ac_cxx_werror_flag"
5214                         || test ! -s conftest.err'
5215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216  (eval $ac_try) 2>&5
5217  ac_status=$?
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); }; } &&
5220         { ac_try='test -s conftest.$ac_objext'
5221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222  (eval $ac_try) 2>&5
5223  ac_status=$?
5224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225  (exit $ac_status); }; }; then
5226  break
5227else
5228  echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231fi
5232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233done
5234rm -f conftest*
5235if test -n "$ac_declaration"; then
5236  echo '#ifdef __cplusplus' >>confdefs.h
5237  echo $ac_declaration      >>confdefs.h
5238  echo '#endif'             >>confdefs.h
5239fi
5240
5241ac_ext=cc
5242ac_cpp='$CXXCPP $CPPFLAGS'
5243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246
5247
5248#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
5249#thus, we test here whether $CXX is actually working
5250ac_ext=cc
5251ac_cpp='$CXXCPP $CPPFLAGS'
5252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5255
5256echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
5257echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
5258cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264
5265#ifdef F77_DUMMY_MAIN
5266
5267#  ifdef __cplusplus
5268     extern "C"
5269#  endif
5270   int F77_DUMMY_MAIN() { return 1; }
5271
5272#endif
5273int
5274main ()
5275{
5276int i=0;
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283  (eval $ac_compile) 2>conftest.er1
5284  ac_status=$?
5285  grep -v '^ *+' conftest.er1 >conftest.err
5286  rm -f conftest.er1
5287  cat conftest.err >&5
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); } &&
5290         { ac_try='test -z "$ac_cxx_werror_flag"
5291                         || test ! -s conftest.err'
5292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293  (eval $ac_try) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; } &&
5297         { ac_try='test -s conftest.$ac_objext'
5298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299  (eval $ac_try) 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }; }; then
5303  echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305else
5306  echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
5309echo "$as_me:$LINENO: result: no" >&5
5310echo "${ECHO_T}no" >&6
5311   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
5312echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
5313   { (exit 1); exit 1; }; }
5314
5315fi
5316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317ac_ext=cc
5318ac_cpp='$CXXCPP $CPPFLAGS'
5319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5322
5323
5324coin_cxx_is_cl=false
5325# It seems that we need to cleanup something here for the Windows
5326case "$CXX" in
5327  clang* ) ;;
5328  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5329    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
5330    mv confdefs.hh confdefs.h
5331    coin_cxx_is_cl=true
5332    ;;
5333esac
5334
5335# add automake conditional so we can recognize cl compiler in makefile
5336
5337
5338if test $coin_cxx_is_cl = true; then
5339  COIN_CXX_IS_CL_TRUE=
5340  COIN_CXX_IS_CL_FALSE='#'
5341else
5342  COIN_CXX_IS_CL_TRUE='#'
5343  COIN_CXX_IS_CL_FALSE=
5344fi
5345
5346
5347# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
5348case "$CXX" in
5349  clang* ) ;;
5350  cl* | */cl* | CL* | */CL* )
5351    if test "$ac_cv_prog_cxx_g" = yes ; then
5352      ac_cv_prog_cxx_g=no
5353      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
5354echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
5355    fi ;;
5356  * )
5357    if test x"$CYGPATH_W" = x ; then
5358      CYGPATH_W=echo
5359    fi
5360    ;;
5361esac
5362CXXFLAGS="$save_cxxflags"
5363
5364# Check if a project specific CXXFLAGS variable has been set
5365if test x$COIN_PRJCT != x; then
5366  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
5367  if test x$coin_tmp = xset; then
5368    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
5369  fi
5370fi
5371
5372if test x"$CXXFLAGS" = x; then
5373
5374# ToDo decide whether we want -DNDEBUG for optimization
5375  coin_add_cxxflags=
5376  coin_opt_cxxflags=
5377  coin_dbg_cxxflags=
5378  coin_warn_cxxflags=
5379
5380  if test "$GXX" = "yes"; then
5381    case "$CXX" in
5382      icpc* | */icpc*)
5383        ;;
5384      *)
5385# ToDo decide about unroll-loops
5386        coin_opt_cxxflags="-O3"
5387        coin_add_cxxflags="-pipe"
5388        coin_dbg_cxxflags="-g -O0"
5389        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
5390        case $build in
5391          *-darwin*)
5392            ;;
5393          *)
5394            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
5395            ;;
5396        esac
5397    esac
5398  fi
5399
5400# Note that we do not need to cover GCC in the following tests.
5401
5402  if test -z "$coin_opt_cxxflags"; then
5403    case $build in
5404      *-cygwin* | *-mingw*)
5405        case "$CXX" in
5406          clang* ) ;;
5407          cl* | */cl* | CL* | */CL*)
5408            # The MT and MTd options are mutually exclusive
5409            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
5410               coin_opt_cxxflags='-MD -O2'
5411               coin_dbg_cxxflags='-MDd'
5412            else
5413               coin_opt_cxxflags='-MT -O2'
5414               coin_dbg_cxxflags='-MTd'
5415            fi
5416            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
5417            ;;
5418          icl* | */icl* | ICL* | */ICL*)
5419          # The MT and MTd options are mutually exclusive
5420            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
5421              coin_opt_cxxflags='-MD -Ox'
5422              coin_dbg_cxxflags='-MDd -debug'
5423            else
5424              coin_opt_cxxflags='-MT -Ox'
5425              coin_dbg_cxxflags='-MTd -debug'
5426            fi
5427            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
5428            ;;
5429        esac
5430        ;;
5431      *-linux-*)
5432        case "$CXX" in
5433          icpc* | */icpc*)
5434            coin_opt_cxxflags="-O3 -ip -mp1"
5435            coin_add_cxxflags=""
5436            coin_dbg_cxxflags="-g"
5437            # Check if -i_dynamic is necessary (for new glibc library)
5438            CXXFLAGS=
5439            cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445
5446#ifdef F77_DUMMY_MAIN
5447
5448#  ifdef __cplusplus
5449     extern "C"
5450#  endif
5451   int F77_DUMMY_MAIN() { return 1; }
5452
5453#endif
5454int
5455main ()
5456{
5457int i=0; i++;
5458  ;
5459  return 0;
5460}
5461_ACEOF
5462rm -f conftest.$ac_objext conftest$ac_exeext
5463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464  (eval $ac_link) 2>conftest.er1
5465  ac_status=$?
5466  grep -v '^ *+' conftest.er1 >conftest.err
5467  rm -f conftest.er1
5468  cat conftest.err >&5
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); } &&
5471         { ac_try='test -z "$ac_cxx_werror_flag"
5472                         || test ! -s conftest.err'
5473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474  (eval $ac_try) 2>&5
5475  ac_status=$?
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); }; } &&
5478         { ac_try='test -s conftest$ac_exeext'
5479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480  (eval $ac_try) 2>&5
5481  ac_status=$?
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); }; }; then
5484  :
5485else
5486  echo "$as_me: failed program was:" >&5
5487sed 's/^/| /' conftest.$ac_ext >&5
5488
5489coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
5490fi
5491rm -f conftest.err conftest.$ac_objext \
5492      conftest$ac_exeext conftest.$ac_ext
5493            ;;
5494          pgCC* | */pgCC*)
5495            coin_opt_cxxflags="-fast"
5496            coin_add_cxxflags="-Kieee -pc 64"
5497            coin_dbg_cxxflags="-g"
5498            ;;
5499        esac
5500        ;;
5501      *-ibm-*)
5502        case "$CXX" in
5503          xlC* | */xlC* | mpxlC* | */mpxlC*)
5504            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
5505            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
5506            coin_dbg_cxxflags="-g"
5507            ;;
5508        esac
5509        ;;
5510      *-hp-*)
5511        case "$CXX" in
5512          aCC* | */aCC* )
5513            coin_opt_cxxflags="-O"
5514            coin_add_cxxflags="-AA"
5515            coin_dbg_cxxflags="-g"
5516            ;;
5517        esac
5518        ;;
5519      *-*-solaris*)
5520          coin_opt_cxxflags="-O4"
5521          coin_dbg_cxxflags="-g"
5522        ;;
5523    esac
5524  fi
5525
5526# Generic flag settings. If these don't work, add a case above.
5527
5528  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
5529    coin_dbg_cxxflags="-g"
5530  fi
5531
5532  if test -z "$coin_opt_cxxflags"; then
5533    # Try if -O option works if nothing else is set
5534    CXXFLAGS=-O
5535    cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541
5542#ifdef F77_DUMMY_MAIN
5543
5544#  ifdef __cplusplus
5545     extern "C"
5546#  endif
5547   int F77_DUMMY_MAIN() { return 1; }
5548
5549#endif
5550int
5551main ()
5552{
5553int i=0; i++;
5554  ;
5555  return 0;
5556}
5557_ACEOF
5558rm -f conftest.$ac_objext conftest$ac_exeext
5559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560  (eval $ac_link) 2>conftest.er1
5561  ac_status=$?
5562  grep -v '^ *+' conftest.er1 >conftest.err
5563  rm -f conftest.er1
5564  cat conftest.err >&5
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); } &&
5567         { ac_try='test -z "$ac_cxx_werror_flag"
5568                         || test ! -s conftest.err'
5569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570  (eval $ac_try) 2>&5
5571  ac_status=$?
5572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); }; } &&
5574         { ac_try='test -s conftest$ac_exeext'
5575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576  (eval $ac_try) 2>&5
5577  ac_status=$?
5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579  (exit $ac_status); }; }; then
5580  coin_opt_cxxflags="-O"
5581else
5582  echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585fi
5586rm -f conftest.err conftest.$ac_objext \
5587      conftest$ac_exeext conftest.$ac_ext
5588  fi
5589
5590  # if PM doesn't want the warning messages, take them out
5591  if test x"$coin_skip_warn_cxxflags" = xyes; then
5592    coin_warn_cxxflags=
5593  fi
5594
5595# Do final setup of flags based on values determined above.
5596
5597  if test x${DBG_CXXFLAGS+set} != xset; then
5598    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
5599  fi
5600  if test x${OPT_CXXFLAGS+set} != xset; then
5601    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
5602  fi
5603
5604  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5605  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5606
5607  if test "$coin_debug_compile" = "true"; then
5608    CXXFLAGS="$DBG_CXXFLAGS"
5609  else
5610    CXXFLAGS="$OPT_CXXFLAGS"
5611  fi
5612
5613# Handle the case where CXXFLAGS was set externally.
5614else
5615  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5616  if test x${DBG_CXXFLAGS+set} != xset; then
5617    DBG_CXXFLAGS="$CXXFLAGS"
5618  fi
5619  if test x${OPT_CXXFLAGS+set} != xset; then
5620    OPT_CXXFLAGS="$CXXFLAGS"
5621  fi
5622fi
5623
5624# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
5625if test x$COIN_PRJCT != x; then
5626  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
5627fi
5628
5629# Try if CXXFLAGS works
5630save_CXXFLAGS="$CXXFLAGS"
5631cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h.  */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h.  */
5637
5638#ifdef F77_DUMMY_MAIN
5639
5640#  ifdef __cplusplus
5641     extern "C"
5642#  endif
5643   int F77_DUMMY_MAIN() { return 1; }
5644
5645#endif
5646int
5647main ()
5648{
5649int i=0; i++;
5650  ;
5651  return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext conftest$ac_exeext
5655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656  (eval $ac_link) 2>conftest.er1
5657  ac_status=$?
5658  grep -v '^ *+' conftest.er1 >conftest.err
5659  rm -f conftest.er1
5660  cat conftest.err >&5
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } &&
5663         { ac_try='test -z "$ac_cxx_werror_flag"
5664                         || test ! -s conftest.err'
5665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666  (eval $ac_try) 2>&5
5667  ac_status=$?
5668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); }; } &&
5670         { ac_try='test -s conftest$ac_exeext'
5671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672  (eval $ac_try) 2>&5
5673  ac_status=$?
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); }; }; then
5676  :
5677else
5678  echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681CXXFLAGS=
5682fi
5683rm -f conftest.err conftest.$ac_objext \
5684      conftest$ac_exeext conftest.$ac_ext
5685if test -z "$CXXFLAGS"; then
5686  { 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
5687echo "$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;}
5688  CXXFLAGS='-O'
5689  cat >conftest.$ac_ext <<_ACEOF
5690/* confdefs.h.  */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h.  */
5695
5696#ifdef F77_DUMMY_MAIN
5697
5698#  ifdef __cplusplus
5699     extern "C"
5700#  endif
5701   int F77_DUMMY_MAIN() { return 1; }
5702
5703#endif
5704int
5705main ()
5706{
5707int i=0; i++;
5708  ;
5709  return 0;
5710}
5711_ACEOF
5712rm -f conftest.$ac_objext conftest$ac_exeext
5713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714  (eval $ac_link) 2>conftest.er1
5715  ac_status=$?
5716  grep -v '^ *+' conftest.er1 >conftest.err
5717  rm -f conftest.er1
5718  cat conftest.err >&5
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); } &&
5721         { ac_try='test -z "$ac_cxx_werror_flag"
5722                         || test ! -s conftest.err'
5723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724  (eval $ac_try) 2>&5
5725  ac_status=$?
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); }; } &&
5728         { ac_try='test -s conftest$ac_exeext'
5729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730  (eval $ac_try) 2>&5
5731  ac_status=$?
5732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733  (exit $ac_status); }; }; then
5734  :
5735else
5736  echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739CXXFLAGS=
5740fi
5741rm -f conftest.err conftest.$ac_objext \
5742      conftest$ac_exeext conftest.$ac_ext
5743  if test -z "$CXXFLAGS"; then
5744    { 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
5745echo "$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;}
5746  fi
5747fi
5748
5749{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
5750echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
5751
5752
5753if test x"$MPICXX" = x; then :; else
5754  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
5755echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
5756  CXX="$MPICXX"
5757fi
5758
5759# correct the LD variable in a mingw build with MS or intel compiler
5760case "$CXX" in
5761  clang* ) ;;
5762  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5763
5764 case $build in
5765  *-mingw*)
5766    if test "${LD+set}" = set; then :; else
5767      LD=link
5768    fi
5769    ;;
5770 esac
5771 if test $enable_msvc = yes ; then
5772   if test "x${LD+set}" = xset; then :; else
5773     LD=link
5774   fi
5775 fi
5776
5777    ;;
5778esac
5779
5780ac_ext=c
5781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786
5787
5788# Get the name of the C compiler and appropriate compiler options
5789
5790
5791ac_ext=c
5792ac_cpp='$CPP $CPPFLAGS'
5793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796
5797
5798# For consistency, we set the C compiler to the same value of the C++
5799# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
5800if test x"$CXX" != x; then
5801  case "$CXX" in
5802    clang* ) ;;
5803    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5804      if test x"$CC" = x; then
5805        CC="$CXX"
5806        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
5807echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
5808      fi
5809      ;;
5810  esac
5811fi
5812
5813
5814
5815
5816
5817
5818coin_has_cc=yes
5819
5820save_cflags="$CFLAGS"
5821
5822# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
5823# Depending on the user's PATH, when Studio/Workshop cc is not present we may
5824# find /usr/ucb/cc, which is almost certainly not a good choice for the C
5825# compiler. In this case, put cc after gcc.
5826
5827case $build in
5828  *-cygwin* | *-mingw*)
5829             if test "$enable_msvc" = yes ; then
5830               comps="icl cl gcc"
5831             else
5832               comps="gcc icl cl"
5833             fi ;;
5834  *-*-solaris*)
5835             # Extract the first word of "cc", so it can be a program name with args.
5836set dummy cc; ac_word=$2
5837echo "$as_me:$LINENO: checking for $ac_word" >&5
5838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5839if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
5840  echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842  if test -n "$sol_cc_compiler"; then
5843  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
5844else
5845  ac_prog_rejected=no
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849  IFS=$as_save_IFS
5850  test -z "$as_dir" && as_dir=.
5851  for ac_exec_ext in '' $ac_executable_extensions; do
5852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5854       ac_prog_rejected=yes
5855       continue
5856     fi
5857    ac_cv_prog_sol_cc_compiler="cc"
5858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862done
5863
5864if test $ac_prog_rejected = yes; then
5865  # We found a bogon in the path, so make sure we never use it.
5866  set dummy $ac_cv_prog_sol_cc_compiler
5867  shift
5868  if test $# != 0; then
5869    # We chose a different compiler from the bogus one.
5870    # However, it has the same basename, so the bogon will be chosen
5871    # first if we set sol_cc_compiler to just the basename; use the full file name.
5872    shift
5873    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
5874  fi
5875fi
5876fi
5877fi
5878sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
5879if test -n "$sol_cc_compiler"; then
5880  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
5881echo "${ECHO_T}$sol_cc_compiler" >&6
5882else
5883  echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
5885fi
5886
5887             if test "$sol_cc_compiler" = "cc" ; then
5888               comps="cc xlc gcc pgcc icc"
5889             else
5890               comps="xlc gcc pgcc icc cc"
5891             fi
5892             ;;
5893  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
5894  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
5895  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
5896esac
5897
5898# We delete the cached value, since the test might not have been
5899# performed with our choice of compilers earlier
5900$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
5901# AC_MSG_NOTICE([C compiler candidates: $comps])
5902ac_ext=c
5903ac_cpp='$CPP $CPPFLAGS'
5904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907if test -n "$ac_tool_prefix"; then
5908  for ac_prog in $comps
5909  do
5910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_prog_CC+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  if test -n "$CC"; then
5918  ac_cv_prog_CC="$CC" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925  for ac_exec_ext in '' $ac_executable_extensions; do
5926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932done
5933
5934fi
5935fi
5936CC=$ac_cv_prog_CC
5937if test -n "$CC"; then
5938  echo "$as_me:$LINENO: result: $CC" >&5
5939echo "${ECHO_T}$CC" >&6
5940else
5941  echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943fi
5944
5945    test -n "$CC" && break
5946  done
5947fi
5948if test -z "$CC"; then
5949  ac_ct_CC=$CC
5950  for ac_prog in $comps
5951do
5952  # Extract the first word of "$ac_prog", so it can be a program name with args.
5953set dummy $ac_prog; ac_word=$2
5954echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  if test -n "$ac_ct_CC"; then
5960  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967  for ac_exec_ext in '' $ac_executable_extensions; do
5968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969    ac_cv_prog_ac_ct_CC="$ac_prog"
5970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974done
5975
5976fi
5977fi
5978ac_ct_CC=$ac_cv_prog_ac_ct_CC
5979if test -n "$ac_ct_CC"; then
5980  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5981echo "${ECHO_T}$ac_ct_CC" >&6
5982else
5983  echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985fi
5986
5987  test -n "$ac_ct_CC" && break
5988done
5989
5990  CC=$ac_ct_CC
5991fi
5992
5993
5994test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5995See \`config.log' for more details." >&5
5996echo "$as_me: error: no acceptable C compiler found in \$PATH
5997See \`config.log' for more details." >&2;}
5998   { (exit 1); exit 1; }; }
5999
6000# Provide some information about the compiler.
6001echo "$as_me:$LINENO:" \
6002     "checking for C compiler version" >&5
6003ac_compiler=`set X $ac_compile; echo $2`
6004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6005  (eval $ac_compiler --version </dev/null >&5) 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); }
6009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6010  (eval $ac_compiler -v </dev/null >&5) 2>&5
6011  ac_status=$?
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); }
6014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6015  (eval $ac_compiler -V </dev/null >&5) 2>&5
6016  ac_status=$?
6017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018  (exit $ac_status); }
6019
6020echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6021echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6022if test "${ac_cv_c_compiler_gnu+set}" = set; then
6023  echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025  cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h.  */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h.  */
6031
6032#ifdef F77_DUMMY_MAIN
6033
6034#  ifdef __cplusplus
6035     extern "C"
6036#  endif
6037   int F77_DUMMY_MAIN() { return 1; }
6038
6039#endif
6040int
6041main ()
6042{
6043#ifndef __GNUC__
6044       choke me
6045#endif
6046
6047  ;
6048  return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext
6052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053  (eval $ac_compile) 2>conftest.er1
6054  ac_status=$?
6055  grep -v '^ *+' conftest.er1 >conftest.err
6056  rm -f conftest.er1
6057  cat conftest.err >&5
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); } &&
6060         { ac_try='test -z "$ac_c_werror_flag"
6061                         || test ! -s conftest.err'
6062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063  (eval $ac_try) 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }; } &&
6067         { ac_try='test -s conftest.$ac_objext'
6068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069  (eval $ac_try) 2>&5
6070  ac_status=$?
6071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072  (exit $ac_status); }; }; then
6073  ac_compiler_gnu=yes
6074else
6075  echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078ac_compiler_gnu=no
6079fi
6080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081ac_cv_c_compiler_gnu=$ac_compiler_gnu
6082
6083fi
6084echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6085echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6086GCC=`test $ac_compiler_gnu = yes && echo yes`
6087ac_test_CFLAGS=${CFLAGS+set}
6088ac_save_CFLAGS=$CFLAGS
6089CFLAGS="-g"
6090echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6091echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6092if test "${ac_cv_prog_cc_g+set}" = set; then
6093  echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095  cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101
6102#ifdef F77_DUMMY_MAIN
6103
6104#  ifdef __cplusplus
6105     extern "C"
6106#  endif
6107   int F77_DUMMY_MAIN() { return 1; }
6108
6109#endif
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120  (eval $ac_compile) 2>conftest.er1
6121  ac_status=$?
6122  grep -v '^ *+' conftest.er1 >conftest.err
6123  rm -f conftest.er1
6124  cat conftest.err >&5
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); } &&
6127         { ac_try='test -z "$ac_c_werror_flag"
6128                         || test ! -s conftest.err'
6129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130  (eval $ac_try) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; } &&
6134         { ac_try='test -s conftest.$ac_objext'
6135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136  (eval $ac_try) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; }; then
6140  ac_cv_prog_cc_g=yes
6141else
6142  echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145ac_cv_prog_cc_g=no
6146fi
6147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6150echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6151if test "$ac_test_CFLAGS" = set; then
6152  CFLAGS=$ac_save_CFLAGS
6153elif test $ac_cv_prog_cc_g = yes; then
6154  if test "$GCC" = yes; then
6155    CFLAGS="-g -O2"
6156  else
6157    CFLAGS="-g"
6158  fi
6159else
6160  if test "$GCC" = yes; then
6161    CFLAGS="-O2"
6162  else
6163    CFLAGS=
6164  fi
6165fi
6166echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6167echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6168if test "${ac_cv_prog_cc_stdc+set}" = set; then
6169  echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
6171  ac_cv_prog_cc_stdc=no
6172ac_save_CC=$CC
6173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h.  */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h.  */
6179#include <stdarg.h>
6180#include <stdio.h>
6181#include <sys/types.h>
6182#include <sys/stat.h>
6183/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6184struct buf { int x; };
6185FILE * (*rcsopen) (struct buf *, struct stat *, int);
6186static char *e (p, i)
6187     char **p;
6188     int i;
6189{
6190  return p[i];
6191}
6192static char *f (char * (*g) (char **, int), char **p, ...)
6193{
6194  char *s;
6195  va_list v;
6196  va_start (v,p);
6197  s = g (p, va_arg (v,int));
6198  va_end (v);
6199  return s;
6200}
6201
6202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6203   function prototypes and stuff, but not '\xHH' hex character constants.
6204   These don't provoke an error unfortunately, instead are silently treated
6205   as 'x'.  The following induces an error, until -std1 is added to get
6206   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6207   array size at least.  It's necessary to write '\x00'==0 to get something
6208   that's true only with -std1.  */
6209int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6210
6211int test (int i, double x);
6212struct s1 {int (*f) (int a);};
6213struct s2 {int (*f) (double a);};
6214int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6215int argc;
6216char **argv;
6217#ifdef F77_DUMMY_MAIN
6218
6219#  ifdef __cplusplus
6220     extern "C"
6221#  endif
6222   int F77_DUMMY_MAIN() { return 1; }
6223
6224#endif
6225int
6226main ()
6227{
6228return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6229  ;
6230  return 0;
6231}
6232_ACEOF
6233# Don't try gcc -ansi; that turns off useful extensions and
6234# breaks some systems' header files.
6235# AIX                   -qlanglvl=ansi
6236# Ultrix and OSF/1      -std1
6237# HP-UX 10.20 and later -Ae
6238# HP-UX older versions  -Aa -D_HPUX_SOURCE
6239# SVR4                  -Xc -D__EXTENSIONS__
6240for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6241do
6242  CC="$ac_save_CC $ac_arg"
6243  rm -f conftest.$ac_objext
6244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245  (eval $ac_compile) 2>conftest.er1
6246  ac_status=$?
6247  grep -v '^ *+' conftest.er1 >conftest.err
6248  rm -f conftest.er1
6249  cat conftest.err >&5
6250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251  (exit $ac_status); } &&
6252         { ac_try='test -z "$ac_c_werror_flag"
6253                         || test ! -s conftest.err'
6254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255  (eval $ac_try) 2>&5
6256  ac_status=$?
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); }; } &&
6259         { ac_try='test -s conftest.$ac_objext'
6260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261  (eval $ac_try) 2>&5
6262  ac_status=$?
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }; }; then
6265  ac_cv_prog_cc_stdc=$ac_arg
6266break
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271fi
6272rm -f conftest.err conftest.$ac_objext
6273done
6274rm -f conftest.$ac_ext conftest.$ac_objext
6275CC=$ac_save_CC
6276
6277fi
6278
6279case "x$ac_cv_prog_cc_stdc" in
6280  x|xno)
6281    echo "$as_me:$LINENO: result: none needed" >&5
6282echo "${ECHO_T}none needed" >&6 ;;
6283  *)
6284    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6285echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6286    CC="$CC $ac_cv_prog_cc_stdc" ;;
6287esac
6288
6289# Some people use a C++ compiler to compile C.  Since we use `exit',
6290# in C++ we need to declare it.  In case someone uses the same compiler
6291# for both compiling C and C++ we need to have the C++ compiler decide
6292# the declaration of exit, since it's the most demanding environment.
6293cat >conftest.$ac_ext <<_ACEOF
6294#ifndef __cplusplus
6295  choke me
6296#endif
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300  (eval $ac_compile) 2>conftest.er1
6301  ac_status=$?
6302  grep -v '^ *+' conftest.er1 >conftest.err
6303  rm -f conftest.er1
6304  cat conftest.err >&5
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); } &&
6307         { ac_try='test -z "$ac_c_werror_flag"
6308                         || test ! -s conftest.err'
6309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310  (eval $ac_try) 2>&5
6311  ac_status=$?
6312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313  (exit $ac_status); }; } &&
6314         { ac_try='test -s conftest.$ac_objext'
6315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316  (eval $ac_try) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); }; }; then
6320  for ac_declaration in \
6321   '' \
6322   'extern "C" void std::exit (int) throw (); using std::exit;' \
6323   'extern "C" void std::exit (int); using std::exit;' \
6324   'extern "C" void exit (int) throw ();' \
6325   'extern "C" void exit (int);' \
6326   'void exit (int);'
6327do
6328  cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h.  */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h.  */
6334$ac_declaration
6335#include <stdlib.h>
6336#ifdef F77_DUMMY_MAIN
6337
6338#  ifdef __cplusplus
6339     extern "C"
6340#  endif
6341   int F77_DUMMY_MAIN() { return 1; }
6342
6343#endif
6344int
6345main ()
6346{
6347exit (42);
6348  ;
6349  return 0;
6350}
6351_ACEOF
6352rm -f conftest.$ac_objext
6353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354  (eval $ac_compile) 2>conftest.er1
6355  ac_status=$?
6356  grep -v '^ *+' conftest.er1 >conftest.err
6357  rm -f conftest.er1
6358  cat conftest.err >&5
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); } &&
6361         { ac_try='test -z "$ac_c_werror_flag"
6362                         || test ! -s conftest.err'
6363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364  (eval $ac_try) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); }; } &&
6368         { ac_try='test -s conftest.$ac_objext'
6369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370  (eval $ac_try) 2>&5
6371  ac_status=$?
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); }; }; then
6374  :
6375else
6376  echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379continue
6380fi
6381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382  cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h.  */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h.  */
6388$ac_declaration
6389#ifdef F77_DUMMY_MAIN
6390
6391#  ifdef __cplusplus
6392     extern "C"
6393#  endif
6394   int F77_DUMMY_MAIN() { return 1; }
6395
6396#endif
6397int
6398main ()
6399{
6400exit (42);
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407  (eval $ac_compile) 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } &&
6414         { ac_try='test -z "$ac_c_werror_flag"
6415                         || test ! -s conftest.err'
6416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417  (eval $ac_try) 2>&5
6418  ac_status=$?
6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420  (exit $ac_status); }; } &&
6421         { ac_try='test -s conftest.$ac_objext'
6422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423  (eval $ac_try) 2>&5
6424  ac_status=$?
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); }; }; then
6427  break
6428else
6429  echo "$as_me: failed program was:" >&5
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
6432fi
6433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434done
6435rm -f conftest*
6436if test -n "$ac_declaration"; then
6437  echo '#ifdef __cplusplus' >>confdefs.h
6438  echo $ac_declaration      >>confdefs.h
6439  echo '#endif'             >>confdefs.h
6440fi
6441
6442else
6443  echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446fi
6447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448ac_ext=c
6449ac_cpp='$CPP $CPPFLAGS'
6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452ac_compiler_gnu=$ac_cv_c_compiler_gnu
6453
6454if test -z "$CC" ; then
6455  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
6456echo "$as_me: error: Failed to find a C compiler!" >&2;}
6457   { (exit 1); exit 1; }; }
6458fi
6459# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
6460case "$CC" in
6461  clang* ) ;;
6462  cl* | */cl* | CL* | */CL* )
6463    if test "$ac_cv_prog_cc_g" = yes ; then
6464      ac_cv_prog_cc_g=no
6465      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
6466echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
6467    fi ;;
6468  * )
6469    if test x"$CYGPATH_W" = x ; then
6470      CYGPATH_W=echo
6471    fi
6472    ;;
6473esac
6474CFLAGS="$save_cflags"
6475
6476# add automake conditional so we can recognize cl compiler in makefile
6477coin_cc_is_cl=false
6478case "$CC" in
6479  clang* ) ;;
6480  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6481    coin_cc_is_cl=true
6482    ;;
6483esac
6484
6485
6486if test $coin_cc_is_cl = true; then
6487  COIN_CC_IS_CL_TRUE=
6488  COIN_CC_IS_CL_FALSE='#'
6489else
6490  COIN_CC_IS_CL_TRUE='#'
6491  COIN_CC_IS_CL_FALSE=
6492fi
6493
6494
6495# Check if a project specific CFLAGS variable has been set
6496if test x$COIN_PRJCT != x; then
6497  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
6498  if test x$coin_tmp = xset; then
6499    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
6500  fi
6501fi
6502
6503if test x"$CFLAGS" = x; then
6504
6505  coin_add_cflags=
6506  coin_opt_cflags=
6507  coin_dbg_cflags=
6508  coin_warn_cflags=
6509
6510  if test "$GCC" = "yes"; then
6511    case "$CC" in
6512      icc* | */icc*)
6513        ;;
6514      *)
6515        coin_opt_cflags="-O3"
6516        coin_add_cflags="-pipe"
6517        coin_dbg_cflags="-g -O0"
6518        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
6519        case $build in
6520          *-darwin*)
6521            ;;
6522          *)
6523            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
6524            ;;
6525        esac
6526    esac
6527  fi
6528  if test -z "$coin_opt_cflags"; then
6529    case $build in
6530      *-cygwin* | *-mingw*)
6531        case "$CC" in
6532          clang* ) ;;
6533          cl* | */cl* | CL* | */CL*)
6534            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
6535              coin_opt_cflags='-MD -O2'
6536              coin_dbg_cflags='-MDd'
6537            else
6538              coin_opt_cflags='-MT -O2'
6539              coin_dbg_cflags='-MTd'
6540            fi
6541            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
6542            ;;
6543          icl* | */icl* | ICL* | */ICL*)
6544            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
6545              coin_opt_cflags='-MD -Ox'
6546              coin_dbg_cflags='-MDd -debug'
6547            else
6548              coin_opt_cflags='-MT -Ox'
6549              coin_dbg_cflags='-MTd -debug'
6550            fi
6551            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
6552            ;;
6553        esac
6554        ;;
6555      *-linux-*)
6556        case "$CC" in
6557          icc* | */icc*)
6558            coin_opt_cflags="-O3 -ip -mp1"
6559            coin_add_cflags=""
6560            coin_dbg_cflags="-g"
6561            # Check if -i_dynamic is necessary (for new glibc library)
6562            CFLAGS=
6563            cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569
6570#ifdef F77_DUMMY_MAIN
6571
6572#  ifdef __cplusplus
6573     extern "C"
6574#  endif
6575   int F77_DUMMY_MAIN() { return 1; }
6576
6577#endif
6578int
6579main ()
6580{
6581int i=0; i++;
6582  ;
6583  return 0;
6584}
6585_ACEOF
6586rm -f conftest.$ac_objext conftest$ac_exeext
6587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588  (eval $ac_link) 2>conftest.er1
6589  ac_status=$?
6590  grep -v '^ *+' conftest.er1 >conftest.err
6591  rm -f conftest.er1
6592  cat conftest.err >&5
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); } &&
6595         { ac_try='test -z "$ac_c_werror_flag"
6596                         || test ! -s conftest.err'
6597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598  (eval $ac_try) 2>&5
6599  ac_status=$?
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); }; } &&
6602         { ac_try='test -s conftest$ac_exeext'
6603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604  (eval $ac_try) 2>&5
6605  ac_status=$?
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); }; }; then
6608  :
6609else
6610  echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
6613coin_add_cflags="-i_dynamic $coin_add_cflags"
6614fi
6615rm -f conftest.err conftest.$ac_objext \
6616      conftest$ac_exeext conftest.$ac_ext
6617            ;;
6618          pgcc* | */pgcc*)
6619            coin_opt_cflags="-fast"
6620            coin_add_cflags="-Kieee -pc 64"
6621            coin_dbg_cflags="-g"
6622            ;;
6623        esac
6624        ;;
6625      *-ibm-*)
6626        case "$CC" in
6627          xlc* | */xlc* | mpxlc* | */mpxlc*)
6628            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
6629            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
6630            coin_dbg_cflags="-g"
6631          ;;
6632        esac
6633        ;;
6634      *-hp-*)
6635        coin_opt_cflags="-O"
6636        coin_add_cflags="-Ae"
6637        coin_dbg_cflags="-g"
6638        ;;
6639      *-*-solaris*)
6640        coin_opt_cflags="-xO4"
6641        coin_dbg_cflags="-g"
6642        ;;
6643      *-sgi-*)
6644        coin_opt_cflags="-O -OPT:Olimit=0"
6645        coin_dbg_cflags="-g"
6646        ;;
6647    esac
6648  fi
6649
6650  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
6651    coin_dbg_cflags="-g"
6652  fi
6653
6654  if test -z "$coin_opt_cflags"; then
6655    # Try if -O option works if nothing else is set
6656    CFLAGS="-O"
6657    cat >conftest.$ac_ext <<_ACEOF
6658/* confdefs.h.  */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h.  */
6663
6664#ifdef F77_DUMMY_MAIN
6665
6666#  ifdef __cplusplus
6667     extern "C"
6668#  endif
6669   int F77_DUMMY_MAIN() { return 1; }
6670
6671#endif
6672int
6673main ()
6674{
6675int i=0; i++;
6676  ;
6677  return 0;
6678}
6679_ACEOF
6680rm -f conftest.$ac_objext conftest$ac_exeext
6681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682  (eval $ac_link) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689         { ac_try='test -z "$ac_c_werror_flag"
6690                         || test ! -s conftest.err'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; } &&
6696         { ac_try='test -s conftest$ac_exeext'
6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698  (eval $ac_try) 2>&5
6699  ac_status=$?
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); }; }; then
6702  coin_opt_cflags="-O"
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707fi
6708rm -f conftest.err conftest.$ac_objext \
6709      conftest$ac_exeext conftest.$ac_ext
6710  fi
6711
6712  # if PM doesn't want the warning messages, take them out
6713  if test x"$coin_skip_warn_cflags" = xyes; then
6714    coin_warn_cflags=
6715  fi
6716
6717  if test x${DBG_CFLAGS+set} != xset; then
6718    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
6719  fi
6720  if test x${OPT_CFLAGS+set} != xset; then
6721    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
6722  fi
6723
6724  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
6725  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
6726
6727  if test "$coin_debug_compile" = "true"; then
6728    CFLAGS="$DBG_CFLAGS"
6729  else
6730    CFLAGS="$OPT_CFLAGS"
6731  fi
6732else
6733  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
6734  if test x${DBG_CFLAGS+set} != xset; then
6735    DBG_CFLAGS="$CFLAGS"
6736  fi
6737  if test x${OPT_CFLAGS+set} != xset; then
6738    OPT_CFLAGS="$CFLAGS"
6739  fi
6740fi
6741
6742# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
6743if test x$COIN_PRJCT != x; then
6744  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
6745fi
6746
6747# Try if CFLAGS works
6748save_CFLAGS="$CFLAGS"
6749cat >conftest.$ac_ext <<_ACEOF
6750/* confdefs.h.  */
6751_ACEOF
6752cat confdefs.h >>conftest.$ac_ext
6753cat >>conftest.$ac_ext <<_ACEOF
6754/* end confdefs.h.  */
6755
6756#ifdef F77_DUMMY_MAIN
6757
6758#  ifdef __cplusplus
6759     extern "C"
6760#  endif
6761   int F77_DUMMY_MAIN() { return 1; }
6762
6763#endif
6764int
6765main ()
6766{
6767int i=0; i++;
6768  ;
6769  return 0;
6770}
6771_ACEOF
6772rm -f conftest.$ac_objext conftest$ac_exeext
6773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774  (eval $ac_link) 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } &&
6781         { ac_try='test -z "$ac_c_werror_flag"
6782                         || test ! -s conftest.err'
6783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784  (eval $ac_try) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }; } &&
6788         { ac_try='test -s conftest$ac_exeext'
6789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790  (eval $ac_try) 2>&5
6791  ac_status=$?
6792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793  (exit $ac_status); }; }; then
6794  :
6795else
6796  echo "$as_me: failed program was:" >&5
6797sed 's/^/| /' conftest.$ac_ext >&5
6798
6799CFLAGS=
6800fi
6801rm -f conftest.err conftest.$ac_objext \
6802      conftest$ac_exeext conftest.$ac_ext
6803if test -z "$CFLAGS"; then
6804  { 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
6805echo "$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;}
6806  CFLAGS='-O'
6807  cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h.  */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h.  */
6813
6814#ifdef F77_DUMMY_MAIN
6815
6816#  ifdef __cplusplus
6817     extern "C"
6818#  endif
6819   int F77_DUMMY_MAIN() { return 1; }
6820
6821#endif
6822int
6823main ()
6824{
6825int i=0; i++;
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830rm -f conftest.$ac_objext conftest$ac_exeext
6831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832  (eval $ac_link) 2>conftest.er1
6833  ac_status=$?
6834  grep -v '^ *+' conftest.er1 >conftest.err
6835  rm -f conftest.er1
6836  cat conftest.err >&5
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); } &&
6839         { ac_try='test -z "$ac_c_werror_flag"
6840                         || test ! -s conftest.err'
6841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842  (eval $ac_try) 2>&5
6843  ac_status=$?
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); }; } &&
6846         { ac_try='test -s conftest$ac_exeext'
6847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848  (eval $ac_try) 2>&5
6849  ac_status=$?
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); }; }; then
6852  :
6853else
6854  echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857CFLAGS=
6858fi
6859rm -f conftest.err conftest.$ac_objext \
6860      conftest$ac_exeext conftest.$ac_ext
6861  if test -z "$CFLAGS"; then
6862    { 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
6863echo "$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;}
6864  fi
6865fi
6866
6867{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
6868echo "$as_me: C compiler options are: $CFLAGS" >&6;}
6869
6870
6871if test x"$MPICC" = x; then :; else
6872  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
6873echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
6874  CC="$MPICC"
6875fi
6876
6877# Correct the LD variable if we are using the MS or Intel-windows compiler
6878case "$CC" in
6879  clang* ) ;;
6880  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6881
6882 case $build in
6883  *-mingw*)
6884    if test "${LD+set}" = set; then :; else
6885      LD=link
6886    fi
6887    ;;
6888 esac
6889 if test $enable_msvc = yes ; then
6890   if test "x${LD+set}" = xset; then :; else
6891     LD=link
6892   fi
6893 fi
6894
6895    ;;
6896esac
6897
6898ac_ext=c
6899ac_cpp='$CPP $CPPFLAGS'
6900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904
6905
6906# Initialize automake and libtool
6907{
6908
6909
6910
6911# START
6912
6913coin_disable_shared=no
6914# Test if force_shared has been set
6915if test "x" = xforce_shared; then
6916  if test x$enable_shared = xno; then
6917    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
6918echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
6919   { (exit 1); exit 1; }; }
6920  fi
6921  enable_shared=yes;
6922else
6923  # On Cygwin and AIX, building DLLs doesn't work
6924  case $build in
6925    *-cygwin* | *-mingw*)
6926      coin_disable_shared=yes
6927      if test x"$enable_shared" = xyes; then
6928        case "$CC" in
6929          clang* )
6930            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
6931echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
6932            ;;
6933          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6934            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
6935echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
6936            ;;
6937          *gcc*)
6938            if test x"$enable_dependency_linking" = xyes; then
6939              coin_disable_shared=no
6940            else
6941              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
6942echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
6943            fi
6944            ;;
6945          *)
6946            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
6947echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
6948            ;;
6949        esac
6950      fi
6951    ;;
6952    *-aix*)
6953      coin_disable_shared=yes
6954      platform=AIX
6955      if test x"$enable_shared" = xyes; then
6956        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
6957echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
6958      fi
6959    ;;
6960  esac
6961fi
6962if test x"$coin_disable_shared" = xyes; then
6963  if test x"$enable_shared" = xyes; then
6964    :
6965  else
6966    # we don't disable shared, because it was not selected anyway
6967    coin_disable_shared=no
6968  fi
6969  enable_shared=no
6970fi
6971# By default, we only want the shared objects to be compiled
6972# Check whether --enable-static or --disable-static was given.
6973if test "${enable_static+set}" = set; then
6974  enableval="$enable_static"
6975  p=${PACKAGE-default}
6976    case $enableval in
6977    yes) enable_static=yes ;;
6978    no) enable_static=no ;;
6979    *)
6980     enable_static=no
6981      # Look at the argument we got.  We use all the common list separators.
6982      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6983      for pkg in $enableval; do
6984        IFS="$lt_save_ifs"
6985        if test "X$pkg" = "X$p"; then
6986          enable_static=yes
6987        fi
6988      done
6989      IFS="$lt_save_ifs"
6990      ;;
6991    esac
6992else
6993  enable_static=no
6994fi;
6995
6996
6997
6998
6999# Initialize automake
7000echo "$as_me:$LINENO: checking for egrep" >&5
7001echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7002if test "${ac_cv_prog_egrep+set}" = set; then
7003  echo $ECHO_N "(cached) $ECHO_C" >&6
7004else
7005  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7006    then ac_cv_prog_egrep='grep -E'
7007    else ac_cv_prog_egrep='egrep'
7008    fi
7009fi
7010echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7011echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7012 EGREP=$ac_cv_prog_egrep
7013
7014
7015echo "$as_me:$LINENO: checking whether ln -s works" >&5
7016echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7017LN_S=$as_ln_s
7018if test "$LN_S" = "ln -s"; then
7019  echo "$as_me:$LINENO: result: yes" >&5
7020echo "${ECHO_T}yes" >&6
7021else
7022  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7023echo "${ECHO_T}no, using $LN_S" >&6
7024fi
7025
7026am__api_version="1.9"
7027# Find a good install program.  We prefer a C program (faster),
7028# so one script is as good as another.  But avoid the broken or
7029# incompatible versions:
7030# SysV /etc/install, /usr/sbin/install
7031# SunOS /usr/etc/install
7032# IRIX /sbin/install
7033# AIX /bin/install
7034# AmigaOS /C/install, which installs bootblocks on floppy discs
7035# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7036# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7037# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7038# OS/2's system install, which has a completely different semantic
7039# ./install, which can be erroneously created by make from ./install.sh.
7040echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7041echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7042if test -z "$INSTALL"; then
7043if test "${ac_cv_path_install+set}" = set; then
7044  echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049  IFS=$as_save_IFS
7050  test -z "$as_dir" && as_dir=.
7051  # Account for people who put trailing slashes in PATH elements.
7052case $as_dir/ in
7053  ./ | .// | /cC/* | \
7054  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7055  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7056  /usr/ucb/* ) ;;
7057  *)
7058    # OSF1 and SCO ODT 3.0 have their own names for install.
7059    # Don't use installbsd from OSF since it installs stuff as root
7060    # by default.
7061    for ac_prog in ginstall scoinst install; do
7062      for ac_exec_ext in '' $ac_executable_extensions; do
7063        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7064          if test $ac_prog = install &&
7065            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7066            # AIX install.  It has an incompatible calling convention.
7067            :
7068          elif test $ac_prog = install &&
7069            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7070            # program-specific install script used by HP pwplus--don't use.
7071            :
7072          else
7073            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7074            break 3
7075          fi
7076        fi
7077      done
7078    done
7079    ;;
7080esac
7081done
7082
7083
7084fi
7085  if test "${ac_cv_path_install+set}" = set; then
7086    INSTALL=$ac_cv_path_install
7087  else
7088    # As a last resort, use the slow shell script.  We don't cache a
7089    # path for INSTALL within a source directory, because that will
7090    # break other packages using the cache if that directory is
7091    # removed, or if the path is relative.
7092    INSTALL=$ac_install_sh
7093  fi
7094fi
7095echo "$as_me:$LINENO: result: $INSTALL" >&5
7096echo "${ECHO_T}$INSTALL" >&6
7097
7098# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7099# It thinks the first close brace ends the variable substitution.
7100test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7101
7102test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7103
7104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7105
7106echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7107echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
7108# Just in case
7109sleep 1
7110echo timestamp > conftest.file
7111# Do `set' in a subshell so we don't clobber the current shell's
7112# arguments.  Must try -L first in case configure is actually a
7113# symlink; some systems play weird games with the mod time of symlinks
7114# (eg FreeBSD returns the mod time of the symlink's containing
7115# directory).
7116if (
7117   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7118   if test "$*" = "X"; then
7119      # -L didn't work.
7120      set X `ls -t $srcdir/configure conftest.file`
7121   fi
7122   rm -f conftest.file
7123   if test "$*" != "X $srcdir/configure conftest.file" \
7124      && test "$*" != "X conftest.file $srcdir/configure"; then
7125
7126      # If neither matched, then we have a broken ls.  This can happen
7127      # if, for instance, CONFIG_SHELL is bash and it inherits a
7128      # broken ls alias from the environment.  This has actually
7129      # happened.  Such a system could not be considered "sane".
7130      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
7131alias in your environment" >&5
7132echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
7133alias in your environment" >&2;}
7134   { (exit 1); exit 1; }; }
7135   fi
7136
7137   test "$2" = conftest.file
7138   )
7139then
7140   # Ok.
7141   :
7142else
7143   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
7144Check your system clock" >&5
7145echo "$as_me: error: newly created file is older than distributed files!
7146Check your system clock" >&2;}
7147   { (exit 1); exit 1; }; }
7148fi
7149echo "$as_me:$LINENO: result: yes" >&5
7150echo "${ECHO_T}yes" >&6
7151test "$program_prefix" != NONE &&
7152  program_transform_name="s,^,$program_prefix,;$program_transform_name"
7153# Use a double $ so make ignores it.
7154test "$program_suffix" != NONE &&
7155  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
7156# Double any \ or $.  echo might interpret backslashes.
7157# By default was `s,x,x', remove it if useless.
7158cat <<\_ACEOF >conftest.sed
7159s/[\\$]/&&/g;s/;s,x,x,$//
7160_ACEOF
7161program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7162rm conftest.sed
7163
7164# expand $ac_aux_dir to an absolute path
7165am_aux_dir=`cd $ac_aux_dir && pwd`
7166
7167test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7168# Use eval to expand $SHELL
7169if eval "$MISSING --run true"; then
7170  am_missing_run="$MISSING --run "
7171else
7172  am_missing_run=
7173  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
7174echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7175fi
7176
7177if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7178  # We used to keeping the `.' as first argument, in order to
7179  # allow $(mkdir_p) to be used without argument.  As in
7180  #   $(mkdir_p) $(somedir)
7181  # where $(somedir) is conditionally defined.  However this is wrong
7182  # for two reasons:
7183  #  1. if the package is installed by a user who cannot write `.'
7184  #     make install will fail,
7185  #  2. the above comment should most certainly read
7186  #     $(mkdir_p) $(DESTDIR)$(somedir)
7187  #     so it does not work when $(somedir) is undefined and
7188  #     $(DESTDIR) is not.
7189  #  To support the latter case, we have to write
7190  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7191  #  so the `.' trick is pointless.
7192  mkdir_p='mkdir -p --'
7193else
7194  # On NextStep and OpenStep, the `mkdir' command does not
7195  # recognize any option.  It will interpret all options as
7196  # directories to create, and then abort because `.' already
7197  # exists.
7198  for d in ./-p ./--version;
7199  do
7200    test -d $d && rmdir $d
7201  done
7202  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7203  if test -f "$ac_aux_dir/mkinstalldirs"; then
7204    mkdir_p='$(mkinstalldirs)'
7205  else
7206    mkdir_p='$(install_sh) -d'
7207  fi
7208fi
7209
7210for ac_prog in gawk mawk nawk awk
7211do
7212  # Extract the first word of "$ac_prog", so it can be a program name with args.
7213set dummy $ac_prog; ac_word=$2
7214echo "$as_me:$LINENO: checking for $ac_word" >&5
7215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7216if test "${ac_cv_prog_AWK+set}" = set; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  if test -n "$AWK"; then
7220  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227  for ac_exec_ext in '' $ac_executable_extensions; do
7228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229    ac_cv_prog_AWK="$ac_prog"
7230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234done
7235
7236fi
7237fi
7238AWK=$ac_cv_prog_AWK
7239if test -n "$AWK"; then
7240  echo "$as_me:$LINENO: result: $AWK" >&5
7241echo "${ECHO_T}$AWK" >&6
7242else
7243  echo "$as_me:$LINENO: result: no" >&5
7244echo "${ECHO_T}no" >&6
7245fi
7246
7247  test -n "$AWK" && break
7248done
7249
7250echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7251echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7252set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7253if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7254  echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256  cat >conftest.make <<\_ACEOF
7257all:
7258        @echo 'ac_maketemp="$(MAKE)"'
7259_ACEOF
7260# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7261eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7262if test -n "$ac_maketemp"; then
7263  eval ac_cv_prog_make_${ac_make}_set=yes
7264else
7265  eval ac_cv_prog_make_${ac_make}_set=no
7266fi
7267rm -f conftest.make
7268fi
7269if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7270  echo "$as_me:$LINENO: result: yes" >&5
7271echo "${ECHO_T}yes" >&6
7272  SET_MAKE=
7273else
7274  echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6
7276  SET_MAKE="MAKE=${MAKE-make}"
7277fi
7278
7279rm -rf .tst 2>/dev/null
7280mkdir .tst 2>/dev/null
7281if test -d .tst; then
7282  am__leading_dot=.
7283else
7284  am__leading_dot=_
7285fi
7286rmdir .tst 2>/dev/null
7287
7288DEPDIR="${am__leading_dot}deps"
7289
7290          ac_config_commands="$ac_config_commands depfiles"
7291
7292
7293am_make=${MAKE-make}
7294cat > confinc << 'END'
7295am__doit:
7296        @echo done
7297.PHONY: am__doit
7298END
7299# If we don't find an include directive, just comment out the code.
7300echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
7301echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
7302am__include="#"
7303am__quote=
7304_am_result=none
7305# First try GNU make style include.
7306echo "include confinc" > confmf
7307# We grep out `Entering directory' and `Leaving directory'
7308# messages which can occur if `w' ends up in MAKEFLAGS.
7309# In particular we don't look at `^make:' because GNU make might
7310# be invoked under some other name (usually "gmake"), in which
7311# case it prints its new name instead of `make'.
7312if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7313   am__include=include
7314   am__quote=
7315   _am_result=GNU
7316fi
7317# Now try BSD make style include.
7318if test "$am__include" = "#"; then
7319   echo '.include "confinc"' > confmf
7320   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7321      am__include=.include
7322      am__quote="\""
7323      _am_result=BSD
7324   fi
7325fi
7326
7327
7328echo "$as_me:$LINENO: result: $_am_result" >&5
7329echo "${ECHO_T}$_am_result" >&6
7330rm -f confinc confmf
7331
7332# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
7333if test "${enable_dependency_tracking+set}" = set; then
7334  enableval="$enable_dependency_tracking"
7335
7336fi;
7337if test "x$enable_dependency_tracking" != xno; then
7338  am_depcomp="$ac_aux_dir/depcomp"
7339  AMDEPBACKSLASH='\'
7340fi
7341
7342
7343if test "x$enable_dependency_tracking" != xno; then
7344  AMDEP_TRUE=
7345  AMDEP_FALSE='#'
7346else
7347  AMDEP_TRUE='#'
7348  AMDEP_FALSE=
7349fi
7350
7351
7352
7353
7354
7355
7356# AC_MSG_NOTICE([Beginning automake initialisation.])
7357# Stuff for automake
7358# test to see if srcdir already configured
7359if test "`cd $srcdir && pwd`" != "`pwd`" &&
7360   test -f $srcdir/config.status; then
7361  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
7362echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
7363   { (exit 1); exit 1; }; }
7364fi
7365
7366# test whether we have cygpath
7367if test -z "$CYGPATH_W"; then
7368  if (cygpath --version) >/dev/null 2>/dev/null; then
7369    CYGPATH_W='cygpath -w'
7370  else
7371    CYGPATH_W=echo
7372  fi
7373fi
7374
7375
7376# Define the identity of the package.
7377 PACKAGE='couenne'
7378 VERSION='trunk'
7379
7380
7381cat >>confdefs.h <<_ACEOF
7382#define PACKAGE "$PACKAGE"
7383_ACEOF
7384
7385
7386cat >>confdefs.h <<_ACEOF
7387#define VERSION "$VERSION"
7388_ACEOF
7389
7390# Some tools Automake needs.
7391
7392ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7393
7394
7395AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7396
7397
7398AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7399
7400
7401AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7402
7403
7404MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7405
7406install_sh=${install_sh-"$am_aux_dir/install-sh"}
7407
7408# Installed binaries are usually stripped using `strip' when the user
7409# run `make install-strip'.  However `strip' might not be the right
7410# tool to use in cross-compilation environments, therefore Automake
7411# will honor the `STRIP' environment variable to overrule this program.
7412if test "$cross_compiling" != no; then
7413  if test -n "$ac_tool_prefix"; then
7414  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7415set dummy ${ac_tool_prefix}strip; ac_word=$2
7416echo "$as_me:$LINENO: checking for $ac_word" >&5
7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7418if test "${ac_cv_prog_STRIP+set}" = set; then
7419  echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421  if test -n "$STRIP"; then
7422  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7423else
7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427  IFS=$as_save_IFS
7428  test -z "$as_dir" && as_dir=.
7429  for ac_exec_ext in '' $ac_executable_extensions; do
7430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433    break 2
7434  fi
7435done
7436done
7437
7438fi
7439fi
7440STRIP=$ac_cv_prog_STRIP
7441if test -n "$STRIP"; then
7442  echo "$as_me:$LINENO: result: $STRIP" >&5
7443echo "${ECHO_T}$STRIP" >&6
7444else
7445  echo "$as_me:$LINENO: result: no" >&5
7446echo "${ECHO_T}no" >&6
7447fi
7448
7449fi
7450if test -z "$ac_cv_prog_STRIP"; then
7451  ac_ct_STRIP=$STRIP
7452  # Extract the first word of "strip", so it can be a program name with args.
7453set dummy strip; ac_word=$2
7454echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  if test -n "$ac_ct_STRIP"; then
7460  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7461else
7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465  IFS=$as_save_IFS
7466  test -z "$as_dir" && as_dir=.
7467  for ac_exec_ext in '' $ac_executable_extensions; do
7468  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469    ac_cv_prog_ac_ct_STRIP="strip"
7470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471    break 2
7472  fi
7473done
7474done
7475
7476  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7477fi
7478fi
7479ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7480if test -n "$ac_ct_STRIP"; then
7481  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7482echo "${ECHO_T}$ac_ct_STRIP" >&6
7483else
7484  echo "$as_me:$LINENO: result: no" >&5
7485echo "${ECHO_T}no" >&6
7486fi
7487
7488  STRIP=$ac_ct_STRIP
7489else
7490  STRIP="$ac_cv_prog_STRIP"
7491fi
7492
7493fi
7494INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7495
7496# We need awk for the "check" target.  The system "awk" is bad on
7497# some platforms.
7498# Always define AMTAR for backward compatibility.
7499
7500AMTAR=${AMTAR-"${am_missing_run}tar"}
7501
7502am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7503
7504
7505
7506
7507depcc="$CC"   am_compiler_list=
7508
7509echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7510echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7511if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7512  echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7515  # We make a subdir and do the tests there.  Otherwise we can end up
7516  # making bogus files that we don't know about and never remove.  For
7517  # instance it was reported that on HP-UX the gcc test will end up
7518  # making a dummy file named `D' -- because `-MD' means `put the output
7519  # in D'.
7520  mkdir conftest.dir
7521  # Copy depcomp to subdir because otherwise we won't find it if we're
7522  # using a relative directory.
7523  cp "$am_depcomp" conftest.dir
7524  cd conftest.dir
7525  # We will build objects and dependencies in a subdirectory because
7526  # it helps to detect inapplicable dependency modes.  For instance
7527  # both Tru64's cc and ICC support -MD to output dependencies as a
7528  # side effect of compilation, but ICC will put the dependencies in
7529  # the current directory while Tru64 will put them in the object
7530  # directory.
7531  mkdir sub
7532
7533  am_cv_CC_dependencies_compiler_type=none
7534  if test "$am_compiler_list" = ""; then
7535     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7536  fi
7537  for depmode in $am_compiler_list; do
7538    # Setup a source with many dependencies, because some compilers
7539    # like to wrap large dependency lists on column 80 (with \), and
7540    # we should not choose a depcomp mode which is confused by this.
7541    #
7542    # We need to recreate these files for each test, as the compiler may
7543    # overwrite some of them when testing with obscure command lines.
7544    # This happens at least with the AIX C compiler.
7545    : > sub/conftest.c
7546    for i in 1 2 3 4 5 6; do
7547      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7548      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7549      # Solaris 8's {/usr,}/bin/sh.
7550      touch sub/conftst$i.h
7551    done
7552    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7553
7554    case $depmode in
7555    nosideeffect)
7556      # after this tag, mechanisms are not by side-effect, so they'll
7557      # only be used when explicitly requested
7558      if test "x$enable_dependency_tracking" = xyes; then
7559        continue
7560      else
7561        break
7562      fi
7563      ;;
7564    none) break ;;
7565    esac
7566    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7567    # mode.  It turns out that the SunPro C++ compiler does not properly
7568    # handle `-M -o', and we need to detect this.
7569    if depmode=$depmode \
7570       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7571       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7572       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7573         >/dev/null 2>conftest.err &&
7574       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7575       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7576       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7577      # icc doesn't choke on unknown options, it will just issue warnings
7578      # or remarks (even with -Werror).  So we grep stderr for any message
7579      # that says an option was ignored or not supported.
7580      # When given -MP, icc 7.0 and 7.1 complain thusly:
7581      #   icc: Command line warning: ignoring option '-M'; no argument required
7582      # The diagnosis changed in icc 8.0:
7583      #   icc: Command line remark: option '-MP' not supported
7584      if (grep 'ignoring option' conftest.err ||
7585          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7586        am_cv_CC_dependencies_compiler_type=$depmode
7587        break
7588      fi
7589    fi
7590  done
7591
7592  cd ..
7593  rm -rf conftest.dir
7594else
7595  am_cv_CC_dependencies_compiler_type=none
7596fi
7597
7598fi
7599echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7600echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7601CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7602
7603
7604
7605if
7606  test "x$enable_dependency_tracking" != xno \
7607  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7608  am__fastdepCC_TRUE=
7609  am__fastdepCC_FALSE='#'
7610else
7611  am__fastdepCC_TRUE='#'
7612  am__fastdepCC_FALSE=
7613fi
7614
7615
7616depcc="$CXX"  am_compiler_list=
7617
7618echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7619echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7620if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7621  echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7624  # We make a subdir and do the tests there.  Otherwise we can end up
7625  # making bogus files that we don't know about and never remove.  For
7626  # instance it was reported that on HP-UX the gcc test will end up
7627  # making a dummy file named `D' -- because `-MD' means `put the output
7628  # in D'.
7629  mkdir conftest.dir
7630  # Copy depcomp to subdir because otherwise we won't find it if we're
7631  # using a relative directory.
7632  cp "$am_depcomp" conftest.dir
7633  cd conftest.dir
7634  # We will build objects and dependencies in a subdirectory because
7635  # it helps to detect inapplicable dependency modes.  For instance
7636  # both Tru64's cc and ICC support -MD to output dependencies as a
7637  # side effect of compilation, but ICC will put the dependencies in
7638  # the current directory while Tru64 will put them in the object
7639  # directory.
7640  mkdir sub
7641
7642  am_cv_CXX_dependencies_compiler_type=none
7643  if test "$am_compiler_list" = ""; then
7644     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7645  fi
7646  for depmode in $am_compiler_list; do
7647    # Setup a source with many dependencies, because some compilers
7648    # like to wrap large dependency lists on column 80 (with \), and
7649    # we should not choose a depcomp mode which is confused by this.
7650    #
7651    # We need to recreate these files for each test, as the compiler may
7652    # overwrite some of them when testing with obscure command lines.
7653    # This happens at least with the AIX C compiler.
7654    : > sub/conftest.c
7655    for i in 1 2 3 4 5 6; do
7656      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7657      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7658      # Solaris 8's {/usr,}/bin/sh.
7659      touch sub/conftst$i.h
7660    done
7661    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7662
7663    case $depmode in
7664    nosideeffect)
7665      # after this tag, mechanisms are not by side-effect, so they'll
7666      # only be used when explicitly requested
7667      if test "x$enable_dependency_tracking" = xyes; then
7668        continue
7669      else
7670        break
7671      fi
7672      ;;
7673    none) break ;;
7674    esac
7675    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7676    # mode.  It turns out that the SunPro C++ compiler does not properly
7677    # handle `-M -o', and we need to detect this.
7678    if depmode=$depmode \
7679       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7680       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7681       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7682         >/dev/null 2>conftest.err &&
7683       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7684       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7685       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7686      # icc doesn't choke on unknown options, it will just issue warnings
7687      # or remarks (even with -Werror).  So we grep stderr for any message
7688      # that says an option was ignored or not supported.
7689      # When given -MP, icc 7.0 and 7.1 complain thusly:
7690      #   icc: Command line warning: ignoring option '-M'; no argument required
7691      # The diagnosis changed in icc 8.0:
7692      #   icc: Command line remark: option '-MP' not supported
7693      if (grep 'ignoring option' conftest.err ||
7694          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7695        am_cv_CXX_dependencies_compiler_type=$depmode
7696        break
7697      fi
7698    fi
7699  done
7700
7701  cd ..
7702  rm -rf conftest.dir
7703else
7704  am_cv_CXX_dependencies_compiler_type=none
7705fi
7706
7707fi
7708echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7709echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7710CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7711
7712
7713
7714if
7715  test "x$enable_dependency_tracking" != xno \
7716  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7717  am__fastdepCXX_TRUE=
7718  am__fastdepCXX_FALSE='#'
7719else
7720  am__fastdepCXX_TRUE='#'
7721  am__fastdepCXX_FALSE=
7722fi
7723
7724
7725
7726echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7727echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7728    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7729if test "${enable_maintainer_mode+set}" = set; then
7730  enableval="$enable_maintainer_mode"
7731  USE_MAINTAINER_MODE=$enableval
7732else
7733  USE_MAINTAINER_MODE=no
7734fi;
7735  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7736echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7737
7738
7739if test $USE_MAINTAINER_MODE = yes; then
7740  MAINTAINER_MODE_TRUE=
7741  MAINTAINER_MODE_FALSE='#'
7742else
7743  MAINTAINER_MODE_TRUE='#'
7744  MAINTAINER_MODE_FALSE=
7745fi
7746
7747  MAINT=$MAINTAINER_MODE_TRUE
7748
7749
7750
7751coin_have_externals=no
7752if test "$enable_maintainer_mode" = yes; then
7753
7754  # If maintainer mode is chosen, we make sure that the correct versions
7755  # of the tools are used, and that we know where libtool.m4 is (to
7756  # recreate acinclude.m4)
7757
7758
7759  LIBTOOLM4=
7760  # Normally, $HOME
7761  AUTOTOOLS_DFLT=$HOME
7762
7763  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
7764echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
7765if test "${ac_cv_use_correct_autotools+set}" = set; then
7766  echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768  ac_cv_use_correct_autotools=check
7769fi
7770echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
7771echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
7772
7773  if test $ac_cv_use_correct_autotools = check; then
7774    ac_cv_use_correct_autotools=yes
7775    # Check if we have autoconf
7776    # Extract the first word of "autoconf", so it can be a program name with args.
7777set dummy autoconf; ac_word=$2
7778echo "$as_me:$LINENO: checking for $ac_word" >&5
7779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7780if test "${ac_cv_prog_have_autoconf+set}" = set; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783  if test -n "$have_autoconf"; then
7784  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
7785else
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789  IFS=$as_save_IFS
7790  test -z "$as_dir" && as_dir=.
7791  for ac_exec_ext in '' $ac_executable_extensions; do
7792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793    ac_cv_prog_have_autoconf="yes"
7794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795    break 2
7796  fi
7797done
7798done
7799
7800  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
7801fi
7802fi
7803have_autoconf=$ac_cv_prog_have_autoconf
7804if test -n "$have_autoconf"; then
7805  echo "$as_me:$LINENO: result: $have_autoconf" >&5
7806echo "${ECHO_T}$have_autoconf" >&6
7807else
7808  echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
7810fi
7811
7812    if test $have_autoconf = no; then
7813      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
7814echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
7815   { (exit 1); exit 1; }; }
7816    fi
7817
7818    # Check whether autoconf is the correct version
7819    correct_version='2.59'
7820    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
7821    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
7822echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
7823    autoconf --version > confauto.out 2>&1
7824    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
7825      echo "$as_me:$LINENO: result: yes" >&5
7826echo "${ECHO_T}yes" >&6
7827    else
7828      rm -f confauto.out
7829      echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
7832echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
7833   { (exit 1); exit 1; }; }
7834    fi
7835    rm -f confauto.out
7836
7837    # Check if the executable autoconf is picked up from the correct location
7838    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
7839echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
7840    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
7841    autoconf_dir=`cd $autoconf_dir; pwd`
7842    if test x$AUTOTOOLS_DIR = x; then
7843      want_dir=$AUTOTOOLS_DFLT/bin
7844    else
7845      want_dir=$AUTOTOOLS_DIR/bin
7846    fi
7847    if test $autoconf_dir = `cd $want_dir; pwd`; then
7848      echo "$as_me:$LINENO: result: yes" >&5
7849echo "${ECHO_T}yes" >&6
7850    else
7851      rm -f confauto.out
7852      echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
7854      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
7855echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
7856   { (exit 1); exit 1; }; }
7857    fi
7858
7859    # Check if we have automake
7860    # Extract the first word of "automake", so it can be a program name with args.
7861set dummy automake; ac_word=$2
7862echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864if test "${ac_cv_prog_have_automake+set}" = set; then
7865  echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867  if test -n "$have_automake"; then
7868  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873  IFS=$as_save_IFS
7874  test -z "$as_dir" && as_dir=.
7875  for ac_exec_ext in '' $ac_executable_extensions; do
7876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877    ac_cv_prog_have_automake="yes"
7878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879    break 2
7880  fi
7881done
7882done
7883
7884  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
7885fi
7886fi
7887have_automake=$ac_cv_prog_have_automake
7888if test -n "$have_automake"; then
7889  echo "$as_me:$LINENO: result: $have_automake" >&5
7890echo "${ECHO_T}$have_automake" >&6
7891else
7892  echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
7894fi
7895
7896    if test $have_automake = no; then
7897      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
7898echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
7899   { (exit 1); exit 1; }; }
7900    fi
7901
7902    # Check whether automake is the correct version
7903    correct_version='1.9.6'
7904    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
7905    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
7906echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
7907    automake --version > confauto.out 2>&1
7908    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
7909      echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911    else
7912      rm -f confauto.out
7913      echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
7915      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
7916echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
7917   { (exit 1); exit 1; }; }
7918    fi
7919    rm -f confauto.out
7920
7921    # Check if the executable automake is picked up from the correct location
7922    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
7923echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
7924    automake_dir=`which automake | sed -e 's=/automake=='`
7925    automake_dir=`cd $automake_dir; pwd`
7926    if test x$AUTOTOOLS_DIR = x; then
7927      want_dir=$AUTOTOOLS_DFLT/bin
7928    else
7929      want_dir=$AUTOTOOLS_DIR/bin
7930    fi
7931    if test $automake_dir = `cd $want_dir; pwd`; then
7932      echo "$as_me:$LINENO: result: yes" >&5
7933echo "${ECHO_T}yes" >&6
7934    else
7935      rm -f confauto.out
7936      echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
7938      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
7939echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
7940   { (exit 1); exit 1; }; }
7941    fi
7942
7943    # Check if this is the correct version of libtool (with escaped dots)
7944    if test x$AUTOTOOLS_DIR = x; then
7945      want_dir=$AUTOTOOLS_DFLT/share
7946    else
7947      want_dir=$AUTOTOOLS_DIR/share
7948    fi
7949    correct_version='1.5.22'
7950    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
7951    if test -r $want_dir/libtool/ltmain.sh; then
7952  have_ltmain=yes
7953  :
7954else
7955  have_ltmain=no
7956  :
7957fi
7958
7959    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
7960echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
7961    if test $have_ltmain = yes; then
7962    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
7963        echo "$as_me:$LINENO: result: yes" >&5
7964echo "${ECHO_T}yes" >&6
7965      else
7966        echo "$as_me:$LINENO: result: no" >&5
7967echo "${ECHO_T}no" >&6
7968        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
7969echo "$as_me: error: You don't have the correct version of libtool." >&2;}
7970   { (exit 1); exit 1; }; }
7971      fi
7972    else
7973      echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
7975      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
7976echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
7977   { (exit 1); exit 1; }; }
7978    fi
7979  fi
7980
7981  # Check if we can find the libtool file
7982  if test x$AUTOTOOLS_DIR = x; then
7983    want_dir=$AUTOTOOLS_DFLT/share
7984  else
7985    want_dir=$AUTOTOOLS_DIR/share
7986  fi
7987  if test -r $want_dir/aclocal/libtool.m4; then
7988  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
7989  :
7990else
7991  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
7992echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
7993   { (exit 1); exit 1; }; }
7994  :
7995fi
7996
7997
7998  # Check if we have an Dependencies file
7999  if test -r $srcdir/Dependencies; then
8000    coin_have_externals=yes
8001  fi
8002  # Check if subversion is installed and understands https
8003  # Extract the first word of "svn", so it can be a program name with args.
8004set dummy svn; ac_word=$2
8005echo "$as_me:$LINENO: checking for $ac_word" >&5
8006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8007if test "${ac_cv_prog_have_svn+set}" = set; then
8008  echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010  if test -n "$have_svn"; then
8011  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
8012else
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016  IFS=$as_save_IFS
8017  test -z "$as_dir" && as_dir=.
8018  for ac_exec_ext in '' $ac_executable_extensions; do
8019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020    ac_cv_prog_have_svn="yes"
8021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022    break 2
8023  fi
8024done
8025done
8026
8027  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
8028fi
8029fi
8030have_svn=$ac_cv_prog_have_svn
8031if test -n "$have_svn"; then
8032  echo "$as_me:$LINENO: result: $have_svn" >&5
8033echo "${ECHO_T}$have_svn" >&6
8034else
8035  echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037fi
8038
8039  if test x$have_svn = xyes; then
8040    echo "$as_me:$LINENO: checking whether svn understands https" >&5
8041echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
8042if test "${ac_cv_svn_understands_https+set}" = set; then
8043  echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045  svn --version > confauto.out 2>&1
8046                    if $EGREP https confauto.out >/dev/null 2>&1; then
8047                      ac_cv_svn_understands_https=yes
8048                    else
8049                      ac_cv_svn_understands_https=no
8050                      have_svn=no
8051                      ac_cv_prog_have_svn=no
8052                    fi
8053                    rm -f confauto.out
8054fi
8055echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
8056echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
8057  fi
8058
8059  # Find the location of the BuildTools directory
8060  BUILDTOOLSDIR=
8061  if test -r $srcdir/BuildTools/coin.m4; then
8062    BUILDTOOLSDIR=$srcdir/BuildTools
8063  else
8064    if test -r $srcdir/../BuildTools/coin.m4; then
8065      BUILDTOOLSDIR=$srcdir/../BuildTools
8066    else
8067      if test -r $srcdir/../../BuildTools/coin.m4; then
8068        BUILDTOOLSDIR=$srcdir/../../BuildTools
8069      else
8070        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
8071echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
8072   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
8073      fi
8074    fi
8075  fi
8076
8077
8078  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
8079  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
8080    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
8081  fi
8082
8083  # The following variable is set to the name of the directory where
8084  # the autotool scripts are located
8085
8086  AUX_DIR=$ac_aux_dir
8087fi
8088
8089# helpful variable for the base directory of this package
8090abs_source_dir=`cd $srcdir; pwd`
8091
8092
8093# Stuff for example Makefiles
8094if test x$prefix = xNONE; then
8095  full_prefix=$ac_default_prefix
8096else
8097  full_prefix=$prefix
8098fi
8099full_prefix=`cd $full_prefix ; pwd`
8100
8101abs_lib_dir=$full_prefix/lib
8102
8103abs_include_dir=$full_prefix/include
8104
8105abs_bin_dir=$full_prefix/bin
8106
8107
8108
8109if test $coin_have_externals = yes && test x$have_svn = xyes; then
8110  HAVE_EXTERNALS_TRUE=
8111  HAVE_EXTERNALS_FALSE='#'
8112else
8113  HAVE_EXTERNALS_TRUE='#'
8114  HAVE_EXTERNALS_FALSE=
8115fi
8116
8117
8118# AC_MSG_NOTICE([End automake initialisation.])
8119
8120
8121
8122LIBTOOL=
8123if test -f ../libtool; then
8124  coin_config_dir=..
8125  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
8126fi
8127if test "x$LIBTOOL" = x; then
8128  if test -f ../../libtool; then
8129    coin_config_dir=../..
8130    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
8131  fi
8132fi
8133
8134if test "x$LIBTOOL" = x; then
8135# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
8136  # Stuff for libtool
8137  # Check whether --enable-shared or --disable-shared was given.
8138if test "${enable_shared+set}" = set; then
8139  enableval="$enable_shared"
8140  p=${PACKAGE-default}
8141    case $enableval in
8142    yes) enable_shared=yes ;;
8143    no) enable_shared=no ;;
8144    *)
8145      enable_shared=no
8146      # Look at the argument we got.  We use all the common list separators.
8147      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8148      for pkg in $enableval; do
8149        IFS="$lt_save_ifs"
8150        if test "X$pkg" = "X$p"; then
8151          enable_shared=yes
8152        fi
8153      done
8154      IFS="$lt_save_ifs"
8155      ;;
8156    esac
8157else
8158  enable_shared=yes
8159fi;
8160
8161# Check whether --enable-fast-install or --disable-fast-install was given.
8162if test "${enable_fast_install+set}" = set; then
8163  enableval="$enable_fast_install"
8164  p=${PACKAGE-default}
8165    case $enableval in
8166    yes) enable_fast_install=yes ;;
8167    no) enable_fast_install=no ;;
8168    *)
8169      enable_fast_install=no
8170      # Look at the argument we got.  We use all the common list separators.
8171      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172      for pkg in $enableval; do
8173        IFS="$lt_save_ifs"
8174        if test "X$pkg" = "X$p"; then
8175          enable_fast_install=yes
8176        fi
8177      done
8178      IFS="$lt_save_ifs"
8179      ;;
8180    esac
8181else
8182  enable_fast_install=yes
8183fi;
8184
8185echo "$as_me:$LINENO: checking host system type" >&5
8186echo $ECHO_N "checking host system type... $ECHO_C" >&6
8187if test "${ac_cv_host+set}" = set; then
8188  echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190  ac_cv_host_alias=$host_alias
8191test -z "$ac_cv_host_alias" &&
8192  ac_cv_host_alias=$ac_cv_build_alias
8193ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
8194  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8195echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8196   { (exit 1); exit 1; }; }
8197
8198fi
8199echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8200echo "${ECHO_T}$ac_cv_host" >&6
8201host=$ac_cv_host
8202host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8203host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8204host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8205
8206
8207echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8208echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
8209if test "${lt_cv_path_SED+set}" = set; then
8210  echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212  # Loop through the user's path and test for sed and gsed.
8213# Then use that list of sed's as ones to test for truncation.
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217  IFS=$as_save_IFS
8218  test -z "$as_dir" && as_dir=.
8219  for lt_ac_prog in sed gsed; do
8220    for ac_exec_ext in '' $ac_executable_extensions; do
8221      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8222        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8223      fi
8224    done
8225  done
8226done
8227lt_ac_max=0
8228lt_ac_count=0
8229# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8230# along with /bin/sed that truncates output.
8231for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8232  test ! -f $lt_ac_sed && continue
8233  cat /dev/null > conftest.in
8234  lt_ac_count=0
8235  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8236  # Check for GNU sed and select it if it is found.
8237  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8238    lt_cv_path_SED=$lt_ac_sed
8239    break
8240  fi
8241  while true; do
8242    cat conftest.in conftest.in >conftest.tmp
8243    mv conftest.tmp conftest.in
8244    cp conftest.in conftest.nl
8245    echo >>conftest.nl
8246    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8247    cmp -s conftest.out conftest.nl || break
8248    # 10000 chars as input seems more than enough
8249    test $lt_ac_count -gt 10 && break
8250    lt_ac_count=`expr $lt_ac_count + 1`
8251    if test $lt_ac_count -gt $lt_ac_max; then
8252      lt_ac_max=$lt_ac_count
8253      lt_cv_path_SED=$lt_ac_sed
8254    fi
8255  done
8256done
8257
8258fi
8259
8260SED=$lt_cv_path_SED
8261echo "$as_me:$LINENO: result: $SED" >&5
8262echo "${ECHO_T}$SED" >&6
8263
8264
8265# Check whether --with-gnu-ld or --without-gnu-ld was given.
8266if test "${with_gnu_ld+set}" = set; then
8267  withval="$with_gnu_ld"
8268  test "$withval" = no || with_gnu_ld=yes
8269else
8270  with_gnu_ld=no
8271fi;
8272ac_prog=ld
8273if test "$GCC" = yes; then
8274  # Check if gcc -print-prog-name=ld gives a path.
8275  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8276echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8277  case $host in
8278  *-*-mingw*)
8279    # gcc leaves a trailing carriage return which upsets mingw
8280    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8281  *)
8282    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8283  esac
8284  case $ac_prog in
8285    # Accept absolute paths.
8286    [\\/]* | ?:[\\/]*)
8287      re_direlt='/[^/][^/]*/\.\./'
8288      # Canonicalize the pathname of ld
8289      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8290      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8291        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8292      done
8293      test -z "$LD" && LD="$ac_prog"
8294      ;;
8295  "")
8296    # If it fails, then pretend we aren't using GCC.
8297    ac_prog=ld
8298    ;;
8299  *)
8300    # If it is relative, then search for the first ld in PATH.
8301    with_gnu_ld=unknown
8302    ;;
8303  esac
8304elif test "$with_gnu_ld" = yes; then
8305  echo "$as_me:$LINENO: checking for GNU ld" >&5
8306echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8307else
8308  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8309echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8310fi
8311if test "${lt_cv_path_LD+set}" = set; then
8312  echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314  if test -z "$LD"; then
8315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8316  for ac_dir in $PATH; do
8317    IFS="$lt_save_ifs"
8318    test -z "$ac_dir" && ac_dir=.
8319    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8320      lt_cv_path_LD="$ac_dir/$ac_prog"
8321      # Check to see if the program is GNU ld.  I'd rather use --version,
8322      # but apparently some variants of GNU ld only accept -v.
8323      # Break only if it was the GNU/non-GNU ld that we prefer.
8324      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8325      *GNU* | *'with BFD'*)
8326        test "$with_gnu_ld" != no && break
8327        ;;
8328      *)
8329        test "$with_gnu_ld" != yes && break
8330        ;;
8331      esac
8332    fi
8333  done
8334  IFS="$lt_save_ifs"
8335else
8336  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8337fi
8338fi
8339
8340LD="$lt_cv_path_LD"
8341if test -n "$LD"; then
8342  echo "$as_me:$LINENO: result: $LD" >&5
8343echo "${ECHO_T}$LD" >&6
8344else
8345  echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6
8347fi
8348test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8349echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8350   { (exit 1); exit 1; }; }
8351echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8352echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8353if test "${lt_cv_prog_gnu_ld+set}" = set; then
8354  echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8357case `$LD -v 2>&1 </dev/null` in
8358*GNU* | *'with BFD'*)
8359  lt_cv_prog_gnu_ld=yes
8360  ;;
8361*)
8362  lt_cv_prog_gnu_ld=no
8363  ;;
8364esac
8365fi
8366echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8367echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8368with_gnu_ld=$lt_cv_prog_gnu_ld
8369
8370
8371echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8372echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
8373if test "${lt_cv_ld_reload_flag+set}" = set; then
8374  echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376  lt_cv_ld_reload_flag='-r'
8377fi
8378echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8379echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
8380reload_flag=$lt_cv_ld_reload_flag
8381case $reload_flag in
8382"" | " "*) ;;
8383*) reload_flag=" $reload_flag" ;;
8384esac
8385reload_cmds='$LD$reload_flag -o $output$reload_objs'
8386case $host_os in
8387  darwin*)
8388    if test "$GCC" = yes; then
8389      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8390    else
8391      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8392    fi
8393    ;;
8394esac
8395
8396echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8397echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
8398if test "${lt_cv_path_NM+set}" = set; then
8399  echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401  if test -n "$NM"; then
8402  # Let the user override the test.
8403  lt_cv_path_NM="$NM"
8404else
8405  lt_nm_to_check="${ac_tool_prefix}nm"
8406  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8407    lt_nm_to_check="$lt_nm_to_check nm"
8408  fi
8409  for lt_tmp_nm in $lt_nm_to_check; do
8410    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8412      IFS="$lt_save_ifs"
8413      test -z "$ac_dir" && ac_dir=.
8414      tmp_nm="$ac_dir/$lt_tmp_nm"
8415      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8416        # Check to see if the nm accepts a BSD-compat flag.
8417        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8418        #   nm: unknown option "B" ignored
8419        # Tru64's nm complains that /dev/null is an invalid object file
8420        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8421        */dev/null* | *'Invalid file or object type'*)
8422          lt_cv_path_NM="$tmp_nm -B"
8423          break
8424          ;;
8425        *)
8426          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8427          */dev/null*)
8428            lt_cv_path_NM="$tmp_nm -p"
8429            break
8430            ;;
8431          *)
8432            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8433            continue # so that we can try to find one that supports BSD flags
8434            ;;
8435          esac
8436          ;;
8437        esac
8438      fi
8439    done
8440    IFS="$lt_save_ifs"
8441  done
8442  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8443fi
8444fi
8445echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8446echo "${ECHO_T}$lt_cv_path_NM" >&6
8447NM="$lt_cv_path_NM"
8448
8449echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8450echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
8451if test "${lt_cv_deplibs_check_method+set}" = set; then
8452  echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454  lt_cv_file_magic_cmd='$MAGIC_CMD'
8455lt_cv_file_magic_test_file=
8456lt_cv_deplibs_check_method='unknown'
8457# Need to set the preceding variable on all platforms that support
8458# interlibrary dependencies.
8459# 'none' -- dependencies not supported.
8460# `unknown' -- same as none, but documents that we really don't know.
8461# 'pass_all' -- all dependencies passed with no checks.
8462# 'test_compile' -- check by making test program.
8463# 'file_magic [[regex]]' -- check by looking for files in library path
8464# which responds to the $file_magic_cmd with a given extended regex.
8465# If you have `file' or equivalent on your system and you're not sure
8466# whether `pass_all' will *always* work, you probably want this one.
8467
8468case $host_os in
8469aix4* | aix5*)
8470  lt_cv_deplibs_check_method=pass_all
8471  ;;
8472
8473beos*)
8474  lt_cv_deplibs_check_method=pass_all
8475  ;;
8476
8477bsdi[45]*)
8478  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8479  lt_cv_file_magic_cmd='/usr/bin/file -L'
8480  lt_cv_file_magic_test_file=/shlib/libc.so
8481  ;;
8482
8483cygwin*)
8484  # func_win32_libid is a shell function defined in ltmain.sh
8485  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8486  lt_cv_file_magic_cmd='func_win32_libid'
8487  ;;
8488
8489mingw* | pw32*)
8490  # Base MSYS/MinGW do not provide the 'file' command needed by
8491  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8492  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8493  lt_cv_file_magic_cmd='$OBJDUMP -f'
8494  ;;
8495
8496darwin* | rhapsody*)
8497  lt_cv_deplibs_check_method=pass_all
8498  ;;
8499
8500freebsd* | kfreebsd*-gnu | dragonfly*)
8501  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8502    case $host_cpu in
8503    i*86 )
8504      # Not sure whether the presence of OpenBSD here was a mistake.
8505      # Let's accept both of them until this is cleared up.
8506      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8507      lt_cv_file_magic_cmd=/usr/bin/file
8508      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8509      ;;
8510    esac
8511  else
8512    lt_cv_deplibs_check_method=pass_all
8513  fi
8514  ;;
8515
8516gnu*)
8517  lt_cv_deplibs_check_method=pass_all
8518  ;;
8519
8520hpux10.20* | hpux11*)
8521  lt_cv_file_magic_cmd=/usr/bin/file
8522  case $host_cpu in
8523  ia64*)
8524    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8525    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8526    ;;
8527  hppa*64*)
8528    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]'
8529    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8530    ;;
8531  *)
8532    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8533    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8534    ;;
8535  esac
8536  ;;
8537
8538interix3*)
8539  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8540  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8541  ;;
8542
8543irix5* | irix6* | nonstopux*)
8544  case $LD in
8545  *-32|*"-32 ") libmagic=32-bit;;
8546  *-n32|*"-n32 ") libmagic=N32;;
8547  *-64|*"-64 ") libmagic=64-bit;;
8548  *) libmagic=never-match;;
8549  esac
8550  lt_cv_deplibs_check_method=pass_all
8551  ;;
8552
8553# This must be Linux ELF.
8554linux*)
8555  lt_cv_deplibs_check_method=pass_all
8556  ;;
8557
8558netbsd*)
8559  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8560    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8561  else
8562    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8563  fi
8564  ;;
8565
8566newos6*)
8567  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8568  lt_cv_file_magic_cmd=/usr/bin/file
8569  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8570  ;;
8571
8572nto-qnx*)
8573  lt_cv_deplibs_check_method=unknown
8574  ;;
8575
8576openbsd*)
8577  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8578    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8579  else
8580    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8581  fi
8582  ;;
8583
8584osf3* | osf4* | osf5*)
8585  lt_cv_deplibs_check_method=pass_all
8586  ;;
8587
8588solaris*)
8589  lt_cv_deplibs_check_method=pass_all
8590  ;;
8591
8592sysv4 | sysv4.3*)
8593  case $host_vendor in
8594  motorola)
8595    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]'
8596    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8597    ;;
8598  ncr)
8599    lt_cv_deplibs_check_method=pass_all
8600    ;;
8601  sequent)
8602    lt_cv_file_magic_cmd='/bin/file'
8603    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8604    ;;
8605  sni)
8606    lt_cv_file_magic_cmd='/bin/file'
8607    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8608    lt_cv_file_magic_test_file=/lib/libc.so
8609    ;;
8610  siemens)
8611    lt_cv_deplibs_check_method=pass_all
8612    ;;
8613  pc)
8614    lt_cv_deplibs_check_method=pass_all
8615    ;;
8616  esac
8617  ;;
8618
8619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8620  lt_cv_deplibs_check_method=pass_all
8621  ;;
8622esac
8623
8624fi
8625echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8626echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
8627file_magic_cmd=$lt_cv_file_magic_cmd
8628deplibs_check_method=$lt_cv_deplibs_check_method
8629test -z "$deplibs_check_method" && deplibs_check_method=unknown
8630
8631
8632
8633
8634# If no C compiler was specified, use CC.
8635LTCC=${LTCC-"$CC"}
8636
8637# If no C compiler flags were specified, use CFLAGS.
8638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8639
8640# Allow CC to be a program name with arguments.
8641compiler=$CC
8642
8643# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8644if test "${enable_libtool_lock+set}" = set; then
8645  enableval="$enable_libtool_lock"
8646
8647fi;
8648test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8649
8650# Some flags need to be propagated to the compiler or linker for good
8651# libtool support.
8652case $host in
8653ia64-*-hpux*)
8654  # Find out which ABI we are using.
8655  echo 'int i;' > conftest.$ac_ext
8656  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657  (eval $ac_compile) 2>&5
8658  ac_status=$?
8659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660  (exit $ac_status); }; then
8661    case `/usr/bin/file conftest.$ac_objext` in
8662    *ELF-32*)
8663      HPUX_IA64_MODE="32"
8664      ;;
8665    *ELF-64*)
8666      HPUX_IA64_MODE="64"
8667      ;;
8668    esac
8669  fi
8670  rm -rf conftest*
8671  ;;
8672*-*-irix6*)
8673  # Find out which ABI we are using.
8674  echo '#line 8674 "configure"' > conftest.$ac_ext
8675  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8676  (eval $ac_compile) 2>&5
8677  ac_status=$?
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); }; then
8680   if test "$lt_cv_prog_gnu_ld" = yes; then
8681    case `/usr/bin/file conftest.$ac_objext` in
8682    *32-bit*)
8683      LD="${LD-ld} -melf32bsmip"
8684      ;;
8685    *N32*)
8686      LD="${LD-ld} -melf32bmipn32"
8687      ;;
8688    *64-bit*)
8689      LD="${LD-ld} -melf64bmip"
8690      ;;
8691    esac
8692   else
8693    case `/usr/bin/file conftest.$ac_objext` in
8694    *32-bit*)
8695      LD="${LD-ld} -32"
8696      ;;
8697    *N32*)
8698      LD="${LD-ld} -n32"
8699      ;;
8700    *64-bit*)
8701      LD="${LD-ld} -64"
8702      ;;
8703    esac
8704   fi
8705  fi
8706  rm -rf conftest*
8707  ;;
8708
8709x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8710  # Find out which ABI we are using.
8711  echo 'int i;' > conftest.$ac_ext
8712  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713  (eval $ac_compile) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; then
8717    case `/usr/bin/file conftest.o` in
8718    *32-bit*)
8719      case $host in
8720        x86_64-*linux*)
8721          LD="${LD-ld} -m elf_i386"
8722          ;;
8723        ppc64-*linux*|powerpc64-*linux*)
8724          LD="${LD-ld} -m elf32ppclinux"
8725          ;;
8726        s390x-*linux*)
8727          LD="${LD-ld} -m elf_s390"
8728          ;;
8729        sparc64-*linux*)
8730          LD="${LD-ld} -m elf32_sparc"
8731          ;;
8732      esac
8733      ;;
8734    *64-bit*)
8735      case $host in
8736        x86_64-*linux*)
8737          LD="${LD-ld} -m elf_x86_64"
8738          ;;
8739        ppc*-*linux*|powerpc*-*linux*)
8740          LD="${LD-ld} -m elf64ppc"
8741          ;;
8742        s390*-*linux*)
8743          LD="${LD-ld} -m elf64_s390"
8744          ;;
8745        sparc*-*linux*)
8746          LD="${LD-ld} -m elf64_sparc"
8747          ;;
8748      esac
8749      ;;
8750    esac
8751  fi
8752  rm -rf conftest*
8753  ;;
8754
8755*-*-sco3.2v5*)
8756  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8757  SAVE_CFLAGS="$CFLAGS"
8758  CFLAGS="$CFLAGS -belf"
8759  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8760echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8761if test "${lt_cv_cc_needs_belf+set}" = set; then
8762  echo $ECHO_N "(cached) $ECHO_C" >&6
8763else
8764  ac_ext=c
8765ac_cpp='$CPP $CPPFLAGS'
8766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769
8770     cat >conftest.$ac_ext <<_ACEOF
8771/* confdefs.h.  */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h.  */
8776
8777#ifdef F77_DUMMY_MAIN
8778
8779#  ifdef __cplusplus
8780     extern "C"
8781#  endif
8782   int F77_DUMMY_MAIN() { return 1; }
8783
8784#endif
8785int
8786main ()
8787{
8788
8789  ;
8790  return 0;
8791}
8792_ACEOF
8793rm -f conftest.$ac_objext conftest$ac_exeext
8794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795  (eval $ac_link) 2>conftest.er1
8796  ac_status=$?
8797  grep -v '^ *+' conftest.er1 >conftest.err
8798  rm -f conftest.er1
8799  cat conftest.err >&5
8800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801  (exit $ac_status); } &&
8802         { ac_try='test -z "$ac_c_werror_flag"
8803                         || test ! -s conftest.err'
8804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805  (eval $ac_try) 2>&5
8806  ac_status=$?
8807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808  (exit $ac_status); }; } &&
8809         { ac_try='test -s conftest$ac_exeext'
8810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811  (eval $ac_try) 2>&5
8812  ac_status=$?
8813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814  (exit $ac_status); }; }; then
8815  lt_cv_cc_needs_belf=yes
8816else
8817  echo "$as_me: failed program was:" >&5
8818sed 's/^/| /' conftest.$ac_ext >&5
8819
8820lt_cv_cc_needs_belf=no
8821fi
8822rm -f conftest.err conftest.$ac_objext \
8823      conftest$ac_exeext conftest.$ac_ext
8824     ac_ext=c
8825ac_cpp='$CPP $CPPFLAGS'
8826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829
8830fi
8831echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8832echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8833  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8834    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8835    CFLAGS="$SAVE_CFLAGS"
8836  fi
8837  ;;
8838sparc*-*solaris*)
8839  # Find out which ABI we are using.
8840  echo 'int i;' > conftest.$ac_ext
8841  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842  (eval $ac_compile) 2>&5
8843  ac_status=$?
8844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845  (exit $ac_status); }; then
8846    case `/usr/bin/file conftest.o` in
8847    *64-bit*)
8848      case $lt_cv_prog_gnu_ld in
8849      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8850      *)    LD="${LD-ld} -64" ;;
8851      esac
8852      ;;
8853    esac
8854  fi
8855  rm -rf conftest*
8856  ;;
8857
8858
8859esac
8860
8861need_locks="$enable_libtool_lock"
8862
8863
8864ac_ext=c
8865ac_cpp='$CPP $CPPFLAGS'
8866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
8870echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
8871# On Suns, sometimes $CPP names a directory.
8872if test -n "$CPP" && test -d "$CPP"; then
8873  CPP=
8874fi
8875if test -z "$CPP"; then
8876  if test "${ac_cv_prog_CPP+set}" = set; then
8877  echo $ECHO_N "(cached) $ECHO_C" >&6
8878else
8879      # Double quotes because CPP needs to be expanded
8880    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8881    do
8882      ac_preproc_ok=false
8883for ac_c_preproc_warn_flag in '' yes
8884do
8885  # Use a header file that comes with gcc, so configuring glibc
8886  # with a fresh cross-compiler works.
8887  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8888  # <limits.h> exists even on freestanding compilers.
8889  # On the NeXT, cc -E runs the code through the compiler's parser,
8890  # not just through cpp. "Syntax error" is here to catch this case.
8891  cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h.  */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h.  */
8897#ifdef __STDC__
8898# include <limits.h>
8899#else
8900# include <assert.h>
8901#endif
8902                     Syntax error
8903_ACEOF
8904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8905  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8906  ac_status=$?
8907  grep -v '^ *+' conftest.er1 >conftest.err
8908  rm -f conftest.er1
8909  cat conftest.err >&5
8910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); } >/dev/null; then
8912  if test -s conftest.err; then
8913    ac_cpp_err=$ac_c_preproc_warn_flag
8914    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8915  else
8916    ac_cpp_err=
8917  fi
8918else
8919  ac_cpp_err=yes
8920fi
8921if test -z "$ac_cpp_err"; then
8922  :
8923else
8924  echo "$as_me: failed program was:" >&5
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
8927  # Broken: fails on valid input.
8928continue
8929fi
8930rm -f conftest.err conftest.$ac_ext
8931
8932  # OK, works on sane cases.  Now check whether non-existent headers
8933  # can be detected and how.
8934  cat >conftest.$ac_ext <<_ACEOF
8935/* confdefs.h.  */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h.  */
8940#include <ac_nonexistent.h>
8941_ACEOF
8942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8943  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8944  ac_status=$?
8945  grep -v '^ *+' conftest.er1 >conftest.err
8946  rm -f conftest.er1
8947  cat conftest.err >&5
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); } >/dev/null; then
8950  if test -s conftest.err; then
8951    ac_cpp_err=$ac_c_preproc_warn_flag
8952    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8953  else
8954    ac_cpp_err=
8955  fi
8956else
8957  ac_cpp_err=yes
8958fi
8959if test -z "$ac_cpp_err"; then
8960  # Broken: success on invalid input.
8961continue
8962else
8963  echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966  # Passes both tests.
8967ac_preproc_ok=:
8968break
8969fi
8970rm -f conftest.err conftest.$ac_ext
8971
8972done
8973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8974rm -f conftest.err conftest.$ac_ext
8975if $ac_preproc_ok; then
8976  break
8977fi
8978
8979    done
8980    ac_cv_prog_CPP=$CPP
8981
8982fi
8983  CPP=$ac_cv_prog_CPP
8984else
8985  ac_cv_prog_CPP=$CPP
8986fi
8987echo "$as_me:$LINENO: result: $CPP" >&5
8988echo "${ECHO_T}$CPP" >&6
8989ac_preproc_ok=false
8990for ac_c_preproc_warn_flag in '' yes
8991do
8992  # Use a header file that comes with gcc, so configuring glibc
8993  # with a fresh cross-compiler works.
8994  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995  # <limits.h> exists even on freestanding compilers.
8996  # On the NeXT, cc -E runs the code through the compiler's parser,
8997  # not just through cpp. "Syntax error" is here to catch this case.
8998  cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h.  */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h.  */
9004#ifdef __STDC__
9005# include <limits.h>
9006#else
9007# include <assert.h>
9008#endif
9009                     Syntax error
9010_ACEOF
9011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9013  ac_status=$?
9014  grep -v '^ *+' conftest.er1 >conftest.err
9015  rm -f conftest.er1
9016  cat conftest.err >&5
9017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018  (exit $ac_status); } >/dev/null; then
9019  if test -s conftest.err; then
9020    ac_cpp_err=$ac_c_preproc_warn_flag
9021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9022  else
9023    ac_cpp_err=
9024  fi
9025else
9026  ac_cpp_err=yes
9027fi
9028if test -z "$ac_cpp_err"; then
9029  :
9030else
9031  echo "$as_me: failed program was:" >&5
9032sed 's/^/| /' conftest.$ac_ext >&5
9033
9034  # Broken: fails on valid input.
9035continue
9036fi
9037rm -f conftest.err conftest.$ac_ext
9038
9039  # OK, works on sane cases.  Now check whether non-existent headers
9040  # can be detected and how.
9041  cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h.  */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h.  */
9047#include <ac_nonexistent.h>
9048_ACEOF
9049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9050  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9051  ac_status=$?
9052  grep -v '^ *+' conftest.er1 >conftest.err
9053  rm -f conftest.er1
9054  cat conftest.err >&5
9055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056  (exit $ac_status); } >/dev/null; then
9057  if test -s conftest.err; then
9058    ac_cpp_err=$ac_c_preproc_warn_flag
9059    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9060  else
9061    ac_cpp_err=
9062  fi
9063else
9064  ac_cpp_err=yes
9065fi
9066if test -z "$ac_cpp_err"; then
9067  # Broken: success on invalid input.
9068continue
9069else
9070  echo "$as_me: failed program was:" >&5
9071sed 's/^/| /' conftest.$ac_ext >&5
9072
9073  # Passes both tests.
9074ac_preproc_ok=:
9075break
9076fi
9077rm -f conftest.err conftest.$ac_ext
9078
9079done
9080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9081rm -f conftest.err conftest.$ac_ext
9082if $ac_preproc_ok; then
9083  :
9084else
9085  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9086See \`config.log' for more details." >&5
9087echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9088See \`config.log' for more details." >&2;}
9089   { (exit 1); exit 1; }; }
9090fi
9091
9092ac_ext=c
9093ac_cpp='$CPP $CPPFLAGS'
9094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097
9098
9099echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9100echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9101if test "${ac_cv_header_stdc+set}" = set; then
9102  echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104  cat >conftest.$ac_ext <<_ACEOF
9105/* confdefs.h.  */
9106_ACEOF
9107cat confdefs.h >>conftest.$ac_ext
9108cat >>conftest.$ac_ext <<_ACEOF
9109/* end confdefs.h.  */
9110#include <stdlib.h>
9111#include <stdarg.h>
9112#include <string.h>
9113#include <float.h>
9114
9115#ifdef F77_DUMMY_MAIN
9116
9117#  ifdef __cplusplus
9118     extern "C"
9119#  endif
9120   int F77_DUMMY_MAIN() { return 1; }
9121
9122#endif
9123int
9124main ()
9125{
9126
9127  ;
9128  return 0;
9129}
9130_ACEOF
9131rm -f conftest.$ac_objext
9132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133  (eval $ac_compile) 2>conftest.er1
9134  ac_status=$?
9135  grep -v '^ *+' conftest.er1 >conftest.err
9136  rm -f conftest.er1
9137  cat conftest.err >&5
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); } &&
9140         { ac_try='test -z "$ac_c_werror_flag"
9141                         || test ! -s conftest.err'
9142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143  (eval $ac_try) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); }; } &&
9147         { ac_try='test -s conftest.$ac_objext'
9148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149  (eval $ac_try) 2>&5
9150  ac_status=$?
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); }; }; then
9153  ac_cv_header_stdc=yes
9154else
9155  echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158ac_cv_header_stdc=no
9159fi
9160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161
9162if test $ac_cv_header_stdc = yes; then
9163  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9164  cat >conftest.$ac_ext <<_ACEOF
9165/* confdefs.h.  */
9166_ACEOF
9167cat confdefs.h >>conftest.$ac_ext
9168cat >>conftest.$ac_ext <<_ACEOF
9169/* end confdefs.h.  */
9170#include <string.h>
9171
9172_ACEOF
9173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9174  $EGREP "memchr" >/dev/null 2>&1; then
9175  :
9176else
9177  ac_cv_header_stdc=no
9178fi
9179rm -f conftest*
9180
9181fi
9182
9183if test $ac_cv_header_stdc = yes; then
9184  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9185  cat >conftest.$ac_ext <<_ACEOF
9186/* confdefs.h.  */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h.  */
9191#include <stdlib.h>
9192
9193_ACEOF
9194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195  $EGREP "free" >/dev/null 2>&1; then
9196  :
9197else
9198  ac_cv_header_stdc=no
9199fi
9200rm -f conftest*
9201
9202fi
9203
9204if test $ac_cv_header_stdc = yes; then
9205  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9206  if test "$cross_compiling" = yes; then
9207  :
9208else
9209  cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h.  */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h.  */
9215#include <ctype.h>
9216#if ((' ' & 0x0FF) == 0x020)
9217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9219#else
9220# define ISLOWER(c) \
9221                   (('a' <= (c) && (c) <= 'i') \
9222                     || ('j' <= (c) && (c) <= 'r') \
9223                     || ('s' <= (c) && (c) <= 'z'))
9224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9225#endif
9226
9227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9228int
9229main ()
9230{
9231  int i;
9232  for (i = 0; i < 256; i++)
9233    if (XOR (islower (i), ISLOWER (i))
9234        || toupper (i) != TOUPPER (i))
9235      exit(2);
9236  exit (0);
9237}
9238_ACEOF
9239rm -f conftest$ac_exeext
9240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241  (eval $ac_link) 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246  (eval $ac_try) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); }; }; then
9250  :
9251else
9252  echo "$as_me: program exited with status $ac_status" >&5
9253echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256( exit $ac_status )
9257ac_cv_header_stdc=no
9258fi
9259rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9260fi
9261fi
9262fi
9263echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9264echo "${ECHO_T}$ac_cv_header_stdc" >&6
9265if test $ac_cv_header_stdc = yes; then
9266
9267cat >>confdefs.h <<\_ACEOF
9268#define STDC_HEADERS 1
9269_ACEOF
9270
9271fi
9272
9273# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9284                  inttypes.h stdint.h unistd.h
9285do
9286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9287echo "$as_me:$LINENO: checking for $ac_header" >&5
9288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9289if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290  echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292  cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h.  */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h.  */
9298$ac_includes_default
9299
9300#include <$ac_header>
9301_ACEOF
9302rm -f conftest.$ac_objext
9303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304  (eval $ac_compile) 2>conftest.er1
9305  ac_status=$?
9306  grep -v '^ *+' conftest.er1 >conftest.err
9307  rm -f conftest.er1
9308  cat conftest.err >&5
9309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310  (exit $ac_status); } &&
9311         { ac_try='test -z "$ac_c_werror_flag"
9312                         || test ! -s conftest.err'
9313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314  (eval $ac_try) 2>&5
9315  ac_status=$?
9316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317  (exit $ac_status); }; } &&
9318         { ac_try='test -s conftest.$ac_objext'
9319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320  (eval $ac_try) 2>&5
9321  ac_status=$?
9322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323  (exit $ac_status); }; }; then
9324  eval "$as_ac_Header=yes"
9325else
9326  echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329eval "$as_ac_Header=no"
9330fi
9331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9335if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336  cat >>confdefs.h <<_ACEOF
9337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338_ACEOF
9339
9340fi
9341
9342done
9343
9344
9345
9346for ac_header in dlfcn.h
9347do
9348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9349if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350  echo "$as_me:$LINENO: checking for $ac_header" >&5
9351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9352if eval "test \"\${$as_ac_Header+set}\" = set"; then
9353  echo $ECHO_N "(cached) $ECHO_C" >&6
9354fi
9355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357else
9358  # Is the header compilable?
9359echo "$as_me:$LINENO: checking $ac_header usability" >&5
9360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9361cat >conftest.$ac_ext <<_ACEOF
9362/* confdefs.h.  */
9363_ACEOF
9364cat confdefs.h >>conftest.$ac_ext
9365cat >>conftest.$ac_ext <<_ACEOF
9366/* end confdefs.h.  */
9367$ac_includes_default
9368#include <$ac_header>
9369_ACEOF
9370rm -f conftest.$ac_objext
9371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372  (eval $ac_compile) 2>conftest.er1
9373  ac_status=$?
9374  grep -v '^ *+' conftest.er1 >conftest.err
9375  rm -f conftest.er1
9376  cat conftest.err >&5
9377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378  (exit $ac_status); } &&
9379         { ac_try='test -z "$ac_c_werror_flag"
9380                         || test ! -s conftest.err'
9381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382  (eval $ac_try) 2>&5
9383  ac_status=$?
9384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385  (exit $ac_status); }; } &&
9386         { ac_try='test -s conftest.$ac_objext'
9387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388  (eval $ac_try) 2>&5
9389  ac_status=$?
9390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391  (exit $ac_status); }; }; then
9392  ac_header_compiler=yes
9393else
9394  echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
9397ac_header_compiler=no
9398fi
9399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9401echo "${ECHO_T}$ac_header_compiler" >&6
9402
9403# Is the header present?
9404echo "$as_me:$LINENO: checking $ac_header presence" >&5
9405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9406cat >conftest.$ac_ext <<_ACEOF
9407/* confdefs.h.  */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h.  */
9412#include <$ac_header>
9413_ACEOF
9414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9415  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9416  ac_status=$?
9417  grep -v '^ *+' conftest.er1 >conftest.err
9418  rm -f conftest.er1
9419  cat conftest.err >&5
9420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421  (exit $ac_status); } >/dev/null; then
9422  if test -s conftest.err; then
9423    ac_cpp_err=$ac_c_preproc_warn_flag
9424    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9425  else
9426    ac_cpp_err=
9427  fi
9428else
9429  ac_cpp_err=yes
9430fi
9431if test -z "$ac_cpp_err"; then
9432  ac_header_preproc=yes
9433else
9434  echo "$as_me: failed program was:" >&5
9435sed 's/^/| /' conftest.$ac_ext >&5
9436
9437  ac_header_preproc=no
9438fi
9439rm -f conftest.err conftest.$ac_ext
9440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441echo "${ECHO_T}$ac_header_preproc" >&6
9442
9443# So?  What about this header?
9444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445  yes:no: )
9446    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450    ac_header_preproc=yes
9451    ;;
9452  no:yes:* )
9453    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9456echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9457    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9460echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465    (
9466      cat <<\_ASBOX
9467## --------------------------------------- ##
9468## Report this to couenne@list.coin-or.org ##
9469## --------------------------------------- ##
9470_ASBOX
9471    ) |
9472      sed "s/^/$as_me: WARNING:     /" >&2
9473    ;;
9474esac
9475echo "$as_me:$LINENO: checking for $ac_header" >&5
9476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  eval "$as_ac_Header=\$ac_header_preproc"
9481fi
9482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9484
9485fi
9486if test `eval echo '${'$as_ac_Header'}'` = yes; then
9487  cat >>confdefs.h <<_ACEOF
9488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489_ACEOF
9490
9491fi
9492
9493done
9494
9495
9496
9497if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9498    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9499    (test "X$CXX" != "Xg++"))) ; then
9500  ac_ext=cc
9501ac_cpp='$CXXCPP $CPPFLAGS'
9502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9505echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9506echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9507if test -z "$CXXCPP"; then
9508  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9509  echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511      # Double quotes because CXXCPP needs to be expanded
9512    for CXXCPP in "$CXX -E" "/lib/cpp"
9513    do
9514      ac_preproc_ok=false
9515for ac_cxx_preproc_warn_flag in '' yes
9516do
9517  # Use a header file that comes with gcc, so configuring glibc
9518  # with a fresh cross-compiler works.
9519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520  # <limits.h> exists even on freestanding compilers.
9521  # On the NeXT, cc -E runs the code through the compiler's parser,
9522  # not just through cpp. "Syntax error" is here to catch this case.
9523  cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h.  */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h.  */
9529#ifdef __STDC__
9530# include <limits.h>
9531#else
9532# include <assert.h>
9533#endif
9534                     Syntax error
9535_ACEOF
9536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9537  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9538  ac_status=$?
9539  grep -v '^ *+' conftest.er1 >conftest.err
9540  rm -f conftest.er1
9541  cat conftest.err >&5
9542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543  (exit $ac_status); } >/dev/null; then
9544  if test -s conftest.err; then
9545    ac_cpp_err=$ac_cxx_preproc_warn_flag
9546    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9547  else
9548    ac_cpp_err=
9549  fi
9550else
9551  ac_cpp_err=yes
9552fi
9553if test -z "$ac_cpp_err"; then
9554  :
9555else
9556  echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559  # Broken: fails on valid input.
9560continue
9561fi
9562rm -f conftest.err conftest.$ac_ext
9563
9564  # OK, works on sane cases.  Now check whether non-existent headers
9565  # can be detected and how.
9566  cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h.  */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h.  */
9572#include <ac_nonexistent.h>
9573_ACEOF
9574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9576  ac_status=$?
9577  grep -v '^ *+' conftest.er1 >conftest.err
9578  rm -f conftest.er1
9579  cat conftest.err >&5
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); } >/dev/null; then
9582  if test -s conftest.err; then
9583    ac_cpp_err=$ac_cxx_preproc_warn_flag
9584    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9585  else
9586    ac_cpp_err=
9587  fi
9588else
9589  ac_cpp_err=yes
9590fi
9591if test -z "$ac_cpp_err"; then
9592  # Broken: success on invalid input.
9593continue
9594else
9595  echo "$as_me: failed program was:" >&5
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
9598  # Passes both tests.
9599ac_preproc_ok=:
9600break
9601fi
9602rm -f conftest.err conftest.$ac_ext
9603
9604done
9605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9606rm -f conftest.err conftest.$ac_ext
9607if $ac_preproc_ok; then
9608  break
9609fi
9610
9611    done
9612    ac_cv_prog_CXXCPP=$CXXCPP
9613
9614fi
9615  CXXCPP=$ac_cv_prog_CXXCPP
9616else
9617  ac_cv_prog_CXXCPP=$CXXCPP
9618fi
9619echo "$as_me:$LINENO: result: $CXXCPP" >&5
9620echo "${ECHO_T}$CXXCPP" >&6
9621ac_preproc_ok=false
9622for ac_cxx_preproc_warn_flag in '' yes
9623do
9624  # Use a header file that comes with gcc, so configuring glibc
9625  # with a fresh cross-compiler works.
9626  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627  # <limits.h> exists even on freestanding compilers.
9628  # On the NeXT, cc -E runs the code through the compiler's parser,
9629  # not just through cpp. "Syntax error" is here to catch this case.
9630  cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h.  */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h.  */
9636#ifdef __STDC__
9637# include <limits.h>
9638#else
9639# include <assert.h>
9640#endif
9641                     Syntax error
9642_ACEOF
9643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9645  ac_status=$?
9646  grep -v '^ *+' conftest.er1 >conftest.err
9647  rm -f conftest.er1
9648  cat conftest.err >&5
9649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650  (exit $ac_status); } >/dev/null; then
9651  if test -s conftest.err; then
9652    ac_cpp_err=$ac_cxx_preproc_warn_flag
9653    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9654  else
9655    ac_cpp_err=
9656  fi
9657else
9658  ac_cpp_err=yes
9659fi
9660if test -z "$ac_cpp_err"; then
9661  :
9662else
9663  echo "$as_me: failed program was:" >&5
9664sed 's/^/| /' conftest.$ac_ext >&5
9665
9666  # Broken: fails on valid input.
9667continue
9668fi
9669rm -f conftest.err conftest.$ac_ext
9670
9671  # OK, works on sane cases.  Now check whether non-existent headers
9672  # can be detected and how.
9673  cat >conftest.$ac_ext <<_ACEOF
9674/* confdefs.h.  */
9675_ACEOF
9676cat confdefs.h >>conftest.$ac_ext
9677cat >>conftest.$ac_ext <<_ACEOF
9678/* end confdefs.h.  */
9679#include <ac_nonexistent.h>
9680_ACEOF
9681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9682  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9683  ac_status=$?
9684  grep -v '^ *+' conftest.er1 >conftest.err
9685  rm -f conftest.er1
9686  cat conftest.err >&5
9687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688  (exit $ac_status); } >/dev/null; then
9689  if test -s conftest.err; then
9690    ac_cpp_err=$ac_cxx_preproc_warn_flag
9691    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9692  else
9693    ac_cpp_err=
9694  fi
9695else
9696  ac_cpp_err=yes
9697fi
9698if test -z "$ac_cpp_err"; then
9699  # Broken: success on invalid input.
9700continue
9701else
9702  echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705  # Passes both tests.
9706ac_preproc_ok=:
9707break
9708fi
9709rm -f conftest.err conftest.$ac_ext
9710
9711done
9712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9713rm -f conftest.err conftest.$ac_ext
9714if $ac_preproc_ok; then
9715  :
9716else
9717  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9718See \`config.log' for more details." >&5
9719echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9720See \`config.log' for more details." >&2;}
9721   { (exit 1); exit 1; }; }
9722fi
9723
9724ac_ext=cc
9725ac_cpp='$CXXCPP $CPPFLAGS'
9726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9729
9730fi
9731
9732
9733# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9734
9735# find the maximum length of command line arguments
9736echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9737echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9738if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9739  echo $ECHO_N "(cached) $ECHO_C" >&6
9740else
9741    i=0
9742  teststring="ABCD"
9743
9744  case $build_os in
9745  msdosdjgpp*)
9746    # On DJGPP, this test can blow up pretty badly due to problems in libc
9747    # (any single argument exceeding 2000 bytes causes a buffer overrun
9748    # during glob expansion).  Even if it were fixed, the result of this
9749    # check would be larger than it should be.
9750    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9751    ;;
9752
9753  gnu*)
9754    # Under GNU Hurd, this test is not required because there is
9755    # no limit to the length of command line arguments.
9756    # Libtool will interpret -1 as no limit whatsoever
9757    lt_cv_sys_max_cmd_len=-1;
9758    ;;
9759
9760  cygwin* | mingw*)
9761    # On Win9x/ME, this test blows up -- it succeeds, but takes
9762    # about 5 minutes as the teststring grows exponentially.
9763    # Worse, since 9x/ME are not pre-emptively multitasking,
9764    # you end up with a "frozen" computer, even though with patience
9765    # the test eventually succeeds (with a max line length of 256k).
9766    # Instead, let's just punt: use the minimum linelength reported by
9767    # all of the supported platforms: 8192 (on NT/2K/XP).
9768    lt_cv_sys_max_cmd_len=8192;
9769    ;;
9770
9771  amigaos*)
9772    # On AmigaOS with pdksh, this test takes hours, literally.
9773    # So we just punt and use a minimum line length of 8192.
9774    lt_cv_sys_max_cmd_len=8192;
9775    ;;
9776
9777  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9778    # This has been around since 386BSD, at least.  Likely further.
9779    if test -x /sbin/sysctl; then
9780      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9781    elif test -x /usr/sbin/sysctl; then
9782      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9783    else
9784      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9785    fi
9786    # And add a safety zone
9787    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9788    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9789    ;;
9790
9791  interix*)
9792    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9793    lt_cv_sys_max_cmd_len=196608
9794    ;;
9795
9796  osf*)
9797    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9798    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9799    # nice to cause kernel panics so lets avoid the loop below.
9800    # First set a reasonable default.
9801    lt_cv_sys_max_cmd_len=16384
9802    #
9803    if test -x /sbin/sysconfig; then
9804      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9805        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9806      esac
9807    fi
9808    ;;
9809  sco3.2v5*)
9810    lt_cv_sys_max_cmd_len=102400
9811    ;;
9812  sysv5* | sco5v6* | sysv4.2uw2*)
9813    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9814    if test -n "$kargmax"; then
9815      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9816    else
9817      lt_cv_sys_max_cmd_len=32768
9818    fi
9819    ;;
9820  *)
9821    # If test is not a shell built-in, we'll probably end up computing a
9822    # maximum length that is only half of the actual maximum length, but
9823    # we can't tell.
9824    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9825    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9826               = "XX$teststring") >/dev/null 2>&1 &&
9827            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9828            lt_cv_sys_max_cmd_len=$new_result &&
9829            test $i != 17 # 1/2 MB should be enough
9830    do
9831      i=`expr $i + 1`
9832      teststring=$teststring$teststring
9833    done
9834    teststring=
9835    # Add a significant safety factor because C++ compilers can tack on massive
9836    # amounts of additional arguments before passing them to the linker.
9837    # It appears as though 1/2 is a usable value.
9838    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9839    ;;
9840  esac
9841
9842fi
9843
9844if test -n $lt_cv_sys_max_cmd_len ; then
9845  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9846echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9847else
9848  echo "$as_me:$LINENO: result: none" >&5
9849echo "${ECHO_T}none" >&6
9850fi
9851
9852
9853
9854
9855# Check for command to grab the raw symbol name followed by C symbol from nm.
9856echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9857echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9858if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9859  echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861
9862# These are sane defaults that work on at least a few old systems.
9863# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9864
9865# Character class describing NM global symbol codes.
9866symcode='[BCDEGRST]'
9867
9868# Regexp to match symbols that can be accessed directly from C.
9869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9870
9871# Transform an extracted symbol line into a proper C declaration
9872lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9873
9874# Transform an extracted symbol line into symbol name and symbol address
9875lt_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'"
9876
9877# Define system-specific variables.
9878case $host_os in
9879aix*)
9880  symcode='[BCDT]'
9881  ;;
9882cygwin* | mingw* | pw32*)
9883  symcode='[ABCDGISTW]'
9884  ;;
9885hpux*) # Its linker distinguishes data from code symbols
9886  if test "$host_cpu" = ia64; then
9887    symcode='[ABCDEGRST]'
9888  fi
9889  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9890  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'"
9891  ;;
9892linux*)
9893  if test "$host_cpu" = ia64; then
9894    symcode='[ABCDGIRSTW]'
9895    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9896    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'"
9897  fi
9898  ;;
9899irix* | nonstopux*)
9900  symcode='[BCDEGRST]'
9901  ;;
9902osf*)
9903  symcode='[BCDEGQRST]'
9904  ;;
9905solaris*)
9906  symcode='[BDRT]'
9907  ;;
9908sco3.2v5*)
9909  symcode='[DT]'
9910  ;;
9911sysv4.2uw2*)
9912  symcode='[DT]'
9913  ;;
9914sysv5* | sco5v6* | unixware* | OpenUNIX*)
9915  symcode='[ABDT]'
9916  ;;
9917sysv4)
9918  symcode='[DFNSTU]'
9919  ;;
9920esac
9921
9922# Handle CRLF in mingw tool chain
9923opt_cr=
9924case $build_os in
9925mingw*)
9926  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9927  ;;
9928esac
9929
9930# If we're using GNU nm, then use its standard symbol codes.
9931case `$NM -V 2>&1` in
9932*GNU* | *'with BFD'*)
9933  symcode='[ABCDGIRSTW]' ;;
9934esac
9935
9936# Try without a prefix undercore, then with it.
9937for ac_symprfx in "" "_"; do
9938
9939  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9940  symxfrm="\\1 $ac_symprfx\\2 \\2"
9941
9942  # Write the raw and C identifiers.
9943  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9944
9945  # Check to see that the pipe works correctly.
9946  pipe_works=no
9947
9948  rm -f conftest*
9949  cat > conftest.$ac_ext <<EOF
9950#ifdef __cplusplus
9951extern "C" {
9952#endif
9953char nm_test_var;
9954void nm_test_func(){}
9955#ifdef __cplusplus
9956}
9957#endif
9958int main(){nm_test_var='a';nm_test_func();return(0);}
9959EOF
9960
9961  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9962  (eval $ac_compile) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; then
9966    # Now try to grab the symbols.
9967    nlist=conftest.nm
9968    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9969  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9970  ac_status=$?
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } && test -s "$nlist"; then
9973      # Try sorting and uniquifying the output.
9974      if sort "$nlist" | uniq > "$nlist"T; then
9975        mv -f "$nlist"T "$nlist"
9976      else
9977        rm -f "$nlist"T
9978      fi
9979
9980      # Make sure that we snagged all the symbols we need.
9981      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9982        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9983          cat <<EOF > conftest.$ac_ext
9984#ifdef __cplusplus
9985extern "C" {
9986#endif
9987
9988EOF
9989          # Now generate the symbol file.
9990          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9991
9992          cat <<EOF >> conftest.$ac_ext
9993#if defined (__STDC__) && __STDC__
9994# define lt_ptr_t void *
9995#else
9996# define lt_ptr_t char *
9997# define const
9998#endif
9999
10000/* The mapping between symbol names and symbols. */
10001const struct {
10002  const char *name;
10003  lt_ptr_t address;
10004}
10005lt_preloaded_symbols[] =
10006{
10007EOF
10008          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10009          cat <<\EOF >> conftest.$ac_ext
10010  {0, (lt_ptr_t) 0}
10011};
10012
10013#ifdef __cplusplus
10014}
10015#endif
10016EOF
10017          # Now try linking the two files.
10018          mv conftest.$ac_objext conftstm.$ac_objext
10019          lt_save_LIBS="$LIBS"
10020          lt_save_CFLAGS="$CFLAGS"
10021          LIBS="conftstm.$ac_objext"
10022          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10023          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024  (eval $ac_link) 2>&5
10025  ac_status=$?
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10028            pipe_works=yes
10029          fi
10030          LIBS="$lt_save_LIBS"
10031          CFLAGS="$lt_save_CFLAGS"
10032        else
10033          echo "cannot find nm_test_func in $nlist" >&5
10034        fi
10035      else
10036        echo "cannot find nm_test_var in $nlist" >&5
10037      fi
10038    else
10039      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10040    fi
10041  else
10042    echo "$progname: failed program was:" >&5
10043    cat conftest.$ac_ext >&5
10044  fi
10045  rm -f conftest* conftst*
10046
10047  # Do not use the global_symbol_pipe unless it works.
10048  if test "$pipe_works" = yes; then
10049    break
10050  else
10051    lt_cv_sys_global_symbol_pipe=
10052  fi
10053done
10054
10055fi
10056
10057if test -z "$lt_cv_sys_global_symbol_pipe"; then
10058  lt_cv_sys_global_symbol_to_cdecl=
10059fi
10060if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10061  echo "$as_me:$LINENO: result: failed" >&5
10062echo "${ECHO_T}failed" >&6
10063else
10064  echo "$as_me:$LINENO: result: ok" >&5
10065echo "${ECHO_T}ok" >&6
10066fi
10067
10068echo "$as_me:$LINENO: checking for objdir" >&5
10069echo $ECHO_N "checking for objdir... $ECHO_C" >&6
10070if test "${lt_cv_objdir+set}" = set; then
10071  echo $ECHO_N "(cached) $ECHO_C" >&6
10072else
10073  rm -f .libs 2>/dev/null
10074mkdir .libs 2>/dev/null
10075if test -d .libs; then
10076  lt_cv_objdir=.libs
10077else
10078  # MS-DOS does not allow filenames that begin with a dot.
10079  lt_cv_objdir=_libs
10080fi
10081rmdir .libs 2>/dev/null
10082fi
10083echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10084echo "${ECHO_T}$lt_cv_objdir" >&6
10085objdir=$lt_cv_objdir
10086
10087
10088
10089
10090
10091case $host_os in
10092aix3*)
10093  # AIX sometimes has problems with the GCC collect2 program.  For some
10094  # reason, if we set the COLLECT_NAMES environment variable, the problems
10095  # vanish in a puff of smoke.
10096  if test "X${COLLECT_NAMES+set}" != Xset; then
10097    COLLECT_NAMES=
10098    export COLLECT_NAMES
10099  fi
10100  ;;
10101esac
10102
10103# Sed substitution that helps us do robust quoting.  It backslashifies
10104# metacharacters that are still active within double-quoted strings.
10105Xsed='sed -e 1s/^X//'
10106sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
10107
10108# Same as above, but do not quote variable references.
10109double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
10110
10111# Sed substitution to delay expansion of an escaped shell variable in a
10112# double_quote_subst'ed string.
10113delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10114
10115# Sed substitution to avoid accidental globbing in evaled expressions
10116no_glob_subst='s/\*/\\\*/g'
10117
10118# Constants:
10119rm="rm -f"
10120
10121# Global variables:
10122default_ofile=libtool
10123can_build_shared=yes
10124
10125# All known linkers require a `.a' archive for static linking (except MSVC,
10126# which needs '.lib').
10127libext=a
10128ltmain="$ac_aux_dir/ltmain.sh"
10129ofile="$default_ofile"
10130with_gnu_ld="$lt_cv_prog_gnu_ld"
10131
10132if test -n "$ac_tool_prefix"; then
10133  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10134set dummy ${ac_tool_prefix}ar; ac_word=$2
10135echo "$as_me:$LINENO: checking for $ac_word" >&5
10136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10137if test "${ac_cv_prog_AR+set}" = set; then
10138  echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140  if test -n "$AR"; then
10141  ac_cv_prog_AR="$AR" # Let the user override the test.
10142else
10143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146  IFS=$as_save_IFS
10147  test -z "$as_dir" && as_dir=.
10148  for ac_exec_ext in '' $ac_executable_extensions; do
10149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150    ac_cv_prog_AR="${ac_tool_prefix}ar"
10151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152    break 2
10153  fi
10154done
10155done
10156
10157fi
10158fi
10159AR=$ac_cv_prog_AR
10160if test -n "$AR"; then
10161  echo "$as_me:$LINENO: result: $AR" >&5
10162echo "${ECHO_T}$AR" >&6
10163else
10164  echo "$as_me:$LINENO: result: no" >&5
10165echo "${ECHO_T}no" >&6
10166fi
10167
10168fi
10169if test -z "$ac_cv_prog_AR"; then
10170  ac_ct_AR=$AR
10171  # Extract the first word of "ar", so it can be a program name with args.
10172set dummy ar; ac_word=$2
10173echo "$as_me:$LINENO: checking for $ac_word" >&5
10174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10175if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10176  echo $ECHO_N "(cached) $ECHO_C" >&6
10177else
10178  if test -n "$ac_ct_AR"; then
10179  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184  IFS=$as_save_IFS
10185  test -z "$as_dir" && as_dir=.
10186  for ac_exec_ext in '' $ac_executable_extensions; do
10187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188    ac_cv_prog_ac_ct_AR="ar"
10189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190    break 2
10191  fi
10192done
10193done
10194
10195  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
10196fi
10197fi
10198ac_ct_AR=$ac_cv_prog_ac_ct_AR
10199if test -n "$ac_ct_AR"; then
10200  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10201echo "${ECHO_T}$ac_ct_AR" >&6
10202else
10203  echo "$as_me:$LINENO: result: no" >&5
10204echo "${ECHO_T}no" >&6
10205fi
10206
10207  AR=$ac_ct_AR
10208else
10209  AR="$ac_cv_prog_AR"
10210fi
10211
10212if test -n "$ac_tool_prefix"; then
10213  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10214set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10215echo "$as_me:$LINENO: checking for $ac_word" >&5
10216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10217if test "${ac_cv_prog_RANLIB+set}" = set; then
10218  echo $ECHO_N "(cached) $ECHO_C" >&6
10219else
10220  if test -n "$RANLIB"; then
10221  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10222else
10223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224for as_dir in $PATH
10225do
10226  IFS=$as_save_IFS
10227  test -z "$as_dir" && as_dir=.
10228  for ac_exec_ext in '' $ac_executable_extensions; do
10229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232    break 2
10233  fi
10234done
10235done
10236
10237fi
10238fi
10239RANLIB=$ac_cv_prog_RANLIB
10240if test -n "$RANLIB"; then
10241  echo "$as_me:$LINENO: result: $RANLIB" >&5
10242echo "${ECHO_T}$RANLIB" >&6
10243else
10244  echo "$as_me:$LINENO: result: no" >&5
10245echo "${ECHO_T}no" >&6
10246fi
10247
10248fi
10249if test -z "$ac_cv_prog_RANLIB"; then
10250  ac_ct_RANLIB=$RANLIB
10251  # Extract the first word of "ranlib", so it can be a program name with args.
10252set dummy ranlib; ac_word=$2
10253echo "$as_me:$LINENO: checking for $ac_word" >&5
10254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10255if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10256  echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258  if test -n "$ac_ct_RANLIB"; then
10259  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10260else
10261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $PATH
10263do
10264  IFS=$as_save_IFS
10265  test -z "$as_dir" && as_dir=.
10266  for ac_exec_ext in '' $ac_executable_extensions; do
10267  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10268    ac_cv_prog_ac_ct_RANLIB="ranlib"
10269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10270    break 2
10271  fi
10272done
10273done
10274
10275  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10276fi
10277fi
10278ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10279if test -n "$ac_ct_RANLIB"; then
10280  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10281echo "${ECHO_T}$ac_ct_RANLIB" >&6
10282else
10283  echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6
10285fi
10286
10287  RANLIB=$ac_ct_RANLIB
10288else
10289  RANLIB="$ac_cv_prog_RANLIB"
10290fi
10291
10292if test -n "$ac_tool_prefix"; then
10293  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10294set dummy ${ac_tool_prefix}strip; ac_word=$2
10295echo "$as_me:$LINENO: checking for $ac_word" >&5
10296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10297if test "${ac_cv_prog_STRIP+set}" = set; then
10298  echo $ECHO_N "(cached) $ECHO_C" >&6
10299else
10300  if test -n "$STRIP"; then
10301  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10302else
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306  IFS=$as_save_IFS
10307  test -z "$as_dir" && as_dir=.
10308  for ac_exec_ext in '' $ac_executable_extensions; do
10309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10310    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10312    break 2
10313  fi
10314done
10315done
10316
10317fi
10318fi
10319STRIP=$ac_cv_prog_STRIP
10320if test -n "$STRIP"; then
10321  echo "$as_me:$LINENO: result: $STRIP" >&5
10322echo "${ECHO_T}$STRIP" >&6
10323else
10324  echo "$as_me:$LINENO: result: no" >&5
10325echo "${ECHO_T}no" >&6
10326fi
10327
10328fi
10329if test -z "$ac_cv_prog_STRIP"; then
10330  ac_ct_STRIP=$STRIP
10331  # Extract the first word of "strip", so it can be a program name with args.
10332set dummy strip; ac_word=$2
10333echo "$as_me:$LINENO: checking for $ac_word" >&5
10334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10335if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10336  echo $ECHO_N "(cached) $ECHO_C" >&6
10337else
10338  if test -n "$ac_ct_STRIP"; then
10339  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344  IFS=$as_save_IFS
10345  test -z "$as_dir" && as_dir=.
10346  for ac_exec_ext in '' $ac_executable_extensions; do
10347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348    ac_cv_prog_ac_ct_STRIP="strip"
10349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10350    break 2
10351  fi
10352done
10353done
10354
10355  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10356fi
10357fi
10358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10359if test -n "$ac_ct_STRIP"; then
10360  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10361echo "${ECHO_T}$ac_ct_STRIP" >&6
10362else
10363  echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
10365fi
10366
10367  STRIP=$ac_ct_STRIP
10368else
10369  STRIP="$ac_cv_prog_STRIP"
10370fi
10371
10372
10373old_CC="$CC"
10374old_CFLAGS="$CFLAGS"
10375
10376# Set sane defaults for various variables
10377test -z "$AR" && AR=ar
10378test -z "$AR_FLAGS" && AR_FLAGS=cru
10379test -z "$AS" && AS=as
10380test -z "$CC" && CC=cc
10381test -z "$LTCC" && LTCC=$CC
10382test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10383test -z "$DLLTOOL" && DLLTOOL=dlltool
10384test -z "$LD" && LD=ld
10385test -z "$LN_S" && LN_S="ln -s"
10386test -z "$MAGIC_CMD" && MAGIC_CMD=file
10387test -z "$NM" && NM=nm
10388test -z "$SED" && SED=sed
10389test -z "$OBJDUMP" && OBJDUMP=objdump
10390test -z "$RANLIB" && RANLIB=:
10391test -z "$STRIP" && STRIP=:
10392test -z "$ac_objext" && ac_objext=o
10393
10394# Determine commands to create old-style static archives.
10395old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10396old_postinstall_cmds='chmod 644 $oldlib'
10397old_postuninstall_cmds=
10398
10399if test -n "$RANLIB"; then
10400  case $host_os in
10401  openbsd*)
10402    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10403    ;;
10404  *)
10405    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10406    ;;
10407  esac
10408  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10409fi
10410
10411for cc_temp in $compiler""; do
10412  case $cc_temp in
10413    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10414    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10415    \-*) ;;
10416    *) break;;
10417  esac
10418done
10419cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10420
10421
10422# Only perform the check for file, if the check method requires it
10423case $deplibs_check_method in
10424file_magic*)
10425  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10426    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10427echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
10428if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10429  echo $ECHO_N "(cached) $ECHO_C" >&6
10430else
10431  case $MAGIC_CMD in
10432[\\/*] |  ?:[\\/]*)
10433  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10434  ;;
10435*)
10436  lt_save_MAGIC_CMD="$MAGIC_CMD"
10437  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10438  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10439  for ac_dir in $ac_dummy; do
10440    IFS="$lt_save_ifs"
10441    test -z "$ac_dir" && ac_dir=.
10442    if test -f $ac_dir/${ac_tool_prefix}file; then
10443      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10444      if test -n "$file_magic_test_file"; then
10445        case $deplibs_check_method in
10446        "file_magic "*)
10447          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10448          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10449          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10450            $EGREP "$file_magic_regex" > /dev/null; then
10451            :
10452          else
10453            cat <<EOF 1>&2
10454
10455*** Warning: the command libtool uses to detect shared libraries,
10456*** $file_magic_cmd, produces output that libtool cannot recognize.
10457*** The result is that libtool may fail to recognize shared libraries
10458*** as such.  This will affect the creation of libtool libraries that
10459*** depend on shared libraries, but programs linked with such libtool
10460*** libraries will work regardless of this problem.  Nevertheless, you
10461*** may want to report the problem to your system manager and/or to
10462*** bug-libtool@gnu.org
10463
10464EOF
10465          fi ;;
10466        esac
10467      fi
10468      break
10469    fi
10470  done
10471  IFS="$lt_save_ifs"
10472  MAGIC_CMD="$lt_save_MAGIC_CMD"
10473  ;;
10474esac
10475fi
10476
10477MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10478if test -n "$MAGIC_CMD"; then
10479  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10480echo "${ECHO_T}$MAGIC_CMD" >&6
10481else
10482  echo "$as_me:$LINENO: result: no" >&5
10483echo "${ECHO_T}no" >&6
10484fi
10485
10486if test -z "$lt_cv_path_MAGIC_CMD"; then
10487  if test -n "$ac_tool_prefix"; then
10488    echo "$as_me:$LINENO: checking for file" >&5
10489echo $ECHO_N "checking for file... $ECHO_C" >&6
10490if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493  case $MAGIC_CMD in
10494[\\/*] |  ?:[\\/]*)
10495  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10496  ;;
10497*)
10498  lt_save_MAGIC_CMD="$MAGIC_CMD"
10499  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10500  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10501  for ac_dir in $ac_dummy; do
10502    IFS="$lt_save_ifs"
10503    test -z "$ac_dir" && ac_dir=.
10504    if test -f $ac_dir/file; then
10505      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10506      if test -n "$file_magic_test_file"; then
10507        case $deplibs_check_method in
10508        "file_magic "*)
10509          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10510          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10511          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10512            $EGREP "$file_magic_regex" > /dev/null; then
10513            :
10514          else
10515            cat <<EOF 1>&2
10516
10517*** Warning: the command libtool uses to detect shared libraries,
10518*** $file_magic_cmd, produces output that libtool cannot recognize.
10519*** The result is that libtool may fail to recognize shared libraries
10520*** as such.  This will affect the creation of libtool libraries that
10521*** depend on shared libraries, but programs linked with such libtool
10522*** libraries will work regardless of this problem.  Nevertheless, you
10523*** may want to report the problem to your system manager and/or to
10524*** bug-libtool@gnu.org
10525
10526EOF
10527          fi ;;
10528        esac
10529      fi
10530      break
10531    fi
10532  done
10533  IFS="$lt_save_ifs"
10534  MAGIC_CMD="$lt_save_MAGIC_CMD"
10535  ;;
10536esac
10537fi
10538
10539MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10540if test -n "$MAGIC_CMD"; then
10541  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10542echo "${ECHO_T}$MAGIC_CMD" >&6
10543else
10544  echo "$as_me:$LINENO: result: no" >&5
10545echo "${ECHO_T}no" >&6
10546fi
10547
10548  else
10549    MAGIC_CMD=:
10550  fi
10551fi
10552
10553  fi
10554  ;;
10555esac
10556
10557enable_dlopen=no
10558enable_win32_dll=no
10559
10560# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10561if test "${enable_libtool_lock+set}" = set; then
10562  enableval="$enable_libtool_lock"
10563
10564fi;
10565test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10566
10567
10568# Check whether --with-pic or --without-pic was given.
10569if test "${with_pic+set}" = set; then
10570  withval="$with_pic"
10571  pic_mode="$withval"
10572else
10573  pic_mode=default
10574fi;
10575test -z "$pic_mode" && pic_mode=default
10576
10577# Use C for the default configuration in the libtool script
10578tagname=
10579lt_save_CC="$CC"
10580ac_ext=c
10581ac_cpp='$CPP $CPPFLAGS'
10582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584ac_compiler_gnu=$ac_cv_c_compiler_gnu
10585
10586
10587# Source file extension for C test sources.
10588ac_ext=c
10589
10590# Object file extension for compiled C test sources.
10591objext=o
10592objext=$objext
10593
10594# Code to be used in simple compile tests
10595lt_simple_compile_test_code="int some_variable = 0;\n"
10596
10597# Code to be used in simple link tests
10598lt_simple_link_test_code='int main(){return(0);}\n'
10599
10600
10601# If no C compiler was specified, use CC.
10602LTCC=${LTCC-"$CC"}
10603
10604# If no C compiler flags were specified, use CFLAGS.
10605LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10606
10607# Allow CC to be a program name with arguments.
10608compiler=$CC
10609
10610
10611# save warnings/boilerplate of simple test code
10612ac_outfile=conftest.$ac_objext
10613printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10614eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10615_lt_compiler_boilerplate=`cat conftest.err`
10616$rm conftest*
10617
10618ac_outfile=conftest.$ac_objext
10619printf "$lt_simple_link_test_code" >conftest.$ac_ext
10620eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10621_lt_linker_boilerplate=`cat conftest.err`
10622$rm conftest*
10623
10624
10625## CAVEAT EMPTOR:
10626## There is no encapsulation within the following macros, do not change
10627## the running order or otherwise move them around unless you know exactly
10628## what you are doing...
10629
10630lt_prog_compiler_no_builtin_flag=
10631
10632if test "$GCC" = yes; then
10633  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10634
10635
10636echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10637echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10638if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10639  echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641  lt_cv_prog_compiler_rtti_exceptions=no
10642  ac_outfile=conftest.$ac_objext
10643   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10644   lt_compiler_flag="-fno-rtti -fno-exceptions"
10645   # Insert the option either (1) after the last *FLAGS variable, or
10646   # (2) before a word containing "conftest.", or (3) at the end.
10647   # Note that $ac_compile itself does not contain backslashes and begins
10648   # with a dollar sign (not a hyphen), so the echo should work correctly.
10649   # The option is referenced via a variable to avoid confusing sed.
10650   lt_compile=`echo "$ac_compile" | $SED \
10651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10653   -e 's:$: $lt_compiler_flag:'`
10654   (eval echo "\"\$as_me:10654: $lt_compile\"" >&5)
10655   (eval "$lt_compile" 2>conftest.err)
10656   ac_status=$?
10657   cat conftest.err >&5
10658   echo "$as_me:10658: \$? = $ac_status" >&5
10659   if (exit $ac_status) && test -s "$ac_outfile"; then
10660     # The compiler can only warn and ignore the option if not recognized
10661     # So say no if there are warnings other than the usual output.
10662     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10665       lt_cv_prog_compiler_rtti_exceptions=yes
10666     fi
10667   fi
10668   $rm conftest*
10669
10670fi
10671echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10672echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10673
10674if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10675    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10676else
10677    :
10678fi
10679
10680fi
10681
10682lt_prog_compiler_wl=
10683lt_prog_compiler_pic=
10684lt_prog_compiler_static=
10685
10686echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10687echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10688
10689  if test "$GCC" = yes; then
10690    lt_prog_compiler_wl='-Wl,'
10691    lt_prog_compiler_static='-static'
10692
10693    case $host_os in
10694      aix*)
10695      # All AIX code is PIC.
10696      if test "$host_cpu" = ia64; then
10697        # AIX 5 now supports IA64 processor
10698        lt_prog_compiler_static='-Bstatic'
10699      fi
10700      ;;
10701
10702    amigaos*)
10703      # FIXME: we need at least 68020 code to build shared libraries, but
10704      # adding the `-m68020' flag to GCC prevents building anything better,
10705      # like `-m68040'.
10706      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10707      ;;
10708
10709    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10710      # PIC is the default for these OSes.
10711      ;;
10712
10713    mingw* | pw32* | os2*)
10714      # This hack is so that the source file can tell whether it is being
10715      # built for inclusion in a dll (and should export symbols for example).
10716      lt_prog_compiler_pic='-DDLL_EXPORT'
10717      ;;
10718
10719    darwin* | rhapsody*)
10720      # PIC is the default on this platform
10721      # Common symbols not allowed in MH_DYLIB files
10722      lt_prog_compiler_pic='-fno-common'
10723      ;;
10724
10725    interix3*)
10726      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10727      # Instead, we relocate shared libraries at runtime.
10728      ;;
10729
10730    msdosdjgpp*)
10731      # Just because we use GCC doesn't mean we suddenly get shared libraries
10732      # on systems that don't support them.
10733      lt_prog_compiler_can_build_shared=no
10734      enable_shared=no
10735      ;;
10736
10737    sysv4*MP*)
10738      if test -d /usr/nec; then
10739        lt_prog_compiler_pic=-Kconform_pic
10740      fi
10741      ;;
10742
10743    hpux*)
10744      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10745      # not for PA HP-UX.
10746      case $host_cpu in
10747      hppa*64*|ia64*)
10748        # +Z the default
10749        ;;
10750      *)
10751        lt_prog_compiler_pic='-fPIC'
10752        ;;
10753      esac
10754      ;;
10755
10756    *)
10757      lt_prog_compiler_pic='-fPIC'
10758      ;;
10759    esac
10760  else
10761    # PORTME Check for flag to pass linker flags through the system compiler.
10762    case $host_os in
10763    aix*)
10764      lt_prog_compiler_wl='-Wl,'
10765      if test "$host_cpu" = ia64; then
10766        # AIX 5 now supports IA64 processor
10767        lt_prog_compiler_static='-Bstatic'
10768      else
10769        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10770      fi
10771      ;;
10772      darwin*)
10773        # PIC is the default on this platform
10774        # Common symbols not allowed in MH_DYLIB files
10775       case $cc_basename in
10776         xlc*)
10777         lt_prog_compiler_pic='-qnocommon'
10778         lt_prog_compiler_wl='-Wl,'
10779         ;;
10780       esac
10781       ;;
10782
10783    mingw* | pw32* | os2*)
10784      # This hack is so that the source file can tell whether it is being
10785      # built for inclusion in a dll (and should export symbols for example).
10786      lt_prog_compiler_pic='-DDLL_EXPORT'
10787      ;;
10788
10789    hpux9* | hpux10* | hpux11*)
10790      lt_prog_compiler_wl='-Wl,'
10791      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10792      # not for PA HP-UX.
10793      case $host_cpu in
10794      hppa*64*|ia64*)
10795        # +Z the default
10796        ;;
10797      *)
10798        lt_prog_compiler_pic='+Z'
10799        ;;
10800      esac
10801      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10802      lt_prog_compiler_static='${wl}-a ${wl}archive'
10803      ;;
10804
10805    irix5* | irix6* | nonstopux*)
10806      lt_prog_compiler_wl='-Wl,'
10807      # PIC (with -KPIC) is the default.
10808      lt_prog_compiler_static='-non_shared'
10809      ;;
10810
10811    newsos6)
10812      lt_prog_compiler_pic='-KPIC'
10813      lt_prog_compiler_static='-Bstatic'
10814      ;;
10815
10816    linux*)
10817      case $cc_basename in
10818      icc* | ecc*)
10819        lt_prog_compiler_wl='-Wl,'
10820        lt_prog_compiler_pic='-KPIC'
10821        lt_prog_compiler_static='-static'
10822        ;;
10823      pgcc* | pgf77* | pgf90* | pgf95*)
10824        # Portland Group compilers (*not* the Pentium gcc compiler,
10825        # which looks to be a dead project)
10826        lt_prog_compiler_wl='-Wl,'
10827        lt_prog_compiler_pic='-fpic'
10828        lt_prog_compiler_static='-Bstatic'
10829        ;;
10830      ccc*)
10831        lt_prog_compiler_wl='-Wl,'
10832        # All Alpha code is PIC.
10833        lt_prog_compiler_static='-non_shared'
10834        ;;
10835      esac
10836      ;;
10837
10838    osf3* | osf4* | osf5*)
10839      lt_prog_compiler_wl='-Wl,'
10840      # All OSF/1 code is PIC.
10841      lt_prog_compiler_static='-non_shared'
10842      ;;
10843
10844    solaris*)
10845      lt_prog_compiler_pic='-KPIC'
10846      lt_prog_compiler_static='-Bstatic'
10847      case $cc_basename in
10848      f77* | f90* | f95*)
10849        lt_prog_compiler_wl='-Qoption ld ';;
10850      *)
10851        lt_prog_compiler_wl='-Wl,';;
10852      esac
10853      ;;
10854
10855    sunos4*)
10856      lt_prog_compiler_wl='-Qoption ld '
10857      lt_prog_compiler_pic='-PIC'
10858      lt_prog_compiler_static='-Bstatic'
10859      ;;
10860
10861    sysv4 | sysv4.2uw2* | sysv4.3*)
10862      lt_prog_compiler_wl='-Wl,'
10863      lt_prog_compiler_pic='-KPIC'
10864      lt_prog_compiler_static='-Bstatic'
10865      ;;
10866
10867    sysv4*MP*)
10868      if test -d /usr/nec ;then
10869        lt_prog_compiler_pic='-Kconform_pic'
10870        lt_prog_compiler_static='-Bstatic'
10871      fi
10872      ;;
10873
10874    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10875      lt_prog_compiler_wl='-Wl,'
10876      lt_prog_compiler_pic='-KPIC'
10877      lt_prog_compiler_static='-Bstatic'
10878      ;;
10879
10880    unicos*)
10881      lt_prog_compiler_wl='-Wl,'
10882      lt_prog_compiler_can_build_shared=no
10883      ;;
10884
10885    uts4*)
10886      lt_prog_compiler_pic='-pic'
10887      lt_prog_compiler_static='-Bstatic'
10888      ;;
10889
10890    *)
10891      lt_prog_compiler_can_build_shared=no
10892      ;;
10893    esac
10894  fi
10895
10896echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10897echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10898
10899#
10900# Check to make sure the PIC flag actually works.
10901#
10902if test -n "$lt_prog_compiler_pic"; then
10903
10904echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10905echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10906if test "${lt_prog_compiler_pic_works+set}" = set; then
10907  echo $ECHO_N "(cached) $ECHO_C" >&6
10908else
10909  lt_prog_compiler_pic_works=no
10910  ac_outfile=conftest.$ac_objext
10911   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10912   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10913   # Insert the option either (1) after the last *FLAGS variable, or
10914   # (2) before a word containing "conftest.", or (3) at the end.
10915   # Note that $ac_compile itself does not contain backslashes and begins
10916   # with a dollar sign (not a hyphen), so the echo should work correctly.
10917   # The option is referenced via a variable to avoid confusing sed.
10918   lt_compile=`echo "$ac_compile" | $SED \
10919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10921   -e 's:$: $lt_compiler_flag:'`
10922   (eval echo "\"\$as_me:10922: $lt_compile\"" >&5)
10923   (eval "$lt_compile" 2>conftest.err)
10924   ac_status=$?
10925   cat conftest.err >&5
10926   echo "$as_me:10926: \$? = $ac_status" >&5
10927   if (exit $ac_status) && test -s "$ac_outfile"; then
10928     # The compiler can only warn and ignore the option if not recognized
10929     # So say no if there are warnings other than the usual output.
10930     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10931     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10932     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10933       lt_prog_compiler_pic_works=yes
10934     fi
10935   fi
10936   $rm conftest*
10937
10938fi
10939echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10940echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10941
10942if test x"$lt_prog_compiler_pic_works" = xyes; then
10943    case $lt_prog_compiler_pic in
10944     "" | " "*) ;;
10945     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10946     esac
10947else
10948    lt_prog_compiler_pic=
10949     lt_prog_compiler_can_build_shared=no
10950fi
10951
10952fi
10953case $host_os in
10954  # For platforms which do not support PIC, -DPIC is meaningless:
10955  *djgpp*)
10956    lt_prog_compiler_pic=
10957    ;;
10958  *)
10959    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10960    ;;
10961esac
10962
10963#
10964# Check to make sure the static flag actually works.
10965#
10966wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10967echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10968echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10969if test "${lt_prog_compiler_static_works+set}" = set; then
10970  echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972  lt_prog_compiler_static_works=no
10973   save_LDFLAGS="$LDFLAGS"
10974   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10975   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10976   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10977     # The linker can only warn and ignore the option if not recognized
10978     # So say no if there are warnings
10979     if test -s conftest.err; then
10980       # Append any errors to the config.log.
10981       cat conftest.err 1>&5
10982       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10983       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2