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

Last change on this file since 3146 was 3146, checked in by tkr, 7 years ago

Re-running the autotools

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