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

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

restoring BuildTools/ThirdParty/Lapack?/stable/1.4

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