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

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

Re-running the autotools

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