source: ThirdParty/Lapack/trunk/configure @ 2888

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

Re-running autotools

  • Property svn:executable set to *
File size: 851.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
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
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyLapack trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-lapack compile project Lapack with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089
1090  --disable-pkg-config    disable use of pkg-config (if available)
1091  --disable-interpackage-dependencies
1092                          disables deduction of Makefile dependencies from
1093                          package linker flags
1094  --enable-static[=PKGS]
1095                          build static libraries [default=no]
1096  --disable-dependency-tracking  speeds up one-time build
1097  --enable-dependency-tracking   do not reject slow dependency extractors
1098  --enable-maintainer-mode  enable make rules and dependencies not useful
1099                          (and sometimes confusing) to the casual installer
1100  --enable-shared[=PKGS]
1101                          build shared libraries [default=yes]
1102  --enable-fast-install[=PKGS]
1103                          optimize for fast installation [default=yes]
1104  --disable-libtool-lock  avoid locking (might break parallel builds)
1105
1106Optional Packages:
1107  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1110  --with-lapack-checklevel
1111                          specify the sanity check level for project Lapack
1112  --with-blas             specify BLAS library (or BUILD to enforce use of
1113                          ThirdParty/Blas)
1114
1115  --with-coin-instdir     prefix of installation directory for precompiled
1116                          COIN packages
1117  --with-blas-lib linker flags for using package Blas
1118  --with-blas-incdir directory with header files for using package Blas
1119  --with-blas-datadir directory with data files for using package Blas
1120  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1121  --with-pic              try to use only PIC/non-PIC objects [default=use
1122                          both]
1123  --with-tags[=TAGS]
1124                          include additional configurations [automatic]
1125
1126Some influential environment variables:
1127  CDEFS       Additional -D flags to be used when compiling C code.
1128  ADD_CFLAGS  Additional C compiler options
1129  DBG_CFLAGS  Debug C compiler options
1130  OPT_CFLAGS  Optimize C compiler options
1131  CC          C compiler command
1132  CFLAGS      C compiler flags
1133  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1134              nonstandard directory <lib dir>
1135  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1136              headers in a nonstandard directory <include dir>
1137  MPICC       C MPI Compiler
1138  ADD_FFLAGS  Additional Fortran compiler options
1139  DBG_FFLAGS  Debug Fortran compiler options
1140  OPT_FFLAGS  Optimize Fortran compiler options
1141  F77         Fortran 77 compiler command
1142  FFLAGS      Fortran 77 compiler flags
1143  MPIF77      Fortran MPI Compiler
1144  PKG_CONFIG  path to pkg-config utility
1145  DLAMCH_FFLAGS
1146              Fortran compiler options for DLAMCH.F
1147  CPP         C preprocessor
1148  CXX         C++ compiler command
1149  CXXFLAGS    C++ compiler flags
1150  CXXCPP      C++ preprocessor
1151
1152Use these variables to override the choices made by `configure' or to help
1153it to find libraries and programs with nonstandard names/locations.
1154
1155Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1156_ACEOF
1157fi
1158
1159if test "$ac_init_help" = "recursive"; then
1160  # If there are subdirs, report their specific --help.
1161  ac_popdir=`pwd`
1162  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1163    test -d $ac_dir || continue
1164    ac_builddir=.
1165
1166if test "$ac_dir" != .; then
1167  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1168  # A "../" for each directory in $ac_dir_suffix.
1169  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1170else
1171  ac_dir_suffix= ac_top_builddir=
1172fi
1173
1174case $srcdir in
1175  .)  # No --srcdir option.  We are building in place.
1176    ac_srcdir=.
1177    if test -z "$ac_top_builddir"; then
1178       ac_top_srcdir=.
1179    else
1180       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1181    fi ;;
1182  [\\/]* | ?:[\\/]* )  # Absolute path.
1183    ac_srcdir=$srcdir$ac_dir_suffix;
1184    ac_top_srcdir=$srcdir ;;
1185  *) # Relative path.
1186    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1187    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1188esac
1189
1190# Do not use `cd foo && pwd` to compute absolute paths, because
1191# the directories may not exist.
1192case `pwd` in
1193.) ac_abs_builddir="$ac_dir";;
1194*)
1195  case "$ac_dir" in
1196  .) ac_abs_builddir=`pwd`;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1198  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_top_builddir=${ac_top_builddir}.;;
1203*)
1204  case ${ac_top_builddir}. in
1205  .) ac_abs_top_builddir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1207  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_srcdir=$ac_srcdir;;
1212*)
1213  case $ac_srcdir in
1214  .) ac_abs_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1216  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_top_srcdir=$ac_top_srcdir;;
1221*)
1222  case $ac_top_srcdir in
1223  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1225  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1226  esac;;
1227esac
1228
1229    cd $ac_dir
1230    # Check for guested configure; otherwise get Cygnus style configure.
1231    if test -f $ac_srcdir/configure.gnu; then
1232      echo
1233      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1234    elif test -f $ac_srcdir/configure; then
1235      echo
1236      $SHELL $ac_srcdir/configure  --help=recursive
1237    elif test -f $ac_srcdir/configure.ac ||
1238           test -f $ac_srcdir/configure.in; then
1239      echo
1240      $ac_configure --help
1241    else
1242      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1243    fi
1244    cd $ac_popdir
1245  done
1246fi
1247
1248test -n "$ac_init_help" && exit 0
1249if $ac_init_version; then
1250  cat <<\_ACEOF
1251ThirdPartyLapack configure trunk
1252generated by GNU Autoconf 2.59
1253
1254Copyright (C) 2003 Free Software Foundation, Inc.
1255This configure script is free software; the Free Software Foundation
1256gives unlimited permission to copy, distribute and modify it.
1257
1258
1259Copyright 2006 International Business Machines and others.
1260All Rights Reserved.
1261This file is part of the open source package Coin which is distributed
1262under the Eclipse Public License.
1263_ACEOF
1264  exit 0
1265fi
1266exec 5>config.log
1267cat >&5 <<_ACEOF
1268This file contains any messages produced by compilers while
1269running configure, to aid debugging if configure makes a mistake.
1270
1271It was created by ThirdPartyLapack $as_me trunk, which was
1272generated by GNU Autoconf 2.59.  Invocation command line was
1273
1274  $ $0 $@
1275
1276_ACEOF
1277{
1278cat <<_ASUNAME
1279## --------- ##
1280## Platform. ##
1281## --------- ##
1282
1283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1284uname -m = `(uname -m) 2>/dev/null || echo unknown`
1285uname -r = `(uname -r) 2>/dev/null || echo unknown`
1286uname -s = `(uname -s) 2>/dev/null || echo unknown`
1287uname -v = `(uname -v) 2>/dev/null || echo unknown`
1288
1289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1290/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1291
1292/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1293/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1295hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1296/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1297/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1298/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1299
1300_ASUNAME
1301
1302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1303for as_dir in $PATH
1304do
1305  IFS=$as_save_IFS
1306  test -z "$as_dir" && as_dir=.
1307  echo "PATH: $as_dir"
1308done
1309
1310} >&5
1311
1312cat >&5 <<_ACEOF
1313
1314
1315## ----------- ##
1316## Core tests. ##
1317## ----------- ##
1318
1319_ACEOF
1320
1321
1322# Keep a trace of the command line.
1323# Strip out --no-create and --no-recursion so they do not pile up.
1324# Strip out --silent because we don't want to record it for future runs.
1325# Also quote any args containing shell meta-characters.
1326# Make two passes to allow for proper duplicate-argument suppression.
1327ac_configure_args=
1328ac_configure_args0=
1329ac_configure_args1=
1330ac_sep=
1331ac_must_keep_next=false
1332for ac_pass in 1 2
1333do
1334  for ac_arg
1335  do
1336    case $ac_arg in
1337    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339    | -silent | --silent | --silen | --sile | --sil)
1340      continue ;;
1341    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1343    esac
1344    case $ac_pass in
1345    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1346    2)
1347      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1348      if test $ac_must_keep_next = true; then
1349        ac_must_keep_next=false # Got value, back to normal.
1350      else
1351        case $ac_arg in
1352          *=* | --config-cache | -C | -disable-* | --disable-* \
1353          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1354          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1355          | -with-* | --with-* | -without-* | --without-* | --x)
1356            case "$ac_configure_args0 " in
1357              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1358            esac
1359            ;;
1360          -* ) ac_must_keep_next=true ;;
1361        esac
1362      fi
1363      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1364      # Get rid of the leading space.
1365      ac_sep=" "
1366      ;;
1367    esac
1368  done
1369done
1370$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1371$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1372
1373# When interrupted or exit'd, cleanup temporary files, and complete
1374# config.log.  We remove comments because anyway the quotes in there
1375# would cause problems or look ugly.
1376# WARNING: Be sure not to use single quotes in there, as some shells,
1377# such as our DU 5.0 friend, will then `close' the trap.
1378trap 'exit_status=$?
1379  # Save into config.log some information that might help in debugging.
1380  {
1381    echo
1382
1383    cat <<\_ASBOX
1384## ---------------- ##
1385## Cache variables. ##
1386## ---------------- ##
1387_ASBOX
1388    echo
1389    # The following way of writing the cache mishandles newlines in values,
1390{
1391  (set) 2>&1 |
1392    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1393    *ac_space=\ *)
1394      sed -n \
1395        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1396          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1397      ;;
1398    *)
1399      sed -n \
1400        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1401      ;;
1402    esac;
1403}
1404    echo
1405
1406    cat <<\_ASBOX
1407## ----------------- ##
1408## Output variables. ##
1409## ----------------- ##
1410_ASBOX
1411    echo
1412    for ac_var in $ac_subst_vars
1413    do
1414      eval ac_val=$`echo $ac_var`
1415      echo "$ac_var='"'"'$ac_val'"'"'"
1416    done | sort
1417    echo
1418
1419    if test -n "$ac_subst_files"; then
1420      cat <<\_ASBOX
1421## ------------- ##
1422## Output files. ##
1423## ------------- ##
1424_ASBOX
1425      echo
1426      for ac_var in $ac_subst_files
1427      do
1428        eval ac_val=$`echo $ac_var`
1429        echo "$ac_var='"'"'$ac_val'"'"'"
1430      done | sort
1431      echo
1432    fi
1433
1434    if test -s confdefs.h; then
1435      cat <<\_ASBOX
1436## ----------- ##
1437## confdefs.h. ##
1438## ----------- ##
1439_ASBOX
1440      echo
1441      sed "/^$/d" confdefs.h | sort
1442      echo
1443    fi
1444    test "$ac_signal" != 0 &&
1445      echo "$as_me: caught signal $ac_signal"
1446    echo "$as_me: exit $exit_status"
1447  } >&5
1448  rm -f core *.core &&
1449  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1450    exit $exit_status
1451     ' 0
1452for ac_signal in 1 2 13 15; do
1453  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1454done
1455ac_signal=0
1456
1457# confdefs.h avoids OS command line length limits that DEFS can exceed.
1458rm -rf conftest* confdefs.h
1459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1460echo >confdefs.h
1461
1462# Predefined preprocessor variables.
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_NAME "$PACKAGE_NAME"
1466_ACEOF
1467
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_VERSION "$PACKAGE_VERSION"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_STRING "$PACKAGE_STRING"
1481_ACEOF
1482
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1486_ACEOF
1487
1488
1489# Let the site file select an alternate cache file if it wants to.
1490# Prefer explicitly selected file to automatically selected ones.
1491if test -z "$CONFIG_SITE"; then
1492  if test "x$prefix" != xNONE; then
1493    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1494  else
1495    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1496  fi
1497fi
1498for ac_site_file in $CONFIG_SITE; do
1499  if test -r "$ac_site_file"; then
1500    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1501echo "$as_me: loading site script $ac_site_file" >&6;}
1502    sed 's/^/| /' "$ac_site_file" >&5
1503    . "$ac_site_file"
1504  fi
1505done
1506
1507if test -r "$cache_file"; then
1508  # Some versions of bash will fail to source /dev/null (special
1509  # files actually), so we avoid doing that.
1510  if test -f "$cache_file"; then
1511    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1512echo "$as_me: loading cache $cache_file" >&6;}
1513    case $cache_file in
1514      [\\/]* | ?:[\\/]* ) . $cache_file;;
1515      *)                      . ./$cache_file;;
1516    esac
1517  fi
1518else
1519  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1520echo "$as_me: creating cache $cache_file" >&6;}
1521  >$cache_file
1522fi
1523
1524# Check that the precious variables saved in the cache have kept the same
1525# value.
1526ac_cache_corrupted=false
1527for ac_var in `(set) 2>&1 |
1528               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1529  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1530  eval ac_new_set=\$ac_env_${ac_var}_set
1531  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1532  eval ac_new_val="\$ac_env_${ac_var}_value"
1533  case $ac_old_set,$ac_new_set in
1534    set,)
1535      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1536echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1537      ac_cache_corrupted=: ;;
1538    ,set)
1539      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1540echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1541      ac_cache_corrupted=: ;;
1542    ,);;
1543    *)
1544      if test "x$ac_old_val" != "x$ac_new_val"; then
1545        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1546echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1547        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1548echo "$as_me:   former value:  $ac_old_val" >&2;}
1549        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1550echo "$as_me:   current value: $ac_new_val" >&2;}
1551        ac_cache_corrupted=:
1552      fi;;
1553  esac
1554  # Pass precious variables to config.status.
1555  if test "$ac_new_set" = set; then
1556    case $ac_new_val in
1557    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1558      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1559    *) ac_arg=$ac_var=$ac_new_val ;;
1560    esac
1561    case " $ac_configure_args " in
1562      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1563      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1564    esac
1565  fi
1566done
1567if $ac_cache_corrupted; then
1568  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1569echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1570  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1571echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1572   { (exit 1); exit 1; }; }
1573fi
1574
1575ac_ext=c
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1579ac_compiler_gnu=$ac_cv_c_compiler_gnu
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610# List one file in the package so that the configure script can test
1611# whether the package is actually there
1612
1613
1614# Where should everything be installed by default?  Here, we want it
1615# to be installed directly in 'bin', 'lib', 'include' subdirectories
1616# of the directory where configure is run.  The default would be
1617# /usr/local.
1618
1619
1620
1621# As backup, we make sure we don't loose an FLIBS if it has been set
1622# by the user
1623save_FLIBS="$FLIBS"
1624
1625# A useful makefile conditional that is always false
1626
1627
1628if false; then
1629  ALWAYS_FALSE_TRUE=
1630  ALWAYS_FALSE_FALSE='#'
1631else
1632  ALWAYS_FALSE_TRUE='#'
1633  ALWAYS_FALSE_FALSE=
1634fi
1635
1636
1637# We set the following variable so that we know later in AC_COIN_FINALIZE
1638# that we are in a project main directory
1639coin_projectdir=yes
1640
1641# Set the project's version numbers
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define LAPACK_VERSION "$PACKAGE_VERSION"
1646_ACEOF
1647
1648
1649  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1650  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1651  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1652  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1653  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1654  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1655
1656cat >>confdefs.h <<_ACEOF
1657#define LAPACK_VERSION_MAJOR $coin_majorver
1658_ACEOF
1659
1660
1661cat >>confdefs.h <<_ACEOF
1662#define LAPACK_VERSION_MINOR $coin_minorver
1663_ACEOF
1664
1665
1666cat >>confdefs.h <<_ACEOF
1667#define LAPACK_VERSION_RELEASE $coin_releasever
1668_ACEOF
1669
1670
1671  # We use the following variable to have a string with the upper case
1672  # version of the project name
1673  COIN_PRJCT=LAPACK
1674
1675  # Set the project's SVN revision number. The complicated sed expression
1676  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1677  # as a single number.
1678  # Extract the first word of "svnversion", so it can be a program name with args.
1679set dummy svnversion; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_have_svnversion+set}" = set; then
1683  echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685  if test -n "$have_svnversion"; then
1686  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691  IFS=$as_save_IFS
1692  test -z "$as_dir" && as_dir=.
1693  for ac_exec_ext in '' $ac_executable_extensions; do
1694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695    ac_cv_prog_have_svnversion="yes"
1696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697    break 2
1698  fi
1699done
1700done
1701
1702  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1703fi
1704fi
1705have_svnversion=$ac_cv_prog_have_svnversion
1706if test -n "$have_svnversion"; then
1707  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1708echo "${ECHO_T}$have_svnversion" >&6
1709else
1710  echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714  if test "x$have_svnversion" = xyes; then
1715
1716    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1717    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1718      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1719
1720cat >>confdefs.h <<_ACEOF
1721#define LAPACK_SVN_REV $LAPACK_SVN_REV
1722_ACEOF
1723
1724    fi
1725  fi
1726
1727
1728
1729# Capture libtool library version, if given.
1730
1731
1732
1733
1734#############################################################################
1735#                         Standard build tool stuff                         #
1736#############################################################################
1737
1738# Get the system type
1739ac_aux_dir=
1740for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1741  if test -f $ac_dir/install-sh; then
1742    ac_aux_dir=$ac_dir
1743    ac_install_sh="$ac_aux_dir/install-sh -c"
1744    break
1745  elif test -f $ac_dir/install.sh; then
1746    ac_aux_dir=$ac_dir
1747    ac_install_sh="$ac_aux_dir/install.sh -c"
1748    break
1749  elif test -f $ac_dir/shtool; then
1750    ac_aux_dir=$ac_dir
1751    ac_install_sh="$ac_aux_dir/shtool install -c"
1752    break
1753  fi
1754done
1755if test -z "$ac_aux_dir"; then
1756  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1757echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1758   { (exit 1); exit 1; }; }
1759fi
1760ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1761ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1762ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777  ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781   { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785   { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796
1797#turn off warnings and pedantic mode since they could make trouble on some platforms,
1798#and we couldn't fix them anyway
1799coin_skip_warn_fflags=yes
1800
1801# Check if user wants to produce debugging code
1802
1803echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1804echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1805
1806# Check whether --enable-debug or --disable-debug was given.
1807if test "${enable_debug+set}" = set; then
1808  enableval="$enable_debug"
1809  case "${enableval}" in
1810   yes) coin_debug_compile=true
1811        if test "${enable_shared+set}" = set; then :; else
1812          enable_shared=no
1813        fi
1814        ;;
1815   no)  coin_debug_compile=false
1816        ;;
1817   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1819   { (exit 1); exit 1; }; }
1820        ;;
1821esac
1822else
1823  coin_debug_compile=false
1824fi;
1825
1826# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1827if test "${enable_debug_lapack+set}" = set; then
1828  enableval="$enable_debug_lapack"
1829  case "${enableval}" in
1830    yes) coin_debug_compile=true
1831         ;;
1832    no)  coin_debug_compile=false
1833         ;;
1834    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1835echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1836   { (exit 1); exit 1; }; }
1837         ;;
1838 esac
1839else
1840  :
1841fi;
1842
1843 # m4_ifvaln([Lapack],
1844
1845if test $coin_debug_compile = true; then
1846  echo "$as_me:$LINENO: result: yes" >&5
1847echo "${ECHO_T}yes" >&6
1848else
1849  echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853
1854# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1855if test "${with_lapack_verbosity+set}" = set; then
1856  withval="$with_lapack_verbosity"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_lapack_verbosity=$withval
1861else
1862  coin_lapack_verbosity=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1867_ACEOF
1868
1869
1870
1871# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1872if test "${with_lapack_checklevel+set}" = set; then
1873  withval="$with_lapack_checklevel"
1874  if test "$withval" = yes; then
1875                withval=1
1876              fi
1877              coin_lapack_checklevel=$withval
1878else
1879  coin_lapack_checklevel=0
1880fi;
1881
1882cat >>confdefs.h <<_ACEOF
1883#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1884_ACEOF
1885
1886
1887 # m4_ifvaln([Lapack],
1888
1889
1890
1891# Get the name of the Fortran compiler and appropriate compiler options
1892case $build in
1893  *-mingw*)
1894    if test "${LD+set}" = set; then :; else
1895      LD=link
1896    fi
1897    ;;
1898 esac
1899 case $enable_doscompile in
1900   msvc)
1901     if test "x${LD+set}" = xset; then :; else
1902       LD=link
1903     fi
1904     ;;
1905 esac
1906
1907
1908 # Check whether --enable-doscompile or --disable-doscompile was given.
1909if test "${enable_doscompile+set}" = set; then
1910  enableval="$enable_doscompile"
1911  if test "$enable_doscompile" != no; then
1912     case $build in
1913       *-cygwin* | *-mingw*) ;;
1914       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1915echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1916   { (exit 1); exit 1; }; } ;;
1917     esac
1918   fi
1919else
1920  enable_doscompile=no
1921fi;
1922 case "$enable_doscompile" in
1923   mingw)
1924     case $build in
1925       *-mingw*) enable_doscompile=no ;;
1926     esac
1927     ;;
1928   msvc|no) ;;
1929   yes) enable_doscompile=mingw ;;
1930   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1931                    Try configure --help=recursive." >&5
1932echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1933                    Try configure --help=recursive." >&2;}
1934   { (exit 1); exit 1; }; }
1935      ;;
1936  esac
1937  if test "$enable_doscompile" != no ; then
1938    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1939echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1940  fi
1941
1942
1943# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1944if test "${enable_static_standardlibs+set}" = set; then
1945  enableval="$enable_static_standardlibs"
1946  case "$enableval" in
1947     no | yes | auto ) ;;
1948     *)
1949       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1950echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1951   { (exit 1); exit 1; }; } ;;
1952   esac
1953   use_static_standardlibs=$enableval
1954else
1955  use_static_standardlibs=no
1956fi;
1957
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969# For consistency, we set the C compiler to the same value of the C++
1970# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1971if test x"$CXX" != x; then
1972  case "$CXX" in
1973    clang* ) ;;
1974    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1975      if test x"$CC" = x; then
1976        CC="$CXX"
1977        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1978echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1979      fi
1980      ;;
1981  esac
1982fi
1983
1984
1985
1986
1987
1988
1989coin_has_cc=yes
1990
1991save_cflags="$CFLAGS"
1992
1993# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1994# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1995# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1996# compiler. In this case, put cc after gcc.
1997
1998case $build in
1999  *-cygwin* | *-mingw*)
2000             if test "$enable_doscompile" = msvc ; then
2001               comps="icl cl"
2002             else
2003               comps="gcc cl"
2004             fi ;;
2005  *-*-solaris*)
2006             # Extract the first word of "cc", so it can be a program name with args.
2007set dummy cc; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$sol_cc_compiler"; then
2014  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2015else
2016  ac_prog_rejected=no
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  test -z "$as_dir" && as_dir=.
2022  for ac_exec_ext in '' $ac_executable_extensions; do
2023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2025       ac_prog_rejected=yes
2026       continue
2027     fi
2028    ac_cv_prog_sol_cc_compiler="cc"
2029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030    break 2
2031  fi
2032done
2033done
2034
2035if test $ac_prog_rejected = yes; then
2036  # We found a bogon in the path, so make sure we never use it.
2037  set dummy $ac_cv_prog_sol_cc_compiler
2038  shift
2039  if test $# != 0; then
2040    # We chose a different compiler from the bogus one.
2041    # However, it has the same basename, so the bogon will be chosen
2042    # first if we set sol_cc_compiler to just the basename; use the full file name.
2043    shift
2044    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2045  fi
2046fi
2047fi
2048fi
2049sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2050if test -n "$sol_cc_compiler"; then
2051  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2052echo "${ECHO_T}$sol_cc_compiler" >&6
2053else
2054  echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
2058             if test "$sol_cc_compiler" = "cc" ; then
2059               comps="cc xlc gcc pgcc icc"
2060             else
2061               comps="xlc gcc pgcc icc cc"
2062             fi
2063             ;;
2064  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2065  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2066  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2067esac
2068
2069# We delete the cached value, since the test might not have been
2070# performed with our choice of compilers earlier
2071$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2072# AC_MSG_NOTICE([C compiler candidates: $comps])
2073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078if test -n "$ac_tool_prefix"; then
2079  for ac_prog in $comps
2080  do
2081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$CC"; then
2089  ac_cv_prog_CC="$CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107CC=$ac_cv_prog_CC
2108if test -n "$CC"; then
2109  echo "$as_me:$LINENO: result: $CC" >&5
2110echo "${ECHO_T}$CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116    test -n "$CC" && break
2117  done
2118fi
2119if test -z "$CC"; then
2120  ac_ct_CC=$CC
2121  for ac_prog in $comps
2122do
2123  # Extract the first word of "$ac_prog", so it can be a program name with args.
2124set dummy $ac_prog; ac_word=$2
2125echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  if test -n "$ac_ct_CC"; then
2131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  for ac_exec_ext in '' $ac_executable_extensions; do
2139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140    ac_cv_prog_ac_ct_CC="$ac_prog"
2141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142    break 2
2143  fi
2144done
2145done
2146
2147fi
2148fi
2149ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150if test -n "$ac_ct_CC"; then
2151  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152echo "${ECHO_T}$ac_ct_CC" >&6
2153else
2154  echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6
2156fi
2157
2158  test -n "$ac_ct_CC" && break
2159done
2160
2161  CC=$ac_ct_CC
2162fi
2163
2164
2165test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166See \`config.log' for more details." >&5
2167echo "$as_me: error: no acceptable C compiler found in \$PATH
2168See \`config.log' for more details." >&2;}
2169   { (exit 1); exit 1; }; }
2170
2171# Provide some information about the compiler.
2172echo "$as_me:$LINENO:" \
2173     "checking for C compiler version" >&5
2174ac_compiler=`set X $ac_compile; echo $2`
2175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176  (eval $ac_compiler --version </dev/null >&5) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }
2180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181  (eval $ac_compiler -v </dev/null >&5) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }
2185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186  (eval $ac_compiler -V </dev/null >&5) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }
2190
2191cat >conftest.$ac_ext <<_ACEOF
2192/* confdefs.h.  */
2193_ACEOF
2194cat confdefs.h >>conftest.$ac_ext
2195cat >>conftest.$ac_ext <<_ACEOF
2196/* end confdefs.h.  */
2197
2198int
2199main ()
2200{
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206ac_clean_files_save=$ac_clean_files
2207ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208# Try to create an executable without -o first, disregard a.out.
2209# It will help us diagnose broken compilers, and finding out an intuition
2210# of exeext.
2211echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215  (eval $ac_link_default) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; then
2219  # Find the output, starting from the most likely.  This scheme is
2220# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221# resort.
2222
2223# Be careful to initialize this variable, since it used to be cached.
2224# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225ac_cv_exeext=
2226# b.out is created by i960 compilers.
2227for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2228do
2229  test -f "$ac_file" || continue
2230  case $ac_file in
2231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232        ;;
2233    conftest.$ac_ext )
2234        # This is the source file.
2235        ;;
2236    [ab].out )
2237        # We found the default executable, but exeext='' is most
2238        # certainly right.
2239        break;;
2240    *.* )
2241        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242        # FIXME: I believe we export ac_cv_exeext for Libtool,
2243        # but it would be cool to find out if it's true.  Does anybody
2244        # maintain Libtool? --akim.
2245        export ac_cv_exeext
2246        break;;
2247    * )
2248        break;;
2249  esac
2250done
2251else
2252  echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259   { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263echo "$as_me:$LINENO: result: $ac_file" >&5
2264echo "${ECHO_T}$ac_file" >&6
2265
2266# Check the compiler produces executables we can run.  If not, either
2267# the compiler is broken, or we cross compile.
2268echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271# If not cross compiling, check that we can run a simple program.
2272if test "$cross_compiling" != yes; then
2273  if { ac_try='./$ac_file'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279    cross_compiling=no
2280  else
2281    if test "$cross_compiling" = maybe; then
2282        cross_compiling=yes
2283    else
2284        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285If you meant to cross compile, use \`--host'.
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot run C compiled programs.
2288If you meant to cross compile, use \`--host'.
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291    fi
2292  fi
2293fi
2294echo "$as_me:$LINENO: result: yes" >&5
2295echo "${ECHO_T}yes" >&6
2296
2297rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298ac_clean_files=$ac_clean_files_save
2299# Check the compiler produces executables we can run.  If not, either
2300# the compiler is broken, or we cross compile.
2301echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304echo "${ECHO_T}$cross_compiling" >&6
2305
2306echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309  (eval $ac_link) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; then
2313  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2315# work properly (i.e., refer to `conftest.exe'), while it won't with
2316# `rm'.
2317for ac_file in conftest.exe conftest conftest.*; do
2318  test -f "$ac_file" || continue
2319  case $ac_file in
2320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322          export ac_cv_exeext
2323          break;;
2324    * ) break;;
2325  esac
2326done
2327else
2328  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest$ac_cv_exeext
2336echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337echo "${ECHO_T}$ac_cv_exeext" >&6
2338
2339rm -f conftest.$ac_ext
2340EXEEXT=$ac_cv_exeext
2341ac_exeext=$EXEEXT
2342echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344if test "${ac_cv_objext+set}" = set; then
2345  echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347  cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.o conftest.obj
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; then
2368  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369  case $ac_file in
2370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2371    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372       break;;
2373  esac
2374done
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380See \`config.log' for more details." >&5
2381echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382See \`config.log' for more details." >&2;}
2383   { (exit 1); exit 1; }; }
2384fi
2385
2386rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389echo "${ECHO_T}$ac_cv_objext" >&6
2390OBJEXT=$ac_cv_objext
2391ac_objext=$OBJEXT
2392echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403
2404int
2405main ()
2406{
2407#ifndef __GNUC__
2408       choke me
2409#endif
2410
2411  ;
2412  return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_compiler_gnu=yes
2438else
2439  echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442ac_compiler_gnu=no
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450GCC=`test $ac_compiler_gnu = yes && echo yes`
2451ac_test_CFLAGS=${CFLAGS+set}
2452ac_save_CFLAGS=$CFLAGS
2453CFLAGS="-g"
2454echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456if test "${ac_cv_prog_cc_g+set}" = set; then
2457  echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459  cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h.  */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h.  */
2465
2466int
2467main ()
2468{
2469
2470  ;
2471  return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476  (eval $ac_compile) 2>conftest.er1
2477  ac_status=$?
2478  grep -v '^ *+' conftest.er1 >conftest.err
2479  rm -f conftest.er1
2480  cat conftest.err >&5
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); } &&
2483         { ac_try='test -z "$ac_c_werror_flag"
2484                         || test ! -s conftest.err'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; } &&
2490         { ac_try='test -s conftest.$ac_objext'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; }; then
2496  ac_cv_prog_cc_g=yes
2497else
2498  echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501ac_cv_prog_cc_g=no
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504fi
2505echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507if test "$ac_test_CFLAGS" = set; then
2508  CFLAGS=$ac_save_CFLAGS
2509elif test $ac_cv_prog_cc_g = yes; then
2510  if test "$GCC" = yes; then
2511    CFLAGS="-g -O2"
2512  else
2513    CFLAGS="-g"
2514  fi
2515else
2516  if test "$GCC" = yes; then
2517    CFLAGS="-O2"
2518  else
2519    CFLAGS=
2520  fi
2521fi
2522echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525  echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527  ac_cv_prog_cc_stdc=no
2528ac_save_CC=$CC
2529cat >conftest.$ac_ext <<_ACEOF
2530/* confdefs.h.  */
2531_ACEOF
2532cat confdefs.h >>conftest.$ac_ext
2533cat >>conftest.$ac_ext <<_ACEOF
2534/* end confdefs.h.  */
2535#include <stdarg.h>
2536#include <stdio.h>
2537#include <sys/types.h>
2538#include <sys/stat.h>
2539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2540struct buf { int x; };
2541FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542static char *e (p, i)
2543     char **p;
2544     int i;
2545{
2546  return p[i];
2547}
2548static char *f (char * (*g) (char **, int), char **p, ...)
2549{
2550  char *s;
2551  va_list v;
2552  va_start (v,p);
2553  s = g (p, va_arg (v,int));
2554  va_end (v);
2555  return s;
2556}
2557
2558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2559   function prototypes and stuff, but not '\xHH' hex character constants.
2560   These don't provoke an error unfortunately, instead are silently treated
2561   as 'x'.  The following induces an error, until -std1 is added to get
2562   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2563   array size at least.  It's necessary to write '\x00'==0 to get something
2564   that's true only with -std1.  */
2565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2566
2567int test (int i, double x);
2568struct s1 {int (*f) (int a);};
2569struct s2 {int (*f) (double a);};
2570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2571int argc;
2572char **argv;
2573int
2574main ()
2575{
2576return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581# Don't try gcc -ansi; that turns off useful extensions and
2582# breaks some systems' header files.
2583# AIX                   -qlanglvl=ansi
2584# Ultrix and OSF/1      -std1
2585# HP-UX 10.20 and later -Ae
2586# HP-UX older versions  -Aa -D_HPUX_SOURCE
2587# SVR4                  -Xc -D__EXTENSIONS__
2588for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2589do
2590  CC="$ac_save_CC $ac_arg"
2591  rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593  (eval $ac_compile) 2>conftest.er1
2594  ac_status=$?
2595  grep -v '^ *+' conftest.er1 >conftest.err
2596  rm -f conftest.er1
2597  cat conftest.err >&5
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); } &&
2600         { ac_try='test -z "$ac_c_werror_flag"
2601                         || test ! -s conftest.err'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; } &&
2607         { ac_try='test -s conftest.$ac_objext'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; }; then
2613  ac_cv_prog_cc_stdc=$ac_arg
2614break
2615else
2616  echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619fi
2620rm -f conftest.err conftest.$ac_objext
2621done
2622rm -f conftest.$ac_ext conftest.$ac_objext
2623CC=$ac_save_CC
2624
2625fi
2626
2627case "x$ac_cv_prog_cc_stdc" in
2628  x|xno)
2629    echo "$as_me:$LINENO: result: none needed" >&5
2630echo "${ECHO_T}none needed" >&6 ;;
2631  *)
2632    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634    CC="$CC $ac_cv_prog_cc_stdc" ;;
2635esac
2636
2637# Some people use a C++ compiler to compile C.  Since we use `exit',
2638# in C++ we need to declare it.  In case someone uses the same compiler
2639# for both compiling C and C++ we need to have the C++ compiler decide
2640# the declaration of exit, since it's the most demanding environment.
2641cat >conftest.$ac_ext <<_ACEOF
2642#ifndef __cplusplus
2643  choke me
2644#endif
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>conftest.er1
2649  ac_status=$?
2650  grep -v '^ *+' conftest.er1 >conftest.err
2651  rm -f conftest.er1
2652  cat conftest.err >&5
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655         { ac_try='test -z "$ac_c_werror_flag"
2656                         || test ! -s conftest.err'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; } &&
2662         { ac_try='test -s conftest.$ac_objext'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  for ac_declaration in \
2669   '' \
2670   'extern "C" void std::exit (int) throw (); using std::exit;' \
2671   'extern "C" void std::exit (int); using std::exit;' \
2672   'extern "C" void exit (int) throw ();' \
2673   'extern "C" void exit (int);' \
2674   'void exit (int);'
2675do
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682$ac_declaration
2683#include <stdlib.h>
2684int
2685main ()
2686{
2687exit (42);
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701         { ac_try='test -z "$ac_c_werror_flag"
2702                         || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708         { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  :
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719continue
2720fi
2721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728$ac_declaration
2729int
2730main ()
2731{
2732exit (42);
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739  (eval $ac_compile) 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746         { ac_try='test -z "$ac_c_werror_flag"
2747                         || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753         { ac_try='test -s conftest.$ac_objext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  break
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766done
2767rm -f conftest*
2768if test -n "$ac_declaration"; then
2769  echo '#ifdef __cplusplus' >>confdefs.h
2770  echo $ac_declaration      >>confdefs.h
2771  echo '#endif'             >>confdefs.h
2772fi
2773
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778fi
2779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786if test -z "$CC" ; then
2787  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2788echo "$as_me: error: Failed to find a C compiler!" >&2;}
2789   { (exit 1); exit 1; }; }
2790fi
2791# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2792case "$CC" in
2793  clang* ) ;;
2794  cl* | */cl* | CL* | */CL* )
2795    if test "$ac_cv_prog_cc_g" = yes ; then
2796      ac_cv_prog_cc_g=no
2797      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2798echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2799    fi ;;
2800  * )
2801    CYGPATH_W=echo
2802    ;;
2803esac
2804CFLAGS="$save_cflags"
2805
2806# add automake conditional so we can recognize cl compiler in makefile
2807coin_cc_is_cl=false
2808case "$CC" in
2809  clang* ) ;;
2810  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2811    coin_cc_is_cl=true
2812    ;;
2813esac
2814
2815
2816if test $coin_cc_is_cl = true; then
2817  COIN_CC_IS_CL_TRUE=
2818  COIN_CC_IS_CL_FALSE='#'
2819else
2820  COIN_CC_IS_CL_TRUE='#'
2821  COIN_CC_IS_CL_FALSE=
2822fi
2823
2824
2825# Check if a project specific CFLAGS variable has been set
2826if test x$COIN_PRJCT != x; then
2827  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2828  if test x$coin_tmp = xset; then
2829    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2830  fi
2831fi
2832
2833if test x"$CFLAGS" = x; then
2834
2835  coin_add_cflags=
2836  coin_opt_cflags=
2837  coin_dbg_cflags=
2838  coin_warn_cflags=
2839
2840  if test "$GCC" = "yes"; then
2841    case "$CC" in
2842      icc* | */icc*)
2843        ;;
2844      *)
2845        coin_opt_cflags="-O3"
2846        coin_add_cflags="-pipe"
2847        coin_dbg_cflags="-g -O0"
2848        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2849        case $build in
2850          *-darwin*)
2851            ;;
2852          *)
2853            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2854            ;;
2855        esac
2856        case $enable_doscompile in
2857          mingw)
2858            CFLAGS="-mno-cygwin"
2859            cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h.  */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h.  */
2865
2866int
2867main ()
2868{
2869int i=0; i++;
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext conftest$ac_exeext
2875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2876  (eval $ac_link) 2>conftest.er1
2877  ac_status=$?
2878  grep -v '^ *+' conftest.er1 >conftest.err
2879  rm -f conftest.er1
2880  cat conftest.err >&5
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); } &&
2883         { ac_try='test -z "$ac_c_werror_flag"
2884                         || test ! -s conftest.err'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; } &&
2890         { ac_try='test -s conftest$ac_exeext'
2891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892  (eval $ac_try) 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }; }; then
2896  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2897else
2898  echo "$as_me: failed program was:" >&5
2899sed 's/^/| /' conftest.$ac_ext >&5
2900
2901fi
2902rm -f conftest.err conftest.$ac_objext \
2903      conftest$ac_exeext conftest.$ac_ext
2904            CFLAGS=
2905          ;;
2906        esac
2907    esac
2908  fi
2909  if test -z "$coin_opt_cflags"; then
2910    case $build in
2911      *-cygwin* | *-mingw*)
2912        case "$CC" in
2913          clang* ) ;;
2914          cl* | */cl* | CL* | */CL*)
2915            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2916              coin_opt_cflags='-MD -O2'
2917              coin_dbg_cflags='-MDd'
2918            else
2919              coin_opt_cflags='-MT -O2'
2920              coin_dbg_cflags='-MTd'
2921            fi
2922            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2923            ;;
2924          icl* | */icl* | ICL* | */ICL*)
2925            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2926              coin_opt_cflags='-MD -Ox'
2927              coin_dbg_cflags='-MDd -debug'
2928            else
2929              coin_opt_cflags='-MT -Ox'
2930              coin_dbg_cflags='-MTd -debug'
2931            fi
2932            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2933            ;;
2934        esac
2935        ;;
2936      *-linux-*)
2937        case "$CC" in
2938          icc* | */icc*)
2939            coin_opt_cflags="-O3 -ip -mp1"
2940            coin_add_cflags=""
2941            coin_dbg_cflags="-g"
2942            # Check if -i_dynamic is necessary (for new glibc library)
2943            CFLAGS=
2944            cat >conftest.$ac_ext <<_ACEOF
2945/* confdefs.h.  */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h.  */
2950
2951int
2952main ()
2953{
2954int i=0; i++;
2955  ;
2956  return 0;
2957}
2958_ACEOF
2959rm -f conftest.$ac_objext conftest$ac_exeext
2960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961  (eval $ac_link) 2>conftest.er1
2962  ac_status=$?
2963  grep -v '^ *+' conftest.er1 >conftest.err
2964  rm -f conftest.er1
2965  cat conftest.err >&5
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); } &&
2968         { ac_try='test -z "$ac_c_werror_flag"
2969                         || test ! -s conftest.err'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; } &&
2975         { ac_try='test -s conftest$ac_exeext'
2976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977  (eval $ac_try) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; }; then
2981  :
2982else
2983  echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986coin_add_cflags="-i_dynamic $coin_add_cflags"
2987fi
2988rm -f conftest.err conftest.$ac_objext \
2989      conftest$ac_exeext conftest.$ac_ext
2990            ;;
2991          pgcc* | */pgcc*)
2992            coin_opt_cflags="-fast"
2993            coin_add_cflags="-Kieee -pc 64"
2994            coin_dbg_cflags="-g"
2995            ;;
2996        esac
2997        ;;
2998      *-ibm-*)
2999        case "$CC" in
3000          xlc* | */xlc* | mpxlc* | */mpxlc*)
3001            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3002            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3003            coin_dbg_cflags="-g"
3004          ;;
3005        esac
3006        ;;
3007      *-hp-*)
3008        coin_opt_cflags="-O"
3009        coin_add_cflags="-Ae"
3010        coin_dbg_cflags="-g"
3011        ;;
3012      *-*-solaris*)
3013        coin_opt_cflags="-xO4"
3014        coin_dbg_cflags="-g"
3015        ;;
3016      *-sgi-*)
3017        coin_opt_cflags="-O -OPT:Olimit=0"
3018        coin_dbg_cflags="-g"
3019        ;;
3020    esac
3021  fi
3022
3023  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3024    coin_dbg_cflags="-g"
3025  fi
3026
3027  if test -z "$coin_opt_cflags"; then
3028    # Try if -O option works if nothing else is set
3029    CFLAGS="-O"
3030    cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h.  */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h.  */
3036
3037int
3038main ()
3039{
3040int i=0; i++;
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext conftest$ac_exeext
3046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047  (eval $ac_link) 2>conftest.er1
3048  ac_status=$?
3049  grep -v '^ *+' conftest.er1 >conftest.err
3050  rm -f conftest.er1
3051  cat conftest.err >&5
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); } &&
3054         { ac_try='test -z "$ac_c_werror_flag"
3055                         || test ! -s conftest.err'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; } &&
3061         { ac_try='test -s conftest$ac_exeext'
3062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063  (eval $ac_try) 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; }; then
3067  coin_opt_cflags="-O"
3068else
3069  echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072fi
3073rm -f conftest.err conftest.$ac_objext \
3074      conftest$ac_exeext conftest.$ac_ext
3075  fi
3076
3077  # if PM doesn't want the warning messages, take them out
3078  if test x"$coin_skip_warn_cflags" = xyes; then
3079    coin_warn_cflags=
3080  fi
3081
3082  if test x${DBG_CFLAGS+set} != xset; then
3083    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3084  fi
3085  if test x${OPT_CFLAGS+set} != xset; then
3086    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3087  fi
3088
3089  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3090  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3091
3092  if test "$coin_debug_compile" = "true"; then
3093    CFLAGS="$DBG_CFLAGS"
3094  else
3095    CFLAGS="$OPT_CFLAGS"
3096  fi
3097
3098else
3099  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3100  if test x${DBG_CFLAGS+set} != xset; then
3101    DBG_CFLAGS="$CFLAGS"
3102  fi
3103  if test x${OPT_CFLAGS+set} != xset; then
3104    OPT_CFLAGS="$CFLAGS"
3105  fi
3106fi
3107
3108# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3109
3110case "$CFLAGS" in
3111  *-mno-cygwin*)
3112    if test x${CPPFLAGS+set} != xset ; then
3113      CPPFLAGS="-mno-cygwin"
3114    else
3115      case "$CPPFLAGS" in
3116        *-mno-cygwin*)
3117          ;;
3118        *)
3119          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3120          ;;
3121      esac
3122    fi ;;
3123esac
3124
3125# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3126if test x$COIN_PRJCT != x; then
3127  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3128fi
3129
3130# Try if CFLAGS works
3131save_CFLAGS="$CFLAGS"
3132cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h.  */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h.  */
3138
3139int
3140main ()
3141{
3142int i=0; i++;
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext conftest$ac_exeext
3148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149  (eval $ac_link) 2>conftest.er1
3150  ac_status=$?
3151  grep -v '^ *+' conftest.er1 >conftest.err
3152  rm -f conftest.er1
3153  cat conftest.err >&5
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); } &&
3156         { ac_try='test -z "$ac_c_werror_flag"
3157                         || test ! -s conftest.err'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; } &&
3163         { ac_try='test -s conftest$ac_exeext'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; }; then
3169  :
3170else
3171  echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174CFLAGS=
3175fi
3176rm -f conftest.err conftest.$ac_objext \
3177      conftest$ac_exeext conftest.$ac_ext
3178if test -z "$CFLAGS"; then
3179  { 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
3180echo "$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;}
3181  CFLAGS='-O'
3182  cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h.  */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h.  */
3188
3189int
3190main ()
3191{
3192int i=0; i++;
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext conftest$ac_exeext
3198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3199  (eval $ac_link) 2>conftest.er1
3200  ac_status=$?
3201  grep -v '^ *+' conftest.er1 >conftest.err
3202  rm -f conftest.er1
3203  cat conftest.err >&5
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); } &&
3206         { ac_try='test -z "$ac_c_werror_flag"
3207                         || test ! -s conftest.err'
3208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209  (eval $ac_try) 2>&5
3210  ac_status=$?
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); }; } &&
3213         { ac_try='test -s conftest$ac_exeext'
3214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215  (eval $ac_try) 2>&5
3216  ac_status=$?
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); }; }; then
3219  :
3220else
3221  echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224CFLAGS=
3225fi
3226rm -f conftest.err conftest.$ac_objext \
3227      conftest$ac_exeext conftest.$ac_ext
3228  if test -z "$CFLAGS"; then
3229    { 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
3230echo "$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;}
3231  fi
3232fi
3233
3234{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3235echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3236
3237
3238if test x"$MPICC" = x; then :; else
3239  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3240echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3241  CC="$MPICC"
3242fi
3243
3244# Correct the LD variable if we are using the MS or Intel-windows compiler
3245case "$CC" in
3246  clang* ) ;;
3247  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3248    case $build in
3249  *-mingw*)
3250    if test "${LD+set}" = set; then :; else
3251      LD=link
3252    fi
3253    ;;
3254 esac
3255 case $enable_doscompile in
3256   msvc)
3257     if test "x${LD+set}" = xset; then :; else
3258       LD=link
3259     fi
3260     ;;
3261 esac
3262
3263    ;;
3264esac
3265
3266# check whether to add flags for static linking against standard libraries to LDFLAGS
3267if test x$use_static_standardlibs != xno ; then
3268  case $build in
3269    *-mingw*)
3270      static_standardlib_flag=-static
3271      ;;
3272    *)
3273      static_standardlib_flag=-static-libgcc
3274      ;;
3275  esac
3276  case " $LDFLAGS " in
3277    *" $static_standardlib_flag "* ) ;;
3278    *)
3279    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3280echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3281    coin_save_LDFLAGS="$LDFLAGS"
3282    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3283    cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289
3290int
3291main ()
3292{
3293int i=0;
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext conftest$ac_exeext
3299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300  (eval $ac_link) 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } &&
3307         { ac_try='test -z "$ac_c_werror_flag"
3308                         || test ! -s conftest.err'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; } &&
3314         { ac_try='test -s conftest$ac_exeext'
3315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316  (eval $ac_try) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }; }; then
3320  echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
3322else
3323  echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328       LDFLAGS="$coin_save_LDFLAGS"
3329       if test $use_static_standardlibs = yes ; then
3330         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3331echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3332   { (exit 1); exit 1; }; }
3333       fi
3334
3335fi
3336rm -f conftest.err conftest.$ac_objext \
3337      conftest$ac_exeext conftest.$ac_ext
3338    ;;
3339  esac
3340fi
3341
3342ac_ext=c
3343ac_cpp='$CPP $CPPFLAGS'
3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348
3349case $build in
3350  *-cygwin* | *-mingw*)
3351     if test "$enable_doscompile" = msvc ; then
3352       coin_f77_comps="ifort fl32 compile_f2c"
3353     else
3354       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3355     fi ;;
3356  *-*-solaris*)
3357     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3358  *-linux-gnu*)
3359     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3360  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3361 esac
3362
3363
3364
3365
3366
3367
3368
3369ac_ext=f
3370ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3371ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3373
3374
3375
3376
3377
3378
3379coin_has_f77=yes
3380
3381save_fflags="$FFLAGS"
3382
3383# We delete the cached value, since the test might not have been
3384# performed with our choice of compilers earlier
3385$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3386
3387# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3388# coin_f77_comps to see if there's a program that matches one of the names.
3389# If there's no such program, F77 = unavailable. If we match the name,
3390# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3391# compiler.
3392# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3393
3394
3395{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3396echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3397if test -n "$ac_tool_prefix"; then
3398  for ac_prog in $coin_f77_comps
3399  do
3400    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402echo "$as_me:$LINENO: checking for $ac_word" >&5
3403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404if test "${ac_cv_prog_F77+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -n "$F77"; then
3408  ac_cv_prog_F77="$F77" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415  for ac_exec_ext in '' $ac_executable_extensions; do
3416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422done
3423
3424fi
3425fi
3426F77=$ac_cv_prog_F77
3427if test -n "$F77"; then
3428  echo "$as_me:$LINENO: result: $F77" >&5
3429echo "${ECHO_T}$F77" >&6
3430else
3431  echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433fi
3434
3435    test -n "$F77" && break
3436  done
3437fi
3438if test -z "$F77"; then
3439  ac_ct_F77=$F77
3440  for ac_prog in $coin_f77_comps
3441do
3442  # Extract the first word of "$ac_prog", so it can be a program name with args.
3443set dummy $ac_prog; ac_word=$2
3444echo "$as_me:$LINENO: checking for $ac_word" >&5
3445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3447  echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449  if test -n "$ac_ct_F77"; then
3450  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3451else
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455  IFS=$as_save_IFS
3456  test -z "$as_dir" && as_dir=.
3457  for ac_exec_ext in '' $ac_executable_extensions; do
3458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459    ac_cv_prog_ac_ct_F77="$ac_prog"
3460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461    break 2
3462  fi
3463done
3464done
3465
3466fi
3467fi
3468ac_ct_F77=$ac_cv_prog_ac_ct_F77
3469if test -n "$ac_ct_F77"; then
3470  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3471echo "${ECHO_T}$ac_ct_F77" >&6
3472else
3473  echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6
3475fi
3476
3477  test -n "$ac_ct_F77" && break
3478done
3479test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3480
3481  F77=$ac_ct_F77
3482fi
3483
3484
3485if test "$F77" != "unavailable" ; then
3486  ac_ext=f
3487ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3488ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3490if test -n "$ac_tool_prefix"; then
3491  for ac_prog in $coin_f77_comps
3492  do
3493    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_F77+set}" = set; then
3498  echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500  if test -n "$F77"; then
3501  ac_cv_prog_F77="$F77" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506  IFS=$as_save_IFS
3507  test -z "$as_dir" && as_dir=.
3508  for ac_exec_ext in '' $ac_executable_extensions; do
3509  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512    break 2
3513  fi
3514done
3515done
3516
3517fi
3518fi
3519F77=$ac_cv_prog_F77
3520if test -n "$F77"; then
3521  echo "$as_me:$LINENO: result: $F77" >&5
3522echo "${ECHO_T}$F77" >&6
3523else
3524  echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
3526fi
3527
3528    test -n "$F77" && break
3529  done
3530fi
3531if test -z "$F77"; then
3532  ac_ct_F77=$F77
3533  for ac_prog in $coin_f77_comps
3534do
3535  # Extract the first word of "$ac_prog", so it can be a program name with args.
3536set dummy $ac_prog; ac_word=$2
3537echo "$as_me:$LINENO: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3540  echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542  if test -n "$ac_ct_F77"; then
3543  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548  IFS=$as_save_IFS
3549  test -z "$as_dir" && as_dir=.
3550  for ac_exec_ext in '' $ac_executable_extensions; do
3551  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552    ac_cv_prog_ac_ct_F77="$ac_prog"
3553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554    break 2
3555  fi
3556done
3557done
3558
3559fi
3560fi
3561ac_ct_F77=$ac_cv_prog_ac_ct_F77
3562if test -n "$ac_ct_F77"; then
3563  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3564echo "${ECHO_T}$ac_ct_F77" >&6
3565else
3566  echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
3569
3570  test -n "$ac_ct_F77" && break
3571done
3572
3573  F77=$ac_ct_F77
3574fi
3575
3576
3577# Provide some information about the compiler.
3578echo "$as_me:3578:" \
3579     "checking for Fortran 77 compiler version" >&5
3580ac_compiler=`set X $ac_compile; echo $2`
3581{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3582  (eval $ac_compiler --version </dev/null >&5) 2>&5
3583  ac_status=$?
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); }
3586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3587  (eval $ac_compiler -v </dev/null >&5) 2>&5
3588  ac_status=$?
3589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590  (exit $ac_status); }
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3592  (eval $ac_compiler -V </dev/null >&5) 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); }
3596rm -f a.out
3597
3598# If we don't use `.F' as extension, the preprocessor is not run on the
3599# input file.  (Note that this only needs to work for GNU compilers.)
3600ac_save_ext=$ac_ext
3601ac_ext=F
3602echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3603echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3604if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3605  echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607  cat >conftest.$ac_ext <<_ACEOF
3608      program main
3609#ifndef __GNUC__
3610       choke me
3611#endif
3612
3613      end
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617  (eval $ac_compile) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } &&
3624         { ac_try='test -z "$ac_f77_werror_flag"
3625                         || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631         { ac_try='test -s conftest.$ac_objext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  ac_compiler_gnu=yes
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_compiler_gnu=no
3643fi
3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3646
3647fi
3648echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3649echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3650ac_ext=$ac_save_ext
3651ac_test_FFLAGS=${FFLAGS+set}
3652ac_save_FFLAGS=$FFLAGS
3653FFLAGS=
3654echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3655echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3656if test "${ac_cv_prog_f77_g+set}" = set; then
3657  echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659  FFLAGS=-g
3660cat >conftest.$ac_ext <<_ACEOF
3661      program main
3662
3663      end
3664_ACEOF
3665rm -f conftest.$ac_objext
3666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667  (eval $ac_compile) 2>conftest.er1
3668  ac_status=$?
3669  grep -v '^ *+' conftest.er1 >conftest.err
3670  rm -f conftest.er1
3671  cat conftest.err >&5
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); } &&
3674         { ac_try='test -z "$ac_f77_werror_flag"
3675                         || test ! -s conftest.err'
3676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677  (eval $ac_try) 2>&5
3678  ac_status=$?
3679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); }; } &&
3681         { ac_try='test -s conftest.$ac_objext'
3682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683  (eval $ac_try) 2>&5
3684  ac_status=$?
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); }; }; then
3687  ac_cv_prog_f77_g=yes
3688else
3689  echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692ac_cv_prog_f77_g=no
3693fi
3694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695
3696fi
3697echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3698echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3699if test "$ac_test_FFLAGS" = set; then
3700  FFLAGS=$ac_save_FFLAGS
3701elif test $ac_cv_prog_f77_g = yes; then
3702  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3703    FFLAGS="-g -O2"
3704  else
3705    FFLAGS="-g"
3706  fi
3707else
3708  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3709    FFLAGS="-O2"
3710  else
3711    FFLAGS=
3712  fi
3713fi
3714
3715G77=`test $ac_compiler_gnu = yes && echo yes`
3716ac_ext=f
3717ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3718ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3720
3721else
3722  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3723echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3724fi
3725
3726FFLAGS="$save_fflags"
3727
3728# Check if a project specific FFLAGS variable has been set
3729if test x$COIN_PRJCT != x; then
3730  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3731  if test x$coin_tmp = xset; then
3732    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3733  fi
3734fi
3735
3736if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3737
3738  coin_add_fflags=
3739  coin_opt_fflags=
3740  coin_dbg_fflags=
3741  coin_warn_fflags=
3742
3743  if test "$G77" = "yes"; then
3744    coin_opt_fflags="-O3"
3745    coin_add_fflags="-pipe"
3746    coin_dbg_fflags="-g -O0"
3747    case $enable_doscompile in
3748      mingw)
3749        FFLAGS="-mno-cygwin"
3750        cat >conftest.$ac_ext <<_ACEOF
3751      program main
3752      write(*,*) 'Hello world'
3753      end
3754_ACEOF
3755rm -f conftest.$ac_objext conftest$ac_exeext
3756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757  (eval $ac_link) 2>conftest.er1
3758  ac_status=$?
3759  grep -v '^ *+' conftest.er1 >conftest.err
3760  rm -f conftest.er1
3761  cat conftest.err >&5
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); } &&
3764         { ac_try='test -z "$ac_f77_werror_flag"
3765                         || test ! -s conftest.err'
3766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767  (eval $ac_try) 2>&5
3768  ac_status=$?
3769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); }; } &&
3771         { ac_try='test -s conftest$ac_exeext'
3772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773  (eval $ac_try) 2>&5
3774  ac_status=$?
3775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776  (exit $ac_status); }; }; then
3777  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3778else
3779  echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782fi
3783rm -f conftest.err conftest.$ac_objext \
3784      conftest$ac_exeext conftest.$ac_ext
3785        FFLAGS=
3786      ;;
3787    esac
3788  else
3789    case $build in
3790      *-cygwin* | *-mingw*)
3791        case $F77 in
3792          ifort* | */ifort* | IFORT* | */IFORT* )
3793            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3794              coin_opt_fflags='-MD -O3'
3795              coin_dbg_fflags='-MDd -debug'
3796            else
3797              coin_opt_fflags='-MT -O3'
3798              coin_dbg_fflags='-MTd -debug'
3799            fi
3800            coin_add_fflags='-fpp -nologo'
3801          ;;
3802          compile_f2c*)
3803            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3804              coin_opt_fflags='-MD -O2'
3805              coin_dbg_fflags='-MDd'
3806            else
3807              coin_opt_fflags='-MT -O2'
3808              coin_dbg_fflags='-MTd'
3809            fi
3810            coin_add_fflags='-nologo -wd4996'
3811          ;;
3812        esac
3813        ;;
3814      *-linux-*)
3815        case $F77 in
3816          ifc* | */ifc* | ifort* | */ifort*)
3817            coin_opt_fflags="-O3 -ip"
3818            coin_add_fflags="-cm -w90 -w95"
3819            coin_dbg_fflags="-g -CA -CB -CS"
3820            # Check if -i_dynamic is necessary (for new glibc library)
3821            FFLAGS=
3822            cat >conftest.$ac_ext <<_ACEOF
3823      program main
3824      write(*,*) 'Hello world'
3825      end
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829  (eval $ac_link) 2>conftest.er1
3830  ac_status=$?
3831  grep -v '^ *+' conftest.er1 >conftest.err
3832  rm -f conftest.er1
3833  cat conftest.err >&5
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836         { ac_try='test -z "$ac_f77_werror_flag"
3837                         || test ! -s conftest.err'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; } &&
3843         { ac_try='test -s conftest$ac_exeext'
3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845  (eval $ac_try) 2>&5
3846  ac_status=$?
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); }; }; then
3849  :
3850else
3851  echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854coin_add_fflags="-i_dynamic $coin_add_fflags"
3855fi
3856rm -f conftest.err conftest.$ac_objext \
3857      conftest$ac_exeext conftest.$ac_ext
3858            ;;
3859          pgf77* | */pgf77* | pgf90* | */pgf90*)
3860            coin_opt_fflags="-fast"
3861            coin_add_fflags="-Kieee -pc 64"
3862            coin_dbg_fflags="-g"
3863          ;;
3864        esac
3865        ;;
3866      *-ibm-*)
3867        case "$F77" in
3868          xlf* | */xlf* | mpxlf* | */mpxlf* )
3869            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3870            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3871            coin_dbg_fflags="-g -C"
3872            ;;
3873        esac
3874        ;;
3875      *-hp-*)
3876        coin_opt_fflags="+O3"
3877        coin_add_fflags="+U77"
3878        coin_dbg_fflags="-C -g"
3879        ;;
3880      *-*-solaris*)
3881        coin_opt_fflags="-O4"
3882        coin_dbg_fflags="-g"
3883        ;;
3884      *-sgi-*)
3885        coin_opt_fflags="-O5 -OPT:Olimit=0"
3886        coin_dbg_fflags="-g"
3887        ;;
3888    esac
3889  fi
3890
3891  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3892    coin_dbg_fflags="-g"
3893  fi
3894
3895  if test -z "$coin_opt_fflags"; then
3896    # Try if -O option works if nothing else is set
3897    FFLAGS=-O
3898    cat >conftest.$ac_ext <<_ACEOF
3899      program main
3900      integer i
3901      end
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
3904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905  (eval $ac_link) 2>conftest.er1
3906  ac_status=$?
3907  grep -v '^ *+' conftest.er1 >conftest.err
3908  rm -f conftest.er1
3909  cat conftest.err >&5
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); } &&
3912         { ac_try='test -z "$ac_f77_werror_flag"
3913                         || test ! -s conftest.err'
3914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915  (eval $ac_try) 2>&5
3916  ac_status=$?
3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918  (exit $ac_status); }; } &&
3919         { ac_try='test -s conftest$ac_exeext'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; }; then
3925  coin_opt_fflags="-O"
3926else
3927  echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930fi
3931rm -f conftest.err conftest.$ac_objext \
3932      conftest$ac_exeext conftest.$ac_ext
3933  fi
3934
3935  # if PM doesn't want the warning messages, take them out
3936  if test x"$coin_skip_warn_fflags" = xyes; then
3937    coin_warn_fflags=
3938  fi
3939
3940  if test x${DBG_FFLAGS+set} != xset; then
3941    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3942  fi
3943  if test x${OPT_FFLAGS+set} != xset; then
3944    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3945  fi
3946
3947  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3948  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3949
3950  if test "$coin_debug_compile" = "true"; then
3951    FFLAGS="$DBG_FFLAGS"
3952  else
3953    FFLAGS="$OPT_FFLAGS"
3954  fi
3955
3956else
3957  FFLAGS="$FFLAGS $ADD_FFLAGS"
3958  if test x${DBG_FFLAGS+set} != xset; then
3959    DBG_FFLAGS="$FFLAGS"
3960  fi
3961  if test x${OPT_FFLAGS+set} != xset; then
3962    OPT_FFLAGS="$FFLAGS"
3963  fi
3964fi
3965
3966# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3967case "$FFLAGS" in
3968  *-mno-cygwin*)
3969    if test x${CPPFLAGS+set} != xset ; then
3970      CPPFLAGS="-mno-cygwin"
3971    else
3972      case "$CPPFLAGS" in
3973        *-mno-cygwin*)
3974          ;;
3975        *)
3976          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3977          ;;
3978      esac
3979    fi ;;
3980esac
3981
3982# Try if FFLAGS works
3983if test "$F77" != "unavailable" ; then
3984  cat >conftest.$ac_ext <<_ACEOF
3985      program main
3986      integer i
3987      end
3988_ACEOF
3989rm -f conftest.$ac_objext conftest$ac_exeext
3990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991  (eval $ac_link) 2>conftest.er1
3992  ac_status=$?
3993  grep -v '^ *+' conftest.er1 >conftest.err
3994  rm -f conftest.er1
3995  cat conftest.err >&5
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); } &&
3998         { ac_try='test -z "$ac_f77_werror_flag"
3999                         || test ! -s conftest.err'
4000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001  (eval $ac_try) 2>&5
4002  ac_status=$?
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); }; } &&
4005         { ac_try='test -s conftest$ac_exeext'
4006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007  (eval $ac_try) 2>&5
4008  ac_status=$?
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); }; }; then
4011  :
4012else
4013  echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016FFLAGS=
4017fi
4018rm -f conftest.err conftest.$ac_objext \
4019      conftest$ac_exeext conftest.$ac_ext
4020  if test -z "$FFLAGS"; then
4021    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4022echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4023    FFLAGS='-O'
4024    cat >conftest.$ac_ext <<_ACEOF
4025      program main
4026      integer i
4027      end
4028_ACEOF
4029rm -f conftest.$ac_objext conftest$ac_exeext
4030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031  (eval $ac_link) 2>conftest.er1
4032  ac_status=$?
4033  grep -v '^ *+' conftest.er1 >conftest.err
4034  rm -f conftest.er1
4035  cat conftest.err >&5
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } &&
4038         { ac_try='test -z "$ac_f77_werror_flag"
4039                         || test ! -s conftest.err'
4040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041  (eval $ac_try) 2>&5
4042  ac_status=$?
4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044  (exit $ac_status); }; } &&
4045         { ac_try='test -s conftest$ac_exeext'
4046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047  (eval $ac_try) 2>&5
4048  ac_status=$?
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); }; }; then
4051  :
4052else
4053  echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
4056FFLAGS=
4057fi
4058rm -f conftest.err conftest.$ac_objext \
4059      conftest$ac_exeext conftest.$ac_ext
4060    if test -z "$FFLAGS"; then
4061      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4062echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4063    fi
4064  fi
4065fi
4066
4067{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4068echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4069
4070
4071if test x"$MPIF77" = x; then :; else
4072  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4073echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4074  F77="$MPIF77"
4075fi
4076
4077# correct the LD variable if we use the intel fortran compiler in windows
4078case "$F77" in
4079  ifort* | */ifort* | IFORT* | */IFORT*)
4080    case $build in
4081  *-mingw*)
4082    if test "${LD+set}" = set; then :; else
4083      LD=link
4084    fi
4085    ;;
4086 esac
4087 case $enable_doscompile in
4088   msvc)
4089     if test "x${LD+set}" = xset; then :; else
4090       LD=link
4091     fi
4092     ;;
4093 esac
4094
4095    ;;
4096esac
4097
4098# check whether to add flag for static linking against standard libraries to LDFLAGS
4099if test x$use_static_standardlibs != xno ; then
4100  case $build in
4101    *-mingw*)
4102      static_standardlib_flag=-static
4103      ;;
4104    *)
4105      static_standardlib_flag=-static-libgfortran
4106      ;;
4107  esac
4108  case " $LDFLAGS " in
4109    *" $static_standardlib_flag "* ) ;;
4110    *)
4111    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
4112echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
4113    coin_save_LDFLAGS="$LDFLAGS"
4114    LDFLAGS="$LDFLAGS $static_standardlib_flag"
4115    cat >conftest.$ac_ext <<_ACEOF
4116      program main
4117      integer i
4118      end
4119_ACEOF
4120rm -f conftest.$ac_objext conftest$ac_exeext
4121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122  (eval $ac_link) 2>conftest.er1
4123  ac_status=$?
4124  grep -v '^ *+' conftest.er1 >conftest.err
4125  rm -f conftest.er1
4126  cat conftest.err >&5
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); } &&
4129         { ac_try='test -z "$ac_f77_werror_flag"
4130                         || test ! -s conftest.err'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; } &&
4136         { ac_try='test -s conftest$ac_exeext'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; }; then
4142  echo "$as_me:$LINENO: result: yes" >&5
4143echo "${ECHO_T}yes" >&6
4144else
4145  echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148echo "$as_me:$LINENO: result: no" >&5
4149echo "${ECHO_T}no" >&6
4150       LDFLAGS="$coin_save_LDFLAGS"
4151       if test $use_static_standardlibs = yes ; then
4152         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
4153echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
4154   { (exit 1); exit 1; }; }
4155       fi
4156
4157fi
4158rm -f conftest.err conftest.$ac_objext \
4159      conftest$ac_exeext conftest.$ac_ext
4160    ;;
4161  esac
4162fi
4163
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170
4171
4172# Get the linker flags (FLIBS) that are required for linking against this library
4173
4174# get FLIBS
4175ac_ext=f
4176ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4177ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4179echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4180echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4181if test "${ac_cv_prog_f77_v+set}" = set; then
4182  echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184  cat >conftest.$ac_ext <<_ACEOF
4185      program main
4186
4187      end
4188_ACEOF
4189rm -f conftest.$ac_objext
4190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191  (eval $ac_compile) 2>conftest.er1
4192  ac_status=$?
4193  grep -v '^ *+' conftest.er1 >conftest.err
4194  rm -f conftest.er1
4195  cat conftest.err >&5
4196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197  (exit $ac_status); } &&
4198         { ac_try='test -z "$ac_f77_werror_flag"
4199                         || test ! -s conftest.err'
4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201  (eval $ac_try) 2>&5
4202  ac_status=$?
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; } &&
4205         { ac_try='test -s conftest.$ac_objext'
4206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207  (eval $ac_try) 2>&5
4208  ac_status=$?
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); }; }; then
4211  ac_cv_prog_f77_v=
4212# Try some options frequently used verbose output
4213for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4214  cat >conftest.$ac_ext <<_ACEOF
4215      program main
4216
4217      end
4218_ACEOF
4219
4220# Compile and link our simple test program by passing a flag (argument
4221# 1 to this macro) to the Fortran compiler in order to get
4222# "verbose" output that we can then parse for the Fortran linker
4223# flags.
4224ac_save_FFLAGS=$FFLAGS
4225FFLAGS="$FFLAGS $ac_verb"
4226(eval echo $as_me:4226: \"$ac_link\") >&5
4227ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4228echo "$ac_f77_v_output" >&5
4229FFLAGS=$ac_save_FFLAGS
4230
4231rm -f conftest*
4232
4233# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4234# /foo, /bar, and /baz are search directories for the Fortran linker.
4235# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4236ac_f77_v_output="`echo $ac_f77_v_output |
4237        grep 'LPATH is:' |
4238        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4239
4240case $ac_f77_v_output in
4241  # If we are using xlf then replace all the commas with spaces.
4242  *xlfentry*)
4243    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4244
4245  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4246  # $LIBS confuse us, and the libraries appear later in the output anyway).
4247  *mGLOB_options_string*)
4248    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4249
4250  # If we are using Cray Fortran then delete quotes.
4251  # Use "\"" instead of '"' for font-lock-mode.
4252  # FIXME: a more general fix for quoted arguments with spaces?
4253  *cft90*)
4254    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4255esac
4256
4257
4258  # look for -l* and *.a constructs in the output
4259  for ac_arg in $ac_f77_v_output; do
4260     case $ac_arg in
4261        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4262          ac_cv_prog_f77_v=$ac_verb
4263          break 2 ;;
4264     esac
4265  done
4266done
4267if test -z "$ac_cv_prog_f77_v"; then
4268   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4269echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4270fi
4271else
4272  echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4276echo "$as_me: WARNING: compilation failed" >&2;}
4277fi
4278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279
4280fi
4281echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4282echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4283echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4284echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4285if test "${ac_cv_f77_libs+set}" = set; then
4286  echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288  if test "x$FLIBS" != "x"; then
4289  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4290else
4291
4292cat >conftest.$ac_ext <<_ACEOF
4293      program main
4294
4295      end
4296_ACEOF
4297
4298# Compile and link our simple test program by passing a flag (argument
4299# 1 to this macro) to the Fortran compiler in order to get
4300# "verbose" output that we can then parse for the Fortran linker
4301# flags.
4302ac_save_FFLAGS=$FFLAGS
4303FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4304(eval echo $as_me:4304: \"$ac_link\") >&5
4305ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4306echo "$ac_f77_v_output" >&5
4307FFLAGS=$ac_save_FFLAGS
4308
4309rm -f conftest*
4310
4311# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4312# /foo, /bar, and /baz are search directories for the Fortran linker.
4313# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4314ac_f77_v_output="`echo $ac_f77_v_output |
4315        grep 'LPATH is:' |
4316        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4317
4318case $ac_f77_v_output in
4319  # If we are using xlf then replace all the commas with spaces.
4320  *xlfentry*)
4321    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4322
4323  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4324  # $LIBS confuse us, and the libraries appear later in the output anyway).
4325  *mGLOB_options_string*)
4326    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4327
4328  # If we are using Cray Fortran then delete quotes.
4329  # Use "\"" instead of '"' for font-lock-mode.
4330  # FIXME: a more general fix for quoted arguments with spaces?
4331  *cft90*)
4332    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4333esac
4334
4335
4336
4337ac_cv_f77_libs=
4338
4339# Save positional arguments (if any)
4340ac_save_positional="$@"
4341
4342set X $ac_f77_v_output
4343while test $# != 1; do
4344  shift
4345  ac_arg=$1
4346  case $ac_arg in
4347        [\\/]*.a | ?:[\\/]*.a)
4348            ac_exists=false
4349  for ac_i in $ac_cv_f77_libs; do
4350    if test x"$ac_arg" = x"$ac_i"; then
4351      ac_exists=true
4352      break
4353    fi
4354  done
4355
4356  if test x"$ac_exists" = xtrue; then
4357  :
4358else
4359  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4360fi
4361
4362          ;;
4363        -bI:*)
4364            ac_exists=false
4365  for ac_i in $ac_cv_f77_libs; do
4366    if test x"$ac_arg" = x"$ac_i"; then
4367      ac_exists=true
4368      break
4369    fi
4370  done
4371
4372  if test x"$ac_exists" = xtrue; then
4373  :
4374else
4375  if test "$ac_compiler_gnu" = yes; then
4376  for ac_link_opt in $ac_arg; do
4377    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4378  done
4379else
4380  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4381fi
4382fi
4383
4384          ;;
4385          # Ignore these flags.
4386        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4387          ;;
4388        -lkernel32)
4389          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4390          ;;
4391        -[LRuY])
4392          # These flags, when seen by themselves, take an argument.
4393          # We remove the space between option and argument and re-iterate
4394          # unless we find an empty arg or a new option (starting with -)
4395          case $2 in
4396             "" | -*);;
4397             *)
4398                ac_arg="$ac_arg$2"
4399                shift; shift
4400                set X $ac_arg "$@"
4401                ;;
4402          esac
4403          ;;
4404        -YP,*)
4405          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4406              ac_exists=false
4407  for ac_i in $ac_cv_f77_libs; do
4408    if test x"$ac_j" = x"$ac_i"; then
4409      ac_exists=true
4410      break
4411    fi
4412  done
4413
4414  if test x"$ac_exists" = xtrue; then
4415  :
4416else
4417  ac_arg="$ac_arg $ac_j"
4418                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4419fi
4420
4421          done
4422          ;;
4423        -[lLR]*)
4424            ac_exists=false
4425  for ac_i in $ac_cv_f77_libs; do
4426    if test x"$ac_arg" = x"$ac_i"; then
4427      ac_exists=true
4428      break
4429    fi
4430  done
4431
4432  if test x"$ac_exists" = xtrue; then
4433  :
4434else
4435  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4436fi
4437
4438          ;;
4439          # Ignore everything else.
4440  esac
4441done
4442# restore positional arguments
4443set X $ac_save_positional; shift
4444
4445# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4446# then we insist that the "run path" must be an absolute path (i.e. it
4447# must begin with a "/").
4448case `(uname -sr) 2>/dev/null` in
4449   "SunOS 5"*)
4450      ac_ld_run_path=`echo $ac_f77_v_output |
4451                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4452      test "x$ac_ld_run_path" != x &&
4453        if test "$ac_compiler_gnu" = yes; then
4454  for ac_link_opt in $ac_ld_run_path; do
4455    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4456  done
4457else
4458  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4459fi
4460      ;;
4461esac
4462fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4463
4464fi
4465echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4466echo "${ECHO_T}$ac_cv_f77_libs" >&6
4467FLIBS="$ac_cv_f77_libs"
4468
4469
4470ac_ext=c
4471ac_cpp='$CPP $CPPFLAGS'
4472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
4476orig_FLIBS="$FLIBS"
4477
4478# If FLIBS has been set by the user, we just restore its value here
4479if test x"$save_FLIBS" != x; then
4480  FLIBS="$save_FLIBS"
4481else
4482  # This is to correct a missing exclusion in autoconf 2.59
4483  if test x"$FLIBS" != x; then
4484    my_flibs=
4485    for flag in $FLIBS; do
4486      case $flag in
4487        -lcrt*.o) ;;
4488        -lcygwin) ;;
4489               *) my_flibs="$my_flibs $flag" ;;
4490      esac
4491    done
4492    FLIBS="$my_flibs"
4493  fi
4494
4495  case $build in
4496  # The following is a fix to define FLIBS for ifort on Windows
4497  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4498  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4499  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4500  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4501  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4502     *-cygwin* | *-mingw*)
4503       case "$F77" in
4504#         ifort* | */ifort* | IFORT* | */IFORT*)
4505#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4506#           if "$coin_debug_compile" = true ; then
4507#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4508#           else
4509#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4510#           fi
4511#           ;;
4512         compile_f2c*)
4513           FLIBS=`$F77 -FLIBS` ;;
4514       esac;;
4515     *-hp-*)
4516         FLIBS="$FLIBS -lm";;
4517     *-ibm-*)
4518         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4519     *-linux-*)
4520       case "$F77" in
4521         pgf77* | */pgf77* | pgf90* | */pgf90*)
4522# ask linker to go through the archives multiple times
4523# (the Fortran compiler seems to do that automatically...)
4524           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4525       esac
4526  esac
4527  ac_cv_f77_libs="$FLIBS"
4528fi
4529
4530if test "x$orig_FLIBS" != "x$FLIBS" ; then
4531  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4532echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4533fi
4534
4535ac_ext=f
4536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4539
4540echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4541echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4542if test "${ac_cv_f77_dummy_main+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  ac_f77_dm_save_LIBS=$LIBS
4546 LIBS="$LIBS $FLIBS"
4547 ac_fortran_dm_var=F77_DUMMY_MAIN
4548 ac_ext=c
4549ac_cpp='$CPP $CPPFLAGS'
4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554 # First, try linking without a dummy main:
4555 cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561
4562#ifdef F77_DUMMY_MAIN
4563
4564#  ifdef __cplusplus
4565     extern "C"
4566#  endif
4567   int F77_DUMMY_MAIN() { return 1; }
4568
4569#endif
4570int
4571main ()
4572{
4573
4574  ;
4575  return 0;
4576}
4577_ACEOF
4578rm -f conftest.$ac_objext conftest$ac_exeext
4579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4580  (eval $ac_link) 2>conftest.er1
4581  ac_status=$?
4582  grep -v '^ *+' conftest.er1 >conftest.err
4583  rm -f conftest.er1
4584  cat conftest.err >&5
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); } &&
4587         { ac_try='test -z "$ac_c_werror_flag"
4588                         || test ! -s conftest.err'
4589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590  (eval $ac_try) 2>&5
4591  ac_status=$?
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); }; } &&
4594         { ac_try='test -s conftest$ac_exeext'
4595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596  (eval $ac_try) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; }; then
4600  ac_cv_fortran_dummy_main=none
4601else
4602  echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605ac_cv_fortran_dummy_main=unknown
4606fi
4607rm -f conftest.err conftest.$ac_objext \
4608      conftest$ac_exeext conftest.$ac_ext
4609
4610 if test $ac_cv_fortran_dummy_main = unknown; then
4611   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4612     cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h.  */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h.  */
4618#define $ac_fortran_dm_var $ac_func
4619#ifdef F77_DUMMY_MAIN
4620
4621#  ifdef __cplusplus
4622     extern "C"
4623#  endif
4624   int F77_DUMMY_MAIN() { return 1; }
4625
4626#endif
4627int
4628main ()
4629{
4630
4631  ;
4632  return 0;
4633}
4634_ACEOF
4635rm -f conftest.$ac_objext conftest$ac_exeext
4636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637  (eval $ac_link) 2>conftest.er1
4638  ac_status=$?
4639  grep -v '^ *+' conftest.er1 >conftest.err
4640  rm -f conftest.er1
4641  cat conftest.err >&5
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); } &&
4644         { ac_try='test -z "$ac_c_werror_flag"
4645                         || test ! -s conftest.err'
4646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647  (eval $ac_try) 2>&5
4648  ac_status=$?
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; } &&
4651         { ac_try='test -s conftest$ac_exeext'
4652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653  (eval $ac_try) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }; }; then
4657  ac_cv_fortran_dummy_main=$ac_func; break
4658else
4659  echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662fi
4663rm -f conftest.err conftest.$ac_objext \
4664      conftest$ac_exeext conftest.$ac_ext
4665   done
4666 fi
4667 ac_ext=f
4668ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4669ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4671 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4672 rm -f conftest*
4673 LIBS=$ac_f77_dm_save_LIBS
4674
4675fi
4676echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4677echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4678F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4679if test "$F77_DUMMY_MAIN" != unknown; then
4680  if test $F77_DUMMY_MAIN != none; then
4681
4682cat >>confdefs.h <<_ACEOF
4683#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4684_ACEOF
4685
4686  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4687
4688cat >>confdefs.h <<\_ACEOF
4689#define FC_DUMMY_MAIN_EQ_F77 1
4690_ACEOF
4691
4692  fi
4693fi
4694else
4695  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4696See \`config.log' for more details." >&5
4697echo "$as_me: error: linking to Fortran libraries from C fails
4698See \`config.log' for more details." >&2;}
4699   { (exit 1); exit 1; }; }
4700fi
4701
4702
4703ac_ext=f
4704ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4705ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4707
4708ac_ext=f
4709ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4710ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4712echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4713echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4714if test "${ac_cv_f77_mangling+set}" = set; then
4715  echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717  cat >conftest.$ac_ext <<_ACEOF
4718      subroutine foobar()
4719      return
4720      end
4721      subroutine foo_bar()
4722      return
4723      end
4724_ACEOF
4725rm -f conftest.$ac_objext
4726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727  (eval $ac_compile) 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } &&
4734         { ac_try='test -z "$ac_f77_werror_flag"
4735                         || test ! -s conftest.err'
4736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737  (eval $ac_try) 2>&5
4738  ac_status=$?
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); }; } &&
4741         { ac_try='test -s conftest.$ac_objext'
4742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743  (eval $ac_try) 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); }; }; then
4747  mv conftest.$ac_objext cfortran_test.$ac_objext
4748
4749  ac_save_LIBS=$LIBS
4750  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4751
4752  ac_ext=c
4753ac_cpp='$CPP $CPPFLAGS'
4754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757  ac_success=no
4758  for ac_foobar in foobar FOOBAR; do
4759    for ac_underscore in "" "_"; do
4760      ac_func="$ac_foobar$ac_underscore"
4761      cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h.  */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h.  */
4767
4768/* Override any gcc2 internal prototype to avoid an error.  */
4769#ifdef __cplusplus
4770extern "C"
4771#endif
4772/* We use char because int might match the return type of a gcc2
4773   builtin and then its argument prototype would still apply.  */
4774char $ac_func ();
4775#ifdef F77_DUMMY_MAIN
4776
4777#  ifdef __cplusplus
4778     extern "C"
4779#  endif
4780   int F77_DUMMY_MAIN() { return 1; }
4781
4782#endif
4783int
4784main ()
4785{
4786$ac_func ();
4787  ;
4788  return 0;
4789}
4790_ACEOF
4791rm -f conftest.$ac_objext conftest$ac_exeext
4792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793  (eval $ac_link) 2>conftest.er1
4794  ac_status=$?
4795  grep -v '^ *+' conftest.er1 >conftest.err
4796  rm -f conftest.er1
4797  cat conftest.err >&5
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); } &&
4800         { ac_try='test -z "$ac_c_werror_flag"
4801                         || test ! -s conftest.err'
4802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803  (eval $ac_try) 2>&5
4804  ac_status=$?
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); }; } &&
4807         { ac_try='test -s conftest$ac_exeext'
4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809  (eval $ac_try) 2>&5
4810  ac_status=$?
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); }; }; then
4813  ac_success=yes; break 2
4814else
4815  echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818fi
4819rm -f conftest.err conftest.$ac_objext \
4820      conftest$ac_exeext conftest.$ac_ext
4821    done
4822  done
4823  ac_ext=f
4824ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4825ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4827
4828  if test "$ac_success" = "yes"; then
4829     case $ac_foobar in
4830        foobar)
4831           ac_case=lower
4832           ac_foo_bar=foo_bar
4833           ;;
4834        FOOBAR)
4835           ac_case=upper
4836           ac_foo_bar=FOO_BAR
4837           ;;
4838     esac
4839
4840     ac_ext=c
4841ac_cpp='$CPP $CPPFLAGS'
4842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845     ac_success_extra=no
4846     for ac_extra in "" "_"; do
4847        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4848        cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854
4855/* Override any gcc2 internal prototype to avoid an error.  */
4856#ifdef __cplusplus
4857extern "C"
4858#endif
4859/* We use char because int might match the return type of a gcc2
4860   builtin and then its argument prototype would still apply.  */
4861char $ac_func ();
4862#ifdef F77_DUMMY_MAIN
4863
4864#  ifdef __cplusplus
4865     extern "C"
4866#  endif
4867   int F77_DUMMY_MAIN() { return 1; }
4868
4869#endif
4870int
4871main ()
4872{
4873$ac_func ();
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext conftest$ac_exeext
4879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880  (eval $ac_link) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } &&
4887         { ac_try='test -z "$ac_c_werror_flag"
4888                         || test ! -s conftest.err'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; } &&
4894         { ac_try='test -s conftest$ac_exeext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
4900  ac_success_extra=yes; break
4901else
4902  echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905fi
4906rm -f conftest.err conftest.$ac_objext \
4907      conftest$ac_exeext conftest.$ac_ext
4908     done
4909     ac_ext=f
4910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4913
4914     if test "$ac_success_extra" = "yes"; then
4915        ac_cv_f77_mangling="$ac_case case"
4916        if test -z "$ac_underscore"; then
4917           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4918        else
4919           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4920        fi
4921        if test -z "$ac_extra"; then
4922           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4923        else
4924           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4925        fi
4926      else
4927        ac_cv_f77_mangling="unknown"
4928      fi
4929  else
4930     ac_cv_f77_mangling="unknown"
4931  fi
4932
4933  LIBS=$ac_save_LIBS
4934  rm -f cfortran_test* conftest*
4935else
4936  echo "$as_me: failed program was:" >&5
4937sed 's/^/| /' conftest.$ac_ext >&5
4938
4939{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4940See \`config.log' for more details." >&5
4941echo "$as_me: error: cannot compile a simple Fortran program
4942See \`config.log' for more details." >&2;}
4943   { (exit 1); exit 1; }; }
4944fi
4945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946
4947fi
4948echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4949echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4950
4951ac_ext=f
4952ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4953ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4955
4956
4957ac_ext=f
4958ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4959ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4961
4962ac_ext=f
4963ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4964ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4966
4967
4968case $ac_cv_f77_mangling in
4969  "lower case, no underscore, no extra underscore")
4970          cat >>confdefs.h <<\_ACEOF
4971#define F77_FUNC(name,NAME) name
4972_ACEOF
4973
4974          cat >>confdefs.h <<\_ACEOF
4975#define F77_FUNC_(name,NAME) name
4976_ACEOF
4977 ;;
4978  "lower case, no underscore, extra underscore")
4979          cat >>confdefs.h <<\_ACEOF
4980#define F77_FUNC(name,NAME) name
4981_ACEOF
4982
4983          cat >>confdefs.h <<\_ACEOF
4984#define F77_FUNC_(name,NAME) name ## _
4985_ACEOF
4986 ;;
4987  "lower case, underscore, no extra underscore")
4988          cat >>confdefs.h <<\_ACEOF
4989#define F77_FUNC(name,NAME) name ## _
4990_ACEOF
4991
4992          cat >>confdefs.h <<\_ACEOF
4993#define F77_FUNC_(name,NAME) name ## _
4994_ACEOF
4995 ;;
4996  "lower case, underscore, extra underscore")
4997          cat >>confdefs.h <<\_ACEOF
4998#define F77_FUNC(name,NAME) name ## _
4999_ACEOF
5000
5001          cat >>confdefs.h <<\_ACEOF
5002#define F77_FUNC_(name,NAME) name ## __
5003_ACEOF
5004 ;;
5005  "upper case, no underscore, no extra underscore")
5006          cat >>confdefs.h <<\_ACEOF
5007#define F77_FUNC(name,NAME) NAME
5008_ACEOF
5009
5010          cat >>confdefs.h <<\_ACEOF
5011#define F77_FUNC_(name,NAME) NAME
5012_ACEOF
5013 ;;
5014  "upper case, no underscore, extra underscore")
5015          cat >>confdefs.h <<\_ACEOF
5016#define F77_FUNC(name,NAME) NAME
5017_ACEOF
5018
5019          cat >>confdefs.h <<\_ACEOF
5020#define F77_FUNC_(name,NAME) NAME ## _
5021_ACEOF
5022 ;;
5023  "upper case, underscore, no extra underscore")
5024          cat >>confdefs.h <<\_ACEOF
5025#define F77_FUNC(name,NAME) NAME ## _
5026_ACEOF
5027
5028          cat >>confdefs.h <<\_ACEOF
5029#define F77_FUNC_(name,NAME) NAME ## _
5030_ACEOF
5031 ;;
5032  "upper case, underscore, extra underscore")
5033          cat >>confdefs.h <<\_ACEOF
5034#define F77_FUNC(name,NAME) NAME ## _
5035_ACEOF
5036
5037          cat >>confdefs.h <<\_ACEOF
5038#define F77_FUNC_(name,NAME) NAME ## __
5039_ACEOF
5040 ;;
5041  *)
5042          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5043echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5044          ;;
5045esac
5046
5047ac_ext=f
5048ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5049ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5051
5052ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057
5058
5059
5060
5061# Check for Blas
5062
5063
5064# Check whether --enable-pkg-config or --disable-pkg-config was given.
5065if test "${enable_pkg_config+set}" = set; then
5066  enableval="$enable_pkg_config"
5067  use_pkgconfig="$enableval"
5068else
5069  if test x$coin_cc_is_cl = xtrue; then
5070     use_pkgconfig=no
5071   else
5072     use_pkgconfig=yes
5073   fi
5074fi;
5075
5076if test $use_pkgconfig = yes ; then
5077  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5078    if test -n "$ac_tool_prefix"; then
5079  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5080set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5081echo "$as_me:$LINENO: checking for $ac_word" >&5
5082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
5084  echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086  if test -n "$PKG_CONFIG"; then
5087  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5088else
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092  IFS=$as_save_IFS
5093  test -z "$as_dir" && as_dir=.
5094  for ac_exec_ext in '' $ac_executable_extensions; do
5095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098    break 2
5099  fi
5100done
5101done
5102
5103fi
5104fi
5105PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5106if test -n "$PKG_CONFIG"; then
5107  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5108echo "${ECHO_T}$PKG_CONFIG" >&6
5109else
5110  echo "$as_me:$LINENO: result: no" >&5
5111echo "${ECHO_T}no" >&6
5112fi
5113
5114fi
5115if test -z "$ac_cv_prog_PKG_CONFIG"; then
5116  ac_ct_PKG_CONFIG=$PKG_CONFIG
5117  # Extract the first word of "pkg-config", so it can be a program name with args.
5118set dummy pkg-config; ac_word=$2
5119echo "$as_me:$LINENO: checking for $ac_word" >&5
5120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5121if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  if test -n "$ac_ct_PKG_CONFIG"; then
5125  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  test -z "$as_dir" && as_dir=.
5132  for ac_exec_ext in '' $ac_executable_extensions; do
5133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
5135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139done
5140
5141fi
5142fi
5143ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
5144if test -n "$ac_ct_PKG_CONFIG"; then
5145  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
5146echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
5147else
5148  echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
5150fi
5151
5152  PKG_CONFIG=$ac_ct_PKG_CONFIG
5153else
5154  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5155fi
5156
5157  fi
5158  if test -n "$PKG_CONFIG"; then
5159    _pkg_min_version=0.16.0
5160    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5161echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
5162    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5163      echo "$as_me:$LINENO: result: yes" >&5
5164echo "${ECHO_T}yes" >&6
5165    else
5166      echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168      PKG_CONFIG=""
5169    fi
5170  fi
5171
5172  # check if pkg-config supports the short-errors flag
5173  if test -n "$PKG_CONFIG" && \
5174    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5175    pkg_short_errors=" --short-errors "
5176  else
5177    pkg_short_errors=""
5178  fi
5179fi
5180
5181
5182
5183if test -n "$PKG_CONFIG"; then
5184  COIN_HAS_PKGCONFIG_TRUE=
5185  COIN_HAS_PKGCONFIG_FALSE='#'
5186else
5187  COIN_HAS_PKGCONFIG_TRUE='#'
5188  COIN_HAS_PKGCONFIG_FALSE=
5189fi
5190
5191
5192
5193# assemble pkg-config search path for installed projects
5194COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
5195
5196# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
5197# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
5198# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
5199if test "x${prefix}" = xNONE ; then
5200  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5201else
5202  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5203fi
5204
5205
5206# Check whether --with-coin-instdir or --without-coin-instdir was given.
5207if test "${with_coin_instdir+set}" = set; then
5208  withval="$with_coin_instdir"
5209  if test -d "$withval"; then : ; else
5210     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
5211echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
5212   { (exit 1); exit 1; }; }
5213   fi
5214   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5215
5216fi;
5217
5218
5219
5220# assemble additional pkg-config search paths for uninstalled projects
5221if test x$coin_projectdir = xyes ; then
5222  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
5223  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
5224  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
5225  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
5226  COIN_PKG_CONFIG_PATH_UNINSTALLED=
5227  if test -e ../coin_subdirs.txt ; then
5228    for i in `cat ../coin_subdirs.txt` ; do
5229      if test -d ../$i ; then
5230        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5231      fi
5232      if test -d ../$i/pkgconfig ; then
5233        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5234      fi
5235    done
5236  fi
5237
5238  if test -e ../../coin_subdirs.txt ; then
5239    for i in `cat ../../coin_subdirs.txt` ; do
5240      if test -d ../../$i ; then
5241        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5242      fi
5243      if test -d ../../$i/pkgconfig ; then
5244        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5245      fi
5246    done
5247  fi
5248
5249
5250fi
5251
5252if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5253  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
5254echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
5255fi
5256
5257
5258
5259
5260# Check whether --with-blas or --without-blas was given.
5261if test "${with_blas+set}" = set; then
5262  withval="$with_blas"
5263  use_blas="$withval"
5264else
5265  use_blas=
5266fi;
5267
5268# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
5269# preference
5270
5271# Check whether --with-blas-lib or --without-blas-lib was given.
5272if test "${with_blas_lib+set}" = set; then
5273  withval="$with_blas_lib"
5274  use_blas=BUILD
5275fi;
5276
5277# Check if user supplied option makes sense
5278if test x"$use_blas" != x; then
5279  if test "$use_blas" = "BUILD"; then
5280    # we come to this later
5281    :
5282  elif test "$use_blas" != "no"; then
5283    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
5284echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
5285    coin_need_flibs=no
5286    coin_save_LIBS="$LIBS"
5287    LIBS="$use_blas $LIBS"
5288    case $ac_ext in
5289  f)
5290    cat >conftest.$ac_ext <<_ACEOF
5291/* confdefs.h.  */
5292_ACEOF
5293cat confdefs.h >>conftest.$ac_ext
5294cat >>conftest.$ac_ext <<_ACEOF
5295/* end confdefs.h.  */
5296
5297#ifdef F77_DUMMY_MAIN
5298
5299#  ifdef __cplusplus
5300     extern "C"
5301#  endif
5302   int F77_DUMMY_MAIN() { return 1; }
5303
5304#endif
5305int
5306main ()
5307{
5308      call daxpy
5309  ;
5310  return 0;
5311}
5312_ACEOF
5313rm -f conftest.$ac_objext conftest$ac_exeext
5314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315  (eval $ac_link) 2>conftest.er1
5316  ac_status=$?
5317  grep -v '^ *+' conftest.er1 >conftest.err
5318  rm -f conftest.er1
5319  cat conftest.err >&5
5320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321  (exit $ac_status); } &&
5322         { ac_try='test -z "$ac_c_werror_flag"
5323                         || test ! -s conftest.err'
5324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325  (eval $ac_try) 2>&5
5326  ac_status=$?
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); }; } &&
5329         { ac_try='test -s conftest$ac_exeext'
5330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331  (eval $ac_try) 2>&5
5332  ac_status=$?
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); }; }; then
5335  if test $coin_need_flibs = yes ; then
5336                         use_blas="$use_blas $FLIBS"
5337                       fi
5338                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5339echo "${ECHO_T}yes: $use_blas" >&6
5340else
5341  echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
5344echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5347echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5348   { (exit 1); exit 1; }; }
5349fi
5350rm -f conftest.err conftest.$ac_objext \
5351      conftest$ac_exeext conftest.$ac_ext
5352    ;;
5353  c)
5354    ac_ext=f
5355ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5356ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5358case $ac_cv_f77_mangling in
5359  upper*) ac_val="DAXPY" ;;
5360  lower*) ac_val="daxpy" ;;
5361  *)      ac_val="unknown" ;;
5362esac
5363case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5364
5365cfuncdaxpy="$ac_val"
5366
5367ac_ext=c
5368ac_cpp='$CPP $CPPFLAGS'
5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373    if test x"$coin_need_flibs" = xyes; then
5374      flink_try=no;
5375    else
5376      cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h.  */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h.  */
5382void $cfuncdaxpy();
5383#ifdef F77_DUMMY_MAIN
5384
5385#  ifdef __cplusplus
5386     extern "C"
5387#  endif
5388   int F77_DUMMY_MAIN() { return 1; }
5389
5390#endif
5391int
5392main ()
5393{
5394$cfuncdaxpy()
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399rm -f conftest.$ac_objext conftest$ac_exeext
5400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401  (eval $ac_link) 2>conftest.er1
5402  ac_status=$?
5403  grep -v '^ *+' conftest.er1 >conftest.err
5404  rm -f conftest.er1
5405  cat conftest.err >&5
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); } &&
5408         { ac_try='test -z "$ac_c_werror_flag"
5409                         || test ! -s conftest.err'
5410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411  (eval $ac_try) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; } &&
5415         { ac_try='test -s conftest$ac_exeext'
5416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417  (eval $ac_try) 2>&5
5418  ac_status=$?
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); }; }; then
5421  flink_try=yes
5422else
5423  echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426flink_try=no
5427fi
5428rm -f conftest.err conftest.$ac_objext \
5429      conftest$ac_exeext conftest.$ac_ext
5430    fi
5431    if test $flink_try = yes; then
5432      if test $coin_need_flibs = yes ; then
5433                         use_blas="$use_blas $FLIBS"
5434                       fi
5435                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5436echo "${ECHO_T}yes: $use_blas" >&6
5437    else
5438      if test x"$FLIBS" != x; then
5439        flink_save_libs="$LIBS"
5440        LIBS="$LIBS $FLIBS"
5441        cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447void $cfuncdaxpy();
5448#ifdef F77_DUMMY_MAIN
5449
5450#  ifdef __cplusplus
5451     extern "C"
5452#  endif
5453   int F77_DUMMY_MAIN() { return 1; }
5454
5455#endif
5456int
5457main ()
5458{
5459$cfuncdaxpy()
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464rm -f conftest.$ac_objext conftest$ac_exeext
5465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466  (eval $ac_link) 2>conftest.er1
5467  ac_status=$?
5468  grep -v '^ *+' conftest.er1 >conftest.err
5469  rm -f conftest.er1
5470  cat conftest.err >&5
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); } &&
5473         { ac_try='test -z "$ac_c_werror_flag"
5474                         || test ! -s conftest.err'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; } &&
5480         { ac_try='test -s conftest$ac_exeext'
5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482  (eval $ac_try) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }; }; then
5486  LIBS="$flink_save_libs"
5487                     coin_need_flibs=yes
5488                     if test $coin_need_flibs = yes ; then
5489                         use_blas="$use_blas $FLIBS"
5490                       fi
5491                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5492echo "${ECHO_T}yes: $use_blas" >&6
5493
5494else
5495  echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498LIBS="$flink_save_libs"
5499                     echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5502echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5503   { (exit 1); exit 1; }; }
5504fi
5505rm -f conftest.err conftest.$ac_objext \
5506      conftest$ac_exeext conftest.$ac_ext
5507      else
5508        echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5511echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5512   { (exit 1); exit 1; }; }
5513      fi
5514    fi
5515    ;;
5516  cc|cpp)
5517    ac_ext=f
5518ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5519ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5521case $ac_cv_f77_mangling in
5522  upper*) ac_val="DAXPY" ;;
5523  lower*) ac_val="daxpy" ;;
5524  *)      ac_val="unknown" ;;
5525esac
5526case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5527
5528cfuncdaxpy="$ac_val"
5529
5530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
5536    if test x"$coin_need_flibs" = xyes; then
5537      flink_try=no;
5538    else
5539      cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h.  */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h.  */
5545extern "C" {void $cfuncdaxpy();}
5546#ifdef F77_DUMMY_MAIN
5547
5548#  ifdef __cplusplus
5549     extern "C"
5550#  endif
5551   int F77_DUMMY_MAIN() { return 1; }
5552
5553#endif
5554int
5555main ()
5556{
5557$cfuncdaxpy()
5558  ;
5559  return 0;
5560}
5561_ACEOF
5562rm -f conftest.$ac_objext conftest$ac_exeext
5563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5564  (eval $ac_link) 2>conftest.er1
5565  ac_status=$?
5566  grep -v '^ *+' conftest.er1 >conftest.err
5567  rm -f conftest.er1
5568  cat conftest.err >&5
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); } &&
5571         { ac_try='test -z "$ac_c_werror_flag"
5572                         || test ! -s conftest.err'
5573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574  (eval $ac_try) 2>&5
5575  ac_status=$?
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); }; } &&
5578         { ac_try='test -s conftest$ac_exeext'
5579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580  (eval $ac_try) 2>&5
5581  ac_status=$?
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); }; }; then
5584  flink_try=yes
5585else
5586  echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589flink_try=no
5590fi
5591rm -f conftest.err conftest.$ac_objext \
5592      conftest$ac_exeext conftest.$ac_ext
5593    fi
5594    if test $flink_try = yes; then
5595      if test $coin_need_flibs = yes ; then
5596                         use_blas="$use_blas $FLIBS"
5597                       fi
5598                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5599echo "${ECHO_T}yes: $use_blas" >&6
5600    else
5601      if test x"$FLIBS" != x; then
5602        flink_save_libs="$LIBS"
5603        LIBS="$LIBS $FLIBS"
5604        cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610extern "C" {void $cfuncdaxpy();}
5611#ifdef F77_DUMMY_MAIN
5612
5613#  ifdef __cplusplus
5614     extern "C"
5615#  endif
5616   int F77_DUMMY_MAIN() { return 1; }
5617
5618#endif
5619int
5620main ()
5621{
5622$cfuncdaxpy()
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627rm -f conftest.$ac_objext conftest$ac_exeext
5628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629  (eval $ac_link) 2>conftest.er1
5630  ac_status=$?
5631  grep -v '^ *+' conftest.er1 >conftest.err
5632  rm -f conftest.er1
5633  cat conftest.err >&5
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); } &&
5636         { ac_try='test -z "$ac_c_werror_flag"
5637                         || test ! -s conftest.err'
5638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639  (eval $ac_try) 2>&5
5640  ac_status=$?
5641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642  (exit $ac_status); }; } &&
5643         { ac_try='test -s conftest$ac_exeext'
5644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645  (eval $ac_try) 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); }; }; then
5649  LIBS="$flink_save_libs"
5650                     coin_need_flibs=yes
5651                     if test $coin_need_flibs = yes ; then
5652                         use_blas="$use_blas $FLIBS"
5653                       fi
5654                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5655echo "${ECHO_T}yes: $use_blas" >&6
5656
5657else
5658  echo "$as_me: failed program was:" >&5
5659sed 's/^/| /' conftest.$ac_ext >&5
5660
5661LIBS="$flink_save_libs"
5662                     echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5665echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5666   { (exit 1); exit 1; }; }
5667fi
5668rm -f conftest.err conftest.$ac_objext \
5669      conftest$ac_exeext conftest.$ac_ext
5670      else
5671        echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5674echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5675   { (exit 1); exit 1; }; }
5676      fi
5677    fi
5678    ;;
5679esac
5680
5681    LIBS="$coin_save_LIBS"
5682  fi
5683else
5684# Try to autodetect the library for blas based on build system
5685  #AC_MSG_CHECKING([default locations for BLAS])
5686  skip_lblas_check=no
5687  case $build in
5688    *-sgi-*)
5689      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5690echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5691      coin_need_flibs=no
5692      coin_save_LIBS="$LIBS"
5693      LIBS="-lcomplib.sgimath $LIBS"
5694      case $ac_ext in
5695  f)
5696    cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h.  */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h.  */
5702
5703#ifdef F77_DUMMY_MAIN
5704
5705#  ifdef __cplusplus
5706     extern "C"
5707#  endif
5708   int F77_DUMMY_MAIN() { return 1; }
5709
5710#endif
5711int
5712main ()
5713{
5714      call daxpy
5715  ;
5716  return 0;
5717}
5718_ACEOF
5719rm -f conftest.$ac_objext conftest$ac_exeext
5720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721  (eval $ac_link) 2>conftest.er1
5722  ac_status=$?
5723  grep -v '^ *+' conftest.er1 >conftest.err
5724  rm -f conftest.er1
5725  cat conftest.err >&5
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); } &&
5728         { ac_try='test -z "$ac_c_werror_flag"
5729                         || test ! -s conftest.err'
5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731  (eval $ac_try) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; } &&
5735         { ac_try='test -s conftest$ac_exeext'
5736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737  (eval $ac_try) 2>&5
5738  ac_status=$?
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); }; }; then
5741  use_blas="-lcomplib.sgimath"
5742                         if test $coin_need_flibs = yes ; then
5743                           use_blas="$use_blas $FLIBS"
5744                         fi
5745                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5746echo "${ECHO_T}yes: $use_blas" >&6
5747
5748else
5749  echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754fi
5755rm -f conftest.err conftest.$ac_objext \
5756      conftest$ac_exeext conftest.$ac_ext
5757    ;;
5758  c)
5759    ac_ext=f
5760ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5761ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5763case $ac_cv_f77_mangling in
5764  upper*) ac_val="DAXPY" ;;
5765  lower*) ac_val="daxpy" ;;
5766  *)      ac_val="unknown" ;;
5767esac
5768case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5769
5770cfuncdaxpy="$ac_val"
5771
5772ac_ext=c
5773ac_cpp='$CPP $CPPFLAGS'
5774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776ac_compiler_gnu=$ac_cv_c_compiler_gnu
5777
5778    if test x"$coin_need_flibs" = xyes; then
5779      flink_try=no;
5780    else
5781      cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h.  */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h.  */
5787void $cfuncdaxpy();
5788#ifdef F77_DUMMY_MAIN
5789
5790#  ifdef __cplusplus
5791     extern "C"
5792#  endif
5793   int F77_DUMMY_MAIN() { return 1; }
5794
5795#endif
5796int
5797main ()
5798{
5799$cfuncdaxpy()
5800  ;
5801  return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext conftest$ac_exeext
5805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806  (eval $ac_link) 2>conftest.er1
5807  ac_status=$?
5808  grep -v '^ *+' conftest.er1 >conftest.err
5809  rm -f conftest.er1
5810  cat conftest.err >&5
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); } &&
5813         { ac_try='test -z "$ac_c_werror_flag"
5814                         || test ! -s conftest.err'
5815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816  (eval $ac_try) 2>&5
5817  ac_status=$?
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); }; } &&
5820         { ac_try='test -s conftest$ac_exeext'
5821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822  (eval $ac_try) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }; }; then
5826  flink_try=yes
5827else
5828  echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831flink_try=no
5832fi
5833rm -f conftest.err conftest.$ac_objext \
5834      conftest$ac_exeext conftest.$ac_ext
5835    fi
5836    if test $flink_try = yes; then
5837      use_blas="-lcomplib.sgimath"
5838                         if test $coin_need_flibs = yes ; then
5839                           use_blas="$use_blas $FLIBS"
5840                         fi
5841                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5842echo "${ECHO_T}yes: $use_blas" >&6
5843
5844    else
5845      if test x"$FLIBS" != x; then
5846        flink_save_libs="$LIBS"
5847        LIBS="$LIBS $FLIBS"
5848        cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h.  */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h.  */
5854void $cfuncdaxpy();
5855#ifdef F77_DUMMY_MAIN
5856
5857#  ifdef __cplusplus
5858     extern "C"
5859#  endif
5860   int F77_DUMMY_MAIN() { return 1; }
5861
5862#endif
5863int
5864main ()
5865{
5866$cfuncdaxpy()
5867  ;
5868  return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext conftest$ac_exeext
5872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5873  (eval $ac_link) 2>conftest.er1
5874  ac_status=$?
5875  grep -v '^ *+' conftest.er1 >conftest.err
5876  rm -f conftest.er1
5877  cat conftest.err >&5
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } &&
5880         { ac_try='test -z "$ac_c_werror_flag"
5881                         || test ! -s conftest.err'
5882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883  (eval $ac_try) 2>&5
5884  ac_status=$?
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); }; } &&
5887         { ac_try='test -s conftest$ac_exeext'
5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889  (eval $ac_try) 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; }; then
5893  LIBS="$flink_save_libs"
5894                     coin_need_flibs=yes
5895                     use_blas="-lcomplib.sgimath"
5896                         if test $coin_need_flibs = yes ; then
5897                           use_blas="$use_blas $FLIBS"
5898                         fi
5899                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5900echo "${ECHO_T}yes: $use_blas" >&6
5901
5902
5903else
5904  echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907LIBS="$flink_save_libs"
5908                     echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
5910fi
5911rm -f conftest.err conftest.$ac_objext \
5912      conftest$ac_exeext conftest.$ac_ext
5913      else
5914        echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916      fi
5917    fi
5918    ;;
5919  cc|cpp)
5920    ac_ext=f
5921ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5922ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5924case $ac_cv_f77_mangling in
5925  upper*) ac_val="DAXPY" ;;
5926  lower*) ac_val="daxpy" ;;
5927  *)      ac_val="unknown" ;;
5928esac
5929case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5930
5931cfuncdaxpy="$ac_val"
5932
5933ac_ext=c
5934ac_cpp='$CPP $CPPFLAGS'
5935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938
5939    if test x"$coin_need_flibs" = xyes; then
5940      flink_try=no;
5941    else
5942      cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h.  */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h.  */
5948extern "C" {void $cfuncdaxpy();}
5949#ifdef F77_DUMMY_MAIN
5950
5951#  ifdef __cplusplus
5952     extern "C"
5953#  endif
5954   int F77_DUMMY_MAIN() { return 1; }
5955
5956#endif
5957int
5958main ()
5959{
5960$cfuncdaxpy()
5961  ;
5962  return 0;
5963}
5964_ACEOF
5965rm -f conftest.$ac_objext conftest$ac_exeext
5966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967  (eval $ac_link) 2>conftest.er1
5968  ac_status=$?
5969  grep -v '^ *+' conftest.er1 >conftest.err
5970  rm -f conftest.er1
5971  cat conftest.err >&5
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); } &&
5974         { ac_try='test -z "$ac_c_werror_flag"
5975                         || test ! -s conftest.err'
5976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977  (eval $ac_try) 2>&5
5978  ac_status=$?
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); }; } &&
5981         { ac_try='test -s conftest$ac_exeext'
5982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983  (eval $ac_try) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; }; then
5987  flink_try=yes
5988else
5989  echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992flink_try=no
5993fi
5994rm -f conftest.err conftest.$ac_objext \
5995      conftest$ac_exeext conftest.$ac_ext
5996    fi
5997    if test $flink_try = yes; then
5998      use_blas="-lcomplib.sgimath"
5999                         if test $coin_need_flibs = yes ; then
6000                           use_blas="$use_blas $FLIBS"
6001                         fi
6002                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6003echo "${ECHO_T}yes: $use_blas" >&6
6004
6005    else
6006      if test x"$FLIBS" != x; then
6007        flink_save_libs="$LIBS"
6008        LIBS="$LIBS $FLIBS"
6009        cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h.  */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h.  */
6015extern "C" {void $cfuncdaxpy();}
6016#ifdef F77_DUMMY_MAIN
6017
6018#  ifdef __cplusplus
6019     extern "C"
6020#  endif
6021   int F77_DUMMY_MAIN() { return 1; }
6022
6023#endif
6024int
6025main ()
6026{
6027$cfuncdaxpy()
6028  ;
6029  return 0;
6030}
6031_ACEOF
6032rm -f conftest.$ac_objext conftest$ac_exeext
6033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034  (eval $ac_link) 2>conftest.er1
6035  ac_status=$?
6036  grep -v '^ *+' conftest.er1 >conftest.err
6037  rm -f conftest.er1
6038  cat conftest.err >&5
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); } &&
6041         { ac_try='test -z "$ac_c_werror_flag"
6042                         || test ! -s conftest.err'
6043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044  (eval $ac_try) 2>&5
6045  ac_status=$?
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); }; } &&
6048         { ac_try='test -s conftest$ac_exeext'
6049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050  (eval $ac_try) 2>&5
6051  ac_status=$?
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); }; }; then
6054  LIBS="$flink_save_libs"
6055                     coin_need_flibs=yes
6056                     use_blas="-lcomplib.sgimath"
6057                         if test $coin_need_flibs = yes ; then
6058                           use_blas="$use_blas $FLIBS"
6059                         fi
6060                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6061echo "${ECHO_T}yes: $use_blas" >&6
6062
6063
6064else
6065  echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068LIBS="$flink_save_libs"
6069                     echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071fi
6072rm -f conftest.err conftest.$ac_objext \
6073      conftest$ac_exeext conftest.$ac_ext
6074      else
6075        echo "$as_me:$LINENO: result: no" >&5
6076echo "${ECHO_T}no" >&6
6077      fi
6078    fi
6079    ;;
6080esac
6081
6082      LIBS="$coin_save_LIBS"
6083      ;;
6084
6085# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
6086# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
6087# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
6088# that CC and cc will understand -library in Studio 13. The main extra
6089# function of -xlic_lib and -library is to arrange for the Fortran run-time
6090# libraries to be linked for C++ and C. We can arrange that explicitly.
6091    *-*-solaris*)
6092      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
6093echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
6094      coin_need_flibs=no
6095      coin_save_LIBS="$LIBS"
6096      LIBS="-lsunperf $FLIBS $LIBS"
6097      case $ac_ext in
6098  f)
6099    cat >conftest.$ac_ext <<_ACEOF
6100/* confdefs.h.  */
6101_ACEOF
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
6104/* end confdefs.h.  */
6105
6106#ifdef F77_DUMMY_MAIN
6107
6108#  ifdef __cplusplus
6109     extern "C"
6110#  endif
6111   int F77_DUMMY_MAIN() { return 1; }
6112
6113#endif
6114int
6115main ()
6116{
6117      call daxpy
6118  ;
6119  return 0;
6120}
6121_ACEOF
6122rm -f conftest.$ac_objext conftest$ac_exeext
6123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124  (eval $ac_link) 2>conftest.er1
6125  ac_status=$?
6126  grep -v '^ *+' conftest.er1 >conftest.err
6127  rm -f conftest.er1
6128  cat conftest.err >&5
6129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130  (exit $ac_status); } &&
6131         { ac_try='test -z "$ac_c_werror_flag"
6132                         || test ! -s conftest.err'
6133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134  (eval $ac_try) 2>&5
6135  ac_status=$?
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); }; } &&
6138         { ac_try='test -s conftest$ac_exeext'
6139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140  (eval $ac_try) 2>&5
6141  ac_status=$?
6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143  (exit $ac_status); }; }; then
6144  use_blas='-lsunperf'
6145                         if test $coin_need_flibs = yes ; then
6146                           use_blas="$use_blas $FLIBS"
6147                         fi
6148                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6149echo "${ECHO_T}yes: $use_blas" >&6
6150
6151else
6152  echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6
6157fi
6158rm -f conftest.err conftest.$ac_objext \
6159      conftest$ac_exeext conftest.$ac_ext
6160    ;;
6161  c)
6162    ac_ext=f
6163ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6164ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6166case $ac_cv_f77_mangling in
6167  upper*) ac_val="DAXPY" ;;
6168  lower*) ac_val="daxpy" ;;
6169  *)      ac_val="unknown" ;;
6170esac
6171case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6172
6173cfuncdaxpy="$ac_val"
6174
6175ac_ext=c
6176ac_cpp='$CPP $CPPFLAGS'
6177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180
6181    if test x"$coin_need_flibs" = xyes; then
6182      flink_try=no;
6183    else
6184      cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h.  */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h.  */
6190void $cfuncdaxpy();
6191#ifdef F77_DUMMY_MAIN
6192
6193#  ifdef __cplusplus
6194     extern "C"
6195#  endif
6196   int F77_DUMMY_MAIN() { return 1; }
6197
6198#endif
6199int
6200main ()
6201{
6202$cfuncdaxpy()
6203  ;
6204  return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209  (eval $ac_link) 2>conftest.er1
6210  ac_status=$?
6211  grep -v '^ *+' conftest.er1 >conftest.err
6212  rm -f conftest.er1
6213  cat conftest.err >&5
6214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); } &&
6216         { ac_try='test -z "$ac_c_werror_flag"
6217                         || test ! -s conftest.err'
6218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219  (eval $ac_try) 2>&5
6220  ac_status=$?
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); }; } &&
6223         { ac_try='test -s conftest$ac_exeext'
6224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225  (eval $ac_try) 2>&5
6226  ac_status=$?
6227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228  (exit $ac_status); }; }; then
6229  flink_try=yes
6230else
6231  echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234flink_try=no
6235fi
6236rm -f conftest.err conftest.$ac_objext \
6237      conftest$ac_exeext conftest.$ac_ext
6238    fi
6239    if test $flink_try = yes; then
6240      use_blas='-lsunperf'
6241                         if test $coin_need_flibs = yes ; then
6242                           use_blas="$use_blas $FLIBS"
6243                         fi
6244                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6245echo "${ECHO_T}yes: $use_blas" >&6
6246
6247    else
6248      if test x"$FLIBS" != x; then
6249        flink_save_libs="$LIBS"
6250        LIBS="$LIBS $FLIBS"
6251        cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h.  */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h.  */
6257void $cfuncdaxpy();
6258#ifdef F77_DUMMY_MAIN
6259
6260#  ifdef __cplusplus
6261     extern "C"
6262#  endif
6263   int F77_DUMMY_MAIN() { return 1; }
6264
6265#endif
6266int
6267main ()
6268{
6269$cfuncdaxpy()
6270  ;
6271  return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext conftest$ac_exeext
6275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276  (eval $ac_link) 2>conftest.er1
6277  ac_status=$?
6278  grep -v '^ *+' conftest.er1 >conftest.err
6279  rm -f conftest.er1
6280  cat conftest.err >&5
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } &&
6283         { ac_try='test -z "$ac_c_werror_flag"
6284                         || test ! -s conftest.err'
6285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; } &&
6290         { ac_try='test -s conftest$ac_exeext'
6291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292  (eval $ac_try) 2>&5
6293  ac_status=$?
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); }; }; then
6296  LIBS="$flink_save_libs"
6297                     coin_need_flibs=yes
6298                     use_blas='-lsunperf'
6299                         if test $coin_need_flibs = yes ; then
6300                           use_blas="$use_blas $FLIBS"
6301                         fi
6302                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6303echo "${ECHO_T}yes: $use_blas" >&6
6304
6305
6306else
6307  echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310LIBS="$flink_save_libs"
6311                     echo "$as_me:$LINENO: result: no" >&5
6312echo "${ECHO_T}no" >&6
6313fi
6314rm -f conftest.err conftest.$ac_objext \
6315      conftest$ac_exeext conftest.$ac_ext
6316      else
6317        echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
6319      fi
6320    fi
6321    ;;
6322  cc|cpp)
6323    ac_ext=f
6324ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6325ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6327case $ac_cv_f77_mangling in
6328  upper*) ac_val="DAXPY" ;;
6329  lower*) ac_val="daxpy" ;;
6330  *)      ac_val="unknown" ;;
6331esac
6332case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6333
6334cfuncdaxpy="$ac_val"
6335
6336ac_ext=c
6337ac_cpp='$CPP $CPPFLAGS'
6338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342    if test x"$coin_need_flibs" = xyes; then
6343      flink_try=no;
6344    else
6345      cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h.  */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h.  */
6351extern "C" {void $cfuncdaxpy();}
6352#ifdef F77_DUMMY_MAIN
6353
6354#  ifdef __cplusplus
6355     extern "C"
6356#  endif
6357   int F77_DUMMY_MAIN() { return 1; }
6358
6359#endif
6360int
6361main ()
6362{
6363$cfuncdaxpy()
6364  ;
6365  return 0;
6366}
6367_ACEOF
6368rm -f conftest.$ac_objext conftest$ac_exeext
6369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370  (eval $ac_link) 2>conftest.er1
6371  ac_status=$?
6372  grep -v '^ *+' conftest.er1 >conftest.err
6373  rm -f conftest.er1
6374  cat conftest.err >&5
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); } &&
6377         { ac_try='test -z "$ac_c_werror_flag"
6378                         || test ! -s conftest.err'
6379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380  (eval $ac_try) 2>&5
6381  ac_status=$?
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); }; } &&
6384         { ac_try='test -s conftest$ac_exeext'
6385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386  (eval $ac_try) 2>&5
6387  ac_status=$?
6388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); }; }; then
6390  flink_try=yes
6391else
6392  echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
6395flink_try=no
6396fi
6397rm -f conftest.err conftest.$ac_objext \
6398      conftest$ac_exeext conftest.$ac_ext
6399    fi
6400    if test $flink_try = yes; then
6401      use_blas='-lsunperf'
6402                         if test $coin_need_flibs = yes ; then
6403                           use_blas="$use_blas $FLIBS"
6404                         fi
6405                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6406echo "${ECHO_T}yes: $use_blas" >&6
6407
6408    else
6409      if test x"$FLIBS" != x; then
6410        flink_save_libs="$LIBS"
6411        LIBS="$LIBS $FLIBS"
6412        cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418extern "C" {void $cfuncdaxpy();}
6419#ifdef F77_DUMMY_MAIN
6420
6421#  ifdef __cplusplus
6422     extern "C"
6423#  endif
6424   int F77_DUMMY_MAIN() { return 1; }
6425
6426#endif
6427int
6428main ()
6429{
6430$cfuncdaxpy()
6431  ;
6432  return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437  (eval $ac_link) 2>conftest.er1
6438  ac_status=$?
6439  grep -v '^ *+' conftest.er1 >conftest.err
6440  rm -f conftest.er1
6441  cat conftest.err >&5
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); } &&
6444         { ac_try='test -z "$ac_c_werror_flag"
6445                         || test ! -s conftest.err'
6446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447  (eval $ac_try) 2>&5
6448  ac_status=$?
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); }; } &&
6451         { ac_try='test -s conftest$ac_exeext'
6452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453  (eval $ac_try) 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }; }; then
6457  LIBS="$flink_save_libs"
6458                     coin_need_flibs=yes
6459                     use_blas='-lsunperf'
6460                         if test $coin_need_flibs = yes ; then
6461                           use_blas="$use_blas $FLIBS"
6462                         fi
6463                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6464echo "${ECHO_T}yes: $use_blas" >&6
6465
6466
6467else
6468  echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471LIBS="$flink_save_libs"
6472                     echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6
6474fi
6475rm -f conftest.err conftest.$ac_objext \
6476      conftest$ac_exeext conftest.$ac_ext
6477      else
6478        echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480      fi
6481    fi
6482    ;;
6483esac
6484
6485      LIBS="$coin_save_LIBS"
6486      ;;
6487
6488    *-cygwin* | *-mingw*)
6489# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
6490# library will want to link with cygwin, hence won't run standalone in DOS.
6491      if test "$enable_doscompile" = mingw; then
6492        skip_lblas_check=yes
6493      fi
6494      case "$CC" in
6495        clang* ) ;;
6496        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6497          coin_save_LIBS="$LIBS"
6498          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6499echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6500          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6501          case $ac_ext in
6502  f)
6503    cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509
6510#ifdef F77_DUMMY_MAIN
6511
6512#  ifdef __cplusplus
6513     extern "C"
6514#  endif
6515   int F77_DUMMY_MAIN() { return 1; }
6516
6517#endif
6518int
6519main ()
6520{
6521      call daxpy
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526rm -f conftest.$ac_objext conftest$ac_exeext
6527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6528  (eval $ac_link) 2>conftest.er1
6529  ac_status=$?
6530  grep -v '^ *+' conftest.er1 >conftest.err
6531  rm -f conftest.er1
6532  cat conftest.err >&5
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); } &&
6535         { ac_try='test -z "$ac_c_werror_flag"
6536                         || test ! -s conftest.err'
6537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538  (eval $ac_try) 2>&5
6539  ac_status=$?
6540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541  (exit $ac_status); }; } &&
6542         { ac_try='test -s conftest$ac_exeext'
6543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544  (eval $ac_try) 2>&5
6545  ac_status=$?
6546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547  (exit $ac_status); }; }; then
6548  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6549                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6550echo "${ECHO_T}yes: $use_blas" >&6
6551
6552else
6553  echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556echo "$as_me:$LINENO: result: no" >&5
6557echo "${ECHO_T}no" >&6
6558fi
6559rm -f conftest.err conftest.$ac_objext \
6560      conftest$ac_exeext conftest.$ac_ext
6561    ;;
6562  c)
6563    ac_ext=f
6564ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6565ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6567case $ac_cv_f77_mangling in
6568  upper*) ac_val="DAXPY" ;;
6569  lower*) ac_val="daxpy" ;;
6570  *)      ac_val="unknown" ;;
6571esac
6572case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6573
6574cfuncdaxpy="$ac_val"
6575
6576ac_ext=c
6577ac_cpp='$CPP $CPPFLAGS'
6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580ac_compiler_gnu=$ac_cv_c_compiler_gnu
6581
6582    if test x"$coin_need_flibs" = xyes; then
6583      flink_try=no;
6584    else
6585      cat >conftest.$ac_ext <<_ACEOF
6586/* confdefs.h.  */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
6590/* end confdefs.h.  */
6591void $cfuncdaxpy();
6592#ifdef F77_DUMMY_MAIN
6593
6594#  ifdef __cplusplus
6595     extern "C"
6596#  endif
6597   int F77_DUMMY_MAIN() { return 1; }
6598
6599#endif
6600int
6601main ()
6602{
6603$cfuncdaxpy()
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext conftest$ac_exeext
6609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610  (eval $ac_link) 2>conftest.er1
6611  ac_status=$?
6612  grep -v '^ *+' conftest.er1 >conftest.err
6613  rm -f conftest.er1
6614  cat conftest.err >&5
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); } &&
6617         { ac_try='test -z "$ac_c_werror_flag"
6618                         || test ! -s conftest.err'
6619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620  (eval $ac_try) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; } &&
6624         { ac_try='test -s conftest$ac_exeext'
6625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626  (eval $ac_try) 2>&5
6627  ac_status=$?
6628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629  (exit $ac_status); }; }; then
6630  flink_try=yes
6631else
6632  echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635flink_try=no
6636fi
6637rm -f conftest.err conftest.$ac_objext \
6638      conftest$ac_exeext conftest.$ac_ext
6639    fi
6640    if test $flink_try = yes; then
6641      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6642                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6643echo "${ECHO_T}yes: $use_blas" >&6
6644
6645    else
6646      if test x"$FLIBS" != x; then
6647        flink_save_libs="$LIBS"
6648        LIBS="$LIBS $FLIBS"
6649        cat >conftest.$ac_ext <<_ACEOF
6650/* confdefs.h.  */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h.  */
6655void $cfuncdaxpy();
6656#ifdef F77_DUMMY_MAIN
6657
6658#  ifdef __cplusplus
6659     extern "C"
6660#  endif
6661   int F77_DUMMY_MAIN() { return 1; }
6662
6663#endif
6664int
6665main ()
6666{
6667$cfuncdaxpy()
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext conftest$ac_exeext
6673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674  (eval $ac_link) 2>conftest.er1
6675  ac_status=$?
6676  grep -v '^ *+' conftest.er1 >conftest.err
6677  rm -f conftest.er1
6678  cat conftest.err >&5
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); } &&
6681         { ac_try='test -z "$ac_c_werror_flag"
6682                         || test ! -s conftest.err'
6683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684  (eval $ac_try) 2>&5
6685  ac_status=$?
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); }; } &&
6688         { ac_try='test -s conftest$ac_exeext'
6689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690  (eval $ac_try) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); }; }; then
6694  LIBS="$flink_save_libs"
6695                     coin_need_flibs=yes
6696                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6697                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6698echo "${ECHO_T}yes: $use_blas" >&6
6699
6700
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705LIBS="$flink_save_libs"
6706                     echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
6708fi
6709rm -f conftest.err conftest.$ac_objext \
6710      conftest$ac_exeext conftest.$ac_ext
6711      else
6712        echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
6714      fi
6715    fi
6716    ;;
6717  cc|cpp)
6718    ac_ext=f
6719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6722case $ac_cv_f77_mangling in
6723  upper*) ac_val="DAXPY" ;;
6724  lower*) ac_val="daxpy" ;;
6725  *)      ac_val="unknown" ;;
6726esac
6727case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6728
6729cfuncdaxpy="$ac_val"
6730
6731ac_ext=c
6732ac_cpp='$CPP $CPPFLAGS'
6733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736
6737    if test x"$coin_need_flibs" = xyes; then
6738      flink_try=no;
6739    else
6740      cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h.  */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h.  */
6746extern "C" {void $cfuncdaxpy();}
6747#ifdef F77_DUMMY_MAIN
6748
6749#  ifdef __cplusplus
6750     extern "C"
6751#  endif
6752   int F77_DUMMY_MAIN() { return 1; }
6753
6754#endif
6755int
6756main ()
6757{
6758$cfuncdaxpy()
6759  ;
6760  return 0;
6761}
6762_ACEOF
6763rm -f conftest.$ac_objext conftest$ac_exeext
6764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6765  (eval $ac_link) 2>conftest.er1
6766  ac_status=$?
6767  grep -v '^ *+' conftest.er1 >conftest.err
6768  rm -f conftest.er1
6769  cat conftest.err >&5
6770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); } &&
6772         { ac_try='test -z "$ac_c_werror_flag"
6773                         || test ! -s conftest.err'
6774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775  (eval $ac_try) 2>&5
6776  ac_status=$?
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); }; } &&
6779         { ac_try='test -s conftest$ac_exeext'
6780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781  (eval $ac_try) 2>&5
6782  ac_status=$?
6783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784  (exit $ac_status); }; }; then
6785  flink_try=yes
6786else
6787  echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790flink_try=no
6791fi
6792rm -f conftest.err conftest.$ac_objext \
6793      conftest$ac_exeext conftest.$ac_ext
6794    fi
6795    if test $flink_try = yes; then
6796      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6797                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6798echo "${ECHO_T}yes: $use_blas" >&6
6799
6800    else
6801      if test x"$FLIBS" != x; then
6802        flink_save_libs="$LIBS"
6803        LIBS="$LIBS $FLIBS"
6804        cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h.  */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h.  */
6810extern "C" {void $cfuncdaxpy();}
6811#ifdef F77_DUMMY_MAIN
6812
6813#  ifdef __cplusplus
6814     extern "C"
6815#  endif
6816   int F77_DUMMY_MAIN() { return 1; }
6817
6818#endif
6819int
6820main ()
6821{
6822$cfuncdaxpy()
6823  ;
6824  return 0;
6825}
6826_ACEOF
6827rm -f conftest.$ac_objext conftest$ac_exeext
6828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829  (eval $ac_link) 2>conftest.er1
6830  ac_status=$?
6831  grep -v '^ *+' conftest.er1 >conftest.err
6832  rm -f conftest.er1
6833  cat conftest.err >&5
6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835  (exit $ac_status); } &&
6836         { ac_try='test -z "$ac_c_werror_flag"
6837                         || test ! -s conftest.err'
6838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839  (eval $ac_try) 2>&5
6840  ac_status=$?
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); }; } &&
6843         { ac_try='test -s conftest$ac_exeext'
6844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845  (eval $ac_try) 2>&5
6846  ac_status=$?
6847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848  (exit $ac_status); }; }; then
6849  LIBS="$flink_save_libs"
6850                     coin_need_flibs=yes
6851                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6852                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6853echo "${ECHO_T}yes: $use_blas" >&6
6854
6855
6856else
6857  echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860LIBS="$flink_save_libs"
6861                     echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
6863fi
6864rm -f conftest.err conftest.$ac_objext \
6865      conftest$ac_exeext conftest.$ac_ext
6866      else
6867        echo "$as_me:$LINENO: result: no" >&5
6868echo "${ECHO_T}no" >&6
6869      fi
6870    fi
6871    ;;
6872esac
6873
6874          LIBS="$coin_save_LIBS"
6875
6876          if test "x$use_blas" = x ; then
6877            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6878echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6879            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6880            case $ac_ext in
6881  f)
6882    cat >conftest.$ac_ext <<_ACEOF
6883/* confdefs.h.  */
6884_ACEOF
6885cat confdefs.h >>conftest.$ac_ext
6886cat >>conftest.$ac_ext <<_ACEOF
6887/* end confdefs.h.  */
6888
6889#ifdef F77_DUMMY_MAIN
6890
6891#  ifdef __cplusplus
6892     extern "C"
6893#  endif
6894   int F77_DUMMY_MAIN() { return 1; }
6895
6896#endif
6897int
6898main ()
6899{
6900      call daxpy
6901  ;
6902  return 0;
6903}
6904_ACEOF
6905rm -f conftest.$ac_objext conftest$ac_exeext
6906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907  (eval $ac_link) 2>conftest.er1
6908  ac_status=$?
6909  grep -v '^ *+' conftest.er1 >conftest.err
6910  rm -f conftest.er1
6911  cat conftest.err >&5
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); } &&
6914         { ac_try='test -z "$ac_c_werror_flag"
6915                         || test ! -s conftest.err'
6916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917  (eval $ac_try) 2>&5
6918  ac_status=$?
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); }; } &&
6921         { ac_try='test -s conftest$ac_exeext'
6922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923  (eval $ac_try) 2>&5
6924  ac_status=$?
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); }; }; then
6927  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6928                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6929echo "${ECHO_T}yes: $use_blas" >&6
6930
6931else
6932  echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937fi
6938rm -f conftest.err conftest.$ac_objext \
6939      conftest$ac_exeext conftest.$ac_ext
6940    ;;
6941  c)
6942    ac_ext=f
6943ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6944ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6946case $ac_cv_f77_mangling in
6947  upper*) ac_val="DAXPY" ;;
6948  lower*) ac_val="daxpy" ;;
6949  *)      ac_val="unknown" ;;
6950esac
6951case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6952
6953cfuncdaxpy="$ac_val"
6954
6955ac_ext=c
6956ac_cpp='$CPP $CPPFLAGS'
6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961    if test x"$coin_need_flibs" = xyes; then
6962      flink_try=no;
6963    else
6964      cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h.  */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h.  */
6970void $cfuncdaxpy();
6971#ifdef F77_DUMMY_MAIN
6972
6973#  ifdef __cplusplus
6974     extern "C"
6975#  endif
6976   int F77_DUMMY_MAIN() { return 1; }
6977
6978#endif
6979int
6980main ()
6981{
6982$cfuncdaxpy()
6983  ;
6984  return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext conftest$ac_exeext
6988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989  (eval $ac_link) 2>conftest.er1
6990  ac_status=$?
6991  grep -v '^ *+' conftest.er1 >conftest.err
6992  rm -f conftest.er1
6993  cat conftest.err >&5
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); } &&
6996         { ac_try='test -z "$ac_c_werror_flag"
6997                         || test ! -s conftest.err'
6998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999  (eval $ac_try) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; } &&
7003         { ac_try='test -s conftest$ac_exeext'
7004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005  (eval $ac_try) 2>&5
7006  ac_status=$?
7007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008  (exit $ac_status); }; }; then
7009  flink_try=yes
7010else
7011  echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
7013
7014flink_try=no
7015fi
7016rm -f conftest.err conftest.$ac_objext \
7017      conftest$ac_exeext conftest.$ac_ext
7018    fi
7019    if test $flink_try = yes; then
7020      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7021                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7022echo "${ECHO_T}yes: $use_blas" >&6
7023
7024    else
7025      if test x"$FLIBS" != x; then
7026        flink_save_libs="$LIBS"
7027        LIBS="$LIBS $FLIBS"
7028        cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h.  */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h.  */
7034void $cfuncdaxpy();
7035#ifdef F77_DUMMY_MAIN
7036
7037#  ifdef __cplusplus
7038     extern "C"
7039#  endif
7040   int F77_DUMMY_MAIN() { return 1; }
7041
7042#endif
7043int
7044main ()
7045{
7046$cfuncdaxpy()
7047  ;
7048  return 0;
7049}
7050_ACEOF
7051rm -f conftest.$ac_objext conftest$ac_exeext
7052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053  (eval $ac_link) 2>conftest.er1
7054  ac_status=$?
7055  grep -v '^ *+' conftest.er1 >conftest.err
7056  rm -f conftest.er1
7057  cat conftest.err >&5
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } &&
7060         { ac_try='test -z "$ac_c_werror_flag"
7061                         || test ! -s conftest.err'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; } &&
7067         { ac_try='test -s conftest$ac_exeext'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; }; then
7073  LIBS="$flink_save_libs"
7074                     coin_need_flibs=yes
7075                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7076                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7077echo "${ECHO_T}yes: $use_blas" >&6
7078
7079
7080else
7081  echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084LIBS="$flink_save_libs"
7085                     echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087fi
7088rm -f conftest.err conftest.$ac_objext \
7089      conftest$ac_exeext conftest.$ac_ext
7090      else
7091        echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093      fi
7094    fi
7095    ;;
7096  cc|cpp)
7097    ac_ext=f
7098ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7099ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7101case $ac_cv_f77_mangling in
7102  upper*) ac_val="DAXPY" ;;
7103  lower*) ac_val="daxpy" ;;
7104  *)      ac_val="unknown" ;;
7105esac
7106case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7107
7108cfuncdaxpy="$ac_val"
7109
7110ac_ext=c
7111ac_cpp='$CPP $CPPFLAGS'
7112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
7116    if test x"$coin_need_flibs" = xyes; then
7117      flink_try=no;
7118    else
7119      cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125extern "C" {void $cfuncdaxpy();}
7126#ifdef F77_DUMMY_MAIN
7127
7128#  ifdef __cplusplus
7129     extern "C"
7130#  endif
7131   int F77_DUMMY_MAIN() { return 1; }
7132
7133#endif
7134int
7135main ()
7136{
7137$cfuncdaxpy()
7138  ;
7139  return 0;
7140}
7141_ACEOF
7142rm -f conftest.$ac_objext conftest$ac_exeext
7143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144  (eval $ac_link) 2>conftest.er1
7145  ac_status=$?
7146  grep -v '^ *+' conftest.er1 >conftest.err
7147  rm -f conftest.er1
7148  cat conftest.err >&5
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); } &&
7151         { ac_try='test -z "$ac_c_werror_flag"
7152                         || test ! -s conftest.err'
7153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154  (eval $ac_try) 2>&5
7155  ac_status=$?
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); }; } &&
7158         { ac_try='test -s conftest$ac_exeext'
7159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160  (eval $ac_try) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); }; }; then
7164  flink_try=yes
7165else
7166  echo "$as_me: failed program was:" >&5
7167sed 's/^/| /' conftest.$ac_ext >&5
7168
7169flink_try=no
7170fi
7171rm -f conftest.err conftest.$ac_objext \
7172      conftest$ac_exeext conftest.$ac_ext
7173    fi
7174    if test $flink_try = yes; then
7175      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7176                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7177echo "${ECHO_T}yes: $use_blas" >&6
7178
7179    else
7180      if test x"$FLIBS" != x; then
7181        flink_save_libs="$LIBS"
7182        LIBS="$LIBS $FLIBS"
7183        cat >conftest.$ac_ext <<_ACEOF
7184/* confdefs.h.  */
7185_ACEOF
7186cat confdefs.h >>conftest.$ac_ext
7187cat >>conftest.$ac_ext <<_ACEOF
7188/* end confdefs.h.  */
7189extern "C" {void $cfuncdaxpy();}
7190#ifdef F77_DUMMY_MAIN
7191
7192#  ifdef __cplusplus
7193     extern "C"
7194#  endif
7195   int F77_DUMMY_MAIN() { return 1; }
7196
7197#endif
7198int
7199main ()
7200{
7201$cfuncdaxpy()
7202  ;
7203  return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext conftest$ac_exeext
7207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208  (eval $ac_link) 2>conftest.er1
7209  ac_status=$?
7210  grep -v '^ *+' conftest.er1 >conftest.err
7211  rm -f conftest.er1
7212  cat conftest.err >&5
7213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214  (exit $ac_status); } &&
7215         { ac_try='test -z "$ac_c_werror_flag"
7216                         || test ! -s conftest.err'
7217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218  (eval $ac_try) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); }; } &&
7222         { ac_try='test -s conftest$ac_exeext'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; }; then
7228  LIBS="$flink_save_libs"
7229                     coin_need_flibs=yes
7230                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7231                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7232echo "${ECHO_T}yes: $use_blas" >&6
7233
7234
7235else
7236  echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239LIBS="$flink_save_libs"
7240                     echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242fi
7243rm -f conftest.err conftest.$ac_objext \
7244      conftest$ac_exeext conftest.$ac_ext
7245      else
7246        echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
7248      fi
7249    fi
7250    ;;
7251esac
7252
7253            LIBS="$coin_save_LIBS"
7254          fi
7255          ;;
7256      esac
7257      ;;
7258
7259     *-darwin*)
7260      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
7261echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
7262      coin_need_flibs=no
7263      coin_save_LIBS="$LIBS"
7264      LIBS="-framework vecLib $LIBS"
7265      case $ac_ext in
7266  f)
7267    cat >conftest.$ac_ext <<_ACEOF
7268/* confdefs.h.  */
7269_ACEOF
7270cat confdefs.h >>conftest.$ac_ext
7271cat >>conftest.$ac_ext <<_ACEOF
7272/* end confdefs.h.  */
7273
7274#ifdef F77_DUMMY_MAIN
7275
7276#  ifdef __cplusplus
7277     extern "C"
7278#  endif
7279   int F77_DUMMY_MAIN() { return 1; }
7280
7281#endif
7282int
7283main ()
7284{
7285      call daxpy
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290rm -f conftest.$ac_objext conftest$ac_exeext
7291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292  (eval $ac_link) 2>conftest.er1
7293  ac_status=$?
7294  grep -v '^ *+' conftest.er1 >conftest.err
7295  rm -f conftest.er1
7296  cat conftest.err >&5
7297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298  (exit $ac_status); } &&
7299         { ac_try='test -z "$ac_c_werror_flag"
7300                         || test ! -s conftest.err'
7301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302  (eval $ac_try) 2>&5
7303  ac_status=$?
7304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305  (exit $ac_status); }; } &&
7306         { ac_try='test -s conftest$ac_exeext'
7307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308  (eval $ac_try) 2>&5
7309  ac_status=$?
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); }; }; then
7312  use_blas='-framework vecLib'
7313                         if test $coin_need_flibs = yes ; then
7314                           use_blas="$use_blas $FLIBS"
7315                         fi
7316                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7317echo "${ECHO_T}yes: $use_blas" >&6
7318
7319else
7320  echo "$as_me: failed program was:" >&5
7321sed 's/^/| /' conftest.$ac_ext >&5
7322
7323echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
7325fi
7326rm -f conftest.err conftest.$ac_objext \
7327      conftest$ac_exeext conftest.$ac_ext
7328    ;;
7329  c)
7330    ac_ext=f
7331ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7332ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7334case $ac_cv_f77_mangling in
7335  upper*) ac_val="DAXPY" ;;
7336  lower*) ac_val="daxpy" ;;
7337  *)      ac_val="unknown" ;;
7338esac
7339case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7340
7341cfuncdaxpy="$ac_val"
7342
7343ac_ext=c
7344ac_cpp='$CPP $CPPFLAGS'
7345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347ac_compiler_gnu=$ac_cv_c_compiler_gnu
7348
7349    if test x"$coin_need_flibs" = xyes; then
7350      flink_try=no;
7351    else
7352      cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h.  */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h.  */
7358void $cfuncdaxpy();
7359#ifdef F77_DUMMY_MAIN
7360
7361#  ifdef __cplusplus
7362     extern "C"
7363#  endif
7364   int F77_DUMMY_MAIN() { return 1; }
7365
7366#endif
7367int
7368main ()
7369{
7370$cfuncdaxpy()
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375rm -f conftest.$ac_objext conftest$ac_exeext
7376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377  (eval $ac_link) 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } &&
7384         { ac_try='test -z "$ac_c_werror_flag"
7385                         || test ! -s conftest.err'
7386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387  (eval $ac_try) 2>&5
7388  ac_status=$?
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); }; } &&
7391         { ac_try='test -s conftest$ac_exeext'
7392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393  (eval $ac_try) 2>&5
7394  ac_status=$?
7395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396  (exit $ac_status); }; }; then
7397  flink_try=yes
7398else
7399  echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402flink_try=no
7403fi
7404rm -f conftest.err conftest.$ac_objext \
7405      conftest$ac_exeext conftest.$ac_ext
7406    fi
7407    if test $flink_try = yes; then
7408      use_blas='-framework vecLib'
7409                         if test $coin_need_flibs = yes ; then
7410                           use_blas="$use_blas $FLIBS"
7411                         fi
7412                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7413echo "${ECHO_T}yes: $use_blas" >&6
7414
7415    else
7416      if test x"$FLIBS" != x; then
7417        flink_save_libs="$LIBS"
7418        LIBS="$LIBS $FLIBS"
7419        cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h.  */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h.  */
7425void $cfuncdaxpy();
7426#ifdef F77_DUMMY_MAIN
7427
7428#  ifdef __cplusplus
7429     extern "C"
7430#  endif
7431   int F77_DUMMY_MAIN() { return 1; }
7432
7433#endif
7434int
7435main ()
7436{
7437$cfuncdaxpy()
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442rm -f conftest.$ac_objext conftest$ac_exeext
7443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444  (eval $ac_link) 2>conftest.er1
7445  ac_status=$?
7446  grep -v '^ *+' conftest.er1 >conftest.err
7447  rm -f conftest.er1
7448  cat conftest.err >&5
7449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450  (exit $ac_status); } &&
7451         { ac_try='test -z "$ac_c_werror_flag"
7452                         || test ! -s conftest.err'
7453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454  (eval $ac_try) 2>&5
7455  ac_status=$?
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); }; } &&
7458         { ac_try='test -s conftest$ac_exeext'
7459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460  (eval $ac_try) 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); }; }; then
7464  LIBS="$flink_save_libs"
7465                     coin_need_flibs=yes
7466                     use_blas='-framework vecLib'
7467                         if test $coin_need_flibs = yes ; then
7468                           use_blas="$use_blas $FLIBS"
7469                         fi
7470                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7471echo "${ECHO_T}yes: $use_blas" >&6
7472
7473
7474else
7475  echo "$as_me: failed program was:" >&5
7476sed 's/^/| /' conftest.$ac_ext >&5
7477
7478LIBS="$flink_save_libs"
7479                     echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481fi
7482rm -f conftest.err conftest.$ac_objext \
7483      conftest$ac_exeext conftest.$ac_ext
7484      else
7485        echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6
7487      fi
7488    fi
7489    ;;
7490  cc|cpp)
7491    ac_ext=f
7492ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7493ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7495case $ac_cv_f77_mangling in
7496  upper*) ac_val="DAXPY" ;;
7497  lower*) ac_val="daxpy" ;;
7498  *)      ac_val="unknown" ;;
7499esac
7500case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7501
7502cfuncdaxpy="$ac_val"
7503
7504ac_ext=c
7505ac_cpp='$CPP $CPPFLAGS'
7506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510    if test x"$coin_need_flibs" = xyes; then
7511      flink_try=no;
7512    else
7513      cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h.  */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h.  */
7519extern "C" {void $cfuncdaxpy();}
7520#ifdef F77_DUMMY_MAIN
7521
7522#  ifdef __cplusplus
7523     extern "C"
7524#  endif
7525   int F77_DUMMY_MAIN() { return 1; }
7526
7527#endif
7528int
7529main ()
7530{
7531$cfuncdaxpy()
7532  ;
7533  return 0;
7534}
7535_ACEOF
7536rm -f conftest.$ac_objext conftest$ac_exeext
7537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538  (eval $ac_link) 2>conftest.er1
7539  ac_status=$?
7540  grep -v '^ *+' conftest.er1 >conftest.err
7541  rm -f conftest.er1
7542  cat conftest.err >&5
7543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544  (exit $ac_status); } &&
7545         { ac_try='test -z "$ac_c_werror_flag"
7546                         || test ! -s conftest.err'
7547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548  (eval $ac_try) 2>&5
7549  ac_status=$?
7550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551  (exit $ac_status); }; } &&
7552         { ac_try='test -s conftest$ac_exeext'
7553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554  (eval $ac_try) 2>&5
7555  ac_status=$?
7556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557  (exit $ac_status); }; }; then
7558  flink_try=yes
7559else
7560  echo "$as_me: failed program was:" >&5
7561sed 's/^/| /' conftest.$ac_ext >&5
7562
7563flink_try=no
7564fi
7565rm -f conftest.err conftest.$ac_objext \
7566      conftest$ac_exeext conftest.$ac_ext
7567    fi
7568    if test $flink_try = yes; then
7569      use_blas='-framework vecLib'
7570                         if test $coin_need_flibs = yes ; then
7571                           use_blas="$use_blas $FLIBS"
7572                         fi
7573                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7574echo "${ECHO_T}yes: $use_blas" >&6
7575
7576    else
7577      if test x"$FLIBS" != x; then
7578        flink_save_libs="$LIBS"
7579        LIBS="$LIBS $FLIBS"
7580        cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h.  */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h.  */
7586extern "C" {void $cfuncdaxpy();}
7587#ifdef F77_DUMMY_MAIN
7588
7589#  ifdef __cplusplus
7590     extern "C"
7591#  endif
7592   int F77_DUMMY_MAIN() { return 1; }
7593
7594#endif
7595int
7596main ()
7597{
7598$cfuncdaxpy()
7599  ;
7600  return 0;
7601}
7602_ACEOF
7603rm -f conftest.$ac_objext conftest$ac_exeext
7604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605  (eval $ac_link) 2>conftest.er1
7606  ac_status=$?
7607  grep -v '^ *+' conftest.er1 >conftest.err
7608  rm -f conftest.er1
7609  cat conftest.err >&5
7610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611  (exit $ac_status); } &&
7612         { ac_try='test -z "$ac_c_werror_flag"
7613                         || test ! -s conftest.err'
7614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615  (eval $ac_try) 2>&5
7616  ac_status=$?
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); }; } &&
7619         { ac_try='test -s conftest$ac_exeext'
7620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621  (eval $ac_try) 2>&5
7622  ac_status=$?
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); }; }; then
7625  LIBS="$flink_save_libs"
7626                     coin_need_flibs=yes
7627                     use_blas='-framework vecLib'
7628                         if test $coin_need_flibs = yes ; then
7629                           use_blas="$use_blas $FLIBS"
7630                         fi
7631                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7632echo "${ECHO_T}yes: $use_blas" >&6
7633
7634
7635else
7636  echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639LIBS="$flink_save_libs"
7640                     echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6
7642fi
7643rm -f conftest.err conftest.$ac_objext \
7644      conftest$ac_exeext conftest.$ac_ext
7645      else
7646        echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
7648      fi
7649    fi
7650    ;;
7651esac
7652
7653      LIBS="$coin_save_LIBS"
7654      ;;
7655  esac
7656
7657  if test -z "$use_blas" && test $skip_lblas_check = no; then
7658    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7659echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7660    coin_need_flibs=no
7661    coin_save_LIBS="$LIBS"
7662    LIBS="-lblas $LIBS"
7663    case $ac_ext in
7664  f)
7665    cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h.  */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h.  */
7671
7672#ifdef F77_DUMMY_MAIN
7673
7674#  ifdef __cplusplus
7675     extern "C"
7676#  endif
7677   int F77_DUMMY_MAIN() { return 1; }
7678
7679#endif
7680int
7681main ()
7682{
7683      call daxpy
7684  ;
7685  return 0;
7686}
7687_ACEOF
7688rm -f conftest.$ac_objext conftest$ac_exeext
7689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690  (eval $ac_link) 2>conftest.er1
7691  ac_status=$?
7692  grep -v '^ *+' conftest.er1 >conftest.err
7693  rm -f conftest.er1
7694  cat conftest.err >&5
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); } &&
7697         { ac_try='test -z "$ac_c_werror_flag"
7698                         || test ! -s conftest.err'
7699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700  (eval $ac_try) 2>&5
7701  ac_status=$?
7702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703  (exit $ac_status); }; } &&
7704         { ac_try='test -s conftest$ac_exeext'
7705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706  (eval $ac_try) 2>&5
7707  ac_status=$?
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); }; }; then
7710  use_blas='-lblas'
7711                       if test $coin_need_flibs = yes ; then
7712                         use_blas="$use_blas $FLIBS"
7713                       fi
7714                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7715echo "${ECHO_T}yes: $use_blas" >&6
7716
7717else
7718  echo "$as_me: failed program was:" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5
7720
7721echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6
7723fi
7724rm -f conftest.err conftest.$ac_objext \
7725      conftest$ac_exeext conftest.$ac_ext
7726    ;;
7727  c)
7728    ac_ext=f
7729ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7730ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7732case $ac_cv_f77_mangling in
7733  upper*) ac_val="DAXPY" ;;
7734  lower*) ac_val="daxpy" ;;
7735  *)      ac_val="unknown" ;;
7736esac
7737case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7738
7739cfuncdaxpy="$ac_val"
7740
7741ac_ext=c
7742ac_cpp='$CPP $CPPFLAGS'
7743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747    if test x"$coin_need_flibs" = xyes; then
7748      flink_try=no;
7749    else
7750      cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h.  */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h.  */
7756void $cfuncdaxpy();
7757#ifdef F77_DUMMY_MAIN
7758
7759#  ifdef __cplusplus
7760     extern "C"
7761#  endif
7762   int F77_DUMMY_MAIN() { return 1; }
7763
7764#endif
7765int
7766main ()
7767{
7768$cfuncdaxpy()
7769  ;
7770  return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext conftest$ac_exeext
7774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775  (eval $ac_link) 2>conftest.er1
7776  ac_status=$?
7777  grep -v '^ *+' conftest.er1 >conftest.err
7778  rm -f conftest.er1
7779  cat conftest.err >&5
7780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781  (exit $ac_status); } &&
7782         { ac_try='test -z "$ac_c_werror_flag"
7783                         || test ! -s conftest.err'
7784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785  (eval $ac_try) 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }; } &&
7789         { ac_try='test -s conftest$ac_exeext'
7790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791  (eval $ac_try) 2>&5
7792  ac_status=$?
7793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794  (exit $ac_status); }; }; then
7795  flink_try=yes
7796else
7797  echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800flink_try=no
7801fi
7802rm -f conftest.err conftest.$ac_objext \
7803      conftest$ac_exeext conftest.$ac_ext
7804    fi
7805    if test $flink_try = yes; then
7806      use_blas='-lblas'
7807                       if test $coin_need_flibs = yes ; then
7808                         use_blas="$use_blas $FLIBS"
7809                       fi
7810                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7811echo "${ECHO_T}yes: $use_blas" >&6
7812
7813    else
7814      if test x"$FLIBS" != x; then
7815        flink_save_libs="$LIBS"
7816        LIBS="$LIBS $FLIBS"
7817        cat >conftest.$ac_ext <<_ACEOF
7818/* confdefs.h.  */
7819_ACEOF
7820cat confdefs.h >>conftest.$ac_ext
7821cat >>conftest.$ac_ext <<_ACEOF
7822/* end confdefs.h.  */
7823void $cfuncdaxpy();
7824#ifdef F77_DUMMY_MAIN
7825
7826#  ifdef __cplusplus
7827     extern "C"
7828#  endif
7829   int F77_DUMMY_MAIN() { return 1; }
7830
7831#endif
7832int
7833main ()
7834{
7835$cfuncdaxpy()
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840rm -f conftest.$ac_objext conftest$ac_exeext
7841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842  (eval $ac_link) 2>conftest.er1
7843  ac_status=$?
7844  grep -v '^ *+' conftest.er1 >conftest.err
7845  rm -f conftest.er1
7846  cat conftest.err >&5
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); } &&
7849         { ac_try='test -z "$ac_c_werror_flag"
7850                         || test ! -s conftest.err'
7851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852  (eval $ac_try) 2>&5
7853  ac_status=$?
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); }; } &&
7856         { ac_try='test -s conftest$ac_exeext'
7857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858  (eval $ac_try) 2>&5
7859  ac_status=$?
7860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861  (exit $ac_status); }; }; then
7862  LIBS="$flink_save_libs"
7863                     coin_need_flibs=yes
7864                     use_blas='-lblas'
7865                       if test $coin_need_flibs = yes ; then
7866                         use_blas="$use_blas $FLIBS"
7867                       fi
7868                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7869echo "${ECHO_T}yes: $use_blas" >&6
7870
7871
7872else
7873  echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876LIBS="$flink_save_libs"
7877                     echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
7879fi
7880rm -f conftest.err conftest.$ac_objext \
7881      conftest$ac_exeext conftest.$ac_ext
7882      else
7883        echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6
7885      fi
7886    fi
7887    ;;
7888  cc|cpp)
7889    ac_ext=f
7890ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7891ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7893case $ac_cv_f77_mangling in
7894  upper*) ac_val="DAXPY" ;;
7895  lower*) ac_val="daxpy" ;;
7896  *)      ac_val="unknown" ;;
7897esac
7898case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7899
7900cfuncdaxpy="$ac_val"
7901
7902ac_ext=c
7903ac_cpp='$CPP $CPPFLAGS'
7904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908    if test x"$coin_need_flibs" = xyes; then
7909      flink_try=no;
7910    else
7911      cat >conftest.$ac_ext <<_ACEOF
7912/* confdefs.h.  */
7913_ACEOF
7914cat confdefs.h >>conftest.$ac_ext
7915cat >>conftest.$ac_ext <<_ACEOF
7916/* end confdefs.h.  */
7917extern "C" {void $cfuncdaxpy();}
7918#ifdef F77_DUMMY_MAIN
7919
7920#  ifdef __cplusplus
7921     extern "C"
7922#  endif
7923   int F77_DUMMY_MAIN() { return 1; }
7924
7925#endif
7926int
7927main ()
7928{
7929$cfuncdaxpy()
7930  ;
7931  return 0;
7932}
7933_ACEOF
7934rm -f conftest.$ac_objext conftest$ac_exeext
7935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7936  (eval $ac_link) 2>conftest.er1
7937  ac_status=$?
7938  grep -v '^ *+' conftest.er1 >conftest.err
7939  rm -f conftest.er1
7940  cat conftest.err >&5
7941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942  (exit $ac_status); } &&
7943         { ac_try='test -z "$ac_c_werror_flag"
7944                         || test ! -s conftest.err'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; } &&
7950         { ac_try='test -s conftest$ac_exeext'
7951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952  (eval $ac_try) 2>&5
7953  ac_status=$?
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); }; }; then
7956  flink_try=yes
7957else
7958  echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961flink_try=no
7962fi
7963rm -f conftest.err conftest.$ac_objext \
7964      conftest$ac_exeext conftest.$ac_ext
7965    fi
7966    if test $flink_try = yes; then
7967      use_blas='-lblas'
7968                       if test $coin_need_flibs = yes ; then
7969                         use_blas="$use_blas $FLIBS"
7970                       fi
7971                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7972echo "${ECHO_T}yes: $use_blas" >&6
7973
7974    else
7975      if test x"$FLIBS" != x; then
7976        flink_save_libs="$LIBS"
7977        LIBS="$LIBS $FLIBS"
7978        cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h.  */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h.  */
7984extern "C" {void $cfuncdaxpy();}
7985#ifdef F77_DUMMY_MAIN
7986
7987#  ifdef __cplusplus
7988     extern "C"
7989#  endif
7990   int F77_DUMMY_MAIN() { return 1; }
7991
7992#endif
7993int
7994main ()
7995{
7996$cfuncdaxpy()
7997  ;
7998  return 0;
7999}
8000_ACEOF
8001rm -f conftest.$ac_objext conftest$ac_exeext
8002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003  (eval $ac_link) 2>conftest.er1
8004  ac_status=$?
8005  grep -v '^ *+' conftest.er1 >conftest.err
8006  rm -f conftest.er1
8007  cat conftest.err >&5
8008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009  (exit $ac_status); } &&
8010         { ac_try='test -z "$ac_c_werror_flag"
8011                         || test ! -s conftest.err'
8012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013  (eval $ac_try) 2>&5
8014  ac_status=$?
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); }; } &&
8017         { ac_try='test -s conftest$ac_exeext'
8018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019  (eval $ac_try) 2>&5
8020  ac_status=$?
8021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022  (exit $ac_status); }; }; then
8023  LIBS="$flink_save_libs"
8024                     coin_need_flibs=yes
8025                     use_blas='-lblas'
8026                       if test $coin_need_flibs = yes ; then
8027                         use_blas="$use_blas $FLIBS"
8028                       fi
8029                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
8030echo "${ECHO_T}yes: $use_blas" >&6
8031
8032
8033else
8034  echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037LIBS="$flink_save_libs"
8038                     echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
8040fi
8041rm -f conftest.err conftest.$ac_objext \
8042      conftest$ac_exeext conftest.$ac_ext
8043      else
8044        echo "$as_me:$LINENO: result: no" >&5
8045echo "${ECHO_T}no" >&6
8046      fi
8047    fi
8048    ;;
8049esac
8050
8051    LIBS="$coin_save_LIBS"
8052  fi
8053
8054  # If we have no other ideas, consider building BLAS.
8055  if test -z "$use_blas" ; then
8056    use_blas=BUILD
8057  fi
8058fi
8059
8060if test "x$use_blas" = xBUILD ; then
8061
8062echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
8063echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
8064
8065coin_has_blas=notGiven
8066
8067# check if user wants to skip package in any case
8068if test x"$COIN_SKIP_PROJECTS" != x; then
8069  for dir in $COIN_SKIP_PROJECTS; do
8070    if test $dir = "Blas"; then
8071      coin_has_blas=skipping
8072    fi
8073  done
8074fi
8075
8076if test "$coin_has_blas" != skipping; then
8077
8078# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
8079if test "${with_blas+set}" = set; then
8080  withval="$with_blas"
8081  if test "$withval" = no ; then
8082       coin_has_blas=skipping
8083     fi
8084
8085fi;
8086fi
8087
8088BLAS_LIBS=
8089BLAS_CFLAGS=
8090BLAS_DATA=
8091BLAS_DEPENDENCIES=
8092BLAS_PCLIBS=
8093BLAS_PCREQUIRES=
8094BLAS_DATA=
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
8113if test $coin_has_blas != skipping; then
8114
8115# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
8116if test "${with_blas_lib+set}" = set; then
8117  withval="$with_blas_lib"
8118  if test "$withval" = no ; then
8119       coin_has_blas=skipping
8120     else
8121       coin_has_blas=yes
8122       BLAS_LIBS="$withval"
8123       BLAS_PCLIBS="$withval"
8124
8125         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
8126         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
8127
8128       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8129       if test -z "$PKG_CONFIG" ; then
8130         BLAS_LIBS_INSTALLED="$withval"
8131         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
8132       fi
8133     fi
8134
8135fi;
8136fi
8137
8138if test $coin_has_blas != skipping; then
8139
8140# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
8141if test "${with_blas_incdir+set}" = set; then
8142  withval="$with_blas_incdir"
8143  if test "$withval" = no ; then
8144       coin_has_blas=skipping
8145     else
8146       coin_has_blas=yes
8147       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
8148       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
8149       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8150       if test -z "$PKG_CONFIG" ; then
8151         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
8152         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
8153       fi
8154     fi
8155
8156fi;
8157fi
8158
8159if test $coin_has_blas != skipping; then
8160
8161# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
8162if test "${with_blas_datadir+set}" = set; then
8163  withval="$with_blas_datadir"
8164  if test "$withval" = no ; then
8165       coin_has_blas=skipping
8166     else
8167       coin_has_blas=yes
8168       BLAS_DATA="$withval"
8169       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8170       if test -z "$PKG_CONFIG" ; then
8171         BLAS_DATA_INSTALLED="$withval"
8172       fi
8173     fi
8174
8175fi;
8176fi
8177
8178if test $coin_has_blas = notGiven; then
8179  if test -n "$PKG_CONFIG" ; then
8180    # set search path for pkg-config
8181    # need to export variable to be sure that the following pkg-config gets these values
8182    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
8183    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
8184    export PKG_CONFIG_PATH
8185
8186    # let pkg-config do it's magic
8187
8188
8189
8190if test -n "$PKG_CONFIG" ; then
8191  if $PKG_CONFIG --exists "coinblas"; then
8192    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
8193     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
8194    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
8195        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
8196        # but only do this if is not trivial
8197    if test "$CYGPATH_W" != "echo" ; then
8198      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
8199      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8200    fi
8201    BLAS_CFLAGS="$cflags"
8202    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
8203    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
8204     coin_has_blas=yes
8205        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
8206echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
8207
8208        # adjust linker flags for (i)cl compiler
8209        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
8210        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8211        then
8212          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8213        fi
8214        BLAS_PCREQUIRES="coinblas"
8215
8216        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
8217
8218          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8219          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8220          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8221
8222
8223
8224  else
8225    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
8226      coin_has_blas=notGiven
8227        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
8228echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
8229
8230  fi
8231else
8232  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
8233echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
8234   { (exit 1); exit 1; }; }
8235fi
8236
8237
8238
8239
8240    # reset PKG_CONFIG_PATH variable
8241    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
8242    export PKG_CONFIG_PATH
8243
8244  else
8245    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
8246echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
8247
8248echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
8249echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
8250
8251coin_has_blas=notGiven
8252BLAS_LIBS=
8253BLAS_LIBS_INSTALLED=
8254BLAS_CFLAGS=
8255BLAS_CFLAGS_INSTALLED=
8256BLAS_DATA=
8257BLAS_DATA_INSTALLED=
8258BLAS_PCLIBS=
8259BLAS_PCREQUIRES=
8260
8261# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
8262projtoprocess="coinblas"
8263
8264# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
8265# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
8266# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
8267# also, we setup the DATA variable
8268allproj=""
8269allpcfiles=""
8270allpcifiles=""
8271while test "x$projtoprocess" != x ; do
8272
8273  for proj in $projtoprocess ; do
8274    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
8275    pcfile=""
8276    save_IFS="$IFS"
8277    IFS=":"
8278    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
8279      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
8280      if test -r "$dir/${proj}-uninstalled.pc" ; then
8281        pcfile="$dir/$proj-uninstalled.pc"
8282        if test -r "$dir/${proj}.pc" ; then
8283          pcifile="$dir/${proj}.pc"
8284        else
8285          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
8286echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
8287          pcifile=
8288        fi
8289        break
8290      fi
8291    done
8292    IFS="$save_IFS"
8293
8294    if test "x$pcfile" != x ; then
8295      # read dependencies from $pcfile and filter it
8296      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
8297
8298      # add projrequires to the front of the list of projects that have to be processed next
8299      # at the same time, remove $proj from this list
8300      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
8301
8302      # read DATA from $pcfile, if _DATA is still empty
8303      if test "x$BLAS_DATA" = x ; then
8304        projdatadir=
8305        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
8306        eval `sh -c "$pcfilemod"`
8307        BLAS_DATA="$projdatadir"
8308      fi
8309
8310      allproj="$allproj $proj"
8311      allpcfiles="$pcfile:$allpcfiles"
8312
8313    else
8314      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
8315echo "${ECHO_T}no, dependency $proj not available" >&6
8316      allproj=fail
8317      break 2
8318    fi
8319
8320    if test "x$pcifile" != x ; then
8321      allpcifiles="$pcifile:$allpcifiles"
8322
8323      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
8324      if test "x$BLAS_DATA_INSTALLED" = x ; then
8325        projdatadir=
8326        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
8327        eval `sh -c "$pcifilemod"`
8328        if test "${CYGPATH_W}" != "echo"; then
8329          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8330        fi
8331        BLAS_DATA_INSTALLED="$projdatadir"
8332      fi
8333
8334    fi
8335
8336    break
8337  done
8338
8339  # remove spaces on begin of $projtoprocess
8340  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8341
8342done
8343
8344if test "$allproj" != fail ; then
8345
8346  # now go through the list of .pc files and assemble compiler and linker flags
8347  # important is here to obey the reverse order that has been setup before,
8348  # since then libraries that are required by several others should be after these other libraries
8349  pcfilesprocessed=""
8350
8351  save_IFS="$IFS"
8352  IFS=":"
8353  for pcfile in $allpcfiles ; do
8354
8355    # if $pcfile has been processed already, skip this round
8356    if test "x$pcfilesprocessed" != x ; then
8357      for pcfiledone in $pcfilesprocessed ; do
8358        if test "$pcfiledone" = "$pcfile" ; then
8359          continue 2
8360        fi
8361      done
8362    fi
8363
8364    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8365    #   replace "Libs:" by "echo projlibs="
8366    #   replace "Cflags:" by "echo projcflags="
8367    #   remove every line starting with <some word>:
8368    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8369
8370    # set projcflags and projlibs variables by running $pcfilemod
8371    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8372    projcflags=
8373    projlibs=
8374    IFS="$save_IFS"
8375    eval `sh -c "$pcfilemod"`
8376    IFS=":"
8377
8378    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8379    if test "${CYGPATH_W}" != "echo"; then
8380      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8381    fi
8382    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8383
8384    # set LIBS variable
8385    BLAS_LIBS="$projlibs $BLAS_LIBS"
8386
8387    # remember that we have processed $pcfile
8388    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8389
8390  done
8391  IFS="$save_IFS"
8392
8393
8394  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8395  # important is here again to obey the reverse order that has been setup before,
8396  # since then libraries that are required by several others should be after these other libraries
8397  pcfilesprocessed=""
8398
8399  save_IFS="$IFS"
8400  IFS=":"
8401  for pcfile in $allpcifiles ; do
8402
8403    # if $pcfile has been processed already, skip this round
8404    if test "x$pcfilesprocessed" != x ; then
8405      for pcfiledone in $pcfilesprocessed ; do
8406        if test "$pcfiledone" = "$pcfile" ; then
8407          continue 2
8408        fi
8409      done
8410    fi
8411
8412    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8413    #   replace "Libs:" by "echo projlibs="
8414    #   replace "Cflags:" by "echo projcflags="
8415    #   remove every line starting with <some word>:
8416    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8417
8418    # set projcflags and projlibs variables by running $pcfilemod
8419    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8420    projcflags=
8421    projlibs=
8422    IFS="$save_IFS"
8423    eval `sh -c "$pcfilemod"`
8424    IFS=":"
8425
8426    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8427    if test "${CYGPATH_W}" != "echo"; then
8428      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8429    fi
8430    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8431
8432    # set LIBS variable
8433    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8434
8435    # remember that we have processed $pcfile
8436    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8437
8438  done
8439  IFS="$save_IFS"
8440
8441
8442  # finish up
8443  coin_has_blas=yes
8444  echo "$as_me:$LINENO: result: yes" >&5
8445echo "${ECHO_T}yes" >&6
8446
8447cat >>confdefs.h <<\_ACEOF
8448#define COIN_HAS_BLAS 1
8449_ACEOF
8450
8451
8452  # adjust linker flags for (i)cl compiler
8453  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
8454  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8455  #    everything of the form "-lname" by "libname.lib", and
8456  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8457  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8458  then
8459    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8460    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
8461  fi
8462
8463  BLAS_PCREQUIRES="coinblas"
8464
8465    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8466    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8467    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8468    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8469    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8470
8471
8472fi
8473
8474
8475
8476if test $coin_has_blas != notGiven &&
8477                test $coin_has_blas != skipping; then
8478  COIN_HAS_BLAS_TRUE=
8479  COIN_HAS_BLAS_FALSE='#'
8480else
8481  COIN_HAS_BLAS_TRUE='#'
8482  COIN_HAS_BLAS_FALSE=
8483fi
8484
8485
8486
8487  fi
8488
8489else
8490  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8491echo "${ECHO_T}$coin_has_blas" >&6
8492fi
8493
8494if test $coin_has_blas != skipping &&
8495   test $coin_has_blas != notGiven ; then
8496
8497cat >>confdefs.h <<\_ACEOF
8498#define COIN_HAS_BLAS 1
8499_ACEOF
8500
8501
8502  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8503if test "${enable_interpackage_dependencies+set}" = set; then
8504  enableval="$enable_interpackage_dependencies"
8505
8506else
8507  enable_interpackage_dependencies=yes
8508fi;
8509
8510  if test $enable_interpackage_dependencies = yes ; then
8511     # construct dependencies variables from LIBS variables
8512     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8513     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
8514     # then remove everything of the form -xxx
8515     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8516     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8517
8518       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8519
8520  fi
8521
8522  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8523    if test -n "$BLAS_CFLAGS" ; then
8524      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8525echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8526    fi
8527    if test -n "$BLAS_LIBS" ; then
8528      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8529echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8530    fi
8531    if test -n "$BLAS_DEPENDENCIES" ; then
8532      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8533echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8534    fi
8535    if test -n "$BLAS_DATA" ; then
8536      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8537echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8538    fi
8539    if test -n "$BLAS_PCLIBS" ; then
8540      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8541echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8542    fi
8543    if test -n "$BLAS_PCREQUIRES" ; then
8544      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8545echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8546    fi
8547
8548      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8549echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8550      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8551echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8552      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8553echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8554
8555  fi
8556fi
8557
8558# Define the Makefile conditional
8559
8560
8561if test $coin_has_blas != notGiven &&
8562                test $coin_has_blas != skipping; then
8563  COIN_HAS_BLAS_TRUE=
8564  COIN_HAS_BLAS_FALSE='#'
8565else
8566  COIN_HAS_BLAS_TRUE='#'
8567  COIN_HAS_BLAS_FALSE=
8568fi
8569
8570
8571
8572
8573elif test "x$use_blas" != x && test "$use_blas" != no; then
8574  coin_has_blas=yes
8575
8576
8577if test 0 = 0; then
8578  COIN_HAS_BLAS_TRUE=
8579  COIN_HAS_BLAS_FALSE='#'
8580else
8581  COIN_HAS_BLAS_TRUE='#'
8582  COIN_HAS_BLAS_FALSE=
8583fi
8584
8585
8586cat >>confdefs.h <<\_ACEOF
8587#define COIN_HAS_BLAS 1
8588_ACEOF
8589
8590  BLAS_LIBS="$use_blas"
8591  BLAS_CFLAGS=
8592  BLAS_DATA=
8593
8594
8595
8596
8597    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8598    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8599    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8600
8601
8602else
8603  coin_has_blas=no
8604
8605
8606if test 0 = 1; then
8607  COIN_HAS_BLAS_TRUE=
8608  COIN_HAS_BLAS_FALSE='#'
8609else
8610  COIN_HAS_BLAS_TRUE='#'
8611  COIN_HAS_BLAS_FALSE=
8612fi
8613
8614fi
8615
8616
8617
8618
8619
8620
8621
8622
8623if test $coin_has_blas != yes; then
8624  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8625echo "$as_me: error: Required package BLAS not found." >&2;}
8626   { (exit 1); exit 1; }; }
8627fi
8628
8629# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8630LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8631
8632# Take care that optimization is disbled for DLAMCH.F
8633
8634if test "x$DLAMCH_FFLAGS" = x ; then
8635  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8636  case $F77 in
8637    ifort* | */ifort* | IFORT* | */IFORT* )
8638      case $build in
8639        *-cygwin* | *-mingw*)
8640          DLAMCH_FFLAGS="$FFLAGS -Od"
8641          ;;
8642        *)
8643          DLAMCH_FFLAGS="$FFLAGS -O0"
8644          ;;
8645      esac
8646      ;;
8647    compile_f2c*)
8648      case "$CC" in
8649        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8650          DLAMCH_FFLAGS="$FFLAGS -Od"
8651        ;;
8652        *)
8653          DLAMCH_FFLAGS="$FFLAGS -O0"
8654        ;;
8655      esac
8656      ;;
8657    *)
8658      DLAMCH_FFLAGS="$FFLAGS -O0"
8659      ;;
8660  esac
8661fi
8662
8663
8664# Initialize autotools
8665{
8666
8667
8668
8669# START
8670
8671coin_disable_shared=no
8672# Test if force_shared has been set
8673if test "x" = xforce_shared; then
8674  if test x$enable_shared = xno; then
8675    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8676echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8677   { (exit 1); exit 1; }; }
8678  fi
8679  enable_shared=yes;
8680else
8681  # On Cygwin and AIX, building DLLs doesn't work
8682  case $build in
8683    *-cygwin* | *-mingw*)
8684      coin_disable_shared=yes
8685      if test x"$enable_shared" = xyes; then
8686        case "$CXX" in
8687          clang* )
8688            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
8689echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
8690            ;;
8691          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8692            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
8693echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
8694            ;;
8695          *)
8696            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
8697echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
8698            ;;
8699        esac
8700      fi
8701    ;;
8702    *-aix*)
8703      coin_disable_shared=yes
8704      platform=AIX
8705      if test x"$enable_shared" = xyes; then
8706        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
8707echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
8708      fi
8709    ;;
8710  esac
8711fi
8712if test x"$coin_disable_shared" = xyes; then
8713  if test x"$enable_shared" = xyes; then
8714    :
8715  else
8716    # we don't disable shared, because it was not selected anyway
8717    coin_disable_shared=no
8718  fi
8719  enable_shared=no
8720fi
8721# By default, we only want the shared objects to be compiled
8722# Check whether --enable-static or --disable-static was given.
8723if test "${enable_static+set}" = set; then
8724  enableval="$enable_static"
8725  p=${PACKAGE-default}
8726    case $enableval in
8727    yes) enable_static=yes ;;
8728    no) enable_static=no ;;
8729    *)
8730     enable_static=no
8731      # Look at the argument we got.  We use all the common list separators.
8732      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8733      for pkg in $enableval; do
8734        IFS="$lt_save_ifs"
8735        if test "X$pkg" = "X$p"; then
8736          enable_static=yes
8737        fi
8738      done
8739      IFS="$lt_save_ifs"
8740      ;;
8741    esac
8742else
8743  enable_static=no
8744fi;
8745
8746
8747
8748
8749# Initialize automake
8750echo "$as_me:$LINENO: checking for egrep" >&5
8751echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8752if test "${ac_cv_prog_egrep+set}" = set; then
8753  echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8756    then ac_cv_prog_egrep='grep -E'
8757    else ac_cv_prog_egrep='egrep'
8758    fi
8759fi
8760echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8761echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8762 EGREP=$ac_cv_prog_egrep
8763
8764
8765echo "$as_me:$LINENO: checking whether ln -s works" >&5
8766echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8767LN_S=$as_ln_s
8768if test "$LN_S" = "ln -s"; then
8769  echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771else
8772  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8773echo "${ECHO_T}no, using $LN_S" >&6
8774fi
8775
8776am__api_version="1.9"
8777# Find a good install program.  We prefer a C program (faster),
8778# so one script is as good as another.  But avoid the broken or
8779# incompatible versions:
8780# SysV /etc/install, /usr/sbin/install
8781# SunOS /usr/etc/install
8782# IRIX /sbin/install
8783# AIX /bin/install
8784# AmigaOS /C/install, which installs bootblocks on floppy discs
8785# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8786# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8787# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8788# OS/2's system install, which has a completely different semantic
8789# ./install, which can be erroneously created by make from ./install.sh.
8790echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8791echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8792if test -z "$INSTALL"; then
8793if test "${ac_cv_path_install+set}" = set; then
8794  echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
8796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799  IFS=$as_save_IFS
8800  test -z "$as_dir" && as_dir=.
8801  # Account for people who put trailing slashes in PATH elements.
8802case $as_dir/ in
8803  ./ | .// | /cC/* | \
8804  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8805  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8806  /usr/ucb/* ) ;;
8807  *)
8808    # OSF1 and SCO ODT 3.0 have their own names for install.
8809    # Don't use installbsd from OSF since it installs stuff as root
8810    # by default.
8811    for ac_prog in ginstall scoinst install; do
8812      for ac_exec_ext in '' $ac_executable_extensions; do
8813        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8814          if test $ac_prog = install &&
8815            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8816            # AIX install.  It has an incompatible calling convention.
8817            :
8818          elif test $ac_prog = install &&
8819            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8820            # program-specific install script used by HP pwplus--don't use.
8821            :
8822          else
8823            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8824            break 3
8825          fi
8826        fi
8827      done
8828    done
8829    ;;
8830esac
8831done
8832
8833
8834fi
8835  if test "${ac_cv_path_install+set}" = set; then
8836    INSTALL=$ac_cv_path_install
8837  else
8838    # As a last resort, use the slow shell script.  We don't cache a
8839    # path for INSTALL within a source directory, because that will
8840    # break other packages using the cache if that directory is
8841    # removed, or if the path is relative.
8842    INSTALL=$ac_install_sh
8843  fi
8844fi
8845echo "$as_me:$LINENO: result: $INSTALL" >&5
8846echo "${ECHO_T}$INSTALL" >&6
8847
8848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8849# It thinks the first close brace ends the variable substitution.
8850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8851
8852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8853
8854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8855
8856echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8857echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8858# Just in case
8859sleep 1
8860echo timestamp > conftest.file
8861# Do `set' in a subshell so we don't clobber the current shell's
8862# arguments.  Must try -L first in case configure is actually a
8863# symlink; some systems play weird games with the mod time of symlinks
8864# (eg FreeBSD returns the mod time of the symlink's containing
8865# directory).
8866if (
8867   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8868   if test "$*" = "X"; then
8869      # -L didn't work.
8870      set X `ls -t $srcdir/configure conftest.file`
8871   fi
8872   rm -f conftest.file
8873   if test "$*" != "X $srcdir/configure conftest.file" \
8874      && test "$*" != "X conftest.file $srcdir/configure"; then
8875
8876      # If neither matched, then we have a broken ls.  This can happen
8877      # if, for instance, CONFIG_SHELL is bash and it inherits a
8878      # broken ls alias from the environment.  This has actually
8879      # happened.  Such a system could not be considered "sane".
8880      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8881alias in your environment" >&5
8882echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8883alias in your environment" >&2;}
8884   { (exit 1); exit 1; }; }
8885   fi
8886
8887   test "$2" = conftest.file
8888   )
8889then
8890   # Ok.
8891   :
8892else
8893   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8894Check your system clock" >&5
8895echo "$as_me: error: newly created file is older than distributed files!
8896Check your system clock" >&2;}
8897   { (exit 1); exit 1; }; }
8898fi
8899echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901test "$program_prefix" != NONE &&
8902  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8903# Use a double $ so make ignores it.
8904test "$program_suffix" != NONE &&
8905  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8906# Double any \ or $.  echo might interpret backslashes.
8907# By default was `s,x,x', remove it if useless.
8908cat <<\_ACEOF >conftest.sed
8909s/[\\$]/&&/g;s/;s,x,x,$//
8910_ACEOF
8911program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8912rm conftest.sed
8913
8914# expand $ac_aux_dir to an absolute path
8915am_aux_dir=`cd $ac_aux_dir && pwd`
8916
8917test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8918# Use eval to expand $SHELL
8919if eval "$MISSING --run true"; then
8920  am_missing_run="$MISSING --run "
8921else
8922  am_missing_run=
8923  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8924echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8925fi
8926
8927if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8928  # We used to keeping the `.' as first argument, in order to
8929  # allow $(mkdir_p) to be used without argument.  As in
8930  #   $(mkdir_p) $(somedir)
8931  # where $(somedir) is conditionally defined.  However this is wrong
8932  # for two reasons:
8933  #  1. if the package is installed by a user who cannot write `.'
8934  #     make install will fail,
8935  #  2. the above comment should most certainly read
8936  #     $(mkdir_p) $(DESTDIR)$(somedir)
8937  #     so it does not work when $(somedir) is undefined and
8938  #     $(DESTDIR) is not.
8939  #  To support the latter case, we have to write
8940  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8941  #  so the `.' trick is pointless.
8942  mkdir_p='mkdir -p --'
8943else
8944  # On NextStep and OpenStep, the `mkdir' command does not
8945  # recognize any option.  It will interpret all options as
8946  # directories to create, and then abort because `.' already
8947  # exists.
8948  for d in ./-p ./--version;
8949  do
8950    test -d $d && rmdir $d
8951  done
8952  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8953  if test -f "$ac_aux_dir/mkinstalldirs"; then
8954    mkdir_p='$(mkinstalldirs)'
8955  else
8956    mkdir_p='$(install_sh) -d'
8957  fi
8958fi
8959
8960for ac_prog in gawk mawk nawk awk
8961do
8962  # Extract the first word of "$ac_prog", so it can be a program name with args.
8963set dummy $ac_prog; ac_word=$2
8964echo "$as_me:$LINENO: checking for $ac_word" >&5
8965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8966if test "${ac_cv_prog_AWK+set}" = set; then
8967  echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969  if test -n "$AWK"; then
8970  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975  IFS=$as_save_IFS
8976  test -z "$as_dir" && as_dir=.
8977  for ac_exec_ext in '' $ac_executable_extensions; do
8978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979    ac_cv_prog_AWK="$ac_prog"
8980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981    break 2
8982  fi
8983done
8984done
8985
8986fi
8987fi
8988AWK=$ac_cv_prog_AWK
8989if test -n "$AWK"; then
8990  echo "$as_me:$LINENO: result: $AWK" >&5
8991echo "${ECHO_T}$AWK" >&6
8992else
8993  echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
8995fi
8996
8997  test -n "$AWK" && break
8998done
8999
9000echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9001echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9002set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9003if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9004  echo $ECHO_N "(cached) $ECHO_C" >&6
9005else
9006  cat >conftest.make <<\_ACEOF
9007all:
9008        @echo 'ac_maketemp="$(MAKE)"'
9009_ACEOF
9010# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9011eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9012if test -n "$ac_maketemp"; then
9013  eval ac_cv_prog_make_${ac_make}_set=yes
9014else
9015  eval ac_cv_prog_make_${ac_make}_set=no
9016fi
9017rm -f conftest.make
9018fi
9019if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9020  echo "$as_me:$LINENO: result: yes" >&5
9021echo "${ECHO_T}yes" >&6
9022  SET_MAKE=
9023else
9024  echo "$as_me:$LINENO: result: no" >&5
9025echo "${ECHO_T}no" >&6
9026  SET_MAKE="MAKE=${MAKE-make}"
9027fi
9028
9029rm -rf .tst 2>/dev/null
9030mkdir .tst 2>/dev/null
9031if test -d .tst; then
9032  am__leading_dot=.
9033else
9034  am__leading_dot=_
9035fi
9036rmdir .tst 2>/dev/null
9037
9038DEPDIR="${am__leading_dot}deps"
9039
9040          ac_config_commands="$ac_config_commands depfiles"
9041
9042
9043am_make=${MAKE-make}
9044cat > confinc << 'END'
9045am__doit:
9046        @echo done
9047.PHONY: am__doit
9048END
9049# If we don't find an include directive, just comment out the code.
9050echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9051echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
9052am__include="#"
9053am__quote=
9054_am_result=none
9055# First try GNU make style include.
9056echo "include confinc" > confmf
9057# We grep out `Entering directory' and `Leaving directory'
9058# messages which can occur if `w' ends up in MAKEFLAGS.
9059# In particular we don't look at `^make:' because GNU make might
9060# be invoked under some other name (usually "gmake"), in which
9061# case it prints its new name instead of `make'.
9062if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9063   am__include=include
9064   am__quote=
9065   _am_result=GNU
9066fi
9067# Now try BSD make style include.
9068if test "$am__include" = "#"; then
9069   echo '.include "confinc"' > confmf
9070   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9071      am__include=.include
9072      am__quote="\""
9073      _am_result=BSD
9074   fi
9075fi
9076
9077
9078echo "$as_me:$LINENO: result: $_am_result" >&5
9079echo "${ECHO_T}$_am_result" >&6
9080rm -f confinc confmf
9081
9082# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
9083if test "${enable_dependency_tracking+set}" = set; then
9084  enableval="$enable_dependency_tracking"
9085
9086fi;
9087if test "x$enable_dependency_tracking" != xno; then
9088  am_depcomp="$ac_aux_dir/depcomp"
9089  AMDEPBACKSLASH='\'
9090fi
9091
9092
9093if test "x$enable_dependency_tracking" != xno; then
9094  AMDEP_TRUE=
9095  AMDEP_FALSE='#'
9096else
9097  AMDEP_TRUE='#'
9098  AMDEP_FALSE=
9099fi
9100
9101
9102
9103
9104
9105
9106# AC_MSG_NOTICE([Beginning automake initialisation.])
9107# Stuff for automake
9108# test to see if srcdir already configured
9109if test "`cd $srcdir && pwd`" != "`pwd`" &&
9110   test -f $srcdir/config.status; then
9111  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
9112echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
9113   { (exit 1); exit 1; }; }
9114fi
9115
9116# test whether we have cygpath
9117if test -z "$CYGPATH_W"; then
9118  if (cygpath --version) >/dev/null 2>/dev/null; then
9119    CYGPATH_W='cygpath -w'
9120  else
9121    CYGPATH_W=echo
9122  fi
9123fi
9124
9125
9126# Define the identity of the package.
9127 PACKAGE='thirdpartylapack'
9128 VERSION='trunk'
9129
9130
9131cat >>confdefs.h <<_ACEOF
9132#define PACKAGE "$PACKAGE"
9133_ACEOF
9134
9135
9136cat >>confdefs.h <<_ACEOF
9137#define VERSION "$VERSION"
9138_ACEOF
9139
9140# Some tools Automake needs.
9141
9142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9143
9144
9145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9146
9147
9148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9149
9150
9151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9152
9153
9154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9155
9156install_sh=${install_sh-"$am_aux_dir/install-sh"}
9157
9158# Installed binaries are usually stripped using `strip' when the user
9159# run `make install-strip'.  However `strip' might not be the right
9160# tool to use in cross-compilation environments, therefore Automake
9161# will honor the `STRIP' environment variable to overrule this program.
9162if test "$cross_compiling" != no; then
9163  if test -n "$ac_tool_prefix"; then
9164  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9165set dummy ${ac_tool_prefix}strip; ac_word=$2
9166echo "$as_me:$LINENO: checking for $ac_word" >&5
9167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9168if test "${ac_cv_prog_STRIP+set}" = set; then
9169  echo $ECHO_N "(cached) $ECHO_C" >&6
9170else
9171  if test -n "$STRIP"; then
9172  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9173else
9174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175for as_dir in $PATH
9176do
9177  IFS=$as_save_IFS
9178  test -z "$as_dir" && as_dir=.
9179  for ac_exec_ext in '' $ac_executable_extensions; do
9180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9181    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183    break 2
9184  fi
9185done
9186done
9187
9188fi
9189fi
9190STRIP=$ac_cv_prog_STRIP
9191if test -n "$STRIP"; then
9192  echo "$as_me:$LINENO: result: $STRIP" >&5
9193echo "${ECHO_T}$STRIP" >&6
9194else
9195  echo "$as_me:$LINENO: result: no" >&5
9196echo "${ECHO_T}no" >&6
9197fi
9198
9199fi
9200if test -z "$ac_cv_prog_STRIP"; then
9201  ac_ct_STRIP=$STRIP
9202  # Extract the first word of "strip", so it can be a program name with args.
9203set dummy strip; ac_word=$2
9204echo "$as_me:$LINENO: checking for $ac_word" >&5
9205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9206if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9207  echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209  if test -n "$ac_ct_STRIP"; then
9210  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9211else
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215  IFS=$as_save_IFS
9216  test -z "$as_dir" && as_dir=.
9217  for ac_exec_ext in '' $ac_executable_extensions; do
9218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9219    ac_cv_prog_ac_ct_STRIP="strip"
9220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9221    break 2
9222  fi
9223done
9224done
9225
9226  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9227fi
9228fi
9229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9230if test -n "$ac_ct_STRIP"; then
9231  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9232echo "${ECHO_T}$ac_ct_STRIP" >&6
9233else
9234  echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6
9236fi
9237
9238  STRIP=$ac_ct_STRIP
9239else
9240  STRIP="$ac_cv_prog_STRIP"
9241fi
9242
9243fi
9244INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9245
9246# We need awk for the "check" target.  The system "awk" is bad on
9247# some platforms.
9248# Always define AMTAR for backward compatibility.
9249
9250AMTAR=${AMTAR-"${am_missing_run}tar"}
9251
9252am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9253
9254
9255
9256
9257depcc="$CC"   am_compiler_list=
9258
9259echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9260echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9261if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9262  echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9265  # We make a subdir and do the tests there.  Otherwise we can end up
9266  # making bogus files that we don't know about and never remove.  For
9267  # instance it was reported that on HP-UX the gcc test will end up
9268  # making a dummy file named `D' -- because `-MD' means `put the output
9269  # in D'.
9270  mkdir conftest.dir
9271  # Copy depcomp to subdir because otherwise we won't find it if we're
9272  # using a relative directory.
9273  cp "$am_depcomp" conftest.dir
9274  cd conftest.dir
9275  # We will build objects and dependencies in a subdirectory because
9276  # it helps to detect inapplicable dependency modes.  For instance
9277  # both Tru64's cc and ICC support -MD to output dependencies as a
9278  # side effect of compilation, but ICC will put the dependencies in
9279  # the current directory while Tru64 will put them in the object
9280  # directory.
9281  mkdir sub
9282
9283  am_cv_CC_dependencies_compiler_type=none
9284  if test "$am_compiler_list" = ""; then
9285     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9286  fi
9287  for depmode in $am_compiler_list; do
9288    # Setup a source with many dependencies, because some compilers
9289    # like to wrap large dependency lists on column 80 (with \), and
9290    # we should not choose a depcomp mode which is confused by this.
9291    #
9292    # We need to recreate these files for each test, as the compiler may
9293    # overwrite some of them when testing with obscure command lines.
9294    # This happens at least with the AIX C compiler.
9295    : > sub/conftest.c
9296    for i in 1 2 3 4 5 6; do
9297      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9298      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9299      # Solaris 8's {/usr,}/bin/sh.
9300      touch sub/conftst$i.h
9301    done
9302    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9303
9304    case $depmode in
9305    nosideeffect)
9306      # after this tag, mechanisms are not by side-effect, so they'll
9307      # only be used when explicitly requested
9308      if test "x$enable_dependency_tracking" = xyes; then
9309        continue
9310      else
9311        break
9312      fi
9313      ;;
9314    none) break ;;
9315    esac
9316    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9317    # mode.  It turns out that the SunPro C++ compiler does not properly
9318    # handle `-M -o', and we need to detect this.
9319    if depmode=$depmode \
9320       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9321       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9322       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9323         >/dev/null 2>conftest.err &&
9324       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9325       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9326       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9327      # icc doesn't choke on unknown options, it will just issue warnings
9328      # or remarks (even with -Werror).  So we grep stderr for any message
9329      # that says an option was ignored or not supported.
9330      # When given -MP, icc 7.0 and 7.1 complain thusly:
9331      #   icc: Command line warning: ignoring option '-M'; no argument required
9332      # The diagnosis changed in icc 8.0:
9333      #   icc: Command line remark: option '-MP' not supported
9334      if (grep 'ignoring option' conftest.err ||
9335          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9336        am_cv_CC_dependencies_compiler_type=$depmode
9337        break
9338      fi
9339    fi
9340  done
9341
9342  cd ..
9343  rm -rf conftest.dir
9344else
9345  am_cv_CC_dependencies_compiler_type=none
9346fi
9347
9348fi
9349echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9350echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9351CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9352
9353
9354
9355if
9356  test "x$enable_dependency_tracking" != xno \
9357  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9358  am__fastdepCC_TRUE=
9359  am__fastdepCC_FALSE='#'
9360else
9361  am__fastdepCC_TRUE='#'
9362  am__fastdepCC_FALSE=
9363fi
9364
9365
9366
9367echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9368echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9369    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9370if test "${enable_maintainer_mode+set}" = set; then
9371  enableval="$enable_maintainer_mode"
9372  USE_MAINTAINER_MODE=$enableval
9373else
9374  USE_MAINTAINER_MODE=no
9375fi;
9376  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9377echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9378
9379
9380if test $USE_MAINTAINER_MODE = yes; then
9381  MAINTAINER_MODE_TRUE=
9382  MAINTAINER_MODE_FALSE='#'
9383else
9384  MAINTAINER_MODE_TRUE='#'
9385  MAINTAINER_MODE_FALSE=
9386fi
9387
9388  MAINT=$MAINTAINER_MODE_TRUE
9389
9390
9391
9392coin_have_externals=no
9393if test "$enable_maintainer_mode" = yes; then
9394
9395  # If maintainer mode is chosen, we make sure that the correct versions
9396  # of the tools are used, and that we know where libtool.m4 is (to
9397  # recreate acinclude.m4)
9398
9399
9400  LIBTOOLM4=
9401  # Normally, $HOME
9402  AUTOTOOLS_DFLT=$HOME
9403
9404  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9405echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9406if test "${ac_cv_use_correct_autotools+set}" = set; then
9407  echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409  ac_cv_use_correct_autotools=check
9410fi
9411echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9412echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9413
9414  if test $ac_cv_use_correct_autotools = check; then
9415    ac_cv_use_correct_autotools=yes
9416    # Check if we have autoconf
9417    # Extract the first word of "autoconf", so it can be a program name with args.
9418set dummy autoconf; ac_word=$2
9419echo "$as_me:$LINENO: checking for $ac_word" >&5
9420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9421if test "${ac_cv_prog_have_autoconf+set}" = set; then
9422  echo $ECHO_N "(cached) $ECHO_C" >&6
9423else
9424  if test -n "$have_autoconf"; then
9425  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9426else
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430  IFS=$as_save_IFS
9431  test -z "$as_dir" && as_dir=.
9432  for ac_exec_ext in '' $ac_executable_extensions; do
9433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9434    ac_cv_prog_have_autoconf="yes"
9435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9436    break 2
9437  fi
9438done
9439done
9440
9441  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9442fi
9443fi
9444have_autoconf=$ac_cv_prog_have_autoconf
9445if test -n "$have_autoconf"; then
9446  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9447echo "${ECHO_T}$have_autoconf" >&6
9448else
9449  echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
9451fi
9452
9453    if test $have_autoconf = no; then
9454      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9455echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9456   { (exit 1); exit 1; }; }
9457    fi
9458
9459    # Check whether autoconf is the correct version
9460    correct_version='2.59'
9461    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9462    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9463echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9464    autoconf --version > confauto.out 2>&1
9465    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9466      echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468    else
9469      rm -f confauto.out
9470      echo "$as_me:$LINENO: result: no" >&5
9471echo "${ECHO_T}no" >&6
9472      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9473echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9474   { (exit 1); exit 1; }; }
9475    fi
9476    rm -f confauto.out
9477
9478    # Check if the executable autoconf is picked up from the correct location
9479    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9480echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9481    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9482    autoconf_dir=`cd $autoconf_dir; pwd`
9483    if test x$AUTOTOOLS_DIR = x; then
9484      want_dir=$AUTOTOOLS_DFLT/bin
9485    else
9486      want_dir=$AUTOTOOLS_DIR/bin
9487    fi
9488    if test $autoconf_dir = `cd $want_dir; pwd`; then
9489      echo "$as_me:$LINENO: result: yes" >&5
9490echo "${ECHO_T}yes" >&6
9491    else
9492      rm -f confauto.out
9493      echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
9495      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9496echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9497   { (exit 1); exit 1; }; }
9498    fi
9499
9500    # Check if we have automake
9501    # Extract the first word of "automake", so it can be a program name with args.
9502set dummy automake; ac_word=$2
9503echo "$as_me:$LINENO: checking for $ac_word" >&5
9504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9505if test "${ac_cv_prog_have_automake+set}" = set; then
9506  echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508  if test -n "$have_automake"; then
9509  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9510else
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514  IFS=$as_save_IFS
9515  test -z "$as_dir" && as_dir=.
9516  for ac_exec_ext in '' $ac_executable_extensions; do
9517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518    ac_cv_prog_have_automake="yes"
9519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520    break 2
9521  fi
9522done
9523done
9524
9525  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9526fi
9527fi
9528have_automake=$ac_cv_prog_have_automake
9529if test -n "$have_automake"; then
9530  echo "$as_me:$LINENO: result: $have_automake" >&5
9531echo "${ECHO_T}$have_automake" >&6
9532else
9533  echo "$as_me:$LINENO: result: no" >&5
9534echo "${ECHO_T}no" >&6
9535fi
9536
9537    if test $have_automake = no; then
9538      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9539echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9540   { (exit 1); exit 1; }; }
9541    fi
9542
9543    # Check whether automake is the correct version
9544    correct_version='1.9.6'
9545    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9546    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9547echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9548    automake --version > confauto.out 2>&1
9549    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9550      echo "$as_me:$LINENO: result: yes" >&5
9551echo "${ECHO_T}yes" >&6
9552    else
9553      rm -f confauto.out
9554      echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9557echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9558   { (exit 1); exit 1; }; }
9559    fi
9560    rm -f confauto.out
9561
9562    # Check if the executable automake is picked up from the correct location
9563    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9564echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9565    automake_dir=`which automake | sed -e 's=/automake=='`
9566    automake_dir=`cd $automake_dir; pwd`
9567    if test x$AUTOTOOLS_DIR = x; then
9568      want_dir=$AUTOTOOLS_DFLT/bin
9569    else
9570      want_dir=$AUTOTOOLS_DIR/bin
9571    fi
9572    if test $automake_dir = `cd $want_dir; pwd`; then
9573      echo "$as_me:$LINENO: result: yes" >&5
9574echo "${ECHO_T}yes" >&6
9575    else
9576      rm -f confauto.out
9577      echo "$as_me:$LINENO: result: no" >&5
9578echo "${ECHO_T}no" >&6
9579      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9580echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9581   { (exit 1); exit 1; }; }
9582    fi
9583
9584    # Check if this is the correct version of libtool (with escaped dots)
9585    if test x$AUTOTOOLS_DIR = x; then
9586      want_dir=$AUTOTOOLS_DFLT/share
9587    else
9588      want_dir=$AUTOTOOLS_DIR/share
9589    fi
9590    correct_version='1.5.22'
9591    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9592    if test -r $want_dir/libtool/ltmain.sh; then
9593  have_ltmain=yes
9594  :
9595else
9596  have_ltmain=no
9597  :
9598fi
9599
9600    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9601echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9602    if test $have_ltmain = yes; then
9603    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9604        echo "$as_me:$LINENO: result: yes" >&5
9605echo "${ECHO_T}yes" >&6
9606      else
9607        echo "$as_me:$LINENO: result: no" >&5
9608echo "${ECHO_T}no" >&6
9609        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9610echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9611   { (exit 1); exit 1; }; }
9612      fi
9613    else
9614      echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
9616      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9617echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9618   { (exit 1); exit 1; }; }
9619    fi
9620  fi
9621
9622  # Check if we can find the libtool file
9623  if test x$AUTOTOOLS_DIR = x; then
9624    want_dir=$AUTOTOOLS_DFLT/share
9625  else
9626    want_dir=$AUTOTOOLS_DIR/share
9627  fi
9628  if test -r $want_dir/aclocal/libtool.m4; then
9629  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9630  :
9631else
9632  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9633echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9634   { (exit 1); exit 1; }; }
9635  :
9636fi
9637
9638
9639  # Check if we have an Dependencies file
9640  if test -r $srcdir/Dependencies; then
9641    coin_have_externals=yes
9642  fi
9643  # Check if subversion is installed and understands https
9644  # Extract the first word of "svn", so it can be a program name with args.
9645set dummy svn; ac_word=$2
9646echo "$as_me:$LINENO: checking for $ac_word" >&5
9647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9648if test "${ac_cv_prog_have_svn+set}" = set; then
9649  echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651  if test -n "$have_svn"; then
9652  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9653else
9654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655for as_dir in $PATH
9656do
9657  IFS=$as_save_IFS
9658  test -z "$as_dir" && as_dir=.
9659  for ac_exec_ext in '' $ac_executable_extensions; do
9660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661    ac_cv_prog_have_svn="yes"
9662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9663    break 2
9664  fi
9665done
9666done
9667
9668  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9669fi
9670fi
9671have_svn=$ac_cv_prog_have_svn
9672if test -n "$have_svn"; then
9673  echo "$as_me:$LINENO: result: $have_svn" >&5
9674echo "${ECHO_T}$have_svn" >&6
9675else
9676  echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678fi
9679
9680  if test x$have_svn = xyes; then
9681    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9682echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9683if test "${ac_cv_svn_understands_https+set}" = set; then
9684  echo $ECHO_N "(cached) $ECHO_C" >&6
9685else
9686  svn --version > confauto.out 2>&1
9687                    if $EGREP https confauto.out >/dev/null 2>&1; then
9688                      ac_cv_svn_understands_https=yes
9689                    else
9690                      ac_cv_svn_understands_https=no
9691                      have_svn=no
9692                      ac_cv_prog_have_svn=no
9693                    fi
9694                    rm -f confauto.out
9695fi
9696echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9697echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9698  fi
9699
9700  # Find the location of the BuildTools directory
9701  BUILDTOOLSDIR=
9702  if test -r $srcdir/BuildTools/coin.m4; then
9703    BUILDTOOLSDIR=$srcdir/BuildTools
9704  else
9705    if test -r $srcdir/../BuildTools/coin.m4; then
9706      BUILDTOOLSDIR=$srcdir/../BuildTools
9707    else
9708      if test -r $srcdir/../../BuildTools/coin.m4; then
9709        BUILDTOOLSDIR=$srcdir/../../BuildTools
9710      else
9711        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9712echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9713   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9714      fi
9715    fi
9716  fi
9717
9718
9719  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9720  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9721    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9722  fi
9723
9724  # The following variable is set to the name of the directory where
9725  # the autotool scripts are located
9726
9727  AUX_DIR=$ac_aux_dir
9728fi
9729
9730# helpful variable for the base directory of this package
9731abs_source_dir=`cd $srcdir; pwd`
9732
9733
9734# Stuff for example Makefiles
9735if test x$prefix = xNONE; then
9736  full_prefix=$ac_default_prefix
9737else
9738  full_prefix=$prefix
9739fi
9740full_prefix=`cd $full_prefix ; pwd`
9741
9742abs_lib_dir=$full_prefix/lib
9743
9744abs_include_dir=$full_prefix/include
9745
9746abs_bin_dir=$full_prefix/bin
9747
9748
9749
9750if test $coin_have_externals = yes && test x$have_svn = xyes; then
9751  HAVE_EXTERNALS_TRUE=
9752  HAVE_EXTERNALS_FALSE='#'
9753else
9754  HAVE_EXTERNALS_TRUE='#'
9755  HAVE_EXTERNALS_FALSE=
9756fi
9757
9758
9759# AC_MSG_NOTICE([End automake initialisation.])
9760
9761
9762
9763LIBTOOL=
9764if test -r ../libtool; then
9765  coin_config_dir=..
9766  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9767fi
9768if test "x$LIBTOOL" = x; then
9769  if test -r ../../libtool; then
9770    coin_config_dir=../..
9771    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9772  fi
9773fi
9774
9775if test "x$LIBTOOL" = x; then
9776# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9777  # Stuff for libtool
9778  # Check whether --enable-shared or --disable-shared was given.
9779if test "${enable_shared+set}" = set; then
9780  enableval="$enable_shared"
9781  p=${PACKAGE-default}
9782    case $enableval in
9783    yes) enable_shared=yes ;;
9784    no) enable_shared=no ;;
9785    *)
9786      enable_shared=no
9787      # Look at the argument we got.  We use all the common list separators.
9788      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9789      for pkg in $enableval; do
9790        IFS="$lt_save_ifs"
9791        if test "X$pkg" = "X$p"; then
9792          enable_shared=yes
9793        fi
9794      done
9795      IFS="$lt_save_ifs"
9796      ;;
9797    esac
9798else
9799  enable_shared=yes
9800fi;
9801
9802# Check whether --enable-fast-install or --disable-fast-install was given.
9803if test "${enable_fast_install+set}" = set; then
9804  enableval="$enable_fast_install"
9805  p=${PACKAGE-default}
9806    case $enableval in
9807    yes) enable_fast_install=yes ;;
9808    no) enable_fast_install=no ;;
9809    *)
9810      enable_fast_install=no
9811      # Look at the argument we got.  We use all the common list separators.
9812      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9813      for pkg in $enableval; do
9814        IFS="$lt_save_ifs"
9815        if test "X$pkg" = "X$p"; then
9816          enable_fast_install=yes
9817        fi
9818      done
9819      IFS="$lt_save_ifs"
9820      ;;
9821    esac
9822else
9823  enable_fast_install=yes
9824fi;
9825
9826echo "$as_me:$LINENO: checking host system type" >&5
9827echo $ECHO_N "checking host system type... $ECHO_C" >&6
9828if test "${ac_cv_host+set}" = set; then
9829  echo $ECHO_N "(cached) $ECHO_C" >&6
9830else
9831  ac_cv_host_alias=$host_alias
9832test -z "$ac_cv_host_alias" &&
9833  ac_cv_host_alias=$ac_cv_build_alias
9834ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9835  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9836echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9837   { (exit 1); exit 1; }; }
9838
9839fi
9840echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9841echo "${ECHO_T}$ac_cv_host" >&6
9842host=$ac_cv_host
9843host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9844host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9845host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9846
9847
9848echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9849echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9850if test "${lt_cv_path_SED+set}" = set; then
9851  echo $ECHO_N "(cached) $ECHO_C" >&6
9852else
9853  # Loop through the user's path and test for sed and gsed.
9854# Then use that list of sed's as ones to test for truncation.
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858  IFS=$as_save_IFS
9859  test -z "$as_dir" && as_dir=.
9860  for lt_ac_prog in sed gsed; do
9861    for ac_exec_ext in '' $ac_executable_extensions; do
9862      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9863        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9864      fi
9865    done
9866  done
9867done
9868lt_ac_max=0
9869lt_ac_count=0
9870# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9871# along with /bin/sed that truncates output.
9872for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9873  test ! -f $lt_ac_sed && continue
9874  cat /dev/null > conftest.in
9875  lt_ac_count=0
9876  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9877  # Check for GNU sed and select it if it is found.
9878  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9879    lt_cv_path_SED=$lt_ac_sed
9880    break
9881  fi
9882  while true; do
9883    cat conftest.in conftest.in >conftest.tmp
9884    mv conftest.tmp conftest.in
9885    cp conftest.in conftest.nl
9886    echo >>conftest.nl
9887    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9888    cmp -s conftest.out conftest.nl || break
9889    # 10000 chars as input seems more than enough
9890    test $lt_ac_count -gt 10 && break
9891    lt_ac_count=`expr $lt_ac_count + 1`
9892    if test $lt_ac_count -gt $lt_ac_max; then
9893      lt_ac_max=$lt_ac_count
9894      lt_cv_path_SED=$lt_ac_sed
9895    fi
9896  done
9897done
9898
9899fi
9900
9901SED=$lt_cv_path_SED
9902echo "$as_me:$LINENO: result: $SED" >&5
9903echo "${ECHO_T}$SED" >&6
9904
9905
9906# Check whether --with-gnu-ld or --without-gnu-ld was given.
9907if test "${with_gnu_ld+set}" = set; then
9908  withval="$with_gnu_ld"
9909  test "$withval" = no || with_gnu_ld=yes
9910else
9911  with_gnu_ld=no
9912fi;
9913ac_prog=ld
9914if test "$GCC" = yes; then
9915  # Check if gcc -print-prog-name=ld gives a path.
9916  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9917echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9918  case $host in
9919  *-*-mingw*)
9920    # gcc leaves a trailing carriage return which upsets mingw
9921    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9922  *)
9923    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9924  esac
9925  case $ac_prog in
9926    # Accept absolute paths.
9927    [\\/]* | ?:[\\/]*)
9928      re_direlt='/[^/][^/]*/\.\./'
9929      # Canonicalize the pathname of ld
9930      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9931      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9932        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9933      done
9934      test -z "$LD" && LD="$ac_prog"
9935      ;;
9936  "")
9937    # If it fails, then pretend we aren't using GCC.
9938    ac_prog=ld
9939    ;;
9940  *)
9941    # If it is relative, then search for the first ld in PATH.
9942    with_gnu_ld=unknown
9943    ;;
9944  esac
9945elif test "$with_gnu_ld" = yes; then
9946  echo "$as_me:$LINENO: checking for GNU ld" >&5
9947echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9948else
9949  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9950echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9951fi
9952if test "${lt_cv_path_LD+set}" = set; then
9953  echo $ECHO_N "(cached) $ECHO_C" >&6
9954else
9955  if test -z "$LD"; then
9956  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9957  for ac_dir in $PATH; do
9958    IFS="$lt_save_ifs"
9959    test -z "$ac_dir" && ac_dir=.
9960    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9961      lt_cv_path_LD="$ac_dir/$ac_prog"
9962      # Check to see if the program is GNU ld.  I'd rather use --version,
9963      # but apparently some variants of GNU ld only accept -v.
9964      # Break only if it was the GNU/non-GNU ld that we prefer.
9965      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9966      *GNU* | *'with BFD'*)
9967        test "$with_gnu_ld" != no && break
9968        ;;
9969      *)
9970        test "$with_gnu_ld" != yes && break
9971        ;;
9972      esac
9973    fi
9974  done
9975  IFS="$lt_save_ifs"
9976else
9977  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9978fi
9979fi
9980
9981LD="$lt_cv_path_LD"
9982if test -n "$LD"; then
9983  echo "$as_me:$LINENO: result: $LD" >&5
9984echo "${ECHO_T}$LD" >&6
9985else
9986  echo "$as_me:$LINENO: result: no" >&5
9987echo "${ECHO_T}no" >&6
9988fi
9989test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9990echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9991   { (exit 1); exit 1; }; }
9992echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9993echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9994if test "${lt_cv_prog_gnu_ld+set}" = set; then
9995  echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9998case `$LD -v 2>&1 </dev/null` in
9999*GNU* | *'with BFD'*)
10000  lt_cv_prog_gnu_ld=yes
10001  ;;
10002*)
10003  lt_cv_prog_gnu_ld=no
10004  ;;
10005esac
10006fi
10007echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10008echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10009with_gnu_ld=$lt_cv_prog_gnu_ld
10010
10011
10012echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10013echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10014if test "${lt_cv_ld_reload_flag+set}" = set; then
10015  echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017  lt_cv_ld_reload_flag='-r'
10018fi
10019echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10020echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10021reload_flag=$lt_cv_ld_reload_flag
10022case $reload_flag in
10023"" | " "*) ;;
10024*) reload_flag=" $reload_flag" ;;
10025esac
10026reload_cmds='$LD$reload_flag -o $output$reload_objs'
10027case $host_os in
10028  darwin*)
10029    if test "$GCC" = yes; then
10030      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10031    else
10032      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10033    fi
10034    ;;
10035esac
10036
10037echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10038echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10039if test "${lt_cv_path_NM+set}" = set; then
10040  echo $ECHO_N "(cached) $ECHO_C" >&6
10041else
10042  if test -n "$NM"; then
10043  # Let the user override the test.
10044  lt_cv_path_NM="$NM"
10045else
10046  lt_nm_to_check="${ac_tool_prefix}nm"
10047  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10048    lt_nm_to_check="$lt_nm_to_check nm"
10049  fi
10050  for lt_tmp_nm in $lt_nm_to_check; do
10051    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10052    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10053      IFS="$lt_save_ifs"
10054      test -z "$ac_dir" && ac_dir=.
10055      tmp_nm="$ac_dir/$lt_tmp_nm"
10056      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10057        # Check to see if the nm accepts a BSD-compat flag.
10058        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10059        #   nm: unknown option "B" ignored
10060        # Tru64's nm complains that /dev/null is an invalid object file
10061        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10062        */dev/null* | *'Invalid file or object type'*)
10063          lt_cv_path_NM="$tmp_nm -B"
10064          break
10065          ;;
10066        *)
10067          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10068          */dev/null*)
10069            lt_cv_path_NM="$tmp_nm -p"
10070            break
10071            ;;
10072          *)
10073            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10074            continue # so that we can try to find one that supports BSD flags
10075            ;;
10076          esac
10077          ;;
10078        esac
10079      fi
10080    done
10081    IFS="$lt_save_ifs"
10082  done
10083  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10084fi
10085fi
10086echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10087echo "${ECHO_T}$lt_cv_path_NM" >&6
10088NM="$lt_cv_path_NM"
10089
10090echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10091echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10092if test "${lt_cv_deplibs_check_method+set}" = set; then
10093  echo $ECHO_N "(cached) $ECHO_C" >&6
10094else
10095  lt_cv_file_magic_cmd='$MAGIC_CMD'
10096lt_cv_file_magic_test_file=
10097lt_cv_deplibs_check_method='unknown'
10098# Need to set the preceding variable on all platforms that support
10099# interlibrary dependencies.
10100# 'none' -- dependencies not supported.
10101# `unknown' -- same as none, but documents that we really don't know.
10102# 'pass_all' -- all dependencies passed with no checks.
10103# 'test_compile' -- check by making test program.
10104# 'file_magic [[regex]]' -- check by looking for files in library path
10105# which responds to the $file_magic_cmd with a given extended regex.
10106# If you have `file' or equivalent on your system and you're not sure
10107# whether `pass_all' will *always* work, you probably want this one.
10108
10109case $host_os in
10110aix4* | aix5*)
10111  lt_cv_deplibs_check_method=pass_all
10112  ;;
10113
10114beos*)
10115  lt_cv_deplibs_check_method=pass_all
10116  ;;
10117
10118bsdi[45]*)
10119  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10120  lt_cv_file_magic_cmd='/usr/bin/file -L'
10121  lt_cv_file_magic_test_file=/shlib/libc.so
10122  ;;
10123
10124cygwin*)
10125  # func_win32_libid is a shell function defined in ltmain.sh
10126  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10127  lt_cv_file_magic_cmd='func_win32_libid'
10128  ;;
10129
10130mingw* | pw32*)
10131  # Base MSYS/MinGW do not provide the 'file' command needed by
10132  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10133  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10134  lt_cv_file_magic_cmd='$OBJDUMP -f'
10135  ;;
10136
10137darwin* | rhapsody*)
10138  lt_cv_deplibs_check_method=pass_all
10139  ;;
10140
10141freebsd* | kfreebsd*-gnu | dragonfly*)
10142  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10143    case $host_cpu in
10144    i*86 )
10145      # Not sure whether the presence of OpenBSD here was a mistake.
10146      # Let's accept both of them until this is cleared up.
10147      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10148      lt_cv_file_magic_cmd=/usr/bin/file
10149      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10150      ;;
10151    esac
10152  else
10153    lt_cv_deplibs_check_method=pass_all
10154  fi
10155  ;;
10156
10157gnu*)
10158  lt_cv_deplibs_check_method=pass_all
10159  ;;
10160
10161hpux10.20* | hpux11*)
10162  lt_cv_file_magic_cmd=/usr/bin/file
10163  case $host_cpu in
10164  ia64*)
10165    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10166    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10167    ;;
10168  hppa*64*)
10169    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10170    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10171    ;;
10172  *)
10173    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10174    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10175    ;;
10176  esac
10177  ;;
10178
10179interix3*)
10180  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10181  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10182  ;;
10183
10184irix5* | irix6* | nonstopux*)
10185  case $LD in
10186  *-32|*"-32 ") libmagic=32-bit;;
10187  *-n32|*"-n32 ") libmagic=N32;;
10188  *-64|*"-64 ") libmagic=64-bit;;
10189  *) libmagic=never-match;;
10190  esac
10191  lt_cv_deplibs_check_method=pass_all
10192  ;;
10193
10194# This must be Linux ELF.
10195linux*)
10196  lt_cv_deplibs_check_method=pass_all
10197  ;;
10198
10199netbsd*)
10200  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10201    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10202  else
10203    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10204  fi
10205  ;;
10206
10207newos6*)
10208  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10209  lt_cv_file_magic_cmd=/usr/bin/file
10210  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10211  ;;
10212
10213nto-qnx*)
10214  lt_cv_deplibs_check_method=unknown
10215  ;;
10216
10217openbsd*)
10218  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10219    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10220  else
10221    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10222  fi
10223  ;;
10224
10225osf3* | osf4* | osf5*)
10226  lt_cv_deplibs_check_method=pass_all
10227  ;;
10228
10229solaris*)
10230  lt_cv_deplibs_check_method=pass_all
10231  ;;
10232
10233sysv4 | sysv4.3*)
10234  case $host_vendor in
10235  motorola)
10236    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10237    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10238    ;;
10239  ncr)
10240    lt_cv_deplibs_check_method=pass_all
10241    ;;
10242  sequent)
10243    lt_cv_file_magic_cmd='/bin/file'
10244    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10245    ;;
10246  sni)
10247    lt_cv_file_magic_cmd='/bin/file'
10248    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10249    lt_cv_file_magic_test_file=/lib/libc.so
10250    ;;
10251  siemens)
10252    lt_cv_deplibs_check_method=pass_all
10253    ;;
10254  pc)
10255    lt_cv_deplibs_check_method=pass_all
10256    ;;
10257  esac
10258  ;;
10259
10260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10261  lt_cv_deplibs_check_method=pass_all
10262  ;;
10263esac
10264
10265fi
10266echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10267echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10268file_magic_cmd=$lt_cv_file_magic_cmd
10269deplibs_check_method=$lt_cv_deplibs_check_method
10270test -z "$deplibs_check_method" && deplibs_check_method=unknown
10271
10272
10273
10274
10275# If no C compiler was specified, use CC.
10276LTCC=${LTCC-"$CC"}
10277
10278# If no C compiler flags were specified, use CFLAGS.
10279LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10280
10281# Allow CC to be a program name with arguments.
10282compiler=$CC
10283
10284# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10285if test "${enable_libtool_lock+set}" = set; then
10286  enableval="$enable_libtool_lock"
10287
10288fi;
10289test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10290
10291# Some flags need to be propagated to the compiler or linker for good
10292# libtool support.
10293case $host in
10294ia64-*-hpux*)
10295  # Find out which ABI we are using.
10296  echo 'int i;' > conftest.$ac_ext
10297  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10298  (eval $ac_compile) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; then
10302    case `/usr/bin/file conftest.$ac_objext` in
10303    *ELF-32*)
10304      HPUX_IA64_MODE="32"
10305      ;;
10306    *ELF-64*)
10307      HPUX_IA64_MODE="64"
10308      ;;
10309    esac
10310  fi
10311  rm -rf conftest*
10312  ;;
10313*-*-irix6*)
10314  # Find out which ABI we are using.
10315  echo '#line 10315 "configure"' > conftest.$ac_ext
10316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317  (eval $ac_compile) 2>&5
10318  ac_status=$?
10319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320  (exit $ac_status); }; then
10321   if test "$lt_cv_prog_gnu_ld" = yes; then
10322    case `/usr/bin/file conftest.$ac_objext` in
10323    *32-bit*)
10324      LD="${LD-ld} -melf32bsmip"
10325      ;;
10326    *N32*)
10327      LD="${LD-ld} -melf32bmipn32"
10328      ;;
10329    *64-bit*)
10330      LD="${LD-ld} -melf64bmip"
10331      ;;
10332    esac
10333   else
10334    case `/usr/bin/file conftest.$ac_objext` in
10335    *32-bit*)
10336      LD="${LD-ld} -32"
10337      ;;
10338    *N32*)
10339      LD="${LD-ld} -n32"
10340      ;;
10341    *64-bit*)
10342      LD="${LD-ld} -64"
10343      ;;
10344    esac
10345   fi
10346  fi
10347  rm -rf conftest*
10348  ;;
10349
10350x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10351  # Find out which ABI we are using.
10352  echo 'int i;' > conftest.$ac_ext
10353  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354  (eval $ac_compile) 2>&5
10355  ac_status=$?
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); }; then
10358    case `/usr/bin/file conftest.o` in
10359    *32-bit*)
10360      case $host in
10361        x86_64-*linux*)
10362          LD="${LD-ld} -m elf_i386"
10363          ;;
10364        ppc64-*linux*|powerpc64-*linux*)
10365          LD="${LD-ld} -m elf32ppclinux"
10366          ;;
10367        s390x-*linux*)
10368          LD="${LD-ld} -m elf_s390"
10369          ;;
10370        sparc64-*linux*)
10371          LD="${LD-ld} -m elf32_sparc"
10372          ;;
10373      esac
10374      ;;
10375    *64-bit*)
10376      case $host in
10377        x86_64-*linux*)
10378          LD="${LD-ld} -m elf_x86_64"
10379          ;;
10380        ppc*-*linux*|powerpc*-*linux*)
10381          LD="${LD-ld} -m elf64ppc"
10382          ;;
10383        s390*-*linux*)
10384          LD="${LD-ld} -m elf64_s390"
10385          ;;
10386        sparc*-*linux*)
10387          LD="${LD-ld} -m elf64_sparc"
10388          ;;
10389      esac
10390      ;;
10391    esac
10392  fi
10393  rm -rf conftest*
10394  ;;
10395
10396*-*-sco3.2v5*)
10397  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10398  SAVE_CFLAGS="$CFLAGS"
10399  CFLAGS="$CFLAGS -belf"
10400  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10401echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10402if test "${lt_cv_cc_needs_belf+set}" = set; then
10403  echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405  ac_ext=c
10406ac_cpp='$CPP $CPPFLAGS'
10407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409ac_compiler_gnu=$ac_cv_c_compiler_gnu
10410
10411     cat >conftest.$ac_ext <<_ACEOF
10412/* confdefs.h.  */
10413_ACEOF
10414cat confdefs.h >>conftest.$ac_ext
10415cat >>conftest.$ac_ext <<_ACEOF
10416/* end confdefs.h.  */
10417
10418#ifdef F77_DUMMY_MAIN
10419
10420#  ifdef __cplusplus
10421     extern "C"
10422#  endif
10423   int F77_DUMMY_MAIN() { return 1; }
10424
10425#endif
10426int
10427main ()
10428{
10429
10430  ;
10431  return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436  (eval $ac_link) 2>conftest.er1
10437  ac_status=$?
10438  grep -v '^ *+' conftest.er1 >conftest.err
10439  rm -f conftest.er1
10440  cat conftest.err >&5
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); } &&
10443         { ac_try='test -z "$ac_c_werror_flag"
10444                         || test ! -s conftest.err'
10445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446  (eval $ac_try) 2>&5
10447  ac_status=$?
10448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); }; } &&
10450         { ac_try='test -s conftest$ac_exeext'
10451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452  (eval $ac_try) 2>&5
10453  ac_status=$?
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); }; }; then
10456  lt_cv_cc_needs_belf=yes
10457else
10458  echo "$as_me: failed program was:" >&5
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461lt_cv_cc_needs_belf=no
10462fi
10463rm -f conftest.err conftest.$ac_objext \
10464      conftest$ac_exeext conftest.$ac_ext
10465     ac_ext=c
10466ac_cpp='$CPP $CPPFLAGS'
10467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10469ac_compiler_gnu=$ac_cv_c_compiler_gnu
10470
10471fi
10472echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10473echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10474  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10475    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10476    CFLAGS="$SAVE_CFLAGS"
10477  fi
10478  ;;
10479sparc*-*solaris*)
10480  # Find out which ABI we are using.
10481  echo 'int i;' > conftest.$ac_ext
10482  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483  (eval $ac_compile) 2>&5
10484  ac_status=$?
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); }; then
10487    case `/usr/bin/file conftest.o` in
10488    *64-bit*)
10489      case $lt_cv_prog_gnu_ld in
10490      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10491      *)    LD="${LD-ld} -64" ;;
10492      esac
10493      ;;
10494    esac
10495  fi
10496  rm -rf conftest*
10497  ;;
10498
10499
10500esac
10501
10502need_locks="$enable_libtool_lock"
10503
10504
10505ac_ext=c
10506ac_cpp='$CPP $CPPFLAGS'
10507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509ac_compiler_gnu=$ac_cv_c_compiler_gnu
10510echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10511echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10512# On Suns, sometimes $CPP names a directory.
10513if test -n "$CPP" && test -d "$CPP"; then
10514  CPP=
10515fi
10516if test -z "$CPP"; then
10517  if test "${ac_cv_prog_CPP+set}" = set; then
10518  echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520      # Double quotes because CPP needs to be expanded
10521    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10522    do
10523      ac_preproc_ok=false
10524for ac_c_preproc_warn_flag in '' yes
10525do
10526  # Use a header file that comes with gcc, so configuring glibc
10527  # with a fresh cross-compiler works.
10528  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529  # <limits.h> exists even on freestanding compilers.
10530  # On the NeXT, cc -E runs the code through the compiler's parser,
10531  # not just through cpp. "Syntax error" is here to catch this case.
10532  cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h.  */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h.  */
10538#ifdef __STDC__
10539# include <limits.h>
10540#else
10541# include <assert.h>
10542#endif
10543                     Syntax error
10544_ACEOF
10545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10546  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10547  ac_status=$?
10548  grep -v '^ *+' conftest.er1 >conftest.err
10549  rm -f conftest.er1
10550  cat conftest.err >&5
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); } >/dev/null; then
10553  if test -s conftest.err; then
10554    ac_cpp_err=$ac_c_preproc_warn_flag
10555    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10556  else
10557    ac_cpp_err=
10558  fi
10559else
10560  ac_cpp_err=yes
10561fi
10562if test -z "$ac_cpp_err"; then
10563  :
10564else
10565  echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568  # Broken: fails on valid input.
10569continue
10570fi
10571rm -f conftest.err conftest.$ac_ext
10572
10573  # OK, works on sane cases.  Now check whether non-existent headers
10574  # can be detected and how.
10575  cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h.  */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h.  */
10581#include <ac_nonexistent.h>
10582_ACEOF
10583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10585  ac_status=$?
10586  grep -v '^ *+' conftest.er1 >conftest.err
10587  rm -f conftest.er1
10588  cat conftest.err >&5
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); } >/dev/null; then
10591  if test -s conftest.err; then
10592    ac_cpp_err=$ac_c_preproc_warn_flag
10593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10594  else
10595    ac_cpp_err=
10596  fi
10597else
10598  ac_cpp_err=yes
10599fi
10600if test -z "$ac_cpp_err"; then
10601  # Broken: success on invalid input.
10602continue
10603else
10604  echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607  # Passes both tests.
10608ac_preproc_ok=:
10609break
10610fi
10611rm -f conftest.err conftest.$ac_ext
10612
10613done
10614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10615rm -f conftest.err conftest.$ac_ext
10616if $ac_preproc_ok; then
10617  break
10618fi
10619
10620    done
10621    ac_cv_prog_CPP=$CPP
10622
10623fi
10624  CPP=$ac_cv_prog_CPP
10625else
10626  ac_cv_prog_CPP=$CPP
10627fi
10628echo "$as_me:$LINENO: result: $CPP" >&5
10629echo "${ECHO_T}$CPP" >&6
10630ac_preproc_ok=false
10631for ac_c_preproc_warn_flag in '' yes
10632do
10633  # Use a header file that comes with gcc, so configuring glibc
10634  # with a fresh cross-compiler works.
10635  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10636  # <limits.h> exists even on freestanding compilers.
10637  # On the NeXT, cc -E runs the code through the compiler's parser,
10638  # not just through cpp. "Syntax error" is here to catch this case.
10639  cat >conftest.$ac_ext <<_ACEOF
10640/* confdefs.h.  */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h.  */
10645#ifdef __STDC__
10646# include <limits.h>
10647#else
10648# include <assert.h>
10649#endif
10650                     Syntax error
10651_ACEOF
10652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10654  ac_status=$?
10655  grep -v '^ *+' conftest.er1 >conftest.err
10656  rm -f conftest.er1
10657  cat conftest.err >&5
10658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659  (exit $ac_status); } >/dev/null; then
10660  if test -s conftest.err; then
10661    ac_cpp_err=$ac_c_preproc_warn_flag
10662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10663  else
10664    ac_cpp_err=
10665  fi
10666else
10667  ac_cpp_err=yes
10668fi
10669if test -z "$ac_cpp_err"; then
10670  :
10671else
10672  echo "$as_me: failed program was:" >&5
10673sed 's/^/| /' conftest.$ac_ext >&5
10674
10675  # Broken: fails on valid input.
10676continue
10677fi
10678rm -f conftest.err conftest.$ac_ext
10679
10680  # OK, works on sane cases.  Now check whether non-existent headers
10681  # can be detected and how.
10682  cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h.  */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h.  */
10688#include <ac_nonexistent.h>
10689_ACEOF
10690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10692  ac_status=$?
10693  grep -v '^ *+' conftest.er1 >conftest.err
10694  rm -f conftest.er1
10695  cat conftest.err >&5
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); } >/dev/null; then
10698  if test -s conftest.err; then
10699    ac_cpp_err=$ac_c_preproc_warn_flag
10700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10701  else
10702    ac_cpp_err=
10703  fi
10704else
10705  ac_cpp_err=yes
10706fi
10707if test -z "$ac_cpp_err"; then
10708  # Broken: success on invalid input.
10709continue
10710else
10711  echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714  # Passes both tests.
10715ac_preproc_ok=:
10716break
10717fi
10718rm -f conftest.err conftest.$ac_ext
10719
10720done
10721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10722rm -f conftest.err conftest.$ac_ext
10723if $ac_preproc_ok; then
10724  :
10725else
10726  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10727See \`config.log' for more details." >&5
10728echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10729See \`config.log' for more details." >&2;}
10730   { (exit 1); exit 1; }; }
10731fi
10732
10733ac_ext=c
10734ac_cpp='$CPP $CPPFLAGS'
10735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10737ac_compiler_gnu=$ac_cv_c_compiler_gnu
10738
10739
10740echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10741echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10742if test "${ac_cv_header_stdc+set}" = set; then
10743  echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
10745  cat >conftest.$ac_ext <<_ACEOF
10746/* confdefs.h.  */
10747_ACEOF
10748cat confdefs.h >>conftest.$ac_ext
10749cat >>conftest.$ac_ext <<_ACEOF
10750/* end confdefs.h.  */
10751#include <stdlib.h>
10752#include <stdarg.h>
10753#include <string.h>
10754#include <float.h>
10755
10756#ifdef F77_DUMMY_MAIN
10757
10758#  ifdef __cplusplus
10759     extern "C"
10760#  endif
10761   int F77_DUMMY_MAIN() { return 1; }
10762
10763#endif
10764int
10765main ()
10766{
10767
10768  ;
10769  return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext
10773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774  (eval $ac_compile) 2>conftest.er1
10775  ac_status=$?
10776  grep -v '^ *+' conftest.er1 >conftest.err
10777  rm -f conftest.er1
10778  cat conftest.err >&5
10779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780  (exit $ac_status); } &&
10781         { ac_try='test -z "$ac_c_werror_flag"
10782                         || test ! -s conftest.err'
10783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784  (eval $ac_try) 2>&5
10785  ac_status=$?
10786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787  (exit $ac_status); }; } &&
10788         { ac_try='test -s conftest.$ac_objext'
10789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790  (eval $ac_try) 2>&5
10791  ac_status=$?
10792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793  (exit $ac_status); }; }; then
10794  ac_cv_header_stdc=yes
10795else
10796  echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5
10798
10799ac_cv_header_stdc=no
10800fi
10801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802
10803if test $ac_cv_header_stdc = yes; then
10804  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10805  cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h.  */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h.  */
10811#include <string.h>
10812
10813_ACEOF
10814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10815  $EGREP "memchr" >/dev/null 2>&1; then
10816  :
10817else
10818  ac_cv_header_stdc=no
10819fi
10820rm -f conftest*
10821
10822fi
10823
10824if test $ac_cv_header_stdc = yes; then
10825  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10826  cat >conftest.$ac_ext <<_ACEOF
10827/* confdefs.h.  */
10828_ACEOF
10829cat confdefs.h >>conftest.$ac_ext
10830cat >>conftest.$ac_ext <<_ACEOF
10831/* end confdefs.h.  */
10832#include <stdlib.h>
10833
10834_ACEOF
10835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10836  $EGREP "free" >/dev/null 2>&1; then
10837  :
10838else
10839  ac_cv_header_stdc=no
10840fi
10841rm -f conftest*
10842
10843fi
10844
10845if test $ac_cv_header_stdc = yes; then
10846  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10847  if test "$cross_compiling" = yes; then
10848  :
10849else
10850  cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h.  */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h.  */
10856#include <ctype.h>
10857#if ((' ' & 0x0FF) == 0x020)
10858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10860#else
10861# define ISLOWER(c) \
10862                   (('a' <= (c) && (c) <= 'i') \
10863                     || ('j' <= (c) && (c) <= 'r') \
10864                     || ('s' <= (c) && (c) <= 'z'))
10865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10866#endif
10867
10868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10869int
10870main ()
10871{
10872  int i;
10873  for (i = 0; i < 256; i++)
10874    if (XOR (islower (i), ISLOWER (i))
10875        || toupper (i) != TOUPPER (i))
10876      exit(2);
10877  exit (0);
10878}
10879_ACEOF
10880rm -f conftest$ac_exeext
10881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882  (eval $ac_link) 2>&5
10883  ac_status=$?
10884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887  (eval $ac_try) 2>&5
10888  ac_status=$?
10889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890  (exit $ac_status); }; }; then
10891  :
10892else
10893  echo "$as_me: program exited with status $ac_status" >&5
10894echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897( exit $ac_status )
10898ac_cv_header_stdc=no
10899fi
10900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10901fi
10902fi
10903fi
10904echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10905echo "${ECHO_T}$ac_cv_header_stdc" >&6
10906if test $ac_cv_header_stdc = yes; then
10907
10908cat >>confdefs.h <<\_ACEOF
10909#define STDC_HEADERS 1
10910_ACEOF
10911
10912fi
10913
10914# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10925                  inttypes.h stdint.h unistd.h
10926do
10927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928echo "$as_me:$LINENO: checking for $ac_header" >&5
10929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10930if eval "test \"\${$as_ac_Header+set}\" = set"; then
10931  echo $ECHO_N "(cached) $ECHO_C" >&6
10932else
10933  cat >conftest.$ac_ext <<_ACEOF
10934/* confdefs.h.  */
10935_ACEOF
10936cat confdefs.h >>conftest.$ac_ext
10937cat >>conftest.$ac_ext <<_ACEOF
10938/* end confdefs.h.  */
10939$ac_includes_default
10940
10941#include <$ac_header>
10942_ACEOF
10943rm -f conftest.$ac_objext
10944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945  (eval $ac_compile) 2>conftest.er1
10946  ac_status=$?
10947  grep -v '^ *+' conftest.er1 >conftest.err
10948  rm -f conftest.er1
10949  cat conftest.err >&5
10950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951  (exit $ac_status); } &&
10952         { ac_try='test -z "$ac_c_werror_flag"
10953                         || test ! -s conftest.err'
10954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955  (eval $ac_try) 2>&5
10956  ac_status=$?
10957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958  (exit $ac_status); }; } &&
10959         { ac_try='test -s conftest.$ac_objext'
10960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961  (eval $ac_try) 2>&5
10962  ac_status=$?
10963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964  (exit $ac_status); }; }; then
10965  eval "$as_ac_Header=yes"
10966else
10967  echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970eval "$as_ac_Header=no"
10971fi
10972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973fi
10974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10976if test `eval echo '${'$as_ac_Header'}'` = yes; then
10977  cat >>confdefs.h <<_ACEOF
10978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10979_ACEOF
10980
10981fi
10982
10983done
10984
10985
10986