source: stable/1.15/configure @ 1960

Last change on this file since 1960 was 1960, checked in by stefan, 6 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 772.4 KB
RevLine 
[754]1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
[1960]4# Generated by GNU Autoconf 2.59 for Clp 1.15.1.
[754]5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
[1655]16# under the Eclipse Public License.
[754]17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
[915]253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
[754]407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
[1960]433PACKAGE_VERSION='1.15.1'
434PACKAGE_STRING='Clp 1.15.1'
[754]435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
[755]438ac_default_prefix=`pwd`
[915]439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
[1411]476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
[1691]478ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
[754]481ac_subdirs_all="$ac_subdirs_all Data/Sample"
[1415]482ac_subdirs_all="$ac_subdirs_all Data/Netlib"
[1559]483ac_subdirs_all="$ac_subdirs_all CoinUtils"
[1574]484ac_subdirs_all="$ac_subdirs_all Osi"
[759]485ac_subdirs_all="$ac_subdirs_all Clp"
[1752]486ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
[754]487ac_subst_files=''
488
489# Initialize some variables set by options.
490ac_init_help=
491ac_init_version=false
492# The variables have the same names as the options, with
493# dashes changed to underlines.
494cache_file=/dev/null
495exec_prefix=NONE
496no_create=
497no_recursion=
498prefix=NONE
499program_prefix=NONE
500program_suffix=NONE
501program_transform_name=s,x,x,
502silent=
503site=
504srcdir=
505verbose=
506x_includes=NONE
507x_libraries=NONE
508
509# Installation directory options.
510# These are left unexpanded so users can "make install exec_prefix=/foo"
511# and all the variables that are supposed to be based on exec_prefix
512# by default will actually change.
513# Use braces instead of parens because sh, perl, etc. also accept them.
514bindir='${exec_prefix}/bin'
515sbindir='${exec_prefix}/sbin'
516libexecdir='${exec_prefix}/libexec'
517datadir='${prefix}/share'
518sysconfdir='${prefix}/etc'
519sharedstatedir='${prefix}/com'
520localstatedir='${prefix}/var'
521libdir='${exec_prefix}/lib'
522includedir='${prefix}/include'
523oldincludedir='/usr/include'
524infodir='${prefix}/info'
525mandir='${prefix}/man'
526
527ac_prev=
528for ac_option
529do
530  # If the previous option needs an argument, assign it.
531  if test -n "$ac_prev"; then
532    eval "$ac_prev=\$ac_option"
533    ac_prev=
534    continue
535  fi
536
537  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
538
539  # Accept the important Cygnus configure options, so we can diagnose typos.
540
541  case $ac_option in
542
543  -bindir | --bindir | --bindi | --bind | --bin | --bi)
544    ac_prev=bindir ;;
545  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
546    bindir=$ac_optarg ;;
547
548  -build | --build | --buil | --bui | --bu)
549    ac_prev=build_alias ;;
550  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
551    build_alias=$ac_optarg ;;
552
553  -cache-file | --cache-file | --cache-fil | --cache-fi \
554  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
555    ac_prev=cache_file ;;
556  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
557  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
558    cache_file=$ac_optarg ;;
559
560  --config-cache | -C)
561    cache_file=config.cache ;;
562
563  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
564    ac_prev=datadir ;;
565  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
566  | --da=*)
567    datadir=$ac_optarg ;;
568
569  -disable-* | --disable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    eval "enable_$ac_feature=no" ;;
577
578  -enable-* | --enable-*)
579    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
580    # Reject names that are not valid shell variable names.
581    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
583   { (exit 1); exit 1; }; }
584    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
585    case $ac_option in
586      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587      *) ac_optarg=yes ;;
588    esac
589    eval "enable_$ac_feature='$ac_optarg'" ;;
590
591  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
592  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593  | --exec | --exe | --ex)
594    ac_prev=exec_prefix ;;
595  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
596  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
597  | --exec=* | --exe=* | --ex=*)
598    exec_prefix=$ac_optarg ;;
599
600  -gas | --gas | --ga | --g)
601    # Obsolete; use --with-gas.
602    with_gas=yes ;;
603
604  -help | --help | --hel | --he | -h)
605    ac_init_help=long ;;
606  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
607    ac_init_help=recursive ;;
608  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
609    ac_init_help=short ;;
610
611  -host | --host | --hos | --ho)
612    ac_prev=host_alias ;;
613  -host=* | --host=* | --hos=* | --ho=*)
614    host_alias=$ac_optarg ;;
615
616  -includedir | --includedir | --includedi | --included | --include \
617  | --includ | --inclu | --incl | --inc)
618    ac_prev=includedir ;;
619  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620  | --includ=* | --inclu=* | --incl=* | --inc=*)
621    includedir=$ac_optarg ;;
622
623  -infodir | --infodir | --infodi | --infod | --info | --inf)
624    ac_prev=infodir ;;
625  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626    infodir=$ac_optarg ;;
627
628  -libdir | --libdir | --libdi | --libd)
629    ac_prev=libdir ;;
630  -libdir=* | --libdir=* | --libdi=* | --libd=*)
631    libdir=$ac_optarg ;;
632
633  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634  | --libexe | --libex | --libe)
635    ac_prev=libexecdir ;;
636  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637  | --libexe=* | --libex=* | --libe=*)
638    libexecdir=$ac_optarg ;;
639
640  -localstatedir | --localstatedir | --localstatedi | --localstated \
641  | --localstate | --localstat | --localsta | --localst \
642  | --locals | --local | --loca | --loc | --lo)
643    ac_prev=localstatedir ;;
644  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647    localstatedir=$ac_optarg ;;
648
649  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650    ac_prev=mandir ;;
651  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652    mandir=$ac_optarg ;;
653
654  -nfp | --nfp | --nf)
655    # Obsolete; use --without-fp.
656    with_fp=no ;;
657
658  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659  | --no-cr | --no-c | -n)
660    no_create=yes ;;
661
662  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664    no_recursion=yes ;;
665
666  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668  | --oldin | --oldi | --old | --ol | --o)
669    ac_prev=oldincludedir ;;
670  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673    oldincludedir=$ac_optarg ;;
674
675  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676    ac_prev=prefix ;;
677  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678    prefix=$ac_optarg ;;
679
680  -program-prefix | --program-prefix | --program-prefi | --program-pref \
681  | --program-pre | --program-pr | --program-p)
682    ac_prev=program_prefix ;;
683  -program-prefix=* | --program-prefix=* | --program-prefi=* \
684  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685    program_prefix=$ac_optarg ;;
686
687  -program-suffix | --program-suffix | --program-suffi | --program-suff \
688  | --program-suf | --program-su | --program-s)
689    ac_prev=program_suffix ;;
690  -program-suffix=* | --program-suffix=* | --program-suffi=* \
691  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692    program_suffix=$ac_optarg ;;
693
694  -program-transform-name | --program-transform-name \
695  | --program-transform-nam | --program-transform-na \
696  | --program-transform-n | --program-transform- \
697  | --program-transform | --program-transfor \
698  | --program-transfo | --program-transf \
699  | --program-trans | --program-tran \
700  | --progr-tra | --program-tr | --program-t)
701    ac_prev=program_transform_name ;;
702  -program-transform-name=* | --program-transform-name=* \
703  | --program-transform-nam=* | --program-transform-na=* \
704  | --program-transform-n=* | --program-transform-=* \
705  | --program-transform=* | --program-transfor=* \
706  | --program-transfo=* | --program-transf=* \
707  | --program-trans=* | --program-tran=* \
708  | --progr-tra=* | --program-tr=* | --program-t=*)
709    program_transform_name=$ac_optarg ;;
710
711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712  | -silent | --silent | --silen | --sile | --sil)
713    silent=yes ;;
714
715  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716    ac_prev=sbindir ;;
717  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718  | --sbi=* | --sb=*)
719    sbindir=$ac_optarg ;;
720
721  -sharedstatedir | --sharedstatedir | --sharedstatedi \
722  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723  | --sharedst | --shareds | --shared | --share | --shar \
724  | --sha | --sh)
725    ac_prev=sharedstatedir ;;
726  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729  | --sha=* | --sh=*)
730    sharedstatedir=$ac_optarg ;;
731
732  -site | --site | --sit)
733    ac_prev=site ;;
734  -site=* | --site=* | --sit=*)
735    site=$ac_optarg ;;
736
737  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738    ac_prev=srcdir ;;
739  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740    srcdir=$ac_optarg ;;
741
742  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743  | --syscon | --sysco | --sysc | --sys | --sy)
744    ac_prev=sysconfdir ;;
745  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747    sysconfdir=$ac_optarg ;;
748
749  -target | --target | --targe | --targ | --tar | --ta | --t)
750    ac_prev=target_alias ;;
751  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752    target_alias=$ac_optarg ;;
753
754  -v | -verbose | --verbose | --verbos | --verbo | --verb)
755    verbose=yes ;;
756
757  -version | --version | --versio | --versi | --vers | -V)
758    ac_init_version=: ;;
759
760  -with-* | --with-*)
761    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package| sed 's/-/_/g'`
767    case $ac_option in
768      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
769      *) ac_optarg=yes ;;
770    esac
771    eval "with_$ac_package='$ac_optarg'" ;;
772
773  -without-* | --without-*)
774    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid package name: $ac_package" >&2
778   { (exit 1); exit 1; }; }
779    ac_package=`echo $ac_package | sed 's/-/_/g'`
780    eval "with_$ac_package=no" ;;
781
782  --x)
783    # Obsolete; use --with-x.
784    with_x=yes ;;
785
786  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
787  | --x-incl | --x-inc | --x-in | --x-i)
788    ac_prev=x_includes ;;
789  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
790  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
791    x_includes=$ac_optarg ;;
792
793  -x-libraries | --x-libraries | --x-librarie | --x-librari \
794  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
795    ac_prev=x_libraries ;;
796  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
797  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
798    x_libraries=$ac_optarg ;;
799
800  -*) { echo "$as_me: error: unrecognized option: $ac_option
801Try \`$0 --help' for more information." >&2
802   { (exit 1); exit 1; }; }
803    ;;
804
805  *=*)
806    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
809      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
810   { (exit 1); exit 1; }; }
811    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
812    eval "$ac_envvar='$ac_optarg'"
813    export $ac_envvar ;;
814
815  *)
816    # FIXME: should be removed in autoconf 3.0.
817    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
818    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
820    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821    ;;
822
823  esac
824done
825
826if test -n "$ac_prev"; then
827  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
828  { echo "$as_me: error: missing argument to $ac_option" >&2
829   { (exit 1); exit 1; }; }
830fi
831
832# Be sure to have absolute paths.
833for ac_var in exec_prefix prefix
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# Be sure to have absolute paths.
844for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
845              localstatedir libdir includedir oldincludedir infodir mandir
846do
847  eval ac_val=$`echo $ac_var`
848  case $ac_val in
849    [\\/$]* | ?:[\\/]* ) ;;
850    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851   { (exit 1); exit 1; }; };;
852  esac
853done
854
855# There might be people who depend on the old broken behavior: `$host'
856# used to hold the argument of --host etc.
857# FIXME: To remove some day.
858build=$build_alias
859host=$host_alias
860target=$target_alias
861
862# FIXME: To remove some day.
863if test "x$host_alias" != x; then
864  if test "x$build_alias" = x; then
865    cross_compiling=maybe
866    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
867    If a cross compiler is detected then cross compile mode will be used." >&2
868  elif test "x$build_alias" != "x$host_alias"; then
869    cross_compiling=yes
870  fi
871fi
872
873ac_tool_prefix=
874test -n "$host_alias" && ac_tool_prefix=$host_alias-
875
876test "$silent" = yes && exec 6>/dev/null
877
878
879# Find the source files, if location was not specified.
880if test -z "$srcdir"; then
881  ac_srcdir_defaulted=yes
882  # Try the directory containing this script, then its parent.
883  ac_confdir=`(dirname "$0") 2>/dev/null ||
884$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
885         X"$0" : 'X\(//\)[^/]' \| \
886         X"$0" : 'X\(//\)$' \| \
887         X"$0" : 'X\(/\)' \| \
888         .     : '\(.\)' 2>/dev/null ||
889echo X"$0" |
890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
891          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
892          /^X\(\/\/\)$/{ s//\1/; q; }
893          /^X\(\/\).*/{ s//\1/; q; }
894          s/.*/./; q'`
895  srcdir=$ac_confdir
896  if test ! -r $srcdir/$ac_unique_file; then
897    srcdir=..
898  fi
899else
900  ac_srcdir_defaulted=no
901fi
902if test ! -r $srcdir/$ac_unique_file; then
903  if test "$ac_srcdir_defaulted" = yes; then
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
905   { (exit 1); exit 1; }; }
906  else
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
908   { (exit 1); exit 1; }; }
909  fi
910fi
911(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
912  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
913   { (exit 1); exit 1; }; }
914srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
915ac_env_build_alias_set=${build_alias+set}
916ac_env_build_alias_value=$build_alias
917ac_cv_env_build_alias_set=${build_alias+set}
918ac_cv_env_build_alias_value=$build_alias
919ac_env_host_alias_set=${host_alias+set}
920ac_env_host_alias_value=$host_alias
921ac_cv_env_host_alias_set=${host_alias+set}
922ac_cv_env_host_alias_value=$host_alias
923ac_env_target_alias_set=${target_alias+set}
924ac_env_target_alias_value=$target_alias
925ac_cv_env_target_alias_set=${target_alias+set}
926ac_cv_env_target_alias_value=$target_alias
[915]927ac_env_CDEFS_set=${CDEFS+set}
928ac_env_CDEFS_value=$CDEFS
929ac_cv_env_CDEFS_set=${CDEFS+set}
930ac_cv_env_CDEFS_value=$CDEFS
931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
943ac_env_CC_set=${CC+set}
944ac_env_CC_value=$CC
945ac_cv_env_CC_set=${CC+set}
946ac_cv_env_CC_value=$CC
947ac_env_CFLAGS_set=${CFLAGS+set}
948ac_env_CFLAGS_value=$CFLAGS
949ac_cv_env_CFLAGS_set=${CFLAGS+set}
950ac_cv_env_CFLAGS_value=$CFLAGS
951ac_env_LDFLAGS_set=${LDFLAGS+set}
952ac_env_LDFLAGS_value=$LDFLAGS
953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
954ac_cv_env_LDFLAGS_value=$LDFLAGS
955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_env_CPPFLAGS_value=$CPPFLAGS
957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
959ac_env_MPICC_set=${MPICC+set}
960ac_env_MPICC_value=$MPICC
961ac_cv_env_MPICC_set=${MPICC+set}
962ac_cv_env_MPICC_value=$MPICC
963ac_env_CXXDEFS_set=${CXXDEFS+set}
964ac_env_CXXDEFS_value=$CXXDEFS
965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
966ac_cv_env_CXXDEFS_value=$CXXDEFS
967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
979ac_env_CXX_set=${CXX+set}
980ac_env_CXX_value=$CXX
981ac_cv_env_CXX_set=${CXX+set}
982ac_cv_env_CXX_value=$CXX
983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_env_CXXFLAGS_value=$CXXFLAGS
985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
987ac_env_MPICXX_set=${MPICXX+set}
988ac_env_MPICXX_value=$MPICXX
989ac_cv_env_MPICXX_set=${MPICXX+set}
990ac_cv_env_MPICXX_value=$MPICXX
991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1003ac_env_F77_set=${F77+set}
1004ac_env_F77_value=$F77
1005ac_cv_env_F77_set=${F77+set}
1006ac_cv_env_F77_value=$F77
1007ac_env_FFLAGS_set=${FFLAGS+set}
1008ac_env_FFLAGS_value=$FFLAGS
1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
1010ac_cv_env_FFLAGS_value=$FFLAGS
1011ac_env_MPIF77_set=${MPIF77+set}
1012ac_env_MPIF77_value=$MPIF77
1013ac_cv_env_MPIF77_set=${MPIF77+set}
1014ac_cv_env_MPIF77_value=$MPIF77
1015ac_env_CPP_set=${CPP+set}
1016ac_env_CPP_value=$CPP
1017ac_cv_env_CPP_set=${CPP+set}
1018ac_cv_env_CPP_value=$CPP
1019ac_env_CXXCPP_set=${CXXCPP+set}
1020ac_env_CXXCPP_value=$CXXCPP
1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
1022ac_cv_env_CXXCPP_value=$CXXCPP
[814]1023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
[754]1027
1028#
1029# Report the --help message.
1030#
1031if test "$ac_init_help" = "long"; then
1032  # Omit some internal or obsolete options to make the list less imposing.
1033  # This message is too long to be a string in the A/UX 3.1 sh.
1034  cat <<_ACEOF
[1960]1035\`configure' configures Clp 1.15.1 to adapt to many kinds of systems.
[754]1036
1037Usage: $0 [OPTION]... [VAR=VALUE]...
1038
1039To assign environment variables (e.g., CC, CFLAGS...), specify them as
1040VAR=VALUE.  See below for descriptions of some of the useful variables.
1041
1042Defaults for the options are specified in brackets.
1043
1044Configuration:
1045  -h, --help              display this help and exit
1046      --help=short        display options specific to this package
1047      --help=recursive    display the short help of all the included packages
1048  -V, --version           display version information and exit
1049  -q, --quiet, --silent   do not print \`checking...' messages
1050      --cache-file=FILE   cache test results in FILE [disabled]
1051  -C, --config-cache      alias for \`--cache-file=config.cache'
1052  -n, --no-create         do not create output files
1053      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1054
1055_ACEOF
1056
1057  cat <<_ACEOF
1058Installation directories:
1059  --prefix=PREFIX         install architecture-independent files in PREFIX
1060                          [$ac_default_prefix]
1061  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1062                          [PREFIX]
1063
1064By default, \`make install' will install all the files in
1065\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1066an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1067for instance \`--prefix=\$HOME'.
1068
1069For better control, use the options below.
1070
1071Fine tuning of the installation directories:
1072  --bindir=DIR           user executables [EPREFIX/bin]
1073  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1074  --libexecdir=DIR       program executables [EPREFIX/libexec]
1075  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1076  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1077  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1078  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1079  --libdir=DIR           object code libraries [EPREFIX/lib]
1080  --includedir=DIR       C header files [PREFIX/include]
1081  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1082  --infodir=DIR          info documentation [PREFIX/info]
1083  --mandir=DIR           man documentation [PREFIX/man]
1084_ACEOF
1085
1086  cat <<\_ACEOF
1087
1088Program names:
1089  --program-prefix=PREFIX            prepend PREFIX to installed program names
1090  --program-suffix=SUFFIX            append SUFFIX to installed program names
1091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
[915]1092
1093System types:
1094  --build=BUILD     configure for building on BUILD [guessed]
1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
[754]1096_ACEOF
1097fi
1098
1099if test -n "$ac_init_help"; then
1100  case $ac_init_help in
[1960]1101     short | recursive ) echo "Configuration of Clp 1.15.1:";;
[754]1102   esac
1103  cat <<\_ACEOF
1104
1105Optional Features:
1106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
[915]1108  --enable-debug          compile all projects with debug options tests
[1752]1109                          (implies --disable-shared)
[915]1110  --enable-doscompile     Under Cygwin, compile so that executables run under
1111                          DOS. Set to mingw to use gcc/g++/ld with
[1165]1112                          -mno-cygwin. Set to msvc to use cl/link (or
1113                          icl/link). Default when mentioned: mingw. Default
1114                          when not mentioned: disabled.
[915]1115  --enable-static[=PKGS]
1116                          build static libraries [default=no]
1117  --disable-dependency-tracking  speeds up one-time build
1118  --enable-dependency-tracking   do not reject slow dependency extractors
[754]1119  --enable-maintainer-mode  enable make rules and dependencies not useful
1120                          (and sometimes confusing) to the casual installer
[915]1121  --enable-shared[=PKGS]
1122                          build shared libraries [default=yes]
1123  --enable-fast-install[=PKGS]
1124                          optimize for fast installation [default=yes]
1125  --disable-libtool-lock  avoid locking (might break parallel builds)
[754]1126
[915]1127Optional Packages:
1128  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1129  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1130  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1131  --with-pic              try to use only PIC/non-PIC objects [default=use
1132                          both]
1133  --with-tags[=TAGS]
1134                          include additional configurations [automatic]
[1752]1135
[1559]1136  --with-blas-lib linker flags for using project Blas
1137  --with-blas-incdir directory with header files for using project Blas
1138  --with-blas-datadir directory with data files for using project Blas
[1687]1139  --with-blas             specify BLAS library (or BUILD to enforce use of
1140                          ThirdParty/Blas)
[1559]1141  --with-lapack-lib linker flags for using project Lapack
1142  --with-lapack-incdir directory with header files for using project Lapack
1143  --with-lapack-datadir directory with data files for using project Lapack
[1687]1144  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1145                          ThirdParty/Lapack)
[1691]1146  --with-metis-lib linker flags for using project Metis
1147  --with-metis-incdir directory with header files for using project Metis
1148  --with-metis-datadir directory with data files for using project Metis
1149  --with-mumps-lib linker flags for using project Mumps
1150  --with-mumps-incdir directory with header files for using project Mumps
1151  --with-mumps-datadir directory with data files for using project Mumps
1152  --with-glpk-lib linker flags for using project Glpk
1153  --with-glpk-incdir directory with header files for using project Glpk
1154  --with-glpk-datadir directory with data files for using project Glpk
[1559]1155  --with-sample-lib linker flags for using project Sample
1156  --with-sample-incdir directory with header files for using project Sample
1157  --with-sample-datadir directory with data files for using project Sample
1158  --with-netlib-lib linker flags for using project Netlib
1159  --with-netlib-incdir directory with header files for using project Netlib
1160  --with-netlib-datadir directory with data files for using project Netlib
1161  --with-coinutils-lib linker flags for using project CoinUtils
1162  --with-coinutils-incdir directory with header files for using project
1163                          CoinUtils
1164  --with-coinutils-datadir
1165                          directory with data files for using project
1166                          CoinUtils
[1574]1167  --with-osi-lib linker flags for using project Osi
1168  --with-osi-incdir directory with header files for using project Osi
1169  --with-osi-datadir directory with data files for using project Osi
[1559]1170  --with-clp-lib linker flags for using project Clp
1171  --with-clp-incdir directory with header files for using project Clp
1172  --with-clp-datadir directory with data files for using project Clp
[1581]1173  --with-dot              use dot (from graphviz) when creating documentation
1174                          with doxygen if available; --without-dot to disable
[915]1175
[814]1176Some influential environment variables:
[915]1177  CDEFS       Additional -D flags to be used when compiling C code.
1178  ADD_CFLAGS  Additional C compiler options
1179  DBG_CFLAGS  Debug C compiler options
1180  OPT_CFLAGS  Optimize C compiler options
1181  CC          C compiler command
1182  CFLAGS      C compiler flags
1183  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1184              nonstandard directory <lib dir>
1185  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186              headers in a nonstandard directory <include dir>
1187  MPICC       C MPI Compiler
1188  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1189  ADD_CXXFLAGS
1190              Additional C++ compiler options
1191  DBG_CXXFLAGS
1192              Debug C++ compiler options
1193  OPT_CXXFLAGS
1194              Optimize C++ compiler options
1195  CXX         C++ compiler command
1196  CXXFLAGS    C++ compiler flags
1197  MPICXX      C++ MPI Compiler
1198  ADD_FFLAGS  Additional Fortran compiler options
1199  DBG_FFLAGS  Debug Fortran compiler options
1200  OPT_FFLAGS  Optimize Fortran compiler options
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  MPIF77      Fortran MPI Compiler
1204  CPP         C preprocessor
1205  CXXCPP      C++ preprocessor
[814]1206  COIN_SKIP_PROJECTS
1207              Set to the subdirectories of projects that should be skipped in
1208              the configuration
1209
1210Use these variables to override the choices made by `configure' or to help
1211it to find libraries and programs with nonstandard names/locations.
1212
[754]1213Report bugs to <coin-clp@lists.coin-or.org>.
1214_ACEOF
1215fi
1216
1217if test "$ac_init_help" = "recursive"; then
1218  # If there are subdirs, report their specific --help.
1219  ac_popdir=`pwd`
1220  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1221    test -d $ac_dir || continue
1222    ac_builddir=.
1223
1224if test "$ac_dir" != .; then
1225  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1226  # A "../" for each directory in $ac_dir_suffix.
1227  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1228else
1229  ac_dir_suffix= ac_top_builddir=
1230fi
1231
1232case $srcdir in
1233  .)  # No --srcdir option.  We are building in place.
1234    ac_srcdir=.
1235    if test -z "$ac_top_builddir"; then
1236       ac_top_srcdir=.
1237    else
1238       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1239    fi ;;
1240  [\\/]* | ?:[\\/]* )  # Absolute path.
1241    ac_srcdir=$srcdir$ac_dir_suffix;
1242    ac_top_srcdir=$srcdir ;;
1243  *) # Relative path.
1244    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1245    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1246esac
1247
1248# Do not use `cd foo && pwd` to compute absolute paths, because
1249# the directories may not exist.
1250case `pwd` in
1251.) ac_abs_builddir="$ac_dir";;
1252*)
1253  case "$ac_dir" in
1254  .) ac_abs_builddir=`pwd`;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1256  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1257  esac;;
1258esac
1259case $ac_abs_builddir in
1260.) ac_abs_top_builddir=${ac_top_builddir}.;;
1261*)
1262  case ${ac_top_builddir}. in
1263  .) ac_abs_top_builddir=$ac_abs_builddir;;
1264  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1265  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1266  esac;;
1267esac
1268case $ac_abs_builddir in
1269.) ac_abs_srcdir=$ac_srcdir;;
1270*)
1271  case $ac_srcdir in
1272  .) ac_abs_srcdir=$ac_abs_builddir;;
1273  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1274  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1275  esac;;
1276esac
1277case $ac_abs_builddir in
1278.) ac_abs_top_srcdir=$ac_top_srcdir;;
1279*)
1280  case $ac_top_srcdir in
1281  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1282  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1283  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1284  esac;;
1285esac
1286
1287    cd $ac_dir
1288    # Check for guested configure; otherwise get Cygnus style configure.
1289    if test -f $ac_srcdir/configure.gnu; then
1290      echo
1291      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1292    elif test -f $ac_srcdir/configure; then
1293      echo
1294      $SHELL $ac_srcdir/configure  --help=recursive
1295    elif test -f $ac_srcdir/configure.ac ||
1296           test -f $ac_srcdir/configure.in; then
1297      echo
1298      $ac_configure --help
1299    else
1300      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1301    fi
1302    cd $ac_popdir
1303  done
1304fi
1305
1306test -n "$ac_init_help" && exit 0
1307if $ac_init_version; then
1308  cat <<\_ACEOF
[1960]1309Clp configure 1.15.1
[754]1310generated by GNU Autoconf 2.59
1311
1312Copyright (C) 2003 Free Software Foundation, Inc.
1313This configure script is free software; the Free Software Foundation
1314gives unlimited permission to copy, distribute and modify it.
1315
1316
1317Copyright 2006 International Business Machines and others.
1318All Rights Reserved.
1319This file is part of the open source package Coin which is distributed
[1655]1320under the Eclipse Public License.
[754]1321_ACEOF
1322  exit 0
1323fi
1324exec 5>config.log
1325cat >&5 <<_ACEOF
1326This file contains any messages produced by compilers while
1327running configure, to aid debugging if configure makes a mistake.
1328
[1960]1329It was created by Clp $as_me 1.15.1, which was
[754]1330generated by GNU Autoconf 2.59.  Invocation command line was
1331
1332  $ $0 $@
1333
1334_ACEOF
1335{
1336cat <<_ASUNAME
1337## --------- ##
1338## Platform. ##
1339## --------- ##
1340
1341hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1342uname -m = `(uname -m) 2>/dev/null || echo unknown`
1343uname -r = `(uname -r) 2>/dev/null || echo unknown`
1344uname -s = `(uname -s) 2>/dev/null || echo unknown`
1345uname -v = `(uname -v) 2>/dev/null || echo unknown`
1346
1347/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1348/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1349
1350/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1351/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1352/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1353hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1354/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1355/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1356/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1357
1358_ASUNAME
1359
1360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361for as_dir in $PATH
1362do
1363  IFS=$as_save_IFS
1364  test -z "$as_dir" && as_dir=.
1365  echo "PATH: $as_dir"
1366done
1367
1368} >&5
1369
1370cat >&5 <<_ACEOF
1371
1372
1373## ----------- ##
1374## Core tests. ##
1375## ----------- ##
1376
1377_ACEOF
1378
1379
1380# Keep a trace of the command line.
1381# Strip out --no-create and --no-recursion so they do not pile up.
1382# Strip out --silent because we don't want to record it for future runs.
1383# Also quote any args containing shell meta-characters.
1384# Make two passes to allow for proper duplicate-argument suppression.
1385ac_configure_args=
1386ac_configure_args0=
1387ac_configure_args1=
1388ac_sep=
1389ac_must_keep_next=false
1390for ac_pass in 1 2
1391do
1392  for ac_arg
1393  do
1394    case $ac_arg in
1395    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1396    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397    | -silent | --silent | --silen | --sile | --sil)
1398      continue ;;
1399    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1400      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1401    esac
1402    case $ac_pass in
1403    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1404    2)
1405      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1406      if test $ac_must_keep_next = true; then
1407        ac_must_keep_next=false # Got value, back to normal.
1408      else
1409        case $ac_arg in
1410          *=* | --config-cache | -C | -disable-* | --disable-* \
1411          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1412          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1413          | -with-* | --with-* | -without-* | --without-* | --x)
1414            case "$ac_configure_args0 " in
1415              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1416            esac
1417            ;;
1418          -* ) ac_must_keep_next=true ;;
1419        esac
1420      fi
1421      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1422      # Get rid of the leading space.
1423      ac_sep=" "
1424      ;;
1425    esac
1426  done
1427done
1428$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1429$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1430
1431# When interrupted or exit'd, cleanup temporary files, and complete
1432# config.log.  We remove comments because anyway the quotes in there
1433# would cause problems or look ugly.
1434# WARNING: Be sure not to use single quotes in there, as some shells,
1435# such as our DU 5.0 friend, will then `close' the trap.
1436trap 'exit_status=$?
1437  # Save into config.log some information that might help in debugging.
1438  {
1439    echo
1440
1441    cat <<\_ASBOX
1442## ---------------- ##
1443## Cache variables. ##
1444## ---------------- ##
1445_ASBOX
1446    echo
1447    # The following way of writing the cache mishandles newlines in values,
1448{
1449  (set) 2>&1 |
1450    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1451    *ac_space=\ *)
1452      sed -n \
1453        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1454          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1455      ;;
1456    *)
1457      sed -n \
1458        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1459      ;;
1460    esac;
1461}
1462    echo
1463
1464    cat <<\_ASBOX
1465## ----------------- ##
1466## Output variables. ##
1467## ----------------- ##
1468_ASBOX
1469    echo
1470    for ac_var in $ac_subst_vars
1471    do
1472      eval ac_val=$`echo $ac_var`
1473      echo "$ac_var='"'"'$ac_val'"'"'"
1474    done | sort
1475    echo
1476
1477    if test -n "$ac_subst_files"; then
1478      cat <<\_ASBOX
1479## ------------- ##
1480## Output files. ##
1481## ------------- ##
1482_ASBOX
1483      echo
1484      for ac_var in $ac_subst_files
1485      do
1486        eval ac_val=$`echo $ac_var`
1487        echo "$ac_var='"'"'$ac_val'"'"'"
1488      done | sort
1489      echo
1490    fi
1491
1492    if test -s confdefs.h; then
1493      cat <<\_ASBOX
1494## ----------- ##
1495## confdefs.h. ##
1496## ----------- ##
1497_ASBOX
1498      echo
1499      sed "/^$/d" confdefs.h | sort
1500      echo
1501    fi
1502    test "$ac_signal" != 0 &&
1503      echo "$as_me: caught signal $ac_signal"
1504    echo "$as_me: exit $exit_status"
1505  } >&5
1506  rm -f core *.core &&
1507  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1508    exit $exit_status
1509     ' 0
1510for ac_signal in 1 2 13 15; do
1511  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1512done
1513ac_signal=0
1514
1515# confdefs.h avoids OS command line length limits that DEFS can exceed.
1516rm -rf conftest* confdefs.h
1517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1518echo >confdefs.h
1519
1520# Predefined preprocessor variables.
1521
1522cat >>confdefs.h <<_ACEOF
1523#define PACKAGE_NAME "$PACKAGE_NAME"
1524_ACEOF
1525
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_VERSION "$PACKAGE_VERSION"
1534_ACEOF
1535
1536
1537cat >>confdefs.h <<_ACEOF
1538#define PACKAGE_STRING "$PACKAGE_STRING"
1539_ACEOF
1540
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1544_ACEOF
1545
1546
1547# Let the site file select an alternate cache file if it wants to.
1548# Prefer explicitly selected file to automatically selected ones.
1549if test -z "$CONFIG_SITE"; then
1550  if test "x$prefix" != xNONE; then
1551    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1552  else
1553    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1554  fi
1555fi
1556for ac_site_file in $CONFIG_SITE; do
1557  if test -r "$ac_site_file"; then
1558    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1559echo "$as_me: loading site script $ac_site_file" >&6;}
1560    sed 's/^/| /' "$ac_site_file" >&5
1561    . "$ac_site_file"
1562  fi
1563done
1564
1565if test -r "$cache_file"; then
1566  # Some versions of bash will fail to source /dev/null (special
1567  # files actually), so we avoid doing that.
1568  if test -f "$cache_file"; then
1569    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1570echo "$as_me: loading cache $cache_file" >&6;}
1571    case $cache_file in
1572      [\\/]* | ?:[\\/]* ) . $cache_file;;
1573      *)                      . ./$cache_file;;
1574    esac
1575  fi
1576else
1577  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1578echo "$as_me: creating cache $cache_file" >&6;}
1579  >$cache_file
1580fi
1581
1582# Check that the precious variables saved in the cache have kept the same
1583# value.
1584ac_cache_corrupted=false
1585for ac_var in `(set) 2>&1 |
1586               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1587  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1588  eval ac_new_set=\$ac_env_${ac_var}_set
1589  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1590  eval ac_new_val="\$ac_env_${ac_var}_value"
1591  case $ac_old_set,$ac_new_set in
1592    set,)
1593      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1594echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1595      ac_cache_corrupted=: ;;
1596    ,set)
1597      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1598echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1599      ac_cache_corrupted=: ;;
1600    ,);;
1601    *)
1602      if test "x$ac_old_val" != "x$ac_new_val"; then
1603        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1604echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1605        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1606echo "$as_me:   former value:  $ac_old_val" >&2;}
1607        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1608echo "$as_me:   current value: $ac_new_val" >&2;}
1609        ac_cache_corrupted=:
1610      fi;;
1611  esac
1612  # Pass precious variables to config.status.
1613  if test "$ac_new_set" = set; then
1614    case $ac_new_val in
1615    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1616      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1617    *) ac_arg=$ac_var=$ac_new_val ;;
1618    esac
1619    case " $ac_configure_args " in
1620      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1621      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1622    esac
1623  fi
1624done
1625if $ac_cache_corrupted; then
1626  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1627echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1628  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1629echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1630   { (exit 1); exit 1; }; }
1631fi
1632
1633ac_ext=c
1634ac_cpp='$CPP $CPPFLAGS'
1635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1637ac_compiler_gnu=$ac_cv_c_compiler_gnu
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
[755]1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
[754]1680#############################################################################
[915]1681#              Create the libtool script for the subdirectories             #
[754]1682#############################################################################
1683
1684ac_aux_dir=
1685for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1686  if test -f $ac_dir/install-sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install-sh -c"
1689    break
1690  elif test -f $ac_dir/install.sh; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/install.sh -c"
1693    break
1694  elif test -f $ac_dir/shtool; then
1695    ac_aux_dir=$ac_dir
1696    ac_install_sh="$ac_aux_dir/shtool install -c"
1697    break
1698  fi
1699done
1700if test -z "$ac_aux_dir"; then
1701  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1702echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1703   { (exit 1); exit 1; }; }
1704fi
1705ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1706ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1707ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1708
[915]1709# Make sure we can run config.sub.
1710$ac_config_sub sun4 >/dev/null 2>&1 ||
1711  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1712echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1713   { (exit 1); exit 1; }; }
1714
1715echo "$as_me:$LINENO: checking build system type" >&5
1716echo $ECHO_N "checking build system type... $ECHO_C" >&6
1717if test "${ac_cv_build+set}" = set; then
1718  echo $ECHO_N "(cached) $ECHO_C" >&6
1719else
1720  ac_cv_build_alias=$build_alias
1721test -z "$ac_cv_build_alias" &&
1722  ac_cv_build_alias=`$ac_config_guess`
1723test -z "$ac_cv_build_alias" &&
1724  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1725echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1726   { (exit 1); exit 1; }; }
1727ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1728  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1729echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1730   { (exit 1); exit 1; }; }
1731
1732fi
1733echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1734echo "${ECHO_T}$ac_cv_build" >&6
1735build=$ac_cv_build
1736build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1737build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1738build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1739
1740
1741
1742# Check if user wants to produce debugging code
1743
1744echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1745echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1746
1747# Check whether --enable-debug or --disable-debug was given.
1748if test "${enable_debug+set}" = set; then
1749  enableval="$enable_debug"
1750  case "${enableval}" in
1751   yes) coin_debug_compile=true
[1165]1752        if test "${enable_shared+set}" = set; then :; else
1753          enable_shared=no
1754        fi
[915]1755        ;;
1756   no)  coin_debug_compile=false
1757        ;;
1758   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1759echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1760   { (exit 1); exit 1; }; }
1761        ;;
1762esac
1763else
1764  coin_debug_compile=false
1765fi;
1766
1767 # m4_ifvaln([],
1768
1769if test $coin_debug_compile = true; then
1770  echo "$as_me:$LINENO: result: yes" >&5
1771echo "${ECHO_T}yes" >&6
1772else
1773  echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775fi
1776
1777 # m4_ifvaln([],
1778
1779
1780
1781# Get the name of the C compiler and appropriate compiler options
1782case $build in
1783  *-mingw*)
1784    if test "${LD+set}" = set; then :; else
1785      LD=link
1786    fi
1787    ;;
1788 esac
1789 case $enable_doscompile in
1790   msvc)
1791     if test "x${LD+set}" = xset; then :; else
1792       LD=link
1793     fi
1794     ;;
1795 esac
1796
1797
1798 # Check whether --enable-doscompile or --disable-doscompile was given.
1799if test "${enable_doscompile+set}" = set; then
1800  enableval="$enable_doscompile"
1801  if test "$enable_doscompile" != no; then
1802     case $build in
[1165]1803       *-cygwin* | *-mingw*) ;;
1804       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1805echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
[915]1806   { (exit 1); exit 1; }; } ;;
1807     esac
1808   fi
1809else
1810  enable_doscompile=no
1811fi;
1812 case "$enable_doscompile" in
[1165]1813   mingw)
1814     case $build in
1815       *-mingw*) enable_doscompile=no ;;
1816     esac
1817     ;;
1818   msvc|no) ;;
[915]1819   yes) enable_doscompile=mingw ;;
1820   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1821                    Try configure --help=recursive." >&5
1822echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1823                    Try configure --help=recursive." >&2;}
1824   { (exit 1); exit 1; }; }
1825      ;;
1826  esac
1827  if test "$enable_doscompile" != no ; then
1828    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1829echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1830  fi
1831
1832
1833
1834
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840
1841
1842# For consistency, we set the C compiler to the same value of the C++
1843# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1844if test x"$CXX" != x; then
1845  case "$CXX" in
[1882]1846    clang* ) ;;
[1165]1847    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[915]1848      if test x"$CC" = x; then
1849        CC="$CXX"
1850        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1851echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1852      fi
1853      ;;
1854  esac
1855fi
1856
1857
1858
1859
1860
1861
1862coin_has_cc=yes
1863
1864save_cflags="$CFLAGS"
[1165]1865
1866# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1867# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1868# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1869# compiler. In this case, put cc after gcc.
1870
[915]1871case $build in
1872  *-cygwin* | *-mingw*)
1873             if test "$enable_doscompile" = msvc ; then
[1165]1874               comps="icl cl"
[915]1875             else
1876               comps="gcc cl"
1877             fi ;;
[1165]1878  *-*-solaris*)
1879             # Extract the first word of "cc", so it can be a program name with args.
1880set dummy cc; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$sol_cc_compiler"; then
1887  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1888else
1889  ac_prog_rejected=no
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  test -z "$as_dir" && as_dir=.
1895  for ac_exec_ext in '' $ac_executable_extensions; do
1896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1898       ac_prog_rejected=yes
1899       continue
1900     fi
1901    ac_cv_prog_sol_cc_compiler="cc"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908if test $ac_prog_rejected = yes; then
1909  # We found a bogon in the path, so make sure we never use it.
1910  set dummy $ac_cv_prog_sol_cc_compiler
1911  shift
1912  if test $# != 0; then
1913    # We chose a different compiler from the bogus one.
1914    # However, it has the same basename, so the bogon will be chosen
1915    # first if we set sol_cc_compiler to just the basename; use the full file name.
1916    shift
1917    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1918  fi
1919fi
1920fi
1921fi
1922sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1923if test -n "$sol_cc_compiler"; then
1924  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1925echo "${ECHO_T}$sol_cc_compiler" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931             if test "$sol_cc_compiler" = "cc" ; then
1932               comps="cc xlc gcc pgcc icc"
1933             else
1934               comps="xlc gcc pgcc icc cc"
1935             fi
1936             ;;
[1658]1937  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
[915]1938  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1939  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1940esac
1941
1942# We delete the cached value, since the test might not have been
1943# performed with our choice of compilers earlier
1944$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1945# AC_MSG_NOTICE([C compiler candidates: $comps])
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951if test -n "$ac_tool_prefix"; then
1952  for ac_prog in $comps
1953  do
1954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_CC+set}" = set; then
1959  echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961  if test -n "$CC"; then
1962  ac_cv_prog_CC="$CC" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973    break 2
1974  fi
1975done
1976done
1977
1978fi
1979fi
1980CC=$ac_cv_prog_CC
1981if test -n "$CC"; then
1982  echo "$as_me:$LINENO: result: $CC" >&5
1983echo "${ECHO_T}$CC" >&6
1984else
1985  echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989    test -n "$CC" && break
1990  done
1991fi
1992if test -z "$CC"; then
1993  ac_ct_CC=$CC
1994  for ac_prog in $comps
1995do
1996  # Extract the first word of "$ac_prog", so it can be a program name with args.
1997set dummy $ac_prog; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$ac_ct_CC"; then
2004  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011  for ac_exec_ext in '' $ac_executable_extensions; do
2012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013    ac_cv_prog_ac_ct_CC="$ac_prog"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020fi
2021fi
2022ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023if test -n "$ac_ct_CC"; then
2024  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025echo "${ECHO_T}$ac_ct_CC" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031  test -n "$ac_ct_CC" && break
2032done
2033
2034  CC=$ac_ct_CC
2035fi
2036
2037
2038test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: no acceptable C compiler found in \$PATH
2041See \`config.log' for more details." >&2;}
2042   { (exit 1); exit 1; }; }
2043
2044# Provide some information about the compiler.
2045echo "$as_me:$LINENO:" \
2046     "checking for C compiler version" >&5
2047ac_compiler=`set X $ac_compile; echo $2`
2048{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2049  (eval $ac_compiler --version </dev/null >&5) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2054  (eval $ac_compiler -v </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2059  (eval $ac_compiler -V </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063
2064cat >conftest.$ac_ext <<_ACEOF
2065/* confdefs.h.  */
2066_ACEOF
2067cat confdefs.h >>conftest.$ac_ext
2068cat >>conftest.$ac_ext <<_ACEOF
2069/* end confdefs.h.  */
2070
2071int
2072main ()
2073{
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079ac_clean_files_save=$ac_clean_files
2080ac_clean_files="$ac_clean_files a.out a.exe b.out"
2081# Try to create an executable without -o first, disregard a.out.
2082# It will help us diagnose broken compilers, and finding out an intuition
2083# of exeext.
2084echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2085echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2086ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2087if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2088  (eval $ac_link_default) 2>&5
2089  ac_status=$?
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); }; then
2092  # Find the output, starting from the most likely.  This scheme is
2093# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094# resort.
2095
2096# Be careful to initialize this variable, since it used to be cached.
2097# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2098ac_cv_exeext=
2099# b.out is created by i960 compilers.
2100for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2101do
2102  test -f "$ac_file" || continue
2103  case $ac_file in
2104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2105        ;;
2106    conftest.$ac_ext )
2107        # This is the source file.
2108        ;;
2109    [ab].out )
2110        # We found the default executable, but exeext='' is most
2111        # certainly right.
2112        break;;
2113    *.* )
2114        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115        # FIXME: I believe we export ac_cv_exeext for Libtool,
2116        # but it would be cool to find out if it's true.  Does anybody
2117        # maintain Libtool? --akim.
2118        export ac_cv_exeext
2119        break;;
2120    * )
2121        break;;
2122  esac
2123done
2124else
2125  echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: C compiler cannot create executables
2131See \`config.log' for more details." >&2;}
2132   { (exit 77); exit 77; }; }
2133fi
2134
2135ac_exeext=$ac_cv_exeext
2136echo "$as_me:$LINENO: result: $ac_file" >&5
2137echo "${ECHO_T}$ac_file" >&6
2138
2139# Check the compiler produces executables we can run.  If not, either
2140# the compiler is broken, or we cross compile.
2141echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2142echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2143# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2144# If not cross compiling, check that we can run a simple program.
2145if test "$cross_compiling" != yes; then
2146  if { ac_try='./$ac_file'
2147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148  (eval $ac_try) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }; }; then
2152    cross_compiling=no
2153  else
2154    if test "$cross_compiling" = maybe; then
2155        cross_compiling=yes
2156    else
2157        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2158If you meant to cross compile, use \`--host'.
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: cannot run C compiled programs.
2161If you meant to cross compile, use \`--host'.
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164    fi
2165  fi
2166fi
2167echo "$as_me:$LINENO: result: yes" >&5
2168echo "${ECHO_T}yes" >&6
2169
2170rm -f a.out a.exe conftest$ac_cv_exeext b.out
2171ac_clean_files=$ac_clean_files_save
2172# Check the compiler produces executables we can run.  If not, either
2173# the compiler is broken, or we cross compile.
2174echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2175echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2176echo "$as_me:$LINENO: result: $cross_compiling" >&5
2177echo "${ECHO_T}$cross_compiling" >&6
2178
2179echo "$as_me:$LINENO: checking for suffix of executables" >&5
2180echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2182  (eval $ac_link) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; then
2186  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2187# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2188# work properly (i.e., refer to `conftest.exe'), while it won't with
2189# `rm'.
2190for ac_file in conftest.exe conftest conftest.*; do
2191  test -f "$ac_file" || continue
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2194    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195          export ac_cv_exeext
2196          break;;
2197    * ) break;;
2198  esac
2199done
2200else
2201  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2204See \`config.log' for more details." >&2;}
2205   { (exit 1); exit 1; }; }
2206fi
2207
2208rm -f conftest$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2210echo "${ECHO_T}$ac_cv_exeext" >&6
2211
2212rm -f conftest.$ac_ext
2213EXEEXT=$ac_cv_exeext
2214ac_exeext=$EXEEXT
2215echo "$as_me:$LINENO: checking for suffix of object files" >&5
2216echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2217if test "${ac_cv_objext+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h.  */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h.  */
2226
2227int
2228main ()
2229{
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235rm -f conftest.o conftest.obj
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237  (eval $ac_compile) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; then
2241  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2242  case $ac_file in
2243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2244    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2245       break;;
2246  esac
2247done
2248else
2249  echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2253See \`config.log' for more details." >&5
2254echo "$as_me: error: cannot compute suffix of object files: cannot compile
2255See \`config.log' for more details." >&2;}
2256   { (exit 1); exit 1; }; }
2257fi
2258
2259rm -f conftest.$ac_cv_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2262echo "${ECHO_T}$ac_cv_objext" >&6
2263OBJEXT=$ac_cv_objext
2264ac_objext=$OBJEXT
2265echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2266echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2267if test "${ac_cv_c_compiler_gnu+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270  cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h.  */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h.  */
2276
2277int
2278main ()
2279{
2280#ifndef __GNUC__
2281       choke me
2282#endif
2283
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288rm -f conftest.$ac_objext
2289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290  (eval $ac_compile) 2>conftest.er1
2291  ac_status=$?
2292  grep -v '^ *+' conftest.er1 >conftest.err
2293  rm -f conftest.er1
2294  cat conftest.err >&5
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); } &&
2297         { ac_try='test -z "$ac_c_werror_flag"
2298                         || test ! -s conftest.err'
2299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300  (eval $ac_try) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; } &&
2304         { ac_try='test -s conftest.$ac_objext'
2305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306  (eval $ac_try) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; }; then
2310  ac_compiler_gnu=yes
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315ac_compiler_gnu=no
2316fi
2317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2318ac_cv_c_compiler_gnu=$ac_compiler_gnu
2319
2320fi
2321echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2322echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2323GCC=`test $ac_compiler_gnu = yes && echo yes`
2324ac_test_CFLAGS=${CFLAGS+set}
2325ac_save_CFLAGS=$CFLAGS
2326CFLAGS="-g"
2327echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2328echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2329if test "${ac_cv_prog_cc_g+set}" = set; then
2330  echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332  cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h.  */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h.  */
2338
2339int
2340main ()
2341{
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349  (eval $ac_compile) 2>conftest.er1
2350  ac_status=$?
2351  grep -v '^ *+' conftest.er1 >conftest.err
2352  rm -f conftest.er1
2353  cat conftest.err >&5
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); } &&
2356         { ac_try='test -z "$ac_c_werror_flag"
2357                         || test ! -s conftest.err'
2358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359  (eval $ac_try) 2>&5
2360  ac_status=$?
2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362  (exit $ac_status); }; } &&
2363         { ac_try='test -s conftest.$ac_objext'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; }; then
2369  ac_cv_prog_cc_g=yes
2370else
2371  echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374ac_cv_prog_cc_g=no
2375fi
2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377fi
2378echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2379echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2380if test "$ac_test_CFLAGS" = set; then
2381  CFLAGS=$ac_save_CFLAGS
2382elif test $ac_cv_prog_cc_g = yes; then
2383  if test "$GCC" = yes; then
2384    CFLAGS="-g -O2"
2385  else
2386    CFLAGS="-g"
2387  fi
2388else
2389  if test "$GCC" = yes; then
2390    CFLAGS="-O2"
2391  else
2392    CFLAGS=
2393  fi
2394fi
2395echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2396echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2397if test "${ac_cv_prog_cc_stdc+set}" = set; then
2398  echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400  ac_cv_prog_cc_stdc=no
2401ac_save_CC=$CC
2402cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h.  */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h.  */
2408#include <stdarg.h>
2409#include <stdio.h>
2410#include <sys/types.h>
2411#include <sys/stat.h>
2412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2413struct buf { int x; };
2414FILE * (*rcsopen) (struct buf *, struct stat *, int);
2415static char *e (p, i)
2416     char **p;
2417     int i;
2418{
2419  return p[i];
2420}
2421static char *f (char * (*g) (char **, int), char **p, ...)
2422{
2423  char *s;
2424  va_list v;
2425  va_start (v,p);
2426  s = g (p, va_arg (v,int));
2427  va_end (v);
2428  return s;
2429}
2430
2431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2432   function prototypes and stuff, but not '\xHH' hex character constants.
2433   These don't provoke an error unfortunately, instead are silently treated
2434   as 'x'.  The following induces an error, until -std1 is added to get
2435   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2436   array size at least.  It's necessary to write '\x00'==0 to get something
2437   that's true only with -std1.  */
2438int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2439
2440int test (int i, double x);
2441struct s1 {int (*f) (int a);};
2442struct s2 {int (*f) (double a);};
2443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2444int argc;
2445char **argv;
2446int
2447main ()
2448{
2449return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454# Don't try gcc -ansi; that turns off useful extensions and
2455# breaks some systems' header files.
2456# AIX                   -qlanglvl=ansi
2457# Ultrix and OSF/1      -std1
2458# HP-UX 10.20 and later -Ae
2459# HP-UX older versions  -Aa -D_HPUX_SOURCE
2460# SVR4                  -Xc -D__EXTENSIONS__
2461for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2462do
2463  CC="$ac_save_CC $ac_arg"
2464  rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466  (eval $ac_compile) 2>conftest.er1
2467  ac_status=$?
2468  grep -v '^ *+' conftest.er1 >conftest.err
2469  rm -f conftest.er1
2470  cat conftest.err >&5
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); } &&
2473         { ac_try='test -z "$ac_c_werror_flag"
2474                         || test ! -s conftest.err'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; } &&
2480         { ac_try='test -s conftest.$ac_objext'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; }; then
2486  ac_cv_prog_cc_stdc=$ac_arg
2487break
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext
2494done
2495rm -f conftest.$ac_ext conftest.$ac_objext
2496CC=$ac_save_CC
2497
2498fi
2499
2500case "x$ac_cv_prog_cc_stdc" in
2501  x|xno)
2502    echo "$as_me:$LINENO: result: none needed" >&5
2503echo "${ECHO_T}none needed" >&6 ;;
2504  *)
2505    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507    CC="$CC $ac_cv_prog_cc_stdc" ;;
2508esac
2509
2510# Some people use a C++ compiler to compile C.  Since we use `exit',
2511# in C++ we need to declare it.  In case someone uses the same compiler
2512# for both compiling C and C++ we need to have the C++ compiler decide
2513# the declaration of exit, since it's the most demanding environment.
2514cat >conftest.$ac_ext <<_ACEOF
2515#ifndef __cplusplus
2516  choke me
2517#endif
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528         { ac_try='test -z "$ac_c_werror_flag"
2529                         || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535         { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  for ac_declaration in \
2542   '' \
2543   'extern "C" void std::exit (int) throw (); using std::exit;' \
2544   'extern "C" void std::exit (int); using std::exit;' \
2545   'extern "C" void exit (int) throw ();' \
2546   'extern "C" void exit (int);' \
2547   'void exit (int);'
2548do
2549  cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555$ac_declaration
2556#include <stdlib.h>
2557int
2558main ()
2559{
2560exit (42);
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  :
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592continue
2593fi
2594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595  cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601$ac_declaration
2602int
2603main ()
2604{
2605exit (42);
2606  ;
2607  return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612  (eval $ac_compile) 2>conftest.er1
2613  ac_status=$?
2614  grep -v '^ *+' conftest.er1 >conftest.err
2615  rm -f conftest.er1
2616  cat conftest.err >&5
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619         { ac_try='test -z "$ac_c_werror_flag"
2620                         || test ! -s conftest.err'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626         { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  break
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639done
2640rm -f conftest*
2641if test -n "$ac_declaration"; then
2642  echo '#ifdef __cplusplus' >>confdefs.h
2643  echo $ac_declaration      >>confdefs.h
2644  echo '#endif'             >>confdefs.h
2645fi
2646
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659if test -z "$CC" ; then
2660  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2661echo "$as_me: error: Failed to find a C compiler!" >&2;}
2662   { (exit 1); exit 1; }; }
2663fi
2664# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2665case "$CC" in
[1882]2666  clang* ) ;;
[915]2667  cl* | */cl* | CL* | */CL* )
2668    if test "$ac_cv_prog_cc_g" = yes ; then
2669      ac_cv_prog_cc_g=no
2670      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2671echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2672    fi ;;
2673esac
2674CFLAGS="$save_cflags"
2675
[1752]2676# add automake conditional so we can recognize cl compiler in makefile
2677coin_cc_is_cl=false
2678case "$CC" in
[1882]2679  clang* ) ;;
[1752]2680  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2681    coin_cc_is_cl=true
2682    ;;
2683esac
2684
2685
2686if test $coin_cc_is_cl = true; then
2687  COIN_CC_IS_CL_TRUE=
2688  COIN_CC_IS_CL_FALSE='#'
2689else
2690  COIN_CC_IS_CL_TRUE='#'
2691  COIN_CC_IS_CL_FALSE=
2692fi
2693
2694
[915]2695# Check if a project specific CFLAGS variable has been set
2696if test x$COIN_PRJCT != x; then
2697  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2698  if test x$coin_tmp = xset; then
2699    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2700  fi
2701fi
2702
2703if test x"$CFLAGS" = x; then
2704
2705  coin_add_cflags=
2706  coin_opt_cflags=
2707  coin_dbg_cflags=
2708  coin_warn_cflags=
2709
2710  if test "$GCC" = "yes"; then
2711    case "$CC" in
2712      icc* | */icc*)
2713        ;;
2714      *)
[1572]2715        coin_opt_cflags="-O3"
[915]2716        coin_add_cflags="-pipe"
[1752]2717        coin_dbg_cflags="-g -O0"
[1690]2718        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
[1411]2719        case $build in
2720          *-darwin*)
2721            ;;
2722          *)
2723            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2724            ;;
2725        esac
[915]2726        case $enable_doscompile in
2727          mingw)
2728            CFLAGS="-mno-cygwin"
2729            cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735
2736int
2737main ()
2738{
2739int i=0; i++;
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext conftest$ac_exeext
2745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2746  (eval $ac_link) 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } &&
2753         { ac_try='test -z "$ac_c_werror_flag"
2754                         || test ! -s conftest.err'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; } &&
2760         { ac_try='test -s conftest$ac_exeext'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; }; then
2766  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2767else
2768  echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771fi
2772rm -f conftest.err conftest.$ac_objext \
2773      conftest$ac_exeext conftest.$ac_ext
2774            CFLAGS=
2775          ;;
2776        esac
2777    esac
2778  fi
2779  if test -z "$coin_opt_cflags"; then
2780    case $build in
2781      *-cygwin* | *-mingw*)
2782        case "$CC" in
[1882]2783          clang* ) ;;
[915]2784          cl* | */cl* | CL* | */CL*)
[1960]2785            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2786              coin_opt_cflags='-MD -O2'
2787              coin_dbg_cflags='-MDd'
2788            else
2789              coin_opt_cflags='-MT -O2'
2790              coin_dbg_cflags='-MTd'
2791            fi
[1165]2792            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
[915]2793            ;;
[1165]2794          icl* | */icl* | ICL* | */ICL*)
[1960]2795            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2796              coin_opt_cflags='-MD -Ox'
2797              coin_dbg_cflags='-MDd -debug'
2798            else
2799              coin_opt_cflags='-MT -Ox'
2800              coin_dbg_cflags='-MTd -debug'
2801            fi
[1165]2802            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2803            ;;
[915]2804        esac
2805        ;;
2806      *-linux-*)
2807        case "$CC" in
2808          icc* | */icc*)
[1411]2809            coin_opt_cflags="-O3 -ip -mp1"
[915]2810            coin_add_cflags=""
2811            coin_dbg_cflags="-g"
2812            # Check if -i_dynamic is necessary (for new glibc library)
2813            CFLAGS=
2814            cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820
2821int
2822main ()
2823{
2824int i=0; i++;
2825  ;
2826  return 0;
2827}
2828_ACEOF
2829rm -f conftest.$ac_objext conftest$ac_exeext
2830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2831  (eval $ac_link) 2>conftest.er1
2832  ac_status=$?
2833  grep -v '^ *+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } &&
2838         { ac_try='test -z "$ac_c_werror_flag"
2839                         || test ! -s conftest.err'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; } &&
2845         { ac_try='test -s conftest$ac_exeext'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; }; then
2851  :
2852else
2853  echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856coin_add_cflags="-i_dynamic $coin_add_cflags"
2857fi
2858rm -f conftest.err conftest.$ac_objext \
2859      conftest$ac_exeext conftest.$ac_ext
2860            ;;
2861          pgcc* | */pgcc*)
2862            coin_opt_cflags="-fast"
2863            coin_add_cflags="-Kieee -pc 64"
2864            coin_dbg_cflags="-g"
2865            ;;
2866        esac
2867        ;;
2868      *-ibm-*)
2869        case "$CC" in
2870          xlc* | */xlc* | mpxlc* | */mpxlc*)
[1220]2871            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[1165]2872            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
[915]2873            coin_dbg_cflags="-g"
2874          ;;
2875        esac
2876        ;;
2877      *-hp-*)
2878        coin_opt_cflags="-O"
2879        coin_add_cflags="-Ae"
2880        coin_dbg_cflags="-g"
2881        ;;
[1165]2882      *-*-solaris*)
[915]2883        coin_opt_cflags="-xO4"
2884        coin_dbg_cflags="-g"
2885        ;;
2886      *-sgi-*)
2887        coin_opt_cflags="-O -OPT:Olimit=0"
2888        coin_dbg_cflags="-g"
2889        ;;
2890    esac
2891  fi
2892
2893  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2894    coin_dbg_cflags="-g"
2895  fi
2896
2897  if test -z "$coin_opt_cflags"; then
2898    # Try if -O option works if nothing else is set
2899    CFLAGS="-O"
2900    cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h.  */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h.  */
2906
2907int
2908main ()
2909{
2910int i=0; i++;
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915rm -f conftest.$ac_objext conftest$ac_exeext
2916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917  (eval $ac_link) 2>conftest.er1
2918  ac_status=$?
2919  grep -v '^ *+' conftest.er1 >conftest.err
2920  rm -f conftest.er1
2921  cat conftest.err >&5
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); } &&
2924         { ac_try='test -z "$ac_c_werror_flag"
2925                         || test ! -s conftest.err'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; } &&
2931         { ac_try='test -s conftest$ac_exeext'
2932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933  (eval $ac_try) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }; }; then
2937  coin_opt_cflags="-O"
2938else
2939  echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942fi
2943rm -f conftest.err conftest.$ac_objext \
2944      conftest$ac_exeext conftest.$ac_ext
2945  fi
2946
2947  # if PM doesn't want the warning messages, take them out
2948  if test x"$coin_skip_warn_cflags" = xyes; then
2949    coin_warn_cflags=
2950  fi
2951
2952  if test x${DBG_CFLAGS+set} != xset; then
2953    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2954  fi
2955  if test x${OPT_CFLAGS+set} != xset; then
2956    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2957  fi
2958
2959  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2960  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2961
2962  if test "$coin_debug_compile" = "true"; then
2963    CFLAGS="$DBG_CFLAGS"
2964  else
2965    CFLAGS="$OPT_CFLAGS"
2966  fi
2967else
2968  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2969  if test x${DBG_CFLAGS+set} != xset; then
2970    DBG_CFLAGS="$CFLAGS"
2971  fi
2972  if test x${OPT_CFLAGS+set} != xset; then
2973    OPT_CFLAGS="$CFLAGS"
2974  fi
2975fi
2976
2977# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2978
2979case "$CFLAGS" in
2980  *-mno-cygwin*)
2981    if test x${CPPFLAGS+set} != xset ; then
2982      CPPFLAGS="-mno-cygwin"
2983    else
2984      case "$CPPFLAGS" in
2985        *-mno-cygwin*)
2986          ;;
2987        *)
2988          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2989          ;;
2990      esac
2991    fi ;;
2992esac
2993
[1752]2994# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2995if test x$COIN_PRJCT != x; then
2996  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2997fi
2998
[915]2999# Try if CFLAGS works
3000save_CFLAGS="$CFLAGS"
3001cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h.  */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h.  */
3007
3008int
3009main ()
3010{
3011int i=0; i++;
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext conftest$ac_exeext
3017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3018  (eval $ac_link) 2>conftest.er1
3019  ac_status=$?
3020  grep -v '^ *+' conftest.er1 >conftest.err
3021  rm -f conftest.er1
3022  cat conftest.err >&5
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); } &&
3025         { ac_try='test -z "$ac_c_werror_flag"
3026                         || test ! -s conftest.err'
3027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028  (eval $ac_try) 2>&5
3029  ac_status=$?
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; } &&
3032         { ac_try='test -s conftest$ac_exeext'
3033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; }; then
3038  :
3039else
3040  echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043CFLAGS=
3044fi
3045rm -f conftest.err conftest.$ac_objext \
3046      conftest$ac_exeext conftest.$ac_ext
3047if test -z "$CFLAGS"; then
3048  { 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
3049echo "$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;}
3050  CFLAGS='-O'
3051  cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061int i=0; i++;
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext conftest$ac_exeext
3067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3068  (eval $ac_link) 2>conftest.er1
3069  ac_status=$?
3070  grep -v '^ *+' conftest.er1 >conftest.err
3071  rm -f conftest.er1
3072  cat conftest.err >&5
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); } &&
3075         { ac_try='test -z "$ac_c_werror_flag"
3076                         || test ! -s conftest.err'
3077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078  (eval $ac_try) 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; } &&
3082         { ac_try='test -s conftest$ac_exeext'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; }; then
3088  :
3089else
3090  echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093CFLAGS=
3094fi
3095rm -f conftest.err conftest.$ac_objext \
3096      conftest$ac_exeext conftest.$ac_ext
3097  if test -z "$CFLAGS"; then
3098    { 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
3099echo "$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;}
3100  fi
3101fi
3102
3103{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3104echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3105
3106
3107if test x"$MPICC" = x; then :; else
3108  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3109echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3110  CC="$MPICC"
3111fi
3112
[1658]3113# Correct the LD variable if we are using the MS or Intel-windows compiler
[915]3114case "$CC" in
[1882]3115  clang* ) ;;
[1165]3116  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[915]3117    case $build in
3118  *-mingw*)
3119    if test "${LD+set}" = set; then :; else
3120      LD=link
3121    fi
3122    ;;
3123 esac
3124 case $enable_doscompile in
3125   msvc)
3126     if test "x${LD+set}" = xset; then :; else
3127       LD=link
3128     fi
3129     ;;
3130 esac
3131
3132    ;;
3133esac
3134
3135ac_ext=c
3136ac_cpp='$CPP $CPPFLAGS'
3137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142
3143# Get the name of the C++ compiler and appropriate compiler options
3144
3145 #Let's try if that overcomes configuration problem with VC++ 6.0
3146
3147ac_ext=cc
3148ac_cpp='$CXXCPP $CPPFLAGS'
3149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3152
3153
3154
3155
3156
3157
3158
3159coin_has_cxx=yes
3160
3161save_cxxflags="$CXXFLAGS"
[1165]3162# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
[915]3163case $build in
3164  *-cygwin* | *-mingw*)
3165             if test "$enable_doscompile" = msvc ; then
[1165]3166               comps="icl cl"
[915]3167             else
3168               comps="g++ cl"
3169             fi ;;
[1165]3170  *-*-solaris*)
[1411]3171             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
[915]3172  *-darwin*) comps="g++ c++ CC" ;;
[1658]3173  *-linux-gnu*)
3174             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
[1411]3175          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
[915]3176esac
3177
3178# We delete the cached value, since the test might not have been
3179# performed with our choice of compilers earlier
3180$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3181# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3182ac_ext=cc
3183ac_cpp='$CXXCPP $CPPFLAGS'
3184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3187if test -n "$ac_tool_prefix"; then
3188  for ac_prog in $CCC $comps
3189  do
3190    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192echo "$as_me:$LINENO: checking for $ac_word" >&5
3193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194if test "${ac_cv_prog_CXX+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  if test -n "$CXX"; then
3198  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203  IFS=$as_save_IFS
3204  test -z "$as_dir" && as_dir=.
3205  for ac_exec_ext in '' $ac_executable_extensions; do
3206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209    break 2
3210  fi
3211done
3212done
3213
3214fi
3215fi
3216CXX=$ac_cv_prog_CXX
3217if test -n "$CXX"; then
3218  echo "$as_me:$LINENO: result: $CXX" >&5
3219echo "${ECHO_T}$CXX" >&6
3220else
3221  echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223fi
3224
3225    test -n "$CXX" && break
3226  done
3227fi
3228if test -z "$CXX"; then
3229  ac_ct_CXX=$CXX
3230  for ac_prog in $CCC $comps
3231do
3232  # Extract the first word of "$ac_prog", so it can be a program name with args.
3233set dummy $ac_prog; ac_word=$2
3234echo "$as_me:$LINENO: checking for $ac_word" >&5
3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  if test -n "$ac_ct_CXX"; then
3240  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3241else
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245  IFS=$as_save_IFS
3246  test -z "$as_dir" && as_dir=.
3247  for ac_exec_ext in '' $ac_executable_extensions; do
3248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249    ac_cv_prog_ac_ct_CXX="$ac_prog"
3250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251    break 2
3252  fi
3253done
3254done
3255
3256fi
3257fi
3258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3259if test -n "$ac_ct_CXX"; then
3260  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3261echo "${ECHO_T}$ac_ct_CXX" >&6
3262else
3263  echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265fi
3266
3267  test -n "$ac_ct_CXX" && break
3268done
3269test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3270
3271  CXX=$ac_ct_CXX
3272fi
3273
3274
3275# Provide some information about the compiler.
3276echo "$as_me:$LINENO:" \
3277     "checking for C++ compiler version" >&5
3278ac_compiler=`set X $ac_compile; echo $2`
3279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3280  (eval $ac_compiler --version </dev/null >&5) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }
3284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3285  (eval $ac_compiler -v </dev/null >&5) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }
3289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3290  (eval $ac_compiler -V </dev/null >&5) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }
3294
3295echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3296echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3297if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h.  */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310#ifndef __GNUC__
3311       choke me
3312#endif
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320  (eval $ac_compile) 2>conftest.er1
3321  ac_status=$?
3322  grep -v '^ *+' conftest.er1 >conftest.err
3323  rm -f conftest.er1
3324  cat conftest.err >&5
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); } &&
3327         { ac_try='test -z "$ac_cxx_werror_flag"
3328                         || test ! -s conftest.err'
3329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330  (eval $ac_try) 2>&5
3331  ac_status=$?
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; } &&
3334         { ac_try='test -s conftest.$ac_objext'
3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336  (eval $ac_try) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; }; then
3340  ac_compiler_gnu=yes
3341else
3342  echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345ac_compiler_gnu=no
3346fi
3347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3349
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3353GXX=`test $ac_compiler_gnu = yes && echo yes`
3354ac_test_CXXFLAGS=${CXXFLAGS+set}
3355ac_save_CXXFLAGS=$CXXFLAGS
3356CXXFLAGS="-g"
3357echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3358echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3359if test "${ac_cv_prog_cxx_g+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h.  */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h.  */
3368
3369int
3370main ()
3371{
3372
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379  (eval $ac_compile) 2>conftest.er1
3380  ac_status=$?
3381  grep -v '^ *+' conftest.er1 >conftest.err
3382  rm -f conftest.er1
3383  cat conftest.err >&5
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); } &&
3386         { ac_try='test -z "$ac_cxx_werror_flag"
3387                         || test ! -s conftest.err'
3388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389  (eval $ac_try) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }; } &&
3393         { ac_try='test -s conftest.$ac_objext'
3394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395  (eval $ac_try) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); }; }; then
3399  ac_cv_prog_cxx_g=yes
3400else
3401  echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404ac_cv_prog_cxx_g=no
3405fi
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407fi
3408echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3409echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3410if test "$ac_test_CXXFLAGS" = set; then
3411  CXXFLAGS=$ac_save_CXXFLAGS
3412elif test $ac_cv_prog_cxx_g = yes; then
3413  if test "$GXX" = yes; then
3414    CXXFLAGS="-g -O2"
3415  else
3416    CXXFLAGS="-g"
3417  fi
3418else
3419  if test "$GXX" = yes; then
3420    CXXFLAGS="-O2"
3421  else
3422    CXXFLAGS=
3423  fi
3424fi
3425for ac_declaration in \
3426   '' \
3427   'extern "C" void std::exit (int) throw (); using std::exit;' \
3428   'extern "C" void std::exit (int); using std::exit;' \
3429   'extern "C" void exit (int) throw ();' \
3430   'extern "C" void exit (int);' \
3431   'void exit (int);'
3432do
3433  cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h.  */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h.  */
3439$ac_declaration
3440#include <stdlib.h>
3441int
3442main ()
3443{
3444exit (42);
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451  (eval $ac_compile) 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } &&
3458         { ac_try='test -z "$ac_cxx_werror_flag"
3459                         || test ! -s conftest.err'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; } &&
3465         { ac_try='test -s conftest.$ac_objext'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; }; then
3471  :
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476continue
3477fi
3478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479  cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485$ac_declaration
3486int
3487main ()
3488{
3489exit (42);
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496  (eval $ac_compile) 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } &&
3503         { ac_try='test -z "$ac_cxx_werror_flag"
3504                         || test ! -s conftest.err'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; } &&
3510         { ac_try='test -s conftest.$ac_objext'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; }; then
3516  break
3517else
3518  echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521fi
3522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523done
3524rm -f conftest*
3525if test -n "$ac_declaration"; then
3526  echo '#ifdef __cplusplus' >>confdefs.h
3527  echo $ac_declaration      >>confdefs.h
3528  echo '#endif'             >>confdefs.h
3529fi
3530
3531ac_ext=cc
3532ac_cpp='$CXXCPP $CPPFLAGS'
3533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3536
[1411]3537
3538#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3539#thus, we test here whether $CXX is actually working
3540ac_ext=cc
3541ac_cpp='$CXXCPP $CPPFLAGS'
3542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3545
3546echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3547echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3548cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h.  */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558int i=0;
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563rm -f conftest.$ac_objext
3564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565  (eval $ac_compile) 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } &&
3572         { ac_try='test -z "$ac_cxx_werror_flag"
3573                         || test ! -s conftest.err'
3574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575  (eval $ac_try) 2>&5
3576  ac_status=$?
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); }; } &&
3579         { ac_try='test -s conftest.$ac_objext'
3580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581  (eval $ac_try) 2>&5
3582  ac_status=$?
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); }; }; then
3585  echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
3587else
3588  echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3594echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
[915]3595   { (exit 1); exit 1; }; }
[1411]3596
[915]3597fi
[1411]3598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599ac_ext=cc
3600ac_cpp='$CXXCPP $CPPFLAGS'
3601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
[915]3604
[1411]3605
[1658]3606coin_cxx_is_cl=false
[1165]3607# It seems that we need to cleanup something here for the Windows
3608case "$CXX" in
[1882]3609  clang* ) ;;
[1165]3610  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3611    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3612    mv confdefs.hh confdefs.h
[1658]3613    coin_cxx_is_cl=true
[1165]3614    ;;
3615esac
3616
[1658]3617# add automake conditional so we can recognize cl compiler in makefile
3618
3619
3620if test $coin_cxx_is_cl = true; then
3621  COIN_CXX_IS_CL_TRUE=
3622  COIN_CXX_IS_CL_FALSE='#'
3623else
3624  COIN_CXX_IS_CL_TRUE='#'
3625  COIN_CXX_IS_CL_FALSE=
3626fi
3627
3628
[915]3629# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3630case "$CXX" in
[1882]3631  clang* ) ;;
[915]3632  cl* | */cl* | CL* | */CL* )
3633    if test "$ac_cv_prog_cxx_g" = yes ; then
3634      ac_cv_prog_cxx_g=no
3635      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3636echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3637    fi ;;
3638esac
3639CXXFLAGS="$save_cxxflags"
3640
3641# Check if a project specific CXXFLAGS variable has been set
3642if test x$COIN_PRJCT != x; then
3643  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3644  if test x$coin_tmp = xset; then
3645    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3646  fi
3647fi
3648
3649if test x"$CXXFLAGS" = x; then
3650
3651# ToDo decide whether we want -DNDEBUG for optimization
3652  coin_add_cxxflags=
3653  coin_opt_cxxflags=
3654  coin_dbg_cxxflags=
3655  coin_warn_cxxflags=
3656
3657  if test "$GXX" = "yes"; then
3658    case "$CXX" in
3659      icpc* | */icpc*)
3660        ;;
3661      *)
3662# ToDo decide about unroll-loops
[1572]3663        coin_opt_cxxflags="-O3"
[915]3664        coin_add_cxxflags="-pipe"
[1752]3665        coin_dbg_cxxflags="-g -O0"
3666        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
[1411]3667        case $build in
3668          *-darwin*)
3669            ;;
3670          *)
3671            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3672            ;;
3673        esac
3674
3675        case $enable_doscompile in
3676          mingw)
3677            CXXFLAGS="-mno-cygwin"
3678            cat >conftest.$ac_ext <<_ACEOF
[915]3679/* confdefs.h.  */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688int i=0; i++;
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695  (eval $ac_link) 2>conftest.er1
3696  ac_status=$?
3697  grep -v '^ *+' conftest.er1 >conftest.err
3698  rm -f conftest.er1
3699  cat conftest.err >&5
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); } &&
3702         { ac_try='test -z "$ac_cxx_werror_flag"
3703                         || test ! -s conftest.err'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; } &&
3709         { ac_try='test -s conftest$ac_exeext'
3710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711  (eval $ac_try) 2>&5
3712  ac_status=$?
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); }; }; then
3715  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720fi
3721rm -f conftest.err conftest.$ac_objext \
3722      conftest$ac_exeext conftest.$ac_ext
[1411]3723            CXXFLAGS=
3724          ;;
3725        esac
[915]3726    esac
3727  fi
3728
3729# Note that we do not need to cover GCC in the following tests.
3730
3731  if test -z "$coin_opt_cxxflags"; then
3732    case $build in
3733      *-cygwin* | *-mingw*)
3734        case "$CXX" in
[1882]3735          clang* ) ;;
[915]3736          cl* | */cl* | CL* | */CL*)
[1960]3737            # The MT and MTd options are mutually exclusive
3738            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3739               coin_opt_cxxflags='-MD -O2'
3740               coin_dbg_cxxflags='-MDd'
3741            else
3742               coin_opt_cxxflags='-MT -O2'
3743               coin_dbg_cxxflags='-MTd'
3744            fi
[1165]3745            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
[915]3746            ;;
[1165]3747          icl* | */icl* | ICL* | */ICL*)
[1960]3748          # The MT and MTd options are mutually exclusive
3749            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3750              coin_opt_cxxflags='-MD -Ox'
3751              coin_dbg_cxxflags='-MDd -debug'
3752            else
3753              coin_opt_cxxflags='-MT -Ox'
3754              coin_dbg_cxxflags='-MTd -debug'
3755            fi
[1165]3756            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3757            ;;
[915]3758        esac
3759        ;;
3760      *-linux-*)
3761        case "$CXX" in
3762          icpc* | */icpc*)
[1411]3763            coin_opt_cxxflags="-O3 -ip -mp1"
[915]3764            coin_add_cxxflags=""
3765            coin_dbg_cxxflags="-g"
3766            # Check if -i_dynamic is necessary (for new glibc library)
3767            CXXFLAGS=
3768            cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h.  */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h.  */
3774
3775int
3776main ()
3777{
3778int i=0; i++;
3779  ;
3780  return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext conftest$ac_exeext
3784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3785  (eval $ac_link) 2>conftest.er1
3786  ac_status=$?
3787  grep -v '^ *+' conftest.er1 >conftest.err
3788  rm -f conftest.er1
3789  cat conftest.err >&5
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); } &&
3792         { ac_try='test -z "$ac_cxx_werror_flag"
3793                         || test ! -s conftest.err'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; } &&
3799         { ac_try='test -s conftest$ac_exeext'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; }; then
3805  :
3806else
3807  echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3811fi
3812rm -f conftest.err conftest.$ac_objext \
3813      conftest$ac_exeext conftest.$ac_ext
3814            ;;
3815          pgCC* | */pgCC*)
3816            coin_opt_cxxflags="-fast"
3817            coin_add_cxxflags="-Kieee -pc 64"
3818            coin_dbg_cxxflags="-g"
3819            ;;
3820        esac
3821        ;;
3822      *-ibm-*)
3823        case "$CXX" in
3824          xlC* | */xlC* | mpxlC* | */mpxlC*)
[1220]3825            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[1411]3826            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
[915]3827            coin_dbg_cxxflags="-g"
3828            ;;
3829        esac
3830        ;;
3831      *-hp-*)
3832        case "$CXX" in
3833          aCC* | */aCC* )
3834            coin_opt_cxxflags="-O"
3835            coin_add_cxxflags="-AA"
3836            coin_dbg_cxxflags="-g"
3837            ;;
3838        esac
3839        ;;
[1165]3840      *-*-solaris*)
[915]3841          coin_opt_cxxflags="-O4"
3842          coin_dbg_cxxflags="-g"
3843        ;;
3844    esac
3845  fi
3846
3847# Generic flag settings. If these don't work, add a case above.
3848
3849  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3850    coin_dbg_cxxflags="-g"
3851  fi
3852
3853  if test -z "$coin_opt_cxxflags"; then
3854    # Try if -O option works if nothing else is set
3855    CXXFLAGS=-O
3856    cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h.  */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h.  */
3862
3863int
3864main ()
3865{
3866int i=0; i++;
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871rm -f conftest.$ac_objext conftest$ac_exeext
3872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873  (eval $ac_link) 2>conftest.er1
3874  ac_status=$?
3875  grep -v '^ *+' conftest.er1 >conftest.err
3876  rm -f conftest.er1
3877  cat conftest.err >&5
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); } &&
3880         { ac_try='test -z "$ac_cxx_werror_flag"
3881                         || test ! -s conftest.err'
3882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883  (eval $ac_try) 2>&5
3884  ac_status=$?
3885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886  (exit $ac_status); }; } &&
3887         { ac_try='test -s conftest$ac_exeext'
3888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889  (eval $ac_try) 2>&5
3890  ac_status=$?
3891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892  (exit $ac_status); }; }; then
3893  coin_opt_cxxflags="-O"
3894else
3895  echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898fi
3899rm -f conftest.err conftest.$ac_objext \
3900      conftest$ac_exeext conftest.$ac_ext
3901  fi
3902
3903  # if PM doesn't want the warning messages, take them out
3904  if test x"$coin_skip_warn_cxxflags" = xyes; then
3905    coin_warn_cxxflags=
3906  fi
3907
3908# Do final setup of flags based on values determined above.
3909
3910  if test x${DBG_CXXFLAGS+set} != xset; then
3911    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3912  fi
3913  if test x${OPT_CXXFLAGS+set} != xset; then
3914    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3915  fi
3916
3917  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3918  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3919
3920  if test "$coin_debug_compile" = "true"; then
3921    CXXFLAGS="$DBG_CXXFLAGS"
3922  else
3923    CXXFLAGS="$OPT_CXXFLAGS"
3924  fi
3925
3926# Handle the case where CXXFLAGS was set externally.
3927else
3928  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3929  if test x${DBG_CXXFLAGS+set} != xset; then
3930    DBG_CXXFLAGS="$CXXFLAGS"
3931  fi
3932  if test x${OPT_CXXFLAGS+set} != xset; then
3933    OPT_CXXFLAGS="$CXXFLAGS"
3934  fi
3935fi
3936
3937# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3938
3939case "$CXXFLAGS" in
3940  *-mno-cygwin*)
3941    if test x${CPPFLAGS+set} != xset ; then
3942      CPPFLAGS="-mno-cygwin"
3943    else
3944      case "$CPPFLAGS" in
3945        *-mno-cygwin*)
3946          ;;
3947        *)
3948          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3949          ;;
3950      esac
3951    fi ;;
3952esac
3953
[1752]3954# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3955if test x$COIN_PRJCT != x; then
3956  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3957fi
3958
[915]3959# Try if CXXFLAGS works
3960save_CXXFLAGS="$CXXFLAGS"
3961cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967
3968int
3969main ()
3970{
3971int i=0; i++;
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext conftest$ac_exeext
3977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3978  (eval $ac_link) 2>conftest.er1
3979  ac_status=$?
3980  grep -v '^ *+' conftest.er1 >conftest.err
3981  rm -f conftest.er1
3982  cat conftest.err >&5
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); } &&
3985         { ac_try='test -z "$ac_cxx_werror_flag"
3986                         || test ! -s conftest.err'
3987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988  (eval $ac_try) 2>&5
3989  ac_status=$?
3990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); }; } &&
3992         { ac_try='test -s conftest$ac_exeext'
3993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994  (eval $ac_try) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); }; }; then
3998  :
3999else
4000  echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003CXXFLAGS=
4004fi
4005rm -f conftest.err conftest.$ac_objext \
4006      conftest$ac_exeext conftest.$ac_ext
4007if test -z "$CXXFLAGS"; then
4008  { 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
4009echo "$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;}
4010  CXXFLAGS='-O'
4011  cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017
4018int
4019main ()
4020{
4021int i=0; i++;
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028  (eval $ac_link) 2>conftest.er1
4029  ac_status=$?
4030  grep -v '^ *+' conftest.er1 >conftest.err
4031  rm -f conftest.er1
4032  cat conftest.err >&5
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); } &&
4035         { ac_try='test -z "$ac_cxx_werror_flag"
4036                         || test ! -s conftest.err'
4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038  (eval $ac_try) 2>&5
4039  ac_status=$?
4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041  (exit $ac_status); }; } &&
4042         { ac_try='test -s conftest$ac_exeext'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; }; then
4048  :
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053CXXFLAGS=
4054fi
4055rm -f conftest.err conftest.$ac_objext \
4056      conftest$ac_exeext conftest.$ac_ext
4057  if test -z "$CXXFLAGS"; then
4058    { 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
4059echo "$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;}
4060  fi
4061fi
4062
4063{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4064echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4065
4066
4067if test x"$MPICXX" = x; then :; else
4068  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4069echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4070  CXX="$MPICXX"
4071fi
4072
[1658]4073# correct the LD variable in a mingw build with MS or intel compiler
[915]4074case "$CXX" in
[1882]4075  clang* ) ;;
[1658]4076  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[915]4077    case $build in
4078  *-mingw*)
4079    if test "${LD+set}" = set; then :; else
4080      LD=link
4081    fi
4082    ;;
4083 esac
4084 case $enable_doscompile in
4085   msvc)
4086     if test "x${LD+set}" = xset; then :; else
4087       LD=link
4088     fi
4089     ;;
4090 esac
4091
4092    ;;
4093esac
4094
4095ac_ext=c
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101
4102
4103# Get the name of the Fortran compiler and appropriate compiler options
4104case $build in
4105  *-cygwin* | *-mingw*)
4106     if test "$enable_doscompile" = msvc ; then
[1019]4107       coin_f77_comps="ifort fl32 compile_f2c"
[915]4108     else
[1687]4109       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
[915]4110     fi ;;
[1165]4111  *-*-solaris*)
[1687]4112     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
[1658]4113  *-linux-gnu*)
[1687]4114     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4115  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
[915]4116 esac
4117
4118
4119
4120
4121
4122
4123ac_ext=f
4124ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4125ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4127
4128
4129
4130
4131
4132
4133coin_has_f77=yes
4134
4135save_fflags="$FFLAGS"
4136
4137# We delete the cached value, since the test might not have been
4138# performed with our choice of compilers earlier
4139$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4140
4141# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4142# coin_f77_comps to see if there's a program that matches one of the names.
4143# If there's no such program, F77 = unavailable. If we match the name,
4144# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4145# compiler.
4146# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4147
4148
4149{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4150echo "$as_me: Trying to determine Fortran compiler name" >&6;}
[1752]4151if test -n "$ac_tool_prefix"; then
4152  for ac_prog in $coin_f77_comps
4153  do
4154    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
[915]4156echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158if test "${ac_cv_prog_F77+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  if test -n "$F77"; then
4162  ac_cv_prog_F77="$F77" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169  for ac_exec_ext in '' $ac_executable_extensions; do
4170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[1752]4171    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
[915]4172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173    break 2
4174  fi
4175done
4176done
4177
4178fi
4179fi
4180F77=$ac_cv_prog_F77
4181if test -n "$F77"; then
4182  echo "$as_me:$LINENO: result: $F77" >&5
4183echo "${ECHO_T}$F77" >&6
4184else
4185  echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187fi
4188
[1752]4189    test -n "$F77" && break
4190  done
4191fi
4192if test -z "$F77"; then
4193  ac_ct_F77=$F77
4194  for ac_prog in $coin_f77_comps
4195do
4196  # Extract the first word of "$ac_prog", so it can be a program name with args.
4197set dummy $ac_prog; ac_word=$2
4198echo "$as_me:$LINENO: checking for $ac_word" >&5
4199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  if test -n "$ac_ct_F77"; then
4204  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211  for ac_exec_ext in '' $ac_executable_extensions; do
4212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_ac_ct_F77="$ac_prog"
4214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
[915]4217done
[1752]4218done
[915]4219
[1752]4220fi
4221fi
4222ac_ct_F77=$ac_cv_prog_ac_ct_F77
4223if test -n "$ac_ct_F77"; then
4224  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4225echo "${ECHO_T}$ac_ct_F77" >&6
4226else
4227  echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229fi
[915]4230
[1752]4231  test -n "$ac_ct_F77" && break
4232done
4233test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4234
4235  F77=$ac_ct_F77
4236fi
4237
4238
[915]4239if test "$F77" != "unavailable" ; then
4240  ac_ext=f
4241ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4242ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4244if test -n "$ac_tool_prefix"; then
4245  for ac_prog in $coin_f77_comps
4246  do
4247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4249echo "$as_me:$LINENO: checking for $ac_word" >&5
4250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251if test "${ac_cv_prog_F77+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  if test -n "$F77"; then
4255  ac_cv_prog_F77="$F77" # Let the user override the test.
4256else
4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262  for ac_exec_ext in '' $ac_executable_extensions; do
4263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268done
4269done
4270
4271fi
4272fi
4273F77=$ac_cv_prog_F77
4274if test -n "$F77"; then
4275  echo "$as_me:$LINENO: result: $F77" >&5
4276echo "${ECHO_T}$F77" >&6
4277else
4278  echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280fi
4281
4282    test -n "$F77" && break
4283  done
4284fi
4285if test -z "$F77"; then
4286  ac_ct_F77=$F77
4287  for ac_prog in $coin_f77_comps
4288do
4289  # Extract the first word of "$ac_prog", so it can be a program name with args.
4290set dummy $ac_prog; ac_word=$2
4291echo "$as_me:$LINENO: checking for $ac_word" >&5
4292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4293if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4294  echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296  if test -n "$ac_ct_F77"; then
4297  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304  for ac_exec_ext in '' $ac_executable_extensions; do
4305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306    ac_cv_prog_ac_ct_F77="$ac_prog"
4307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308    break 2
4309  fi
4310done
4311done
4312
4313fi
4314fi
4315ac_ct_F77=$ac_cv_prog_ac_ct_F77
4316if test -n "$ac_ct_F77"; then
4317  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4318echo "${ECHO_T}$ac_ct_F77" >&6
4319else
4320  echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322fi
4323
4324  test -n "$ac_ct_F77" && break
4325done
4326
4327  F77=$ac_ct_F77
4328fi
4329
4330
4331# Provide some information about the compiler.
[1960]4332echo "$as_me:4332:" \
[915]4333     "checking for Fortran 77 compiler version" >&5
4334ac_compiler=`set X $ac_compile; echo $2`
4335{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4336  (eval $ac_compiler --version </dev/null >&5) 2>&5
4337  ac_status=$?
4338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); }
4340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4341  (eval $ac_compiler -v </dev/null >&5) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }
4345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4346  (eval $ac_compiler -V </dev/null >&5) 2>&5
4347  ac_status=$?
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); }
4350rm -f a.out
4351
4352# If we don't use `.F' as extension, the preprocessor is not run on the
4353# input file.  (Note that this only needs to work for GNU compilers.)
4354ac_save_ext=$ac_ext
4355ac_ext=F
4356echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4357echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4358if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  cat >conftest.$ac_ext <<_ACEOF
4362      program main
4363#ifndef __GNUC__
4364       choke me
4365#endif
4366
4367      end
4368_ACEOF
4369rm -f conftest.$ac_objext
4370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371  (eval $ac_compile) 2>conftest.er1
4372  ac_status=$?
4373  grep -v '^ *+' conftest.er1 >conftest.err
4374  rm -f conftest.er1
4375  cat conftest.err >&5
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); } &&
4378         { ac_try='test -z "$ac_f77_werror_flag"
4379                         || test ! -s conftest.err'
4380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381  (eval $ac_try) 2>&5
4382  ac_status=$?
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); }; } &&
4385         { ac_try='test -s conftest.$ac_objext'
4386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387  (eval $ac_try) 2>&5
4388  ac_status=$?
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); }; }; then
4391  ac_compiler_gnu=yes
4392else
4393  echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396ac_compiler_gnu=no
4397fi
4398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4399ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4400
4401fi
4402echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4403echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4404ac_ext=$ac_save_ext
4405ac_test_FFLAGS=${FFLAGS+set}
4406ac_save_FFLAGS=$FFLAGS
4407FFLAGS=
4408echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4409echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4410if test "${ac_cv_prog_f77_g+set}" = set; then
4411  echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413  FFLAGS=-g
4414cat >conftest.$ac_ext <<_ACEOF
4415      program main
4416
4417      end
4418_ACEOF
4419rm -f conftest.$ac_objext
4420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421  (eval $ac_compile) 2>conftest.er1
4422  ac_status=$?
4423  grep -v '^ *+' conftest.er1 >conftest.err
4424  rm -f conftest.er1
4425  cat conftest.err >&5
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); } &&
4428         { ac_try='test -z "$ac_f77_werror_flag"
4429                         || test ! -s conftest.err'
4430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431  (eval $ac_try) 2>&5
4432  ac_status=$?
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); }; } &&
4435         { ac_try='test -s conftest.$ac_objext'
4436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437  (eval $ac_try) 2>&5
4438  ac_status=$?
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); }; }; then
4441  ac_cv_prog_f77_g=yes
4442else
4443  echo "$as_me: failed program was:" >&5
4444sed 's/^/| /' conftest.$ac_ext >&5
4445
4446ac_cv_prog_f77_g=no
4447fi
4448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4452echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4453if test "$ac_test_FFLAGS" = set; then
4454  FFLAGS=$ac_save_FFLAGS
4455elif test $ac_cv_prog_f77_g = yes; then
4456  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4457    FFLAGS="-g -O2"
4458  else
4459    FFLAGS="-g"
4460  fi
4461else
4462  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4463    FFLAGS="-O2"
4464  else
4465    FFLAGS=
4466  fi
4467fi
4468
4469G77=`test $ac_compiler_gnu = yes && echo yes`
4470ac_ext=f
4471ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4472ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4474
4475else
4476  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4477echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4478fi
4479
4480FFLAGS="$save_fflags"
4481
4482# Check if a project specific FFLAGS variable has been set
4483if test x$COIN_PRJCT != x; then
4484  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4485  if test x$coin_tmp = xset; then
4486    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4487  fi
4488fi
4489
4490if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4491
4492  coin_add_fflags=
4493  coin_opt_fflags=
4494  coin_dbg_fflags=
4495  coin_warn_fflags=
4496
4497  if test "$G77" = "yes"; then
[1572]4498    coin_opt_fflags="-O3"
[915]4499    coin_add_fflags="-pipe"
[1752]4500    coin_dbg_fflags="-g -O0"
[915]4501    case $enable_doscompile in
4502      mingw)
4503        FFLAGS="-mno-cygwin"
4504        cat >conftest.$ac_ext <<_ACEOF
4505      program main
4506      write(*,*) 'Hello world'
4507      end
4508_ACEOF
4509rm -f conftest.$ac_objext conftest$ac_exeext
4510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511  (eval $ac_link) 2>conftest.er1
4512  ac_status=$?
4513  grep -v '^ *+' conftest.er1 >conftest.err
4514  rm -f conftest.er1
4515  cat conftest.err >&5
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); } &&
4518         { ac_try='test -z "$ac_f77_werror_flag"
4519                         || test ! -s conftest.err'
4520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521  (eval $ac_try) 2>&5
4522  ac_status=$?
4523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524  (exit $ac_status); }; } &&
4525         { ac_try='test -s conftest$ac_exeext'
4526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527  (eval $ac_try) 2>&5
4528  ac_status=$?
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); }; }; then
4531  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4532else
4533  echo "$as_me: failed program was:" >&5
4534sed 's/^/| /' conftest.$ac_ext >&5
4535
4536fi
4537rm -f conftest.err conftest.$ac_objext \
4538      conftest$ac_exeext conftest.$ac_ext
4539        FFLAGS=
4540      ;;
4541    esac
4542  else
4543    case $build in
4544      *-cygwin* | *-mingw*)
4545        case $F77 in
4546          ifort* | */ifort* | IFORT* | */IFORT* )
[1960]4547            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4548              coin_opt_fflags='-MD -O3'
4549              coin_dbg_fflags='-MDd -debug'
4550            else
4551              coin_opt_fflags='-MT -O3'
4552              coin_dbg_fflags='-MTd -debug'
4553            fi
[1411]4554            coin_add_fflags='-fpp -nologo'
[915]4555          ;;
[1019]4556          compile_f2c*)
[1960]4557            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4558              coin_opt_fflags='-MD -O2'
4559              coin_dbg_fflags='-MDd'
4560            else
4561              coin_opt_fflags='-MT -O2'
4562              coin_dbg_fflags='-MTd'
4563            fi
[1019]4564            coin_add_fflags='-nologo -wd4996'
4565          ;;
[915]4566        esac
4567        ;;
4568      *-linux-*)
4569        case $F77 in
4570          ifc* | */ifc* | ifort* | */ifort*)
4571            coin_opt_fflags="-O3 -ip"
4572            coin_add_fflags="-cm -w90 -w95"
4573            coin_dbg_fflags="-g -CA -CB -CS"
4574            # Check if -i_dynamic is necessary (for new glibc library)
4575            FFLAGS=
4576            cat >conftest.$ac_ext <<_ACEOF
4577      program main
4578      write(*,*) 'Hello world'
4579      end
4580_ACEOF
4581rm -f conftest.$ac_objext conftest$ac_exeext
4582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583  (eval $ac_link) 2>conftest.er1
4584  ac_status=$?
4585  grep -v '^ *+' conftest.er1 >conftest.err
4586  rm -f conftest.er1
4587  cat conftest.err >&5
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } &&
4590         { ac_try='test -z "$ac_f77_werror_flag"
4591                         || test ! -s conftest.err'
4592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593  (eval $ac_try) 2>&5
4594  ac_status=$?
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); }; } &&
4597         { ac_try='test -s conftest$ac_exeext'
4598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599  (eval $ac_try) 2>&5
4600  ac_status=$?
4601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602  (exit $ac_status); }; }; then
4603  :
4604else
4605  echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608coin_add_fflags="-i_dynamic $coin_add_fflags"
4609fi
4610rm -f conftest.err conftest.$ac_objext \
4611      conftest$ac_exeext conftest.$ac_ext
4612            ;;
4613          pgf77* | */pgf77* | pgf90* | */pgf90*)
4614            coin_opt_fflags="-fast"
4615            coin_add_fflags="-Kieee -pc 64"
4616            coin_dbg_fflags="-g"
4617          ;;
4618        esac
4619        ;;
4620      *-ibm-*)
4621        case "$F77" in
4622          xlf* | */xlf* | mpxlf* | */mpxlf* )
[1220]4623            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[1165]4624            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
[915]4625            coin_dbg_fflags="-g -C"
4626            ;;
4627        esac
4628        ;;
4629      *-hp-*)
4630        coin_opt_fflags="+O3"
4631        coin_add_fflags="+U77"
4632        coin_dbg_fflags="-C -g"
4633        ;;
[1165]4634      *-*-solaris*)
[915]4635        coin_opt_fflags="-O4"
4636        coin_dbg_fflags="-g"
4637        ;;
4638      *-sgi-*)
4639        coin_opt_fflags="-O5 -OPT:Olimit=0"
4640        coin_dbg_fflags="-g"
4641        ;;
4642    esac
4643  fi
4644
4645  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4646    coin_dbg_fflags="-g"
4647  fi
4648
4649  if test -z "$coin_opt_fflags"; then
4650    # Try if -O option works if nothing else is set
4651    FFLAGS=-O
4652    cat >conftest.$ac_ext <<_ACEOF
4653      program main
4654      integer i
4655      end
4656_ACEOF
4657rm -f conftest.$ac_objext conftest$ac_exeext
4658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659  (eval $ac_link) 2>conftest.er1
4660  ac_status=$?
4661  grep -v '^ *+' conftest.er1 >conftest.err
4662  rm -f conftest.er1
4663  cat conftest.err >&5
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); } &&
4666         { ac_try='test -z "$ac_f77_werror_flag"
4667                         || test ! -s conftest.err'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; } &&
4673         { ac_try='test -s conftest$ac_exeext'
4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675  (eval $ac_try) 2>&5
4676  ac_status=$?
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); }; }; then
4679  coin_opt_fflags="-O"
4680else
4681  echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684fi
4685rm -f conftest.err conftest.$ac_objext \
4686      conftest$ac_exeext conftest.$ac_ext
4687  fi
4688
4689  # if PM doesn't want the warning messages, take them out
4690  if test x"$coin_skip_warn_fflags" = xyes; then
4691    coin_warn_fflags=
4692  fi
4693
4694  if test x${DBG_FFLAGS+set} != xset; then
4695    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4696  fi
4697  if test x${OPT_FFLAGS+set} != xset; then
4698    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4699  fi
4700
4701  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4702  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4703
4704  if test "$coin_debug_compile" = "true"; then
4705    FFLAGS="$DBG_FFLAGS"
4706  else
4707    FFLAGS="$OPT_FFLAGS"
4708  fi
4709else
4710  FFLAGS="$FFLAGS $ADD_FFLAGS"
4711  if test x${DBG_FFLAGS+set} != xset; then
4712    DBG_FFLAGS="$FFLAGS"
4713  fi
4714  if test x${OPT_FFLAGS+set} != xset; then
4715    OPT_FFLAGS="$FFLAGS"
4716  fi
4717fi
4718
4719# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4720case "$FFLAGS" in
4721  *-mno-cygwin*)
4722    if test x${CPPFLAGS+set} != xset ; then
4723      CPPFLAGS="-mno-cygwin"
4724    else
4725      case "$CPPFLAGS" in
4726        *-mno-cygwin*)
4727          ;;
4728        *)
4729          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4730          ;;
4731      esac
4732    fi ;;
4733esac
4734
4735# Try if FFLAGS works
4736if test "$F77" != "unavailable" ; then
4737  cat >conftest.$ac_ext <<_ACEOF
4738      program main
4739      integer i
4740      end
4741_ACEOF
4742rm -f conftest.$ac_objext conftest$ac_exeext
4743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744  (eval $ac_link) 2>conftest.er1
4745  ac_status=$?
4746  grep -v '^ *+' conftest.er1 >conftest.err
4747  rm -f conftest.er1
4748  cat conftest.err >&5
4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); } &&
4751         { ac_try='test -z "$ac_f77_werror_flag"
4752                         || test ! -s conftest.err'
4753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754  (eval $ac_try) 2>&5
4755  ac_status=$?
4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); }; } &&
4758         { ac_try='test -s conftest$ac_exeext'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; }; then
4764  :
4765else
4766  echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769FFLAGS=
4770fi
4771rm -f conftest.err conftest.$ac_objext \
4772      conftest$ac_exeext conftest.$ac_ext
4773  if test -z "$FFLAGS"; then
4774    { 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
4775echo "$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;}
4776    FFLAGS='-O'
4777    cat >conftest.$ac_ext <<_ACEOF
4778      program main
4779      integer i
4780      end
4781_ACEOF
4782rm -f conftest.$ac_objext conftest$ac_exeext
4783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784  (eval $ac_link) 2>conftest.er1
4785  ac_status=$?
4786  grep -v '^ *+' conftest.er1 >conftest.err
4787  rm -f conftest.er1
4788  cat conftest.err >&5
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); } &&
4791         { ac_try='test -z "$ac_f77_werror_flag"
4792                         || test ! -s conftest.err'
4793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794  (eval $ac_try) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; } &&
4798         { ac_try='test -s conftest$ac_exeext'
4799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800  (eval $ac_try) 2>&5
4801  ac_status=$?
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; }; then
4804  :
4805else
4806  echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809FFLAGS=
4810fi
4811rm -f conftest.err conftest.$ac_objext \
4812      conftest$ac_exeext conftest.$ac_ext
4813    if test -z "$FFLAGS"; then
4814      { 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
4815echo "$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;}
4816    fi
4817  fi
4818fi
4819
4820{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4821echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4822
4823
4824if test x"$MPIF77" = x; then :; else
4825  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4826echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4827  F77="$MPIF77"
4828fi
4829
[1658]4830# correct the LD variable if we use the intel fortran compiler in windows
[915]4831case "$F77" in
4832  ifort* | */ifort* | IFORT* | */IFORT*)
4833    case $build in
4834  *-mingw*)
4835    if test "${LD+set}" = set; then :; else
4836      LD=link
4837    fi
4838    ;;
4839 esac
4840 case $enable_doscompile in
4841   msvc)
4842     if test "x${LD+set}" = xset; then :; else
4843       LD=link
4844     fi
4845     ;;
4846 esac
4847
4848    ;;
4849esac
4850
4851ac_ext=c
4852ac_cpp='$CPP $CPPFLAGS'
4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857
4858
4859# Initialize automake and libtool
4860# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4861{
4862
4863
4864
4865# START
4866
[1960]4867coin_disable_shared=no
[1220]4868# Test if force_shared has been set
4869if test "x" = xforce_shared; then
4870  if test x$enable_shared = xno; then
4871    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4872echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4873   { (exit 1); exit 1; }; }
4874  fi
4875  enable_shared=yes;
4876else
4877  # On Cygwin and AIX, building DLLs doesn't work
4878  case $build in
4879    *-cygwin*)
4880      coin_disable_shared=yes
4881      platform=Cygwin
4882    ;;
4883    *-aix*)
4884      coin_disable_shared=yes
4885      platform=AIX
4886    ;;
4887    *-mingw*)
4888      coin_disable_shared=yes
4889      platform="Msys"
4890#      case "$CXX" in
4891#        cl*)
4892#          coin_disable_shared=yes
4893#          platform="Msys with cl"
4894#      ;;
4895#      esac
4896    ;;
4897  esac
4898fi
[915]4899if test x"$coin_disable_shared" = xyes; then
4900  if test x"$enable_shared" = xyes; then
4901    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4902echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
[1960]4903  else
4904    # we don't disable shared, because it was not selected anyway
4905    coin_disable_shared=no
[915]4906  fi
4907  enable_shared=no
4908fi
4909# By default, we only want the shared objects to be compiled
4910# Check whether --enable-static or --disable-static was given.
4911if test "${enable_static+set}" = set; then
4912  enableval="$enable_static"
4913  p=${PACKAGE-default}
4914    case $enableval in
4915    yes) enable_static=yes ;;
4916    no) enable_static=no ;;
4917    *)
4918     enable_static=no
4919      # Look at the argument we got.  We use all the common list separators.
4920      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4921      for pkg in $enableval; do
4922        IFS="$lt_save_ifs"
4923        if test "X$pkg" = "X$p"; then
4924          enable_static=yes
4925        fi
4926      done
4927      IFS="$lt_save_ifs"
4928      ;;
4929    esac
4930else
4931  enable_static=no
4932fi;
4933
4934
4935
4936
4937# Initialize automake
4938echo "$as_me:$LINENO: checking for egrep" >&5
4939echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4940if test "${ac_cv_prog_egrep+set}" = set; then
4941  echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4944    then ac_cv_prog_egrep='grep -E'
4945    else ac_cv_prog_egrep='egrep'
4946    fi
4947fi
4948echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4949echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4950 EGREP=$ac_cv_prog_egrep
4951
4952
[1687]4953echo "$as_me:$LINENO: checking whether ln -s works" >&5
4954echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4955LN_S=$as_ln_s
4956if test "$LN_S" = "ln -s"; then
4957  echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
4959else
4960  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4961echo "${ECHO_T}no, using $LN_S" >&6
4962fi
4963
[915]4964am__api_version="1.9"
[754]4965# Find a good install program.  We prefer a C program (faster),
4966# so one script is as good as another.  But avoid the broken or
4967# incompatible versions:
4968# SysV /etc/install, /usr/sbin/install
4969# SunOS /usr/etc/install
4970# IRIX /sbin/install
4971# AIX /bin/install
4972# AmigaOS /C/install, which installs bootblocks on floppy discs
4973# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4974# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4975# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4976# OS/2's system install, which has a completely different semantic
4977# ./install, which can be erroneously created by make from ./install.sh.
4978echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4979echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4980if test -z "$INSTALL"; then
4981if test "${ac_cv_path_install+set}" = set; then
4982  echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987  IFS=$as_save_IFS
4988  test -z "$as_dir" && as_dir=.
4989  # Account for people who put trailing slashes in PATH elements.
4990case $as_dir/ in
4991  ./ | .// | /cC/* | \
4992  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4993  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4994  /usr/ucb/* ) ;;
4995  *)
4996    # OSF1 and SCO ODT 3.0 have their own names for install.
4997    # Don't use installbsd from OSF since it installs stuff as root
4998    # by default.
4999    for ac_prog in ginstall scoinst install; do
5000      for ac_exec_ext in '' $ac_executable_extensions; do
5001        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5002          if test $ac_prog = install &&
5003            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5004            # AIX install.  It has an incompatible calling convention.
5005            :
5006          elif test $ac_prog = install &&
5007            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5008            # program-specific install script used by HP pwplus--don't use.
5009            :
5010          else
5011            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5012            break 3
5013          fi
5014        fi
5015      done
5016    done
5017    ;;
5018esac
5019done
5020
5021
5022fi
5023  if test "${ac_cv_path_install+set}" = set; then
5024    INSTALL=$ac_cv_path_install
5025  else
5026    # As a last resort, use the slow shell script.  We don't cache a
5027    # path for INSTALL within a source directory, because that will
5028    # break other packages using the cache if that directory is
5029    # removed, or if the path is relative.
5030    INSTALL=$ac_install_sh
5031  fi
5032fi
5033echo "$as_me:$LINENO: result: $INSTALL" >&5
5034echo "${ECHO_T}$INSTALL" >&6
5035
5036# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5037# It thinks the first close brace ends the variable substitution.
5038test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5039
5040test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5041
5042test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5043
5044echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5045echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5046# Just in case
5047sleep 1
5048echo timestamp > conftest.file
5049# Do `set' in a subshell so we don't clobber the current shell's
5050# arguments.  Must try -L first in case configure is actually a
5051# symlink; some systems play weird games with the mod time of symlinks
5052# (eg FreeBSD returns the mod time of the symlink's containing
5053# directory).
5054if (
5055   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5056   if test "$*" = "X"; then
5057      # -L didn't work.
5058      set X `ls -t $srcdir/configure conftest.file`
5059   fi
5060   rm -f conftest.file
5061   if test "$*" != "X $srcdir/configure conftest.file" \
5062      && test "$*" != "X conftest.file $srcdir/configure"; then
5063
5064      # If neither matched, then we have a broken ls.  This can happen
5065      # if, for instance, CONFIG_SHELL is bash and it inherits a
5066      # broken ls alias from the environment.  This has actually
5067      # happened.  Such a system could not be considered "sane".
5068      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5069alias in your environment" >&5
5070echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5071alias in your environment" >&2;}
5072   { (exit 1); exit 1; }; }
5073   fi
5074
5075   test "$2" = conftest.file
5076   )
5077then
5078   # Ok.
5079   :
5080else
5081   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5082Check your system clock" >&5
5083echo "$as_me: error: newly created file is older than distributed files!
5084Check your system clock" >&2;}
5085   { (exit 1); exit 1; }; }
5086fi
5087echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
5089test "$program_prefix" != NONE &&
5090  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5091# Use a double $ so make ignores it.
5092test "$program_suffix" != NONE &&
5093  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5094# Double any \ or $.  echo might interpret backslashes.
5095# By default was `s,x,x', remove it if useless.
5096cat <<\_ACEOF >conftest.sed
5097s/[\\$]/&&/g;s/;s,x,x,$//
5098_ACEOF
5099program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5100rm conftest.sed
5101
5102# expand $ac_aux_dir to an absolute path
5103am_aux_dir=`cd $ac_aux_dir && pwd`
5104
5105test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5106# Use eval to expand $SHELL
5107if eval "$MISSING --run true"; then
5108  am_missing_run="$MISSING --run "
5109else
5110  am_missing_run=
5111  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5112echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5113fi
5114
5115if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5116  # We used to keeping the `.' as first argument, in order to
5117  # allow $(mkdir_p) to be used without argument.  As in
5118  #   $(mkdir_p) $(somedir)
5119  # where $(somedir) is conditionally defined.  However this is wrong
5120  # for two reasons:
5121  #  1. if the package is installed by a user who cannot write `.'
5122  #     make install will fail,
5123  #  2. the above comment should most certainly read
5124  #     $(mkdir_p) $(DESTDIR)$(somedir)
5125  #     so it does not work when $(somedir) is undefined and
5126  #     $(DESTDIR) is not.
5127  #  To support the latter case, we have to write
5128  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5129  #  so the `.' trick is pointless.
5130  mkdir_p='mkdir -p --'
5131else
5132  # On NextStep and OpenStep, the `mkdir' command does not
5133  # recognize any option.  It will interpret all options as
5134  # directories to create, and then abort because `.' already
5135  # exists.
5136  for d in ./-p ./--version;
5137  do
5138    test -d $d && rmdir $d
5139  done
5140  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5141  if test -f "$ac_aux_dir/mkinstalldirs"; then
5142    mkdir_p='$(mkinstalldirs)'
5143  else
5144    mkdir_p='$(install_sh) -d'
5145  fi
5146fi
5147
5148for ac_prog in gawk mawk nawk awk
5149do
5150  # Extract the first word of "$ac_prog", so it can be a program name with args.
5151set dummy $ac_prog; ac_word=$2
5152echo "$as_me:$LINENO: checking for $ac_word" >&5
5153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154if test "${ac_cv_prog_AWK+set}" = set; then
5155  echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157  if test -n "$AWK"; then
5158  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163  IFS=$as_save_IFS
5164  test -z "$as_dir" && as_dir=.
5165  for ac_exec_ext in '' $ac_executable_extensions; do
5166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167    ac_cv_prog_AWK="$ac_prog"
5168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169    break 2
5170  fi
5171done
5172done
5173
5174fi
5175fi
5176AWK=$ac_cv_prog_AWK
5177if test -n "$AWK"; then
5178  echo "$as_me:$LINENO: result: $AWK" >&5
5179echo "${ECHO_T}$AWK" >&6
5180else
5181  echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183fi
5184
5185  test -n "$AWK" && break
5186done
5187
5188echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5189echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5190set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5191if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  cat >conftest.make <<\_ACEOF
5195all:
5196        @echo 'ac_maketemp="$(MAKE)"'
5197_ACEOF
5198# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5199eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5200if test -n "$ac_maketemp"; then
5201  eval ac_cv_prog_make_${ac_make}_set=yes
5202else
5203  eval ac_cv_prog_make_${ac_make}_set=no
5204fi
5205rm -f conftest.make
5206fi
5207if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5208  echo "$as_me:$LINENO: result: yes" >&5
5209echo "${ECHO_T}yes" >&6
5210  SET_MAKE=
5211else
5212  echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214  SET_MAKE="MAKE=${MAKE-make}"
5215fi
5216
5217rm -rf .tst 2>/dev/null
5218mkdir .tst 2>/dev/null
5219if test -d .tst; then
5220  am__leading_dot=.
5221else
5222  am__leading_dot=_
5223fi
5224rmdir .tst 2>/dev/null
5225
[915]5226DEPDIR="${am__leading_dot}deps"
[754]5227
[915]5228          ac_config_commands="$ac_config_commands depfiles"
5229
5230
5231am_make=${MAKE-make}
5232cat > confinc << 'END'
5233am__doit:
5234        @echo done
5235.PHONY: am__doit
5236END
5237# If we don't find an include directive, just comment out the code.
5238echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5239echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5240am__include="#"
5241am__quote=
5242_am_result=none
5243# First try GNU make style include.
5244echo "include confinc" > confmf
5245# We grep out `Entering directory' and `Leaving directory'
5246# messages which can occur if `w' ends up in MAKEFLAGS.
5247# In particular we don't look at `^make:' because GNU make might
5248# be invoked under some other name (usually "gmake"), in which
5249# case it prints its new name instead of `make'.
5250if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5251   am__include=include
5252   am__quote=
5253   _am_result=GNU
5254fi
5255# Now try BSD make style include.
5256if test "$am__include" = "#"; then
5257   echo '.include "confinc"' > confmf
5258   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5259      am__include=.include
5260      am__quote="\""
5261      _am_result=BSD
5262   fi
5263fi
5264
5265
5266echo "$as_me:$LINENO: result: $_am_result" >&5
5267echo "${ECHO_T}$_am_result" >&6
5268rm -f confinc confmf
5269
5270# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5271if test "${enable_dependency_tracking+set}" = set; then
5272  enableval="$enable_dependency_tracking"
5273
5274fi;
5275if test "x$enable_dependency_tracking" != xno; then
5276  am_depcomp="$ac_aux_dir/depcomp"
5277  AMDEPBACKSLASH='\'
5278fi
5279
5280
5281if test "x$enable_dependency_tracking" != xno; then
5282  AMDEP_TRUE=
5283  AMDEP_FALSE='#'
5284else
5285  AMDEP_TRUE='#'
5286  AMDEP_FALSE=
5287fi
5288
5289
5290
5291
5292
[1687]5293
[915]5294# AC_MSG_NOTICE([Beginning automake initialisation.])
[754]5295# Stuff for automake
5296# test to see if srcdir already configured
5297if test "`cd $srcdir && pwd`" != "`pwd`" &&
5298   test -f $srcdir/config.status; then
5299  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5300echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5301   { (exit 1); exit 1; }; }
5302fi
5303
5304# test whether we have cygpath
5305if test -z "$CYGPATH_W"; then
5306  if (cygpath --version) >/dev/null 2>/dev/null; then
5307    CYGPATH_W='cygpath -w'
5308  else
5309    CYGPATH_W=echo
5310  fi
5311fi
5312
5313
5314# Define the identity of the package.
5315 PACKAGE='clp'
[1960]5316 VERSION='1.15.1'
[754]5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define PACKAGE "$PACKAGE"
5321_ACEOF
5322
5323
5324cat >>confdefs.h <<_ACEOF
5325#define VERSION "$VERSION"
5326_ACEOF
5327
5328# Some tools Automake needs.
5329
5330ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5331
5332
5333AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5334
5335
5336AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5337
5338
5339AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5340
5341
5342MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5343
5344install_sh=${install_sh-"$am_aux_dir/install-sh"}
5345
5346# Installed binaries are usually stripped using `strip' when the user
5347# run `make install-strip'.  However `strip' might not be the right
5348# tool to use in cross-compilation environments, therefore Automake
5349# will honor the `STRIP' environment variable to overrule this program.
5350if test "$cross_compiling" != no; then
5351  if test -n "$ac_tool_prefix"; then
5352  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5353set dummy ${ac_tool_prefix}strip; ac_word=$2