source: trunk/Clp/configure @ 1965

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

Change to allow embedding of manifest

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