source: ThirdParty/Lapack/stable/1.5/configure @ 3538

Last change on this file since 3538 was 3538, checked in by stefan, 4 years ago

restoring BuildTools/ThirdParty/Lapack?/stable/1.5

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