source: ThirdParty/Lapack/stable/1.4/configure @ 3061

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

sync with trunk; rerun autotools

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