source: ThirdParty/Lapack/trunk/configure @ 2088

Last change on this file since 2088 was 2088, checked in by stefan, 10 years ago

lapack depends on Blas, so check for blas and add into dependencies

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