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

Last change on this file since 2957 was 2957, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty/Lapack?/stable/1.4

  • Property svn:executable set to *
File size: 846.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.4.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='1.4'
433PACKAGE_STRING='ThirdPartyLapack 1.4'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack 1.4 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack 1.4:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-lapack compile project Lapack with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --disable-pkg-config    disable use of pkg-config (if available)
1090  --disable-interpackage-dependencies
1091                          disables deduction of Makefile dependencies from
1092                          package linker flags
1093  --enable-static[=PKGS]
1094                          build static libraries [default=no]
1095  --disable-dependency-tracking  speeds up one-time build
1096  --enable-dependency-tracking   do not reject slow dependency extractors
1097  --enable-maintainer-mode  enable make rules and dependencies not useful
1098                          (and sometimes confusing) to the casual installer
1099  --enable-shared[=PKGS]
1100                          build shared libraries [default=yes]
1101  --enable-fast-install[=PKGS]
1102                          optimize for fast installation [default=yes]
1103  --disable-libtool-lock  avoid locking (might break parallel builds)
1104
1105Optional Packages:
1106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1108  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1109  --with-lapack-checklevel
1110                          specify the sanity check level for project Lapack
1111  --with-blas             specify BLAS library (or BUILD to enforce use of
1112                          ThirdParty/Blas)
1113
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-blas-lib linker flags for using package Blas
1117  --with-blas-incdir directory with header files for using package Blas
1118  --with-blas-datadir directory with data files for using package Blas
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124
1125Some influential environment variables:
1126  CDEFS       Additional -D flags to be used when compiling C code.
1127  ADD_CFLAGS  Additional C compiler options
1128  DBG_CFLAGS  Debug C compiler options
1129  OPT_CFLAGS  Optimize C compiler options
1130  CC          C compiler command
1131  CFLAGS      C compiler flags
1132  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1133              nonstandard directory <lib dir>
1134  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1135              headers in a nonstandard directory <include dir>
1136  MPICC       C MPI Compiler
1137  ADD_FFLAGS  Additional Fortran compiler options
1138  DBG_FFLAGS  Debug Fortran compiler options
1139  OPT_FFLAGS  Optimize Fortran compiler options
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142  MPIF77      Fortran MPI Compiler
1143  PKG_CONFIG  path to pkg-config utility
1144  DLAMCH_FFLAGS
1145              Fortran compiler options for DLAMCH.F
1146  CPP         C preprocessor
1147  CXX         C++ compiler command
1148  CXXFLAGS    C++ compiler flags
1149  CXXCPP      C++ preprocessor
1150
1151Use these variables to override the choices made by `configure' or to help
1152it to find libraries and programs with nonstandard names/locations.
1153
1154Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1155_ACEOF
1156fi
1157
1158if test "$ac_init_help" = "recursive"; then
1159  # If there are subdirs, report their specific --help.
1160  ac_popdir=`pwd`
1161  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1162    test -d $ac_dir || continue
1163    ac_builddir=.
1164
1165if test "$ac_dir" != .; then
1166  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1167  # A "../" for each directory in $ac_dir_suffix.
1168  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1169else
1170  ac_dir_suffix= ac_top_builddir=
1171fi
1172
1173case $srcdir in
1174  .)  # No --srcdir option.  We are building in place.
1175    ac_srcdir=.
1176    if test -z "$ac_top_builddir"; then
1177       ac_top_srcdir=.
1178    else
1179       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1180    fi ;;
1181  [\\/]* | ?:[\\/]* )  # Absolute path.
1182    ac_srcdir=$srcdir$ac_dir_suffix;
1183    ac_top_srcdir=$srcdir ;;
1184  *) # Relative path.
1185    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1186    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1187esac
1188
1189# Do not use `cd foo && pwd` to compute absolute paths, because
1190# the directories may not exist.
1191case `pwd` in
1192.) ac_abs_builddir="$ac_dir";;
1193*)
1194  case "$ac_dir" in
1195  .) ac_abs_builddir=`pwd`;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1197  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1198  esac;;
1199esac
1200case $ac_abs_builddir in
1201.) ac_abs_top_builddir=${ac_top_builddir}.;;
1202*)
1203  case ${ac_top_builddir}. in
1204  .) ac_abs_top_builddir=$ac_abs_builddir;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1206  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_srcdir=$ac_srcdir;;
1211*)
1212  case $ac_srcdir in
1213  .) ac_abs_srcdir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1215  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_top_srcdir=$ac_top_srcdir;;
1220*)
1221  case $ac_top_srcdir in
1222  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1224  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1225  esac;;
1226esac
1227
1228    cd $ac_dir
1229    # Check for guested configure; otherwise get Cygnus style configure.
1230    if test -f $ac_srcdir/configure.gnu; then
1231      echo
1232      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1233    elif test -f $ac_srcdir/configure; then
1234      echo
1235      $SHELL $ac_srcdir/configure  --help=recursive
1236    elif test -f $ac_srcdir/configure.ac ||
1237           test -f $ac_srcdir/configure.in; then
1238      echo
1239      $ac_configure --help
1240    else
1241      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1242    fi
1243    cd $ac_popdir
1244  done
1245fi
1246
1247test -n "$ac_init_help" && exit 0
1248if $ac_init_version; then
1249  cat <<\_ACEOF
1250ThirdPartyLapack configure 1.4
1251generated by GNU Autoconf 2.59
1252
1253Copyright (C) 2003 Free Software Foundation, Inc.
1254This configure script is free software; the Free Software Foundation
1255gives unlimited permission to copy, distribute and modify it.
1256
1257
1258Copyright 2006 International Business Machines and others.
1259All Rights Reserved.
1260This file is part of the open source package Coin which is distributed
1261under the Eclipse Public License.
1262_ACEOF
1263  exit 0
1264fi
1265exec 5>config.log
1266cat >&5 <<_ACEOF
1267This file contains any messages produced by compilers while
1268running configure, to aid debugging if configure makes a mistake.
1269
1270It was created by ThirdPartyLapack $as_me 1.4, which was
1271generated by GNU Autoconf 2.59.  Invocation command line was
1272
1273  $ $0 $@
1274
1275_ACEOF
1276{
1277cat <<_ASUNAME
1278## --------- ##
1279## Platform. ##
1280## --------- ##
1281
1282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1283uname -m = `(uname -m) 2>/dev/null || echo unknown`
1284uname -r = `(uname -r) 2>/dev/null || echo unknown`
1285uname -s = `(uname -s) 2>/dev/null || echo unknown`
1286uname -v = `(uname -v) 2>/dev/null || echo unknown`
1287
1288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1289/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1290
1291/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1292/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1294hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1295/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1296/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1297/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1298
1299_ASUNAME
1300
1301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1302for as_dir in $PATH
1303do
1304  IFS=$as_save_IFS
1305  test -z "$as_dir" && as_dir=.
1306  echo "PATH: $as_dir"
1307done
1308
1309} >&5
1310
1311cat >&5 <<_ACEOF
1312
1313
1314## ----------- ##
1315## Core tests. ##
1316## ----------- ##
1317
1318_ACEOF
1319
1320
1321# Keep a trace of the command line.
1322# Strip out --no-create and --no-recursion so they do not pile up.
1323# Strip out --silent because we don't want to record it for future runs.
1324# Also quote any args containing shell meta-characters.
1325# Make two passes to allow for proper duplicate-argument suppression.
1326ac_configure_args=
1327ac_configure_args0=
1328ac_configure_args1=
1329ac_sep=
1330ac_must_keep_next=false
1331for ac_pass in 1 2
1332do
1333  for ac_arg
1334  do
1335    case $ac_arg in
1336    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1337    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338    | -silent | --silent | --silen | --sile | --sil)
1339      continue ;;
1340    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1342    esac
1343    case $ac_pass in
1344    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1345    2)
1346      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1347      if test $ac_must_keep_next = true; then
1348        ac_must_keep_next=false # Got value, back to normal.
1349      else
1350        case $ac_arg in
1351          *=* | --config-cache | -C | -disable-* | --disable-* \
1352          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1353          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1354          | -with-* | --with-* | -without-* | --without-* | --x)
1355            case "$ac_configure_args0 " in
1356              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1357            esac
1358            ;;
1359          -* ) ac_must_keep_next=true ;;
1360        esac
1361      fi
1362      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1363      # Get rid of the leading space.
1364      ac_sep=" "
1365      ;;
1366    esac
1367  done
1368done
1369$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1370$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1371
1372# When interrupted or exit'd, cleanup temporary files, and complete
1373# config.log.  We remove comments because anyway the quotes in there
1374# would cause problems or look ugly.
1375# WARNING: Be sure not to use single quotes in there, as some shells,
1376# such as our DU 5.0 friend, will then `close' the trap.
1377trap 'exit_status=$?
1378  # Save into config.log some information that might help in debugging.
1379  {
1380    echo
1381
1382    cat <<\_ASBOX
1383## ---------------- ##
1384## Cache variables. ##
1385## ---------------- ##
1386_ASBOX
1387    echo
1388    # The following way of writing the cache mishandles newlines in values,
1389{
1390  (set) 2>&1 |
1391    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1392    *ac_space=\ *)
1393      sed -n \
1394        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1395          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1396      ;;
1397    *)
1398      sed -n \
1399        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1400      ;;
1401    esac;
1402}
1403    echo
1404
1405    cat <<\_ASBOX
1406## ----------------- ##
1407## Output variables. ##
1408## ----------------- ##
1409_ASBOX
1410    echo
1411    for ac_var in $ac_subst_vars
1412    do
1413      eval ac_val=$`echo $ac_var`
1414      echo "$ac_var='"'"'$ac_val'"'"'"
1415    done | sort
1416    echo
1417
1418    if test -n "$ac_subst_files"; then
1419      cat <<\_ASBOX
1420## ------------- ##
1421## Output files. ##
1422## ------------- ##
1423_ASBOX
1424      echo
1425      for ac_var in $ac_subst_files
1426      do
1427        eval ac_val=$`echo $ac_var`
1428        echo "$ac_var='"'"'$ac_val'"'"'"
1429      done | sort
1430      echo
1431    fi
1432
1433    if test -s confdefs.h; then
1434      cat <<\_ASBOX
1435## ----------- ##
1436## confdefs.h. ##
1437## ----------- ##
1438_ASBOX
1439      echo
1440      sed "/^$/d" confdefs.h | sort
1441      echo
1442    fi
1443    test "$ac_signal" != 0 &&
1444      echo "$as_me: caught signal $ac_signal"
1445    echo "$as_me: exit $exit_status"
1446  } >&5
1447  rm -f core *.core &&
1448  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1449    exit $exit_status
1450     ' 0
1451for ac_signal in 1 2 13 15; do
1452  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1453done
1454ac_signal=0
1455
1456# confdefs.h avoids OS command line length limits that DEFS can exceed.
1457rm -rf conftest* confdefs.h
1458# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1459echo >confdefs.h
1460
1461# Predefined preprocessor variables.
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_NAME "$PACKAGE_NAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_VERSION "$PACKAGE_VERSION"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_STRING "$PACKAGE_STRING"
1480_ACEOF
1481
1482
1483cat >>confdefs.h <<_ACEOF
1484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1485_ACEOF
1486
1487
1488# Let the site file select an alternate cache file if it wants to.
1489# Prefer explicitly selected file to automatically selected ones.
1490if test -z "$CONFIG_SITE"; then
1491  if test "x$prefix" != xNONE; then
1492    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1493  else
1494    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1495  fi
1496fi
1497for ac_site_file in $CONFIG_SITE; do
1498  if test -r "$ac_site_file"; then
1499    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1500echo "$as_me: loading site script $ac_site_file" >&6;}
1501    sed 's/^/| /' "$ac_site_file" >&5
1502    . "$ac_site_file"
1503  fi
1504done
1505
1506if test -r "$cache_file"; then
1507  # Some versions of bash will fail to source /dev/null (special
1508  # files actually), so we avoid doing that.
1509  if test -f "$cache_file"; then
1510    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1511echo "$as_me: loading cache $cache_file" >&6;}
1512    case $cache_file in
1513      [\\/]* | ?:[\\/]* ) . $cache_file;;
1514      *)                      . ./$cache_file;;
1515    esac
1516  fi
1517else
1518  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1519echo "$as_me: creating cache $cache_file" >&6;}
1520  >$cache_file
1521fi
1522
1523# Check that the precious variables saved in the cache have kept the same
1524# value.
1525ac_cache_corrupted=false
1526for ac_var in `(set) 2>&1 |
1527               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1528  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1529  eval ac_new_set=\$ac_env_${ac_var}_set
1530  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1531  eval ac_new_val="\$ac_env_${ac_var}_value"
1532  case $ac_old_set,$ac_new_set in
1533    set,)
1534      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1535echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1536      ac_cache_corrupted=: ;;
1537    ,set)
1538      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1539echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1540      ac_cache_corrupted=: ;;
1541    ,);;
1542    *)
1543      if test "x$ac_old_val" != "x$ac_new_val"; then
1544        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1545echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1546        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1547echo "$as_me:   former value:  $ac_old_val" >&2;}
1548        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1549echo "$as_me:   current value: $ac_new_val" >&2;}
1550        ac_cache_corrupted=:
1551      fi;;
1552  esac
1553  # Pass precious variables to config.status.
1554  if test "$ac_new_set" = set; then
1555    case $ac_new_val in
1556    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1557      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1558    *) ac_arg=$ac_var=$ac_new_val ;;
1559    esac
1560    case " $ac_configure_args " in
1561      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1562      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1563    esac
1564  fi
1565done
1566if $ac_cache_corrupted; then
1567  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1568echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1569  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1570echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1571   { (exit 1); exit 1; }; }
1572fi
1573
1574ac_ext=c
1575ac_cpp='$CPP $CPPFLAGS'
1576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1578ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1609# List one file in the package so that the configure script can test
1610# whether the package is actually there
1611
1612
1613# Where should everything be installed by default?  Here, we want it
1614# to be installed directly in 'bin', 'lib', 'include' subdirectories
1615# of the directory where configure is run.  The default would be
1616# /usr/local.
1617
1618
1619
1620# As backup, we make sure we don't loose an FLIBS if it has been set
1621# by the user
1622save_FLIBS="$FLIBS"
1623
1624# A useful makefile conditional that is always false
1625
1626
1627if false; then
1628  ALWAYS_FALSE_TRUE=
1629  ALWAYS_FALSE_FALSE='#'
1630else
1631  ALWAYS_FALSE_TRUE='#'
1632  ALWAYS_FALSE_FALSE=
1633fi
1634
1635
1636# We set the following variable so that we know later in AC_COIN_FINALIZE
1637# that we are in a project main directory
1638coin_projectdir=yes
1639
1640# Set the project's version numbers
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define LAPACK_VERSION "$PACKAGE_VERSION"
1645_ACEOF
1646
1647
1648  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1649  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1650  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1651  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1652  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1653  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1654
1655cat >>confdefs.h <<_ACEOF
1656#define LAPACK_VERSION_MAJOR $coin_majorver
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define LAPACK_VERSION_MINOR $coin_minorver
1662_ACEOF
1663
1664
1665cat >>confdefs.h <<_ACEOF
1666#define LAPACK_VERSION_RELEASE $coin_releasever
1667_ACEOF
1668
1669
1670  # We use the following variable to have a string with the upper case
1671  # version of the project name
1672  COIN_PRJCT=LAPACK
1673
1674  # Set the project's SVN revision number. The complicated sed expression
1675  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1676  # as a single number.
1677  # Extract the first word of "svnversion", so it can be a program name with args.
1678set dummy svnversion; ac_word=$2
1679echo "$as_me:$LINENO: checking for $ac_word" >&5
1680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_have_svnversion+set}" = set; then
1682  echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684  if test -n "$have_svnversion"; then
1685  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1686else
1687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690  IFS=$as_save_IFS
1691  test -z "$as_dir" && as_dir=.
1692  for ac_exec_ext in '' $ac_executable_extensions; do
1693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694    ac_cv_prog_have_svnversion="yes"
1695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696    break 2
1697  fi
1698done
1699done
1700
1701  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1702fi
1703fi
1704have_svnversion=$ac_cv_prog_have_svnversion
1705if test -n "$have_svnversion"; then
1706  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1707echo "${ECHO_T}$have_svnversion" >&6
1708else
1709  echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713  if test "x$have_svnversion" = xyes; then
1714
1715    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1716    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1717      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1718
1719cat >>confdefs.h <<_ACEOF
1720#define LAPACK_SVN_REV $LAPACK_SVN_REV
1721_ACEOF
1722
1723    fi
1724  fi
1725
1726
1727
1728# Capture libtool library version, if given.
1729
1730
1731
1732
1733#############################################################################
1734#                         Standard build tool stuff                         #
1735#############################################################################
1736
1737# Get the system type
1738ac_aux_dir=
1739for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1740  if test -f $ac_dir/install-sh; then
1741    ac_aux_dir=$ac_dir
1742    ac_install_sh="$ac_aux_dir/install-sh -c"
1743    break
1744  elif test -f $ac_dir/install.sh; then
1745    ac_aux_dir=$ac_dir
1746    ac_install_sh="$ac_aux_dir/install.sh -c"
1747    break
1748  elif test -f $ac_dir/shtool; then
1749    ac_aux_dir=$ac_dir
1750    ac_install_sh="$ac_aux_dir/shtool install -c"
1751    break
1752  fi
1753done
1754if test -z "$ac_aux_dir"; then
1755  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1756echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1757   { (exit 1); exit 1; }; }
1758fi
1759ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1760ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1761ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1762
1763# Make sure we can run config.sub.
1764$ac_config_sub sun4 >/dev/null 2>&1 ||
1765  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1766echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1767   { (exit 1); exit 1; }; }
1768
1769echo "$as_me:$LINENO: checking build system type" >&5
1770echo $ECHO_N "checking build system type... $ECHO_C" >&6
1771if test "${ac_cv_build+set}" = set; then
1772  echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774  ac_cv_build_alias=$build_alias
1775test -z "$ac_cv_build_alias" &&
1776  ac_cv_build_alias=`$ac_config_guess`
1777test -z "$ac_cv_build_alias" &&
1778  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1779echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1780   { (exit 1); exit 1; }; }
1781ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1782  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1783echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1784   { (exit 1); exit 1; }; }
1785
1786fi
1787echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1788echo "${ECHO_T}$ac_cv_build" >&6
1789build=$ac_cv_build
1790build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1791build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1792build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793
1794
1795
1796#turn off warnings and pedantic mode since they could make trouble on some platforms,
1797#and we couldn't fix them anyway
1798coin_skip_warn_fflags=yes
1799
1800# Check if user wants to produce debugging code
1801
1802echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1803echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1804
1805# Check whether --enable-debug or --disable-debug was given.
1806if test "${enable_debug+set}" = set; then
1807  enableval="$enable_debug"
1808  case "${enableval}" in
1809   yes) coin_debug_compile=true
1810        if test "${enable_shared+set}" = set; then :; else
1811          enable_shared=no
1812        fi
1813        ;;
1814   no)  coin_debug_compile=false
1815        ;;
1816   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1817echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1818   { (exit 1); exit 1; }; }
1819        ;;
1820esac
1821else
1822  coin_debug_compile=false
1823fi;
1824
1825# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1826if test "${enable_debug_lapack+set}" = set; then
1827  enableval="$enable_debug_lapack"
1828  case "${enableval}" in
1829    yes) coin_debug_compile=true
1830         ;;
1831    no)  coin_debug_compile=false
1832         ;;
1833    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1834echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1835   { (exit 1); exit 1; }; }
1836         ;;
1837 esac
1838else
1839  :
1840fi;
1841
1842 # m4_ifvaln([Lapack],
1843
1844if test $coin_debug_compile = true; then
1845  echo "$as_me:$LINENO: result: yes" >&5
1846echo "${ECHO_T}yes" >&6
1847else
1848  echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852
1853# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1854if test "${with_lapack_verbosity+set}" = set; then
1855  withval="$with_lapack_verbosity"
1856  if test "$withval" = yes; then
1857                withval=1
1858              fi
1859              coin_lapack_verbosity=$withval
1860else
1861  coin_lapack_verbosity=0
1862fi;
1863
1864cat >>confdefs.h <<_ACEOF
1865#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1866_ACEOF
1867
1868
1869
1870# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1871if test "${with_lapack_checklevel+set}" = set; then
1872  withval="$with_lapack_checklevel"
1873  if test "$withval" = yes; then
1874                withval=1
1875              fi
1876              coin_lapack_checklevel=$withval
1877else
1878  coin_lapack_checklevel=0
1879fi;
1880
1881cat >>confdefs.h <<_ACEOF
1882#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1883_ACEOF
1884
1885
1886 # m4_ifvaln([Lapack],
1887
1888
1889
1890# Get the name of the Fortran compiler and appropriate compiler options
1891case $build in
1892  *-mingw*)
1893    if test "${LD+set}" = set; then :; else
1894      LD=link
1895    fi
1896    ;;
1897 esac
1898 case $enable_doscompile in
1899   msvc)
1900     if test "x${LD+set}" = xset; then :; else
1901       LD=link
1902     fi
1903     ;;
1904 esac
1905
1906
1907 # Check whether --enable-doscompile or --disable-doscompile was given.
1908if test "${enable_doscompile+set}" = set; then
1909  enableval="$enable_doscompile"
1910  if test "$enable_doscompile" != no; then
1911     case $build in
1912       *-cygwin* | *-mingw*) ;;
1913       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1914echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1915   { (exit 1); exit 1; }; } ;;
1916     esac
1917   fi
1918else
1919  enable_doscompile=no
1920fi;
1921 case "$enable_doscompile" in
1922   mingw)
1923     case $build in
1924       *-mingw*) enable_doscompile=no ;;
1925     esac
1926     ;;
1927   msvc|no) ;;
1928   yes) enable_doscompile=mingw ;;
1929   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1930                    Try configure --help=recursive." >&5
1931echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1932                    Try configure --help=recursive." >&2;}
1933   { (exit 1); exit 1; }; }
1934      ;;
1935  esac
1936  if test "$enable_doscompile" != no ; then
1937    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1938echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1939  fi
1940
1941
1942
1943
1944ac_ext=c
1945ac_cpp='$CPP $CPPFLAGS'
1946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951# For consistency, we set the C compiler to the same value of the C++
1952# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1953if test x"$CXX" != x; then
1954  case "$CXX" in
1955    clang* ) ;;
1956    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1957      if test x"$CC" = x; then
1958        CC="$CXX"
1959        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1960echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1961      fi
1962      ;;
1963  esac
1964fi
1965
1966
1967
1968
1969
1970
1971coin_has_cc=yes
1972
1973save_cflags="$CFLAGS"
1974
1975# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1976# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1977# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1978# compiler. In this case, put cc after gcc.
1979
1980case $build in
1981  *-cygwin* | *-mingw*)
1982             if test "$enable_doscompile" = msvc ; then
1983               comps="icl cl"
1984             else
1985               comps="gcc cl"
1986             fi ;;
1987  *-*-solaris*)
1988             # Extract the first word of "cc", so it can be a program name with args.
1989set dummy cc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$sol_cc_compiler"; then
1996  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1997else
1998  ac_prog_rejected=no
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  for ac_exec_ext in '' $ac_executable_extensions; do
2005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007       ac_prog_rejected=yes
2008       continue
2009     fi
2010    ac_cv_prog_sol_cc_compiler="cc"
2011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012    break 2
2013  fi
2014done
2015done
2016
2017if test $ac_prog_rejected = yes; then
2018  # We found a bogon in the path, so make sure we never use it.
2019  set dummy $ac_cv_prog_sol_cc_compiler
2020  shift
2021  if test $# != 0; then
2022    # We chose a different compiler from the bogus one.
2023    # However, it has the same basename, so the bogon will be chosen
2024    # first if we set sol_cc_compiler to just the basename; use the full file name.
2025    shift
2026    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2027  fi
2028fi
2029fi
2030fi
2031sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2032if test -n "$sol_cc_compiler"; then
2033  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2034echo "${ECHO_T}$sol_cc_compiler" >&6
2035else
2036  echo "$as_me:$LINENO: result: no" >&5
2037echo "${ECHO_T}no" >&6
2038fi
2039
2040             if test "$sol_cc_compiler" = "cc" ; then
2041               comps="cc xlc gcc pgcc icc"
2042             else
2043               comps="xlc gcc pgcc icc cc"
2044             fi
2045             ;;
2046  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2047  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2048  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2049esac
2050
2051# We delete the cached value, since the test might not have been
2052# performed with our choice of compilers earlier
2053$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2054# AC_MSG_NOTICE([C compiler candidates: $comps])
2055ac_ext=c
2056ac_cpp='$CPP $CPPFLAGS'
2057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060if test -n "$ac_tool_prefix"; then
2061  for ac_prog in $comps
2062  do
2063    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_CC+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$CC"; then
2071  ac_cv_prog_CC="$CC" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078  for ac_exec_ext in '' $ac_executable_extensions; do
2079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082    break 2
2083  fi
2084done
2085done
2086
2087fi
2088fi
2089CC=$ac_cv_prog_CC
2090if test -n "$CC"; then
2091  echo "$as_me:$LINENO: result: $CC" >&5
2092echo "${ECHO_T}$CC" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098    test -n "$CC" && break
2099  done
2100fi
2101if test -z "$CC"; then
2102  ac_ct_CC=$CC
2103  for ac_prog in $comps
2104do
2105  # Extract the first word of "$ac_prog", so it can be a program name with args.
2106set dummy $ac_prog; ac_word=$2
2107echo "$as_me:$LINENO: checking for $ac_word" >&5
2108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2110  echo $ECHO_N "(cached) $ECHO_C" >&6
2111else
2112  if test -n "$ac_ct_CC"; then
2113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2114else
2115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118  IFS=$as_save_IFS
2119  test -z "$as_dir" && as_dir=.
2120  for ac_exec_ext in '' $ac_executable_extensions; do
2121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122    ac_cv_prog_ac_ct_CC="$ac_prog"
2123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124    break 2
2125  fi
2126done
2127done
2128
2129fi
2130fi
2131ac_ct_CC=$ac_cv_prog_ac_ct_CC
2132if test -n "$ac_ct_CC"; then
2133  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2134echo "${ECHO_T}$ac_ct_CC" >&6
2135else
2136  echo "$as_me:$LINENO: result: no" >&5
2137echo "${ECHO_T}no" >&6
2138fi
2139
2140  test -n "$ac_ct_CC" && break
2141done
2142
2143  CC=$ac_ct_CC
2144fi
2145
2146
2147test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: no acceptable C compiler found in \$PATH
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152
2153# Provide some information about the compiler.
2154echo "$as_me:$LINENO:" \
2155     "checking for C compiler version" >&5
2156ac_compiler=`set X $ac_compile; echo $2`
2157{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2158  (eval $ac_compiler --version </dev/null >&5) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }
2162{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2163  (eval $ac_compiler -v </dev/null >&5) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }
2167{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2168  (eval $ac_compiler -V </dev/null >&5) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }
2172
2173cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188ac_clean_files_save=$ac_clean_files
2189ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190# Try to create an executable without -o first, disregard a.out.
2191# It will help us diagnose broken compilers, and finding out an intuition
2192# of exeext.
2193echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2194echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197  (eval $ac_link_default) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; then
2201  # Find the output, starting from the most likely.  This scheme is
2202# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203# resort.
2204
2205# Be careful to initialize this variable, since it used to be cached.
2206# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2207ac_cv_exeext=
2208# b.out is created by i960 compilers.
2209for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2210do
2211  test -f "$ac_file" || continue
2212  case $ac_file in
2213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2214        ;;
2215    conftest.$ac_ext )
2216        # This is the source file.
2217        ;;
2218    [ab].out )
2219        # We found the default executable, but exeext='' is most
2220        # certainly right.
2221        break;;
2222    *.* )
2223        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224        # FIXME: I believe we export ac_cv_exeext for Libtool,
2225        # but it would be cool to find out if it's true.  Does anybody
2226        # maintain Libtool? --akim.
2227        export ac_cv_exeext
2228        break;;
2229    * )
2230        break;;
2231  esac
2232done
2233else
2234  echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: C compiler cannot create executables
2240See \`config.log' for more details." >&2;}
2241   { (exit 77); exit 77; }; }
2242fi
2243
2244ac_exeext=$ac_cv_exeext
2245echo "$as_me:$LINENO: result: $ac_file" >&5
2246echo "${ECHO_T}$ac_file" >&6
2247
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253# If not cross compiling, check that we can run a simple program.
2254if test "$cross_compiling" != yes; then
2255  if { ac_try='./$ac_file'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261    cross_compiling=no
2262  else
2263    if test "$cross_compiling" = maybe; then
2264        cross_compiling=yes
2265    else
2266        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273    fi
2274  fi
2275fi
2276echo "$as_me:$LINENO: result: yes" >&5
2277echo "${ECHO_T}yes" >&6
2278
2279rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280ac_clean_files=$ac_clean_files_save
2281# Check the compiler produces executables we can run.  If not, either
2282# the compiler is broken, or we cross compile.
2283echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286echo "${ECHO_T}$cross_compiling" >&6
2287
2288echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291  (eval $ac_link) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); }; then
2295  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297# work properly (i.e., refer to `conftest.exe'), while it won't with
2298# `rm'.
2299for ac_file in conftest.exe conftest conftest.*; do
2300  test -f "$ac_file" || continue
2301  case $ac_file in
2302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304          export ac_cv_exeext
2305          break;;
2306    * ) break;;
2307  esac
2308done
2309else
2310  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311See \`config.log' for more details." >&5
2312echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&2;}
2314   { (exit 1); exit 1; }; }
2315fi
2316
2317rm -f conftest$ac_cv_exeext
2318echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319echo "${ECHO_T}$ac_cv_exeext" >&6
2320
2321rm -f conftest.$ac_ext
2322EXEEXT=$ac_cv_exeext
2323ac_exeext=$EXEEXT
2324echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326if test "${ac_cv_objext+set}" = set; then
2327  echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329  cat >conftest.$ac_ext <<_ACEOF
2330/* confdefs.h.  */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h.  */
2335
2336int
2337main ()
2338{
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344rm -f conftest.o conftest.obj
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2351  case $ac_file in
2352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2353    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2354       break;;
2355  esac
2356done
2357else
2358  echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&2;}
2365   { (exit 1); exit 1; }; }
2366fi
2367
2368rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369fi
2370echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2371echo "${ECHO_T}$ac_cv_objext" >&6
2372OBJEXT=$ac_cv_objext
2373ac_objext=$OBJEXT
2374echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2375echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2376if test "${ac_cv_c_compiler_gnu+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385
2386int
2387main ()
2388{
2389#ifndef __GNUC__
2390       choke me
2391#endif
2392
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406         { ac_try='test -z "$ac_c_werror_flag"
2407                         || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413         { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  ac_compiler_gnu=yes
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424ac_compiler_gnu=no
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428
2429fi
2430echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2432GCC=`test $ac_compiler_gnu = yes && echo yes`
2433ac_test_CFLAGS=${CFLAGS+set}
2434ac_save_CFLAGS=$CFLAGS
2435CFLAGS="-g"
2436echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2438if test "${ac_cv_prog_cc_g+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456rm -f conftest.$ac_objext
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458  (eval $ac_compile) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465         { ac_try='test -z "$ac_c_werror_flag"
2466                         || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472         { ac_try='test -s conftest.$ac_objext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  ac_cv_prog_cc_g=yes
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483ac_cv_prog_cc_g=no
2484fi
2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2488echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2489if test "$ac_test_CFLAGS" = set; then
2490  CFLAGS=$ac_save_CFLAGS
2491elif test $ac_cv_prog_cc_g = yes; then
2492  if test "$GCC" = yes; then
2493    CFLAGS="-g -O2"
2494  else
2495    CFLAGS="-g"
2496  fi
2497else
2498  if test "$GCC" = yes; then
2499    CFLAGS="-O2"
2500  else
2501    CFLAGS=
2502  fi
2503fi
2504echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2505echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2506if test "${ac_cv_prog_cc_stdc+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  ac_cv_prog_cc_stdc=no
2510ac_save_CC=$CC
2511cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517#include <stdarg.h>
2518#include <stdio.h>
2519#include <sys/types.h>
2520#include <sys/stat.h>
2521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2522struct buf { int x; };
2523FILE * (*rcsopen) (struct buf *, struct stat *, int);
2524static char *e (p, i)
2525     char **p;
2526     int i;
2527{
2528  return p[i];
2529}
2530static char *f (char * (*g) (char **, int), char **p, ...)
2531{
2532  char *s;
2533  va_list v;
2534  va_start (v,p);
2535  s = g (p, va_arg (v,int));
2536  va_end (v);
2537  return s;
2538}
2539
2540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2541   function prototypes and stuff, but not '\xHH' hex character constants.
2542   These don't provoke an error unfortunately, instead are silently treated
2543   as 'x'.  The following induces an error, until -std1 is added to get
2544   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2545   array size at least.  It's necessary to write '\x00'==0 to get something
2546   that's true only with -std1.  */
2547int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2548
2549int test (int i, double x);
2550struct s1 {int (*f) (int a);};
2551struct s2 {int (*f) (double a);};
2552int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2553int argc;
2554char **argv;
2555int
2556main ()
2557{
2558return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563# Don't try gcc -ansi; that turns off useful extensions and
2564# breaks some systems' header files.
2565# AIX                   -qlanglvl=ansi
2566# Ultrix and OSF/1      -std1
2567# HP-UX 10.20 and later -Ae
2568# HP-UX older versions  -Aa -D_HPUX_SOURCE
2569# SVR4                  -Xc -D__EXTENSIONS__
2570for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2571do
2572  CC="$ac_save_CC $ac_arg"
2573  rm -f conftest.$ac_objext
2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575  (eval $ac_compile) 2>conftest.er1
2576  ac_status=$?
2577  grep -v '^ *+' conftest.er1 >conftest.err
2578  rm -f conftest.er1
2579  cat conftest.err >&5
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); } &&
2582         { ac_try='test -z "$ac_c_werror_flag"
2583                         || test ! -s conftest.err'
2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585  (eval $ac_try) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }; } &&
2589         { ac_try='test -s conftest.$ac_objext'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; }; then
2595  ac_cv_prog_cc_stdc=$ac_arg
2596break
2597else
2598  echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601fi
2602rm -f conftest.err conftest.$ac_objext
2603done
2604rm -f conftest.$ac_ext conftest.$ac_objext
2605CC=$ac_save_CC
2606
2607fi
2608
2609case "x$ac_cv_prog_cc_stdc" in
2610  x|xno)
2611    echo "$as_me:$LINENO: result: none needed" >&5
2612echo "${ECHO_T}none needed" >&6 ;;
2613  *)
2614    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2615echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2616    CC="$CC $ac_cv_prog_cc_stdc" ;;
2617esac
2618
2619# Some people use a C++ compiler to compile C.  Since we use `exit',
2620# in C++ we need to declare it.  In case someone uses the same compiler
2621# for both compiling C and C++ we need to have the C++ compiler decide
2622# the declaration of exit, since it's the most demanding environment.
2623cat >conftest.$ac_ext <<_ACEOF
2624#ifndef __cplusplus
2625  choke me
2626#endif
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -z "$ac_c_werror_flag"
2638                         || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644         { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  for ac_declaration in \
2651   '' \
2652   'extern "C" void std::exit (int) throw (); using std::exit;' \
2653   'extern "C" void std::exit (int); using std::exit;' \
2654   'extern "C" void exit (int) throw ();' \
2655   'extern "C" void exit (int);' \
2656   'void exit (int);'
2657do
2658  cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664$ac_declaration
2665#include <stdlib.h>
2666int
2667main ()
2668{
2669exit (42);
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674rm -f conftest.$ac_objext
2675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676  (eval $ac_compile) 2>conftest.er1
2677  ac_status=$?
2678  grep -v '^ *+' conftest.er1 >conftest.err
2679  rm -f conftest.er1
2680  cat conftest.err >&5
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); } &&
2683         { ac_try='test -z "$ac_c_werror_flag"
2684                         || test ! -s conftest.err'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; } &&
2690         { ac_try='test -s conftest.$ac_objext'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; }; then
2696  :
2697else
2698  echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701continue
2702fi
2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704  cat >conftest.$ac_ext <<_ACEOF
2705/* confdefs.h.  */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h.  */
2710$ac_declaration
2711int
2712main ()
2713{
2714exit (42);
2715  ;
2716  return 0;
2717}
2718_ACEOF
2719rm -f conftest.$ac_objext
2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721  (eval $ac_compile) 2>conftest.er1
2722  ac_status=$?
2723  grep -v '^ *+' conftest.er1 >conftest.err
2724  rm -f conftest.er1
2725  cat conftest.err >&5
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); } &&
2728         { ac_try='test -z "$ac_c_werror_flag"
2729                         || test ! -s conftest.err'
2730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731  (eval $ac_try) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }; } &&
2735         { ac_try='test -s conftest.$ac_objext'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; }; then
2741  break
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748done
2749rm -f conftest*
2750if test -n "$ac_declaration"; then
2751  echo '#ifdef __cplusplus' >>confdefs.h
2752  echo $ac_declaration      >>confdefs.h
2753  echo '#endif'             >>confdefs.h
2754fi
2755
2756else
2757  echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768if test -z "$CC" ; then
2769  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2770echo "$as_me: error: Failed to find a C compiler!" >&2;}
2771   { (exit 1); exit 1; }; }
2772fi
2773# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2774case "$CC" in
2775  clang* ) ;;
2776  cl* | */cl* | CL* | */CL* )
2777    if test "$ac_cv_prog_cc_g" = yes ; then
2778      ac_cv_prog_cc_g=no
2779      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2780echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2781    fi ;;
2782  * )
2783    CYGPATH_W=echo
2784    ;;
2785esac
2786CFLAGS="$save_cflags"
2787
2788# add automake conditional so we can recognize cl compiler in makefile
2789coin_cc_is_cl=false
2790case "$CC" in
2791  clang* ) ;;
2792  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2793    coin_cc_is_cl=true
2794    ;;
2795esac
2796
2797
2798if test $coin_cc_is_cl = true; then
2799  COIN_CC_IS_CL_TRUE=
2800  COIN_CC_IS_CL_FALSE='#'
2801else
2802  COIN_CC_IS_CL_TRUE='#'
2803  COIN_CC_IS_CL_FALSE=
2804fi
2805
2806
2807# Check if a project specific CFLAGS variable has been set
2808if test x$COIN_PRJCT != x; then
2809  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2810  if test x$coin_tmp = xset; then
2811    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2812  fi
2813fi
2814
2815if test x"$CFLAGS" = x; then
2816
2817  coin_add_cflags=
2818  coin_opt_cflags=
2819  coin_dbg_cflags=
2820  coin_warn_cflags=
2821
2822  if test "$GCC" = "yes"; then
2823    case "$CC" in
2824      icc* | */icc*)
2825        ;;
2826      *)
2827        coin_opt_cflags="-O3"
2828        coin_add_cflags="-pipe"
2829        coin_dbg_cflags="-g -O0"
2830        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2831        case $build in
2832          *-darwin*)
2833            ;;
2834          *)
2835            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2836            ;;
2837        esac
2838        case $enable_doscompile in
2839          mingw)
2840            CFLAGS="-mno-cygwin"
2841            cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h.  */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h.  */
2847
2848int
2849main ()
2850{
2851int i=0; i++;
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext conftest$ac_exeext
2857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858  (eval $ac_link) 2>conftest.er1
2859  ac_status=$?
2860  grep -v '^ *+' conftest.er1 >conftest.err
2861  rm -f conftest.er1
2862  cat conftest.err >&5
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); } &&
2865         { ac_try='test -z "$ac_c_werror_flag"
2866                         || test ! -s conftest.err'
2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868  (eval $ac_try) 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; } &&
2872         { ac_try='test -s conftest$ac_exeext'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; }; then
2878  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2879else
2880  echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
2882
2883fi
2884rm -f conftest.err conftest.$ac_objext \
2885      conftest$ac_exeext conftest.$ac_ext
2886            CFLAGS=
2887          ;;
2888        esac
2889    esac
2890  fi
2891  if test -z "$coin_opt_cflags"; then
2892    case $build in
2893      *-cygwin* | *-mingw*)
2894        case "$CC" in
2895          clang* ) ;;
2896          cl* | */cl* | CL* | */CL*)
2897            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2898              coin_opt_cflags='-MD -O2'
2899              coin_dbg_cflags='-MDd'
2900            else
2901              coin_opt_cflags='-MT -O2'
2902              coin_dbg_cflags='-MTd'
2903            fi
2904            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2905            ;;
2906          icl* | */icl* | ICL* | */ICL*)
2907            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2908              coin_opt_cflags='-MD -Ox'
2909              coin_dbg_cflags='-MDd -debug'
2910            else
2911              coin_opt_cflags='-MT -Ox'
2912              coin_dbg_cflags='-MTd -debug'
2913            fi
2914            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2915            ;;
2916        esac
2917        ;;
2918      *-linux-*)
2919        case "$CC" in
2920          icc* | */icc*)
2921            coin_opt_cflags="-O3 -ip -mp1"
2922            coin_add_cflags=""
2923            coin_dbg_cflags="-g"
2924            # Check if -i_dynamic is necessary (for new glibc library)
2925            CFLAGS=
2926            cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h.  */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h.  */
2932
2933int
2934main ()
2935{
2936int i=0; i++;
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext conftest$ac_exeext
2942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943  (eval $ac_link) 2>conftest.er1
2944  ac_status=$?
2945  grep -v '^ *+' conftest.er1 >conftest.err
2946  rm -f conftest.er1
2947  cat conftest.err >&5
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); } &&
2950         { ac_try='test -z "$ac_c_werror_flag"
2951                         || test ! -s conftest.err'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; } &&
2957         { ac_try='test -s conftest$ac_exeext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  :
2964else
2965  echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968coin_add_cflags="-i_dynamic $coin_add_cflags"
2969fi
2970rm -f conftest.err conftest.$ac_objext \
2971      conftest$ac_exeext conftest.$ac_ext
2972            ;;
2973          pgcc* | */pgcc*)
2974            coin_opt_cflags="-fast"
2975            coin_add_cflags="-Kieee -pc 64"
2976            coin_dbg_cflags="-g"
2977            ;;
2978        esac
2979        ;;
2980      *-ibm-*)
2981        case "$CC" in
2982          xlc* | */xlc* | mpxlc* | */mpxlc*)
2983            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2984            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2985            coin_dbg_cflags="-g"
2986          ;;
2987        esac
2988        ;;
2989      *-hp-*)
2990        coin_opt_cflags="-O"
2991        coin_add_cflags="-Ae"
2992        coin_dbg_cflags="-g"
2993        ;;
2994      *-*-solaris*)
2995        coin_opt_cflags="-xO4"
2996        coin_dbg_cflags="-g"
2997        ;;
2998      *-sgi-*)
2999        coin_opt_cflags="-O -OPT:Olimit=0"
3000        coin_dbg_cflags="-g"
3001        ;;
3002    esac
3003  fi
3004
3005  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3006    coin_dbg_cflags="-g"
3007  fi
3008
3009  if test -z "$coin_opt_cflags"; then
3010    # Try if -O option works if nothing else is set
3011    CFLAGS="-O"
3012    cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019int
3020main ()
3021{
3022int i=0; i++;
3023  ;
3024  return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext conftest$ac_exeext
3028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029  (eval $ac_link) 2>conftest.er1
3030  ac_status=$?
3031  grep -v '^ *+' conftest.er1 >conftest.err
3032  rm -f conftest.er1
3033  cat conftest.err >&5
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); } &&
3036         { ac_try='test -z "$ac_c_werror_flag"
3037                         || test ! -s conftest.err'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; } &&
3043         { ac_try='test -s conftest$ac_exeext'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; }; then
3049  coin_opt_cflags="-O"
3050else
3051  echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054fi
3055rm -f conftest.err conftest.$ac_objext \
3056      conftest$ac_exeext conftest.$ac_ext
3057  fi
3058
3059  # if PM doesn't want the warning messages, take them out
3060  if test x"$coin_skip_warn_cflags" = xyes; then
3061    coin_warn_cflags=
3062  fi
3063
3064  if test x${DBG_CFLAGS+set} != xset; then
3065    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3066  fi
3067  if test x${OPT_CFLAGS+set} != xset; then
3068    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3069  fi
3070
3071  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3072  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3073
3074  if test "$coin_debug_compile" = "true"; then
3075    CFLAGS="$DBG_CFLAGS"
3076  else
3077    CFLAGS="$OPT_CFLAGS"
3078  fi
3079else
3080  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3081  if test x${DBG_CFLAGS+set} != xset; then
3082    DBG_CFLAGS="$CFLAGS"
3083  fi
3084  if test x${OPT_CFLAGS+set} != xset; then
3085    OPT_CFLAGS="$CFLAGS"
3086  fi
3087fi
3088
3089# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3090
3091case "$CFLAGS" in
3092  *-mno-cygwin*)
3093    if test x${CPPFLAGS+set} != xset ; then
3094      CPPFLAGS="-mno-cygwin"
3095    else
3096      case "$CPPFLAGS" in
3097        *-mno-cygwin*)
3098          ;;
3099        *)
3100          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3101          ;;
3102      esac
3103    fi ;;
3104esac
3105
3106# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3107if test x$COIN_PRJCT != x; then
3108  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3109fi
3110
3111# Try if CFLAGS works
3112save_CFLAGS="$CFLAGS"
3113cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123int i=0; i++;
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext conftest$ac_exeext
3129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3130  (eval $ac_link) 2>conftest.er1
3131  ac_status=$?
3132  grep -v '^ *+' conftest.er1 >conftest.err
3133  rm -f conftest.er1
3134  cat conftest.err >&5
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); } &&
3137         { ac_try='test -z "$ac_c_werror_flag"
3138                         || test ! -s conftest.err'
3139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140  (eval $ac_try) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }; } &&
3144         { ac_try='test -s conftest$ac_exeext'
3145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146  (eval $ac_try) 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }; }; then
3150  :
3151else
3152  echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155CFLAGS=
3156fi
3157rm -f conftest.err conftest.$ac_objext \
3158      conftest$ac_exeext conftest.$ac_ext
3159if test -z "$CFLAGS"; then
3160  { 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
3161echo "$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;}
3162  CFLAGS='-O'
3163  cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173int i=0; i++;
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext conftest$ac_exeext
3179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180  (eval $ac_link) 2>conftest.er1
3181  ac_status=$?
3182  grep -v '^ *+' conftest.er1 >conftest.err
3183  rm -f conftest.er1
3184  cat conftest.err >&5
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187         { ac_try='test -z "$ac_c_werror_flag"
3188                         || test ! -s conftest.err'
3189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190  (eval $ac_try) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; } &&
3194         { ac_try='test -s conftest$ac_exeext'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  :
3201else
3202  echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205CFLAGS=
3206fi
3207rm -f conftest.err conftest.$ac_objext \
3208      conftest$ac_exeext conftest.$ac_ext
3209  if test -z "$CFLAGS"; then
3210    { 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
3211echo "$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;}
3212  fi
3213fi
3214
3215{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3216echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3217
3218
3219if test x"$MPICC" = x; then :; else
3220  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3221echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3222  CC="$MPICC"
3223fi
3224
3225# Correct the LD variable if we are using the MS or Intel-windows compiler
3226case "$CC" in
3227  clang* ) ;;
3228  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3229    case $build in
3230  *-mingw*)
3231    if test "${LD+set}" = set; then :; else
3232      LD=link
3233    fi
3234    ;;
3235 esac
3236 case $enable_doscompile in
3237   msvc)
3238     if test "x${LD+set}" = xset; then :; else
3239       LD=link
3240     fi
3241     ;;
3242 esac
3243
3244    ;;
3245esac
3246
3247ac_ext=c
3248ac_cpp='$CPP $CPPFLAGS'
3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253
3254case $build in
3255  *-cygwin* | *-mingw*)
3256     if test "$enable_doscompile" = msvc ; then
3257       coin_f77_comps="ifort fl32 compile_f2c"
3258     else
3259       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3260     fi ;;
3261  *-*-solaris*)
3262     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3263  *-linux-gnu*)
3264     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3265  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3266 esac
3267
3268
3269
3270
3271
3272
3273ac_ext=f
3274ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3275ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3277
3278
3279
3280
3281
3282
3283coin_has_f77=yes
3284
3285save_fflags="$FFLAGS"
3286
3287# We delete the cached value, since the test might not have been
3288# performed with our choice of compilers earlier
3289$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3290
3291# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3292# coin_f77_comps to see if there's a program that matches one of the names.
3293# If there's no such program, F77 = unavailable. If we match the name,
3294# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3295# compiler.
3296# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3297
3298
3299{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3300echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3301if test -n "$ac_tool_prefix"; then
3302  for ac_prog in $coin_f77_comps
3303  do
3304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_F77+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  if test -n "$F77"; then
3312  ac_cv_prog_F77="$F77" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319  for ac_exec_ext in '' $ac_executable_extensions; do
3320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326done
3327
3328fi
3329fi
3330F77=$ac_cv_prog_F77
3331if test -n "$F77"; then
3332  echo "$as_me:$LINENO: result: $F77" >&5
3333echo "${ECHO_T}$F77" >&6
3334else
3335  echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337fi
3338
3339    test -n "$F77" && break
3340  done
3341fi
3342if test -z "$F77"; then
3343  ac_ct_F77=$F77
3344  for ac_prog in $coin_f77_comps
3345do
3346  # Extract the first word of "$ac_prog", so it can be a program name with args.
3347set dummy $ac_prog; ac_word=$2
3348echo "$as_me:$LINENO: checking for $ac_word" >&5
3349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if test -n "$ac_ct_F77"; then
3354  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361  for ac_exec_ext in '' $ac_executable_extensions; do
3362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_ac_ct_F77="$ac_prog"
3364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368done
3369
3370fi
3371fi
3372ac_ct_F77=$ac_cv_prog_ac_ct_F77
3373if test -n "$ac_ct_F77"; then
3374  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3375echo "${ECHO_T}$ac_ct_F77" >&6
3376else
3377  echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380
3381  test -n "$ac_ct_F77" && break
3382done
3383test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3384
3385  F77=$ac_ct_F77
3386fi
3387
3388
3389if test "$F77" != "unavailable" ; then
3390  ac_ext=f
3391ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3392ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3394if test -n "$ac_tool_prefix"; then
3395  for ac_prog in $coin_f77_comps
3396  do
3397    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3399echo "$as_me:$LINENO: checking for $ac_word" >&5
3400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401if test "${ac_cv_prog_F77+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  if test -n "$F77"; then
3405  ac_cv_prog_F77="$F77" # Let the user override the test.
3406else
3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408for as_dir in $PATH
3409do
3410  IFS=$as_save_IFS
3411  test -z "$as_dir" && as_dir=.
3412  for ac_exec_ext in '' $ac_executable_extensions; do
3413  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416    break 2
3417  fi
3418done
3419done
3420
3421fi
3422fi
3423F77=$ac_cv_prog_F77
3424if test -n "$F77"; then
3425  echo "$as_me:$LINENO: result: $F77" >&5
3426echo "${ECHO_T}$F77" >&6
3427else
3428  echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
3430fi
3431
3432    test -n "$F77" && break
3433  done
3434fi
3435if test -z "$F77"; then
3436  ac_ct_F77=$F77
3437  for ac_prog in $coin_f77_comps
3438do
3439  # Extract the first word of "$ac_prog", so it can be a program name with args.
3440set dummy $ac_prog; ac_word=$2
3441echo "$as_me:$LINENO: checking for $ac_word" >&5
3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3444  echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446  if test -n "$ac_ct_F77"; then
3447  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454  for ac_exec_ext in '' $ac_executable_extensions; do
3455  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456    ac_cv_prog_ac_ct_F77="$ac_prog"
3457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461done
3462
3463fi
3464fi
3465ac_ct_F77=$ac_cv_prog_ac_ct_F77
3466if test -n "$ac_ct_F77"; then
3467  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3468echo "${ECHO_T}$ac_ct_F77" >&6
3469else
3470  echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
3472fi
3473
3474  test -n "$ac_ct_F77" && break
3475done
3476
3477  F77=$ac_ct_F77
3478fi
3479
3480
3481# Provide some information about the compiler.
3482echo "$as_me:3482:" \
3483     "checking for Fortran 77 compiler version" >&5
3484ac_compiler=`set X $ac_compile; echo $2`
3485{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3486  (eval $ac_compiler --version </dev/null >&5) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }
3490{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3491  (eval $ac_compiler -v </dev/null >&5) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }
3495{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3496  (eval $ac_compiler -V </dev/null >&5) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }
3500rm -f a.out
3501
3502# If we don't use `.F' as extension, the preprocessor is not run on the
3503# input file.  (Note that this only needs to work for GNU compilers.)
3504ac_save_ext=$ac_ext
3505ac_ext=F
3506echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3507echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3508if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3509  echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511  cat >conftest.$ac_ext <<_ACEOF
3512      program main
3513#ifndef __GNUC__
3514       choke me
3515#endif
3516
3517      end
3518_ACEOF
3519rm -f conftest.$ac_objext
3520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521  (eval $ac_compile) 2>conftest.er1
3522  ac_status=$?
3523  grep -v '^ *+' conftest.er1 >conftest.err
3524  rm -f conftest.er1
3525  cat conftest.err >&5
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); } &&
3528         { ac_try='test -z "$ac_f77_werror_flag"
3529                         || test ! -s conftest.err'
3530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531  (eval $ac_try) 2>&5
3532  ac_status=$?
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); }; } &&
3535         { ac_try='test -s conftest.$ac_objext'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; }; then
3541  ac_compiler_gnu=yes
3542else
3543  echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
3546ac_compiler_gnu=no
3547fi
3548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3550
3551fi
3552echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3553echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3554ac_ext=$ac_save_ext
3555ac_test_FFLAGS=${FFLAGS+set}
3556ac_save_FFLAGS=$FFLAGS
3557FFLAGS=
3558echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3559echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3560if test "${ac_cv_prog_f77_g+set}" = set; then
3561  echo $ECHO_N "(cached) $ECHO_C" >&6
3562else
3563  FFLAGS=-g
3564cat >conftest.$ac_ext <<_ACEOF
3565      program main
3566
3567      end
3568_ACEOF
3569rm -f conftest.$ac_objext
3570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571  (eval $ac_compile) 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_objext'
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  ac_cv_prog_f77_g=yes
3592else
3593  echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596ac_cv_prog_f77_g=no
3597fi
3598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599
3600fi
3601echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3602echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3603if test "$ac_test_FFLAGS" = set; then
3604  FFLAGS=$ac_save_FFLAGS
3605elif test $ac_cv_prog_f77_g = yes; then
3606  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3607    FFLAGS="-g -O2"
3608  else
3609    FFLAGS="-g"
3610  fi
3611else
3612  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3613    FFLAGS="-O2"
3614  else
3615    FFLAGS=
3616  fi
3617fi
3618
3619G77=`test $ac_compiler_gnu = yes && echo yes`
3620ac_ext=f
3621ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3622ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3624
3625else
3626  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3627echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3628fi
3629
3630FFLAGS="$save_fflags"
3631
3632# Check if a project specific FFLAGS variable has been set
3633if test x$COIN_PRJCT != x; then
3634  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3635  if test x$coin_tmp = xset; then
3636    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3637  fi
3638fi
3639
3640if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3641
3642  coin_add_fflags=
3643  coin_opt_fflags=
3644  coin_dbg_fflags=
3645  coin_warn_fflags=
3646
3647  if test "$G77" = "yes"; then
3648    coin_opt_fflags="-O3"
3649    coin_add_fflags="-pipe"
3650    coin_dbg_fflags="-g -O0"
3651    case $enable_doscompile in
3652      mingw)
3653        FFLAGS="-mno-cygwin"
3654        cat >conftest.$ac_ext <<_ACEOF
3655      program main
3656      write(*,*) 'Hello world'
3657      end
3658_ACEOF
3659rm -f conftest.$ac_objext conftest$ac_exeext
3660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661  (eval $ac_link) 2>conftest.er1
3662  ac_status=$?
3663  grep -v '^ *+' conftest.er1 >conftest.err
3664  rm -f conftest.er1
3665  cat conftest.err >&5
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); } &&
3668         { ac_try='test -z "$ac_f77_werror_flag"
3669                         || test ! -s conftest.err'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; } &&
3675         { ac_try='test -s conftest$ac_exeext'
3676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677  (eval $ac_try) 2>&5
3678  ac_status=$?
3679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); }; }; then
3681  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3682else
3683  echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686fi
3687rm -f conftest.err conftest.$ac_objext \
3688      conftest$ac_exeext conftest.$ac_ext
3689        FFLAGS=
3690      ;;
3691    esac
3692  else
3693    case $build in
3694      *-cygwin* | *-mingw*)
3695        case $F77 in
3696          ifort* | */ifort* | IFORT* | */IFORT* )
3697            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3698              coin_opt_fflags='-MD -O3'
3699              coin_dbg_fflags='-MDd -debug'
3700            else
3701              coin_opt_fflags='-MT -O3'
3702              coin_dbg_fflags='-MTd -debug'
3703            fi
3704            coin_add_fflags='-fpp -nologo'
3705          ;;
3706          compile_f2c*)
3707            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3708              coin_opt_fflags='-MD -O2'
3709              coin_dbg_fflags='-MDd'
3710            else
3711              coin_opt_fflags='-MT -O2'
3712              coin_dbg_fflags='-MTd'
3713            fi
3714            coin_add_fflags='-nologo -wd4996'
3715          ;;
3716        esac
3717        ;;
3718      *-linux-*)
3719        case $F77 in
3720          ifc* | */ifc* | ifort* | */ifort*)
3721            coin_opt_fflags="-O3 -ip"
3722            coin_add_fflags="-cm -w90 -w95"
3723            coin_dbg_fflags="-g -CA -CB -CS"
3724            # Check if -i_dynamic is necessary (for new glibc library)
3725            FFLAGS=
3726            cat >conftest.$ac_ext <<_ACEOF
3727      program main
3728      write(*,*) 'Hello world'
3729      end
3730_ACEOF
3731rm -f conftest.$ac_objext conftest$ac_exeext
3732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3733  (eval $ac_link) 2>conftest.er1
3734  ac_status=$?
3735  grep -v '^ *+' conftest.er1 >conftest.err
3736  rm -f conftest.er1
3737  cat conftest.err >&5
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); } &&
3740         { ac_try='test -z "$ac_f77_werror_flag"
3741                         || test ! -s conftest.err'
3742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743  (eval $ac_try) 2>&5
3744  ac_status=$?
3745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746  (exit $ac_status); }; } &&
3747         { ac_try='test -s conftest$ac_exeext'
3748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749  (eval $ac_try) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; }; then
3753  :
3754else
3755  echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758coin_add_fflags="-i_dynamic $coin_add_fflags"
3759fi
3760rm -f conftest.err conftest.$ac_objext \
3761      conftest$ac_exeext conftest.$ac_ext
3762            ;;
3763          pgf77* | */pgf77* | pgf90* | */pgf90*)
3764            coin_opt_fflags="-fast"
3765            coin_add_fflags="-Kieee -pc 64"
3766            coin_dbg_fflags="-g"
3767          ;;
3768        esac
3769        ;;
3770      *-ibm-*)
3771        case "$F77" in
3772          xlf* | */xlf* | mpxlf* | */mpxlf* )
3773            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3774            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3775            coin_dbg_fflags="-g -C"
3776            ;;
3777        esac
3778        ;;
3779      *-hp-*)
3780        coin_opt_fflags="+O3"
3781        coin_add_fflags="+U77"
3782        coin_dbg_fflags="-C -g"
3783        ;;
3784      *-*-solaris*)
3785        coin_opt_fflags="-O4"
3786        coin_dbg_fflags="-g"
3787        ;;
3788      *-sgi-*)
3789        coin_opt_fflags="-O5 -OPT:Olimit=0"
3790        coin_dbg_fflags="-g"
3791        ;;
3792    esac
3793  fi
3794
3795  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3796    coin_dbg_fflags="-g"
3797  fi
3798
3799  if test -z "$coin_opt_fflags"; then
3800    # Try if -O option works if nothing else is set
3801    FFLAGS=-O
3802    cat >conftest.$ac_ext <<_ACEOF
3803      program main
3804      integer i
3805      end
3806_ACEOF
3807rm -f conftest.$ac_objext conftest$ac_exeext
3808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3809  (eval $ac_link) 2>conftest.er1
3810  ac_status=$?
3811  grep -v '^ *+' conftest.er1 >conftest.err
3812  rm -f conftest.er1
3813  cat conftest.err >&5
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); } &&
3816         { ac_try='test -z "$ac_f77_werror_flag"
3817                         || test ! -s conftest.err'
3818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819  (eval $ac_try) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); }; } &&
3823         { ac_try='test -s conftest$ac_exeext'
3824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825  (eval $ac_try) 2>&5
3826  ac_status=$?
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); }; }; then
3829  coin_opt_fflags="-O"
3830else
3831  echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834fi
3835rm -f conftest.err conftest.$ac_objext \
3836      conftest$ac_exeext conftest.$ac_ext
3837  fi
3838
3839  # if PM doesn't want the warning messages, take them out
3840  if test x"$coin_skip_warn_fflags" = xyes; then
3841    coin_warn_fflags=
3842  fi
3843
3844  if test x${DBG_FFLAGS+set} != xset; then
3845    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3846  fi
3847  if test x${OPT_FFLAGS+set} != xset; then
3848    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3849  fi
3850
3851  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3852  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3853
3854  if test "$coin_debug_compile" = "true"; then
3855    FFLAGS="$DBG_FFLAGS"
3856  else
3857    FFLAGS="$OPT_FFLAGS"
3858  fi
3859else
3860  FFLAGS="$FFLAGS $ADD_FFLAGS"
3861  if test x${DBG_FFLAGS+set} != xset; then
3862    DBG_FFLAGS="$FFLAGS"
3863  fi
3864  if test x${OPT_FFLAGS+set} != xset; then
3865    OPT_FFLAGS="$FFLAGS"
3866  fi
3867fi
3868
3869# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3870case "$FFLAGS" in
3871  *-mno-cygwin*)
3872    if test x${CPPFLAGS+set} != xset ; then
3873      CPPFLAGS="-mno-cygwin"
3874    else
3875      case "$CPPFLAGS" in
3876        *-mno-cygwin*)
3877          ;;
3878        *)
3879          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3880          ;;
3881      esac
3882    fi ;;
3883esac
3884
3885# Try if FFLAGS works
3886if test "$F77" != "unavailable" ; then
3887  cat >conftest.$ac_ext <<_ACEOF
3888      program main
3889      integer i
3890      end
3891_ACEOF
3892rm -f conftest.$ac_objext conftest$ac_exeext
3893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894  (eval $ac_link) 2>conftest.er1
3895  ac_status=$?
3896  grep -v '^ *+' conftest.er1 >conftest.err
3897  rm -f conftest.er1
3898  cat conftest.err >&5
3899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900  (exit $ac_status); } &&
3901         { ac_try='test -z "$ac_f77_werror_flag"
3902                         || test ! -s conftest.err'
3903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904  (eval $ac_try) 2>&5
3905  ac_status=$?
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); }; } &&
3908         { ac_try='test -s conftest$ac_exeext'
3909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910  (eval $ac_try) 2>&5
3911  ac_status=$?
3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913  (exit $ac_status); }; }; then
3914  :
3915else
3916  echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919FFLAGS=
3920fi
3921rm -f conftest.err conftest.$ac_objext \
3922      conftest$ac_exeext conftest.$ac_ext
3923  if test -z "$FFLAGS"; then
3924    { 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
3925echo "$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;}
3926    FFLAGS='-O'
3927    cat >conftest.$ac_ext <<_ACEOF
3928      program main
3929      integer i
3930      end
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934  (eval $ac_link) 2>conftest.er1
3935  ac_status=$?
3936  grep -v '^ *+' conftest.er1 >conftest.err
3937  rm -f conftest.er1
3938  cat conftest.err >&5
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); } &&
3941         { ac_try='test -z "$ac_f77_werror_flag"
3942                         || test ! -s conftest.err'
3943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944  (eval $ac_try) 2>&5
3945  ac_status=$?
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); }; } &&
3948         { ac_try='test -s conftest$ac_exeext'
3949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950  (eval $ac_try) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }; }; then
3954  :
3955else
3956  echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959FFLAGS=
3960fi
3961rm -f conftest.err conftest.$ac_objext \
3962      conftest$ac_exeext conftest.$ac_ext
3963    if test -z "$FFLAGS"; then
3964      { 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
3965echo "$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;}
3966    fi
3967  fi
3968fi
3969
3970{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3971echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3972
3973
3974if test x"$MPIF77" = x; then :; else
3975  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3976echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3977  F77="$MPIF77"
3978fi
3979
3980# correct the LD variable if we use the intel fortran compiler in windows
3981case "$F77" in
3982  ifort* | */ifort* | IFORT* | */IFORT*)
3983    case $build in
3984  *-mingw*)
3985    if test "${LD+set}" = set; then :; else
3986      LD=link
3987    fi
3988    ;;
3989 esac
3990 case $enable_doscompile in
3991   msvc)
3992     if test "x${LD+set}" = xset; then :; else
3993       LD=link
3994     fi
3995     ;;
3996 esac
3997
3998    ;;
3999esac
4000
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007
4008
4009# Get the linker flags (FLIBS) that are required for linking against this library
4010
4011# get FLIBS
4012ac_ext=f
4013ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4014ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4016echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4017echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4018if test "${ac_cv_prog_f77_v+set}" = set; then
4019  echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021  cat >conftest.$ac_ext <<_ACEOF
4022      program main
4023
4024      end
4025_ACEOF
4026rm -f conftest.$ac_objext
4027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028  (eval $ac_compile) 2>conftest.er1
4029  ac_status=$?
4030  grep -v '^ *+' conftest.er1 >conftest.err
4031  rm -f conftest.er1
4032  cat conftest.err >&5
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); } &&
4035         { ac_try='test -z "$ac_f77_werror_flag"
4036                         || test ! -s conftest.err'
4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038  (eval $ac_try) 2>&5
4039  ac_status=$?
4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041  (exit $ac_status); }; } &&
4042         { ac_try='test -s conftest.$ac_objext'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; }; then
4048  ac_cv_prog_f77_v=
4049# Try some options frequently used verbose output
4050for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4051  cat >conftest.$ac_ext <<_ACEOF
4052      program main
4053
4054      end
4055_ACEOF
4056
4057# Compile and link our simple test program by passing a flag (argument
4058# 1 to this macro) to the Fortran compiler in order to get
4059# "verbose" output that we can then parse for the Fortran linker
4060# flags.
4061ac_save_FFLAGS=$FFLAGS
4062FFLAGS="$FFLAGS $ac_verb"
4063(eval echo $as_me:4063: \"$ac_link\") >&5
4064ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4065echo "$ac_f77_v_output" >&5
4066FFLAGS=$ac_save_FFLAGS
4067
4068rm -f conftest*
4069
4070# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4071# /foo, /bar, and /baz are search directories for the Fortran linker.
4072# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4073ac_f77_v_output="`echo $ac_f77_v_output |
4074        grep 'LPATH is:' |
4075        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4076
4077case $ac_f77_v_output in
4078  # If we are using xlf then replace all the commas with spaces.
4079  *xlfentry*)
4080    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4081
4082  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4083  # $LIBS confuse us, and the libraries appear later in the output anyway).
4084  *mGLOB_options_string*)
4085    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4086
4087  # If we are using Cray Fortran then delete quotes.
4088  # Use "\"" instead of '"' for font-lock-mode.
4089  # FIXME: a more general fix for quoted arguments with spaces?
4090  *cft90*)
4091    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4092esac
4093
4094
4095  # look for -l* and *.a constructs in the output
4096  for ac_arg in $ac_f77_v_output; do
4097     case $ac_arg in
4098        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4099          ac_cv_prog_f77_v=$ac_verb
4100          break 2 ;;
4101     esac
4102  done
4103done
4104if test -z "$ac_cv_prog_f77_v"; then
4105   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4106echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4107fi
4108else
4109  echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4113echo "$as_me: WARNING: compilation failed" >&2;}
4114fi
4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116
4117fi
4118echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4119echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4120echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4121echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4122if test "${ac_cv_f77_libs+set}" = set; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  if test "x$FLIBS" != "x"; then
4126  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4127else
4128
4129cat >conftest.$ac_ext <<_ACEOF
4130      program main
4131
4132      end
4133_ACEOF
4134
4135# Compile and link our simple test program by passing a flag (argument
4136# 1 to this macro) to the Fortran compiler in order to get
4137# "verbose" output that we can then parse for the Fortran linker
4138# flags.
4139ac_save_FFLAGS=$FFLAGS
4140FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4141(eval echo $as_me:4141: \"$ac_link\") >&5
4142ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4143echo "$ac_f77_v_output" >&5
4144FFLAGS=$ac_save_FFLAGS
4145
4146rm -f conftest*
4147
4148# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4149# /foo, /bar, and /baz are search directories for the Fortran linker.
4150# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4151ac_f77_v_output="`echo $ac_f77_v_output |
4152        grep 'LPATH is:' |
4153        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4154
4155case $ac_f77_v_output in
4156  # If we are using xlf then replace all the commas with spaces.
4157  *xlfentry*)
4158    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4159
4160  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4161  # $LIBS confuse us, and the libraries appear later in the output anyway).
4162  *mGLOB_options_string*)
4163    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4164
4165  # If we are using Cray Fortran then delete quotes.
4166  # Use "\"" instead of '"' for font-lock-mode.
4167  # FIXME: a more general fix for quoted arguments with spaces?
4168  *cft90*)
4169    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4170esac
4171
4172
4173
4174ac_cv_f77_libs=
4175
4176# Save positional arguments (if any)
4177ac_save_positional="$@"
4178
4179set X $ac_f77_v_output
4180while test $# != 1; do
4181  shift
4182  ac_arg=$1
4183  case $ac_arg in
4184        [\\/]*.a | ?:[\\/]*.a)
4185            ac_exists=false
4186  for ac_i in $ac_cv_f77_libs; do
4187    if test x"$ac_arg" = x"$ac_i"; then
4188      ac_exists=true
4189      break
4190    fi
4191  done
4192
4193  if test x"$ac_exists" = xtrue; then
4194  :
4195else
4196  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4197fi
4198
4199          ;;
4200        -bI:*)
4201            ac_exists=false
4202  for ac_i in $ac_cv_f77_libs; do
4203    if test x"$ac_arg" = x"$ac_i"; then
4204      ac_exists=true
4205      break
4206    fi
4207  done
4208
4209  if test x"$ac_exists" = xtrue; then
4210  :
4211else
4212  if test "$ac_compiler_gnu" = yes; then
4213  for ac_link_opt in $ac_arg; do
4214    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4215  done
4216else
4217  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4218fi
4219fi
4220
4221          ;;
4222          # Ignore these flags.
4223        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4224          ;;
4225        -lkernel32)
4226          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4227          ;;
4228        -[LRuY])
4229          # These flags, when seen by themselves, take an argument.
4230          # We remove the space between option and argument and re-iterate
4231          # unless we find an empty arg or a new option (starting with -)
4232          case $2 in
4233             "" | -*);;
4234             *)
4235                ac_arg="$ac_arg$2"
4236                shift; shift
4237                set X $ac_arg "$@"
4238                ;;
4239          esac
4240          ;;
4241        -YP,*)
4242          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4243              ac_exists=false
4244  for ac_i in $ac_cv_f77_libs; do
4245    if test x"$ac_j" = x"$ac_i"; then
4246      ac_exists=true
4247      break
4248    fi
4249  done
4250
4251  if test x"$ac_exists" = xtrue; then
4252  :
4253else
4254  ac_arg="$ac_arg $ac_j"
4255                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4256fi
4257
4258          done
4259          ;;
4260        -[lLR]*)
4261            ac_exists=false
4262  for ac_i in $ac_cv_f77_libs; do
4263    if test x"$ac_arg" = x"$ac_i"; then
4264      ac_exists=true
4265      break
4266    fi
4267  done
4268
4269  if test x"$ac_exists" = xtrue; then
4270  :
4271else
4272  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4273fi
4274
4275          ;;
4276          # Ignore everything else.
4277  esac
4278done
4279# restore positional arguments
4280set X $ac_save_positional; shift
4281
4282# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4283# then we insist that the "run path" must be an absolute path (i.e. it
4284# must begin with a "/").
4285case `(uname -sr) 2>/dev/null` in
4286   "SunOS 5"*)
4287      ac_ld_run_path=`echo $ac_f77_v_output |
4288                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4289      test "x$ac_ld_run_path" != x &&
4290        if test "$ac_compiler_gnu" = yes; then
4291  for ac_link_opt in $ac_ld_run_path; do
4292    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4293  done
4294else
4295  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4296fi
4297      ;;
4298esac
4299fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4300
4301fi
4302echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4303echo "${ECHO_T}$ac_cv_f77_libs" >&6
4304FLIBS="$ac_cv_f77_libs"
4305
4306
4307ac_ext=c
4308ac_cpp='$CPP $CPPFLAGS'
4309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313orig_FLIBS="$FLIBS"
4314
4315# If FLIBS has been set by the user, we just restore its value here
4316if test x"$save_FLIBS" != x; then
4317  FLIBS="$save_FLIBS"
4318else
4319  # This is to correct a missing exclusion in autoconf 2.59
4320  if test x"$FLIBS" != x; then
4321    my_flibs=
4322    for flag in $FLIBS; do
4323      case $flag in
4324        -lcrt*.o) ;;
4325        -lcygwin) ;;
4326               *) my_flibs="$my_flibs $flag" ;;
4327      esac
4328    done
4329    FLIBS="$my_flibs"
4330  fi
4331
4332  case $build in
4333  # The following is a fix to define FLIBS for ifort on Windows
4334  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4335  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4336  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4337  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4338  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4339     *-cygwin* | *-mingw*)
4340       case "$F77" in
4341#         ifort* | */ifort* | IFORT* | */IFORT*)
4342#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4343#           if "$coin_debug_compile" = true ; then
4344#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4345#           else
4346#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4347#           fi
4348#           ;;
4349         compile_f2c*)
4350           FLIBS=`$F77 -FLIBS` ;;
4351       esac;;
4352     *-hp-*)
4353         FLIBS="$FLIBS -lm";;
4354     *-ibm-*)
4355         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4356     *-linux-*)
4357       case "$F77" in
4358         pgf77* | */pgf77* | pgf90* | */pgf90*)
4359# ask linker to go through the archives multiple times
4360# (the Fortran compiler seems to do that automatically...)
4361           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4362       esac
4363  esac
4364  ac_cv_f77_libs="$FLIBS"
4365fi
4366
4367if test "x$orig_FLIBS" != "x$FLIBS" ; then
4368  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4369echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4370fi
4371
4372ac_ext=f
4373ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4374ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4376
4377echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4378echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4379if test "${ac_cv_f77_dummy_main+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  ac_f77_dm_save_LIBS=$LIBS
4383 LIBS="$LIBS $FLIBS"
4384 ac_fortran_dm_var=F77_DUMMY_MAIN
4385 ac_ext=c
4386ac_cpp='$CPP $CPPFLAGS'
4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391 # First, try linking without a dummy main:
4392 cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h.  */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h.  */
4398
4399#ifdef F77_DUMMY_MAIN
4400
4401#  ifdef __cplusplus
4402     extern "C"
4403#  endif
4404   int F77_DUMMY_MAIN() { return 1; }
4405
4406#endif
4407int
4408main ()
4409{
4410
4411  ;
4412  return 0;
4413}
4414_ACEOF
4415rm -f conftest.$ac_objext conftest$ac_exeext
4416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4417  (eval $ac_link) 2>conftest.er1
4418  ac_status=$?
4419  grep -v '^ *+' conftest.er1 >conftest.err
4420  rm -f conftest.er1
4421  cat conftest.err >&5
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); } &&
4424         { ac_try='test -z "$ac_c_werror_flag"
4425                         || test ! -s conftest.err'
4426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427  (eval $ac_try) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; } &&
4431         { ac_try='test -s conftest$ac_exeext'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; }; then
4437  ac_cv_fortran_dummy_main=none
4438else
4439  echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442ac_cv_fortran_dummy_main=unknown
4443fi
4444rm -f conftest.err conftest.$ac_objext \
4445      conftest$ac_exeext conftest.$ac_ext
4446
4447 if test $ac_cv_fortran_dummy_main = unknown; then
4448   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4449     cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h.  */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h.  */
4455#define $ac_fortran_dm_var $ac_func
4456#ifdef F77_DUMMY_MAIN
4457
4458#  ifdef __cplusplus
4459     extern "C"
4460#  endif
4461   int F77_DUMMY_MAIN() { return 1; }
4462
4463#endif
4464int
4465main ()
4466{
4467
4468  ;
4469  return 0;
4470}
4471_ACEOF
4472rm -f conftest.$ac_objext conftest$ac_exeext
4473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4474  (eval $ac_link) 2>conftest.er1
4475  ac_status=$?
4476  grep -v '^ *+' conftest.er1 >conftest.err
4477  rm -f conftest.er1
4478  cat conftest.err >&5
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); } &&
4481         { ac_try='test -z "$ac_c_werror_flag"
4482                         || test ! -s conftest.err'
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); }; } &&
4488         { ac_try='test -s conftest$ac_exeext'
4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490  (eval $ac_try) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; }; then
4494  ac_cv_fortran_dummy_main=$ac_func; break
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499fi
4500rm -f conftest.err conftest.$ac_objext \
4501      conftest$ac_exeext conftest.$ac_ext
4502   done
4503 fi
4504 ac_ext=f
4505ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4506ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4508 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4509 rm -f conftest*
4510 LIBS=$ac_f77_dm_save_LIBS
4511
4512fi
4513echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4514echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4515F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4516if test "$F77_DUMMY_MAIN" != unknown; then
4517  if test $F77_DUMMY_MAIN != none; then
4518
4519cat >>confdefs.h <<_ACEOF
4520#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4521_ACEOF
4522
4523  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4524
4525cat >>confdefs.h <<\_ACEOF
4526#define FC_DUMMY_MAIN_EQ_F77 1
4527_ACEOF
4528
4529  fi
4530fi
4531else
4532  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4533See \`config.log' for more details." >&5
4534echo "$as_me: error: linking to Fortran libraries from C fails
4535See \`config.log' for more details." >&2;}
4536   { (exit 1); exit 1; }; }
4537fi
4538
4539
4540ac_ext=f
4541ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4542ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4544
4545ac_ext=f
4546ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4547ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4549echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4550echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4551if test "${ac_cv_f77_mangling+set}" = set; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  cat >conftest.$ac_ext <<_ACEOF
4555      subroutine foobar()
4556      return
4557      end
4558      subroutine foo_bar()
4559      return
4560      end
4561_ACEOF
4562rm -f conftest.$ac_objext
4563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564  (eval $ac_compile) 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } &&
4571         { ac_try='test -z "$ac_f77_werror_flag"
4572                         || test ! -s conftest.err'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; } &&
4578         { ac_try='test -s conftest.$ac_objext'
4579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580  (eval $ac_try) 2>&5
4581  ac_status=$?
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); }; }; then
4584  mv conftest.$ac_objext cfortran_test.$ac_objext
4585
4586  ac_save_LIBS=$LIBS
4587  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4588
4589  ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594  ac_success=no
4595  for ac_foobar in foobar FOOBAR; do
4596    for ac_underscore in "" "_"; do
4597      ac_func="$ac_foobar$ac_underscore"
4598      cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h.  */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h.  */
4604
4605/* Override any gcc2 internal prototype to avoid an error.  */
4606#ifdef __cplusplus
4607extern "C"
4608#endif
4609/* We use char because int might match the return type of a gcc2
4610   builtin and then its argument prototype would still apply.  */
4611char $ac_func ();
4612#ifdef F77_DUMMY_MAIN
4613
4614#  ifdef __cplusplus
4615     extern "C"
4616#  endif
4617   int F77_DUMMY_MAIN() { return 1; }
4618
4619#endif
4620int
4621main ()
4622{
4623$ac_func ();
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext conftest$ac_exeext
4629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630  (eval $ac_link) 2>conftest.er1
4631  ac_status=$?
4632  grep -v '^ *+' conftest.er1 >conftest.err
4633  rm -f conftest.er1
4634  cat conftest.err >&5
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); } &&
4637         { ac_try='test -z "$ac_c_werror_flag"
4638                         || test ! -s conftest.err'
4639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640  (eval $ac_try) 2>&5
4641  ac_status=$?
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); }; } &&
4644         { ac_try='test -s conftest$ac_exeext'
4645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646  (eval $ac_try) 2>&5
4647  ac_status=$?
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); }; }; then
4650  ac_success=yes; break 2
4651else
4652  echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655fi
4656rm -f conftest.err conftest.$ac_objext \
4657      conftest$ac_exeext conftest.$ac_ext
4658    done
4659  done
4660  ac_ext=f
4661ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4662ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4664
4665  if test "$ac_success" = "yes"; then
4666     case $ac_foobar in
4667        foobar)
4668           ac_case=lower
4669           ac_foo_bar=foo_bar
4670           ;;
4671        FOOBAR)
4672           ac_case=upper
4673           ac_foo_bar=FOO_BAR
4674           ;;
4675     esac
4676
4677     ac_ext=c
4678ac_cpp='$CPP $CPPFLAGS'
4679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682     ac_success_extra=no
4683     for ac_extra in "" "_"; do
4684        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4685        cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h.  */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h.  */
4691
4692/* Override any gcc2 internal prototype to avoid an error.  */
4693#ifdef __cplusplus
4694extern "C"
4695#endif
4696/* We use char because int might match the return type of a gcc2
4697   builtin and then its argument prototype would still apply.  */
4698char $ac_func ();
4699#ifdef F77_DUMMY_MAIN
4700
4701#  ifdef __cplusplus
4702     extern "C"
4703#  endif
4704   int F77_DUMMY_MAIN() { return 1; }
4705
4706#endif
4707int
4708main ()
4709{
4710$ac_func ();
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext conftest$ac_exeext
4716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717  (eval $ac_link) 2>conftest.er1
4718  ac_status=$?
4719  grep -v '^ *+' conftest.er1 >conftest.err
4720  rm -f conftest.er1
4721  cat conftest.err >&5
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); } &&
4724         { ac_try='test -z "$ac_c_werror_flag"
4725                         || test ! -s conftest.err'
4726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; } &&
4731         { ac_try='test -s conftest$ac_exeext'
4732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733  (eval $ac_try) 2>&5
4734  ac_status=$?
4735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); }; }; then
4737  ac_success_extra=yes; break
4738else
4739  echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
4742fi
4743rm -f conftest.err conftest.$ac_objext \
4744      conftest$ac_exeext conftest.$ac_ext
4745     done
4746     ac_ext=f
4747ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4748ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4750
4751     if test "$ac_success_extra" = "yes"; then
4752        ac_cv_f77_mangling="$ac_case case"
4753        if test -z "$ac_underscore"; then
4754           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4755        else
4756           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4757        fi
4758        if test -z "$ac_extra"; then
4759           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4760        else
4761           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4762        fi
4763      else
4764        ac_cv_f77_mangling="unknown"
4765      fi
4766  else
4767     ac_cv_f77_mangling="unknown"
4768  fi
4769
4770  LIBS=$ac_save_LIBS
4771  rm -f cfortran_test* conftest*
4772else
4773  echo "$as_me: failed program was:" >&5
4774sed 's/^/| /' conftest.$ac_ext >&5
4775
4776{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4777See \`config.log' for more details." >&5
4778echo "$as_me: error: cannot compile a simple Fortran program
4779See \`config.log' for more details." >&2;}
4780   { (exit 1); exit 1; }; }
4781fi
4782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783
4784fi
4785echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4786echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4787
4788ac_ext=f
4789ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4790ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4792
4793
4794ac_ext=f
4795ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798
4799ac_ext=f
4800ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4801ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4803
4804
4805case $ac_cv_f77_mangling in
4806  "lower case, no underscore, no extra underscore")
4807          cat >>confdefs.h <<\_ACEOF
4808#define F77_FUNC(name,NAME) name
4809_ACEOF
4810
4811          cat >>confdefs.h <<\_ACEOF
4812#define F77_FUNC_(name,NAME) name
4813_ACEOF
4814 ;;
4815  "lower case, no underscore, extra underscore")
4816          cat >>confdefs.h <<\_ACEOF
4817#define F77_FUNC(name,NAME) name
4818_ACEOF
4819
4820          cat >>confdefs.h <<\_ACEOF
4821#define F77_FUNC_(name,NAME) name ## _
4822_ACEOF
4823 ;;
4824  "lower case, underscore, no extra underscore")
4825          cat >>confdefs.h <<\_ACEOF
4826#define F77_FUNC(name,NAME) name ## _
4827_ACEOF
4828
4829          cat >>confdefs.h <<\_ACEOF
4830#define F77_FUNC_(name,NAME) name ## _
4831_ACEOF
4832 ;;
4833  "lower case, underscore, extra underscore")
4834          cat >>confdefs.h <<\_ACEOF
4835#define F77_FUNC(name,NAME) name ## _
4836_ACEOF
4837
4838          cat >>confdefs.h <<\_ACEOF
4839#define F77_FUNC_(name,NAME) name ## __
4840_ACEOF
4841 ;;
4842  "upper case, no underscore, no extra underscore")
4843          cat >>confdefs.h <<\_ACEOF
4844#define F77_FUNC(name,NAME) NAME
4845_ACEOF
4846
4847          cat >>confdefs.h <<\_ACEOF
4848#define F77_FUNC_(name,NAME) NAME
4849_ACEOF
4850 ;;
4851  "upper case, no underscore, extra underscore")
4852          cat >>confdefs.h <<\_ACEOF
4853#define F77_FUNC(name,NAME) NAME
4854_ACEOF
4855
4856          cat >>confdefs.h <<\_ACEOF
4857#define F77_FUNC_(name,NAME) NAME ## _
4858_ACEOF
4859 ;;
4860  "upper case, underscore, no extra underscore")
4861          cat >>confdefs.h <<\_ACEOF
4862#define F77_FUNC(name,NAME) NAME ## _
4863_ACEOF
4864
4865          cat >>confdefs.h <<\_ACEOF
4866#define F77_FUNC_(name,NAME) NAME ## _
4867_ACEOF
4868 ;;
4869  "upper case, underscore, extra underscore")
4870          cat >>confdefs.h <<\_ACEOF
4871#define F77_FUNC(name,NAME) NAME ## _
4872_ACEOF
4873
4874          cat >>confdefs.h <<\_ACEOF
4875#define F77_FUNC_(name,NAME) NAME ## __
4876_ACEOF
4877 ;;
4878  *)
4879          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4880echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4881          ;;
4882esac
4883
4884ac_ext=f
4885ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4886ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4888
4889ac_ext=c
4890ac_cpp='$CPP $CPPFLAGS'
4891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894
4895
4896
4897
4898# Check for Blas
4899
4900
4901# Check whether --enable-pkg-config or --disable-pkg-config was given.
4902if test "${enable_pkg_config+set}" = set; then
4903  enableval="$enable_pkg_config"
4904  use_pkgconfig="$enableval"
4905else
4906  if test x$coin_cc_is_cl = xtrue; then
4907     use_pkgconfig=no
4908   else
4909     use_pkgconfig=yes
4910   fi
4911fi;
4912
4913if test $use_pkgconfig = yes ; then
4914  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4915    if test -n "$ac_tool_prefix"; then
4916  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4917set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4918echo "$as_me:$LINENO: checking for $ac_word" >&5
4919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4921  echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923  if test -n "$PKG_CONFIG"; then
4924  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4925else
4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929  IFS=$as_save_IFS
4930  test -z "$as_dir" && as_dir=.
4931  for ac_exec_ext in '' $ac_executable_extensions; do
4932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935    break 2
4936  fi
4937done
4938done
4939
4940fi
4941fi
4942PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4943if test -n "$PKG_CONFIG"; then
4944  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4945echo "${ECHO_T}$PKG_CONFIG" >&6
4946else
4947  echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6
4949fi
4950
4951fi
4952if test -z "$ac_cv_prog_PKG_CONFIG"; then
4953  ac_ct_PKG_CONFIG=$PKG_CONFIG
4954  # Extract the first word of "pkg-config", so it can be a program name with args.
4955set dummy pkg-config; ac_word=$2
4956echo "$as_me:$LINENO: checking for $ac_word" >&5
4957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4959  echo $ECHO_N "(cached) $ECHO_C" >&6
4960else
4961  if test -n "$ac_ct_PKG_CONFIG"; then
4962  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4963else
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967  IFS=$as_save_IFS
4968  test -z "$as_dir" && as_dir=.
4969  for ac_exec_ext in '' $ac_executable_extensions; do
4970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973    break 2
4974  fi
4975done
4976done
4977
4978fi
4979fi
4980ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4981if test -n "$ac_ct_PKG_CONFIG"; then
4982  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4983echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4984else
4985  echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
4987fi
4988
4989  PKG_CONFIG=$ac_ct_PKG_CONFIG
4990else
4991  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4992fi
4993
4994  fi
4995  if test -n "$PKG_CONFIG"; then
4996    _pkg_min_version=0.16.0
4997    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4998echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4999    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5000      echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002    else
5003      echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005      PKG_CONFIG=""
5006    fi
5007  fi
5008
5009  # check if pkg-config supports the short-errors flag
5010  if test -n "$PKG_CONFIG" && \
5011    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5012    pkg_short_errors=" --short-errors "
5013  else
5014    pkg_short_errors=""
5015  fi
5016fi
5017
5018
5019
5020if test -n "$PKG_CONFIG"; then
5021  COIN_HAS_PKGCONFIG_TRUE=
5022  COIN_HAS_PKGCONFIG_FALSE='#'
5023else
5024  COIN_HAS_PKGCONFIG_TRUE='#'
5025  COIN_HAS_PKGCONFIG_FALSE=
5026fi
5027
5028
5029
5030# assemble pkg-config search path for installed projects
5031COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
5032
5033# 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
5034# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
5035# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
5036if test "x${prefix}" = xNONE ; then
5037  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5038else
5039  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5040fi
5041
5042
5043# Check whether --with-coin-instdir or --without-coin-instdir was given.
5044if test "${with_coin_instdir+set}" = set; then
5045  withval="$with_coin_instdir"
5046  if test -d "$withval"; then : ; else
5047     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
5048echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
5049   { (exit 1); exit 1; }; }
5050   fi
5051   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5052
5053fi;
5054
5055
5056
5057# assemble additional pkg-config search paths for uninstalled projects
5058if test x$coin_projectdir = xyes ; then
5059  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
5060  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
5061  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
5062  # 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)
5063  COIN_PKG_CONFIG_PATH_UNINSTALLED=
5064  if test -e ../coin_subdirs.txt ; then
5065    for i in `cat ../coin_subdirs.txt` ; do
5066      if test -d ../$i ; then
5067        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5068      fi
5069      if test -d ../$i/pkgconfig ; then
5070        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5071      fi
5072    done
5073  fi
5074
5075  if test -e ../../coin_subdirs.txt ; then
5076    for i in `cat ../../coin_subdirs.txt` ; do
5077      if test -d ../../$i ; then
5078        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5079      fi
5080      if test -d ../../$i/pkgconfig ; then
5081        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5082      fi
5083    done
5084  fi
5085
5086
5087fi
5088
5089if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5090  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
5091echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
5092fi
5093
5094
5095
5096
5097# Check whether --with-blas or --without-blas was given.
5098if test "${with_blas+set}" = set; then
5099  withval="$with_blas"
5100  use_blas="$withval"
5101else
5102  use_blas=
5103fi;
5104
5105# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
5106# preference
5107
5108# Check whether --with-blas-lib or --without-blas-lib was given.
5109if test "${with_blas_lib+set}" = set; then
5110  withval="$with_blas_lib"
5111  use_blas=BUILD
5112fi;
5113
5114# Check if user supplied option makes sense
5115if test x"$use_blas" != x; then
5116  if test "$use_blas" = "BUILD"; then
5117    # we come to this later
5118    :
5119  elif test "$use_blas" != "no"; then
5120    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
5121echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
5122    coin_need_flibs=no
5123    coin_save_LIBS="$LIBS"
5124    LIBS="$use_blas $LIBS"
5125    case $ac_ext in
5126  f)
5127    cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h.  */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h.  */
5133
5134#ifdef F77_DUMMY_MAIN
5135
5136#  ifdef __cplusplus
5137     extern "C"
5138#  endif
5139   int F77_DUMMY_MAIN() { return 1; }
5140
5141#endif
5142int
5143main ()
5144{
5145      call daxpy
5146  ;
5147  return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext conftest$ac_exeext
5151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152  (eval $ac_link) 2>conftest.er1
5153  ac_status=$?
5154  grep -v '^ *+' conftest.er1 >conftest.err
5155  rm -f conftest.er1
5156  cat conftest.err >&5
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); } &&
5159         { ac_try='test -z "$ac_c_werror_flag"
5160                         || test ! -s conftest.err'
5161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162  (eval $ac_try) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); }; } &&
5166         { ac_try='test -s conftest$ac_exeext'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; }; then
5172  if test $coin_need_flibs = yes ; then
5173                         use_blas="$use_blas $FLIBS"
5174                       fi
5175                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5176echo "${ECHO_T}yes: $use_blas" >&6
5177else
5178  echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5184echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5185   { (exit 1); exit 1; }; }
5186fi
5187rm -f conftest.err conftest.$ac_objext \
5188      conftest$ac_exeext conftest.$ac_ext
5189    ;;
5190  c)
5191    ac_ext=f
5192ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5193ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5195case $ac_cv_f77_mangling in
5196  upper*) ac_val="DAXPY" ;;
5197  lower*) ac_val="daxpy" ;;
5198  *)      ac_val="unknown" ;;
5199esac
5200case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5201
5202cfuncdaxpy="$ac_val"
5203
5204ac_ext=c
5205ac_cpp='$CPP $CPPFLAGS'
5206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209
5210    if test x"$coin_need_flibs" = xyes; then
5211      flink_try=no;
5212    else
5213      cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219void $cfuncdaxpy();
5220#ifdef F77_DUMMY_MAIN
5221
5222#  ifdef __cplusplus
5223     extern "C"
5224#  endif
5225   int F77_DUMMY_MAIN() { return 1; }
5226
5227#endif
5228int
5229main ()
5230{
5231$cfuncdaxpy()
5232  ;
5233  return 0;
5234}
5235_ACEOF
5236rm -f conftest.$ac_objext conftest$ac_exeext
5237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238  (eval $ac_link) 2>conftest.er1
5239  ac_status=$?
5240  grep -v '^ *+' conftest.er1 >conftest.err
5241  rm -f conftest.er1
5242  cat conftest.err >&5
5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244  (exit $ac_status); } &&
5245         { ac_try='test -z "$ac_c_werror_flag"
5246                         || test ! -s conftest.err'
5247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248  (eval $ac_try) 2>&5
5249  ac_status=$?
5250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251  (exit $ac_status); }; } &&
5252         { ac_try='test -s conftest$ac_exeext'
5253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254  (eval $ac_try) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }; }; then
5258  flink_try=yes
5259else
5260  echo "$as_me: failed program was:" >&5
5261sed 's/^/| /' conftest.$ac_ext >&5
5262
5263flink_try=no
5264fi
5265rm -f conftest.err conftest.$ac_objext \
5266      conftest$ac_exeext conftest.$ac_ext
5267    fi
5268    if test $flink_try = yes; then
5269      if test $coin_need_flibs = yes ; then
5270                         use_blas="$use_blas $FLIBS"
5271                       fi
5272                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5273echo "${ECHO_T}yes: $use_blas" >&6
5274    else
5275      if test x"$FLIBS" != x; then
5276        flink_save_libs="$LIBS"
5277        LIBS="$LIBS $FLIBS"
5278        cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284void $cfuncdaxpy();
5285#ifdef F77_DUMMY_MAIN
5286
5287#  ifdef __cplusplus
5288     extern "C"
5289#  endif
5290   int F77_DUMMY_MAIN() { return 1; }
5291
5292#endif
5293int
5294main ()
5295{
5296$cfuncdaxpy()
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301rm -f conftest.$ac_objext conftest$ac_exeext
5302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5303  (eval $ac_link) 2>conftest.er1
5304  ac_status=$?
5305  grep -v '^ *+' conftest.er1 >conftest.err
5306  rm -f conftest.er1
5307  cat conftest.err >&5
5308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309  (exit $ac_status); } &&
5310         { ac_try='test -z "$ac_c_werror_flag"
5311                         || test ! -s conftest.err'
5312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313  (eval $ac_try) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); }; } &&
5317         { ac_try='test -s conftest$ac_exeext'
5318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319  (eval $ac_try) 2>&5
5320  ac_status=$?
5321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322  (exit $ac_status); }; }; then
5323  LIBS="$flink_save_libs"
5324                     coin_need_flibs=yes
5325                     if test $coin_need_flibs = yes ; then
5326                         use_blas="$use_blas $FLIBS"
5327                       fi
5328                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5329echo "${ECHO_T}yes: $use_blas" >&6
5330
5331else
5332  echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335LIBS="$flink_save_libs"
5336                     echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5339echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5340   { (exit 1); exit 1; }; }
5341fi
5342rm -f conftest.err conftest.$ac_objext \
5343      conftest$ac_exeext conftest.$ac_ext
5344      else
5345        echo "$as_me:$LINENO: result: no" >&5
5346echo "${ECHO_T}no" >&6
5347                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5348echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5349   { (exit 1); exit 1; }; }
5350      fi
5351    fi
5352    ;;
5353  cc|cpp)
5354    ac_ext=f
5355ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5356ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5358case $ac_cv_f77_mangling in
5359  upper*) ac_val="DAXPY" ;;
5360  lower*) ac_val="daxpy" ;;
5361  *)      ac_val="unknown" ;;
5362esac
5363case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5364
5365cfuncdaxpy="$ac_val"
5366
5367ac_ext=c
5368ac_cpp='$CPP $CPPFLAGS'
5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373    if test x"$coin_need_flibs" = xyes; then
5374      flink_try=no;
5375    else
5376      cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h.  */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h.  */
5382extern "C" {void $cfuncdaxpy();}
5383#ifdef F77_DUMMY_MAIN
5384
5385#  ifdef __cplusplus
5386     extern "C"
5387#  endif
5388   int F77_DUMMY_MAIN() { return 1; }
5389
5390#endif
5391int
5392main ()
5393{
5394$cfuncdaxpy()
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399rm -f conftest.$ac_objext conftest$ac_exeext
5400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401  (eval $ac_link) 2>conftest.er1
5402  ac_status=$?
5403  grep -v '^ *+' conftest.er1 >conftest.err
5404  rm -f conftest.er1
5405  cat conftest.err >&5
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); } &&
5408         { ac_try='test -z "$ac_c_werror_flag"
5409                         || test ! -s conftest.err'
5410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411  (eval $ac_try) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; } &&
5415         { ac_try='test -s conftest$ac_exeext'
5416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417  (eval $ac_try) 2>&5
5418  ac_status=$?
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); }; }; then
5421  flink_try=yes
5422else
5423  echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426flink_try=no
5427fi
5428rm -f conftest.err conftest.$ac_objext \
5429      conftest$ac_exeext conftest.$ac_ext
5430    fi
5431    if test $flink_try = yes; then
5432      if test $coin_need_flibs = yes ; then
5433                         use_blas="$use_blas $FLIBS"
5434                       fi
5435                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5436echo "${ECHO_T}yes: $use_blas" >&6
5437    else
5438      if test x"$FLIBS" != x; then
5439        flink_save_libs="$LIBS"
5440        LIBS="$LIBS $FLIBS"
5441        cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447extern "C" {void $cfuncdaxpy();}
5448#ifdef F77_DUMMY_MAIN
5449
5450#  ifdef __cplusplus
5451     extern "C"
5452#  endif
5453   int F77_DUMMY_MAIN() { return 1; }
5454
5455#endif
5456int
5457main ()
5458{
5459$cfuncdaxpy()
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464rm -f conftest.$ac_objext conftest$ac_exeext
5465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466  (eval $ac_link) 2>conftest.er1
5467  ac_status=$?
5468  grep -v '^ *+' conftest.er1 >conftest.err
5469  rm -f conftest.er1
5470  cat conftest.err >&5
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); } &&
5473         { ac_try='test -z "$ac_c_werror_flag"
5474                         || test ! -s conftest.err'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; } &&
5480         { ac_try='test -s conftest$ac_exeext'
5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482  (eval $ac_try) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }; }; then
5486  LIBS="$flink_save_libs"
5487                     coin_need_flibs=yes
5488                     if test $coin_need_flibs = yes ; then
5489                         use_blas="$use_blas $FLIBS"
5490                       fi
5491                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5492echo "${ECHO_T}yes: $use_blas" >&6
5493
5494else
5495  echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498LIBS="$flink_save_libs"
5499                     echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5502echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5503   { (exit 1); exit 1; }; }
5504fi
5505rm -f conftest.err conftest.$ac_objext \
5506      conftest$ac_exeext conftest.$ac_ext
5507      else
5508        echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5511echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5512   { (exit 1); exit 1; }; }
5513      fi
5514    fi
5515    ;;
5516esac
5517
5518    LIBS="$coin_save_LIBS"
5519  fi
5520else
5521# Try to autodetect the library for blas based on build system
5522  #AC_MSG_CHECKING([default locations for BLAS])
5523  skip_lblas_check=no
5524  case $build in
5525    *-sgi-*)
5526      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5527echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5528      coin_need_flibs=no
5529      coin_save_LIBS="$LIBS"
5530      LIBS="-lcomplib.sgimath $LIBS"
5531      case $ac_ext in
5532  f)
5533    cat >conftest.$ac_ext <<_ACEOF
5534/* confdefs.h.  */
5535_ACEOF
5536cat confdefs.h >>conftest.$ac_ext
5537cat >>conftest.$ac_ext <<_ACEOF
5538/* end confdefs.h.  */
5539
5540#ifdef F77_DUMMY_MAIN
5541
5542#  ifdef __cplusplus
5543     extern "C"
5544#  endif
5545   int F77_DUMMY_MAIN() { return 1; }
5546
5547#endif
5548int
5549main ()
5550{
5551      call daxpy
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext conftest$ac_exeext
5557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558  (eval $ac_link) 2>conftest.er1
5559  ac_status=$?
5560  grep -v '^ *+' conftest.er1 >conftest.err
5561  rm -f conftest.er1
5562  cat conftest.err >&5
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); } &&
5565         { ac_try='test -z "$ac_c_werror_flag"
5566                         || test ! -s conftest.err'
5567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568  (eval $ac_try) 2>&5
5569  ac_status=$?
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); }; } &&
5572         { ac_try='test -s conftest$ac_exeext'
5573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574  (eval $ac_try) 2>&5
5575  ac_status=$?
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); }; }; then
5578  use_blas="-lcomplib.sgimath"
5579                         if test $coin_need_flibs = yes ; then
5580                           use_blas="$use_blas $FLIBS"
5581                         fi
5582                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5583echo "${ECHO_T}yes: $use_blas" >&6
5584
5585else
5586  echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6
5591fi
5592rm -f conftest.err conftest.$ac_objext \
5593      conftest$ac_exeext conftest.$ac_ext
5594    ;;
5595  c)
5596    ac_ext=f
5597ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5598ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5600case $ac_cv_f77_mangling in
5601  upper*) ac_val="DAXPY" ;;
5602  lower*) ac_val="daxpy" ;;
5603  *)      ac_val="unknown" ;;
5604esac
5605case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5606
5607cfuncdaxpy="$ac_val"
5608
5609ac_ext=c
5610ac_cpp='$CPP $CPPFLAGS'
5611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5613ac_compiler_gnu=$ac_cv_c_compiler_gnu
5614
5615    if test x"$coin_need_flibs" = xyes; then
5616      flink_try=no;
5617    else
5618      cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h.  */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h.  */
5624void $cfuncdaxpy();
5625#ifdef F77_DUMMY_MAIN
5626
5627#  ifdef __cplusplus
5628     extern "C"
5629#  endif
5630   int F77_DUMMY_MAIN() { return 1; }
5631
5632#endif
5633int
5634main ()
5635{
5636$cfuncdaxpy()
5637  ;
5638  return 0;
5639}
5640_ACEOF
5641rm -f conftest.$ac_objext conftest$ac_exeext
5642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643  (eval $ac_link) 2>conftest.er1
5644  ac_status=$?
5645  grep -v '^ *+' conftest.er1 >conftest.err
5646  rm -f conftest.er1
5647  cat conftest.err >&5
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); } &&
5650         { ac_try='test -z "$ac_c_werror_flag"
5651                         || test ! -s conftest.err'
5652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653  (eval $ac_try) 2>&5
5654  ac_status=$?
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); }; } &&
5657         { ac_try='test -s conftest$ac_exeext'
5658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659  (eval $ac_try) 2>&5
5660  ac_status=$?
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); }; }; then
5663  flink_try=yes
5664else
5665  echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668flink_try=no
5669fi
5670rm -f conftest.err conftest.$ac_objext \
5671      conftest$ac_exeext conftest.$ac_ext
5672    fi
5673    if test $flink_try = yes; then
5674      use_blas="-lcomplib.sgimath"
5675                         if test $coin_need_flibs = yes ; then
5676                           use_blas="$use_blas $FLIBS"
5677                         fi
5678                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5679echo "${ECHO_T}yes: $use_blas" >&6
5680
5681    else
5682      if test x"$FLIBS" != x; then
5683        flink_save_libs="$LIBS"
5684        LIBS="$LIBS $FLIBS"
5685        cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h.  */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h.  */
5691void $cfuncdaxpy();
5692#ifdef F77_DUMMY_MAIN
5693
5694#  ifdef __cplusplus
5695     extern "C"
5696#  endif
5697   int F77_DUMMY_MAIN() { return 1; }
5698
5699#endif
5700int
5701main ()
5702{
5703$cfuncdaxpy()
5704  ;
5705  return 0;
5706}
5707_ACEOF
5708rm -f conftest.$ac_objext conftest$ac_exeext
5709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5710  (eval $ac_link) 2>conftest.er1
5711  ac_status=$?
5712  grep -v '^ *+' conftest.er1 >conftest.err
5713  rm -f conftest.er1
5714  cat conftest.err >&5
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); } &&
5717         { ac_try='test -z "$ac_c_werror_flag"
5718                         || test ! -s conftest.err'
5719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720  (eval $ac_try) 2>&5
5721  ac_status=$?
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); }; } &&
5724         { ac_try='test -s conftest$ac_exeext'
5725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726  (eval $ac_try) 2>&5
5727  ac_status=$?
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); }; }; then
5730  LIBS="$flink_save_libs"
5731                     coin_need_flibs=yes
5732                     use_blas="-lcomplib.sgimath"
5733                         if test $coin_need_flibs = yes ; then
5734                           use_blas="$use_blas $FLIBS"
5735                         fi
5736                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5737echo "${ECHO_T}yes: $use_blas" >&6
5738
5739
5740else
5741  echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744LIBS="$flink_save_libs"
5745                     echo "$as_me:$LINENO: result: no" >&5
5746echo "${ECHO_T}no" >&6
5747fi
5748rm -f conftest.err conftest.$ac_objext \
5749      conftest$ac_exeext conftest.$ac_ext
5750      else
5751        echo "$as_me:$LINENO: result: no" >&5
5752echo "${ECHO_T}no" >&6
5753      fi
5754    fi
5755    ;;
5756  cc|cpp)
5757    ac_ext=f
5758ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5759ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5761case $ac_cv_f77_mangling in
5762  upper*) ac_val="DAXPY" ;;
5763  lower*) ac_val="daxpy" ;;
5764  *)      ac_val="unknown" ;;
5765esac
5766case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5767
5768cfuncdaxpy="$ac_val"
5769
5770ac_ext=c
5771ac_cpp='$CPP $CPPFLAGS'
5772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774ac_compiler_gnu=$ac_cv_c_compiler_gnu
5775
5776    if test x"$coin_need_flibs" = xyes; then
5777      flink_try=no;
5778    else
5779      cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h.  */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h.  */
5785extern "C" {void $cfuncdaxpy();}
5786#ifdef F77_DUMMY_MAIN
5787
5788#  ifdef __cplusplus
5789     extern "C"
5790#  endif
5791   int F77_DUMMY_MAIN() { return 1; }
5792
5793#endif
5794int
5795main ()
5796{
5797$cfuncdaxpy()
5798  ;
5799  return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext conftest$ac_exeext
5803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804  (eval $ac_link) 2>conftest.er1
5805  ac_status=$?
5806  grep -v '^ *+' conftest.er1 >conftest.err
5807  rm -f conftest.er1
5808  cat conftest.err >&5
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); } &&
5811         { ac_try='test -z "$ac_c_werror_flag"
5812                         || test ! -s conftest.err'
5813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814  (eval $ac_try) 2>&5
5815  ac_status=$?
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); }; } &&
5818         { ac_try='test -s conftest$ac_exeext'
5819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820  (eval $ac_try) 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); }; }; then
5824  flink_try=yes
5825else
5826  echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829flink_try=no
5830fi
5831rm -f conftest.err conftest.$ac_objext \
5832      conftest$ac_exeext conftest.$ac_ext
5833    fi
5834    if test $flink_try = yes; then
5835      use_blas="-lcomplib.sgimath"
5836                         if test $coin_need_flibs = yes ; then
5837                           use_blas="$use_blas $FLIBS"
5838                         fi
5839                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5840echo "${ECHO_T}yes: $use_blas" >&6
5841
5842    else
5843      if test x"$FLIBS" != x; then
5844        flink_save_libs="$LIBS"
5845        LIBS="$LIBS $FLIBS"
5846        cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h.  */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h.  */
5852extern "C" {void $cfuncdaxpy();}
5853#ifdef F77_DUMMY_MAIN
5854
5855#  ifdef __cplusplus
5856     extern "C"
5857#  endif
5858   int F77_DUMMY_MAIN() { return 1; }
5859
5860#endif
5861int
5862main ()
5863{
5864$cfuncdaxpy()
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869rm -f conftest.$ac_objext conftest$ac_exeext
5870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871  (eval $ac_link) 2>conftest.er1
5872  ac_status=$?
5873  grep -v '^ *+' conftest.er1 >conftest.err
5874  rm -f conftest.er1
5875  cat conftest.err >&5
5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); } &&
5878         { ac_try='test -z "$ac_c_werror_flag"
5879                         || test ! -s conftest.err'
5880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881  (eval $ac_try) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); }; } &&
5885         { ac_try='test -s conftest$ac_exeext'
5886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887  (eval $ac_try) 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; }; then
5891  LIBS="$flink_save_libs"
5892                     coin_need_flibs=yes
5893                     use_blas="-lcomplib.sgimath"
5894                         if test $coin_need_flibs = yes ; then
5895                           use_blas="$use_blas $FLIBS"
5896                         fi
5897                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5898echo "${ECHO_T}yes: $use_blas" >&6
5899
5900
5901else
5902  echo "$as_me: failed program was:" >&5
5903sed 's/^/| /' conftest.$ac_ext >&5
5904
5905LIBS="$flink_save_libs"
5906                     echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908fi
5909rm -f conftest.err conftest.$ac_objext \
5910      conftest$ac_exeext conftest.$ac_ext
5911      else
5912        echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6
5914      fi
5915    fi
5916    ;;
5917esac
5918
5919      LIBS="$coin_save_LIBS"
5920      ;;
5921
5922# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
5923# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
5924# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
5925# that CC and cc will understand -library in Studio 13. The main extra
5926# function of -xlic_lib and -library is to arrange for the Fortran run-time
5927# libraries to be linked for C++ and C. We can arrange that explicitly.
5928    *-*-solaris*)
5929      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
5930echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
5931      coin_need_flibs=no
5932      coin_save_LIBS="$LIBS"
5933      LIBS="-lsunperf $FLIBS $LIBS"
5934      case $ac_ext in
5935  f)
5936    cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h.  */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h.  */
5942
5943#ifdef F77_DUMMY_MAIN
5944
5945#  ifdef __cplusplus
5946     extern "C"
5947#  endif
5948   int F77_DUMMY_MAIN() { return 1; }
5949
5950#endif
5951int
5952main ()
5953{
5954      call daxpy
5955  ;
5956  return 0;
5957}
5958_ACEOF
5959rm -f conftest.$ac_objext conftest$ac_exeext
5960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5961  (eval $ac_link) 2>conftest.er1
5962  ac_status=$?
5963  grep -v '^ *+' conftest.er1 >conftest.err
5964  rm -f conftest.er1
5965  cat conftest.err >&5
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); } &&
5968         { ac_try='test -z "$ac_c_werror_flag"
5969                         || test ! -s conftest.err'
5970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971  (eval $ac_try) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }; } &&
5975         { ac_try='test -s conftest$ac_exeext'
5976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977  (eval $ac_try) 2>&5
5978  ac_status=$?
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); }; }; then
5981  use_blas='-lsunperf'
5982                         if test $coin_need_flibs = yes ; then
5983                           use_blas="$use_blas $FLIBS"
5984                         fi
5985                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5986echo "${ECHO_T}yes: $use_blas" >&6
5987
5988else
5989  echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6
5994fi
5995rm -f conftest.err conftest.$ac_objext \
5996      conftest$ac_exeext conftest.$ac_ext
5997    ;;
5998  c)
5999    ac_ext=f
6000ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6001ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6003case $ac_cv_f77_mangling in
6004  upper*) ac_val="DAXPY" ;;
6005  lower*) ac_val="daxpy" ;;
6006  *)      ac_val="unknown" ;;
6007esac
6008case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6009
6010cfuncdaxpy="$ac_val"
6011
6012ac_ext=c
6013ac_cpp='$CPP $CPPFLAGS'
6014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017
6018    if test x"$coin_need_flibs" = xyes; then
6019      flink_try=no;
6020    else
6021      cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h.  */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h.  */
6027void $cfuncdaxpy();
6028#ifdef F77_DUMMY_MAIN
6029
6030#  ifdef __cplusplus
6031     extern "C"
6032#  endif
6033   int F77_DUMMY_MAIN() { return 1; }
6034
6035#endif
6036int
6037main ()
6038{
6039$cfuncdaxpy()
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext
6045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6046  (eval $ac_link) 2>conftest.er1
6047  ac_status=$?
6048  grep -v '^ *+' conftest.er1 >conftest.err
6049  rm -f conftest.er1
6050  cat conftest.err >&5
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); } &&
6053         { ac_try='test -z "$ac_c_werror_flag"
6054                         || test ! -s conftest.err'
6055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056  (eval $ac_try) 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); }; } &&
6060         { ac_try='test -s conftest$ac_exeext'
6061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062  (eval $ac_try) 2>&5
6063  ac_status=$?
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); }; }; then
6066  flink_try=yes
6067else
6068  echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
6070
6071flink_try=no
6072fi
6073rm -f conftest.err conftest.$ac_objext \
6074      conftest$ac_exeext conftest.$ac_ext
6075    fi
6076    if test $flink_try = yes; then
6077      use_blas='-lsunperf'
6078                         if test $coin_need_flibs = yes ; then
6079                           use_blas="$use_blas $FLIBS"
6080                         fi
6081                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6082echo "${ECHO_T}yes: $use_blas" >&6
6083
6084    else
6085      if test x"$FLIBS" != x; then
6086        flink_save_libs="$LIBS"
6087        LIBS="$LIBS $FLIBS"
6088        cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h.  */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h.  */
6094void $cfuncdaxpy();
6095#ifdef F77_DUMMY_MAIN
6096
6097#  ifdef __cplusplus
6098     extern "C"
6099#  endif
6100   int F77_DUMMY_MAIN() { return 1; }
6101
6102#endif
6103int
6104main ()
6105{
6106$cfuncdaxpy()
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext conftest$ac_exeext
6112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113  (eval $ac_link) 2>conftest.er1
6114  ac_status=$?
6115  grep -v '^ *+' conftest.er1 >conftest.err
6116  rm -f conftest.er1
6117  cat conftest.err >&5
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); } &&
6120         { ac_try='test -z "$ac_c_werror_flag"
6121                         || test ! -s conftest.err'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; } &&
6127         { ac_try='test -s conftest$ac_exeext'
6128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129  (eval $ac_try) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; }; then
6133  LIBS="$flink_save_libs"
6134                     coin_need_flibs=yes
6135                     use_blas='-lsunperf'
6136                         if test $coin_need_flibs = yes ; then
6137                           use_blas="$use_blas $FLIBS"
6138                         fi
6139                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6140echo "${ECHO_T}yes: $use_blas" >&6
6141
6142
6143else
6144  echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147LIBS="$flink_save_libs"
6148                     echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
6150fi
6151rm -f conftest.err conftest.$ac_objext \
6152      conftest$ac_exeext conftest.$ac_ext
6153      else
6154        echo "$as_me:$LINENO: result: no" >&5
6155echo "${ECHO_T}no" >&6
6156      fi
6157    fi
6158    ;;
6159  cc|cpp)
6160    ac_ext=f
6161ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6162ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6164case $ac_cv_f77_mangling in
6165  upper*) ac_val="DAXPY" ;;
6166  lower*) ac_val="daxpy" ;;
6167  *)      ac_val="unknown" ;;
6168esac
6169case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6170
6171cfuncdaxpy="$ac_val"
6172
6173ac_ext=c
6174ac_cpp='$CPP $CPPFLAGS'
6175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179    if test x"$coin_need_flibs" = xyes; then
6180      flink_try=no;
6181    else
6182      cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h.  */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h.  */
6188extern "C" {void $cfuncdaxpy();}
6189#ifdef F77_DUMMY_MAIN
6190
6191#  ifdef __cplusplus
6192     extern "C"
6193#  endif
6194   int F77_DUMMY_MAIN() { return 1; }
6195
6196#endif
6197int
6198main ()
6199{
6200$cfuncdaxpy()
6201  ;
6202  return 0;
6203}
6204_ACEOF
6205rm -f conftest.$ac_objext conftest$ac_exeext
6206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207  (eval $ac_link) 2>conftest.er1
6208  ac_status=$?
6209  grep -v '^ *+' conftest.er1 >conftest.err
6210  rm -f conftest.er1
6211  cat conftest.err >&5
6212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); } &&
6214         { ac_try='test -z "$ac_c_werror_flag"
6215                         || test ! -s conftest.err'
6216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217  (eval $ac_try) 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); }; } &&
6221         { ac_try='test -s conftest$ac_exeext'
6222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223  (eval $ac_try) 2>&5
6224  ac_status=$?
6225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); }; }; then
6227  flink_try=yes
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232flink_try=no
6233fi
6234rm -f conftest.err conftest.$ac_objext \
6235      conftest$ac_exeext conftest.$ac_ext
6236    fi
6237    if test $flink_try = yes; then
6238      use_blas='-lsunperf'
6239                         if test $coin_need_flibs = yes ; then
6240                           use_blas="$use_blas $FLIBS"
6241                         fi
6242                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6243echo "${ECHO_T}yes: $use_blas" >&6
6244
6245    else
6246      if test x"$FLIBS" != x; then
6247        flink_save_libs="$LIBS"
6248        LIBS="$LIBS $FLIBS"
6249        cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h.  */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h.  */
6255extern "C" {void $cfuncdaxpy();}
6256#ifdef F77_DUMMY_MAIN
6257
6258#  ifdef __cplusplus
6259     extern "C"
6260#  endif
6261   int F77_DUMMY_MAIN() { return 1; }
6262
6263#endif
6264int
6265main ()
6266{
6267$cfuncdaxpy()
6268  ;
6269  return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274  (eval $ac_link) 2>conftest.er1
6275  ac_status=$?
6276  grep -v '^ *+' conftest.er1 >conftest.err
6277  rm -f conftest.er1
6278  cat conftest.err >&5
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); } &&
6281         { ac_try='test -z "$ac_c_werror_flag"
6282                         || test ! -s conftest.err'
6283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284  (eval $ac_try) 2>&5
6285  ac_status=$?
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); }; } &&
6288         { ac_try='test -s conftest$ac_exeext'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; }; then
6294  LIBS="$flink_save_libs"
6295                     coin_need_flibs=yes
6296                     use_blas='-lsunperf'
6297                         if test $coin_need_flibs = yes ; then
6298                           use_blas="$use_blas $FLIBS"
6299                         fi
6300                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6301echo "${ECHO_T}yes: $use_blas" >&6
6302
6303
6304else
6305  echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308LIBS="$flink_save_libs"
6309                     echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311fi
6312rm -f conftest.err conftest.$ac_objext \
6313      conftest$ac_exeext conftest.$ac_ext
6314      else
6315        echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317      fi
6318    fi
6319    ;;
6320esac
6321
6322      LIBS="$coin_save_LIBS"
6323      ;;
6324
6325    *-cygwin* | *-mingw*)
6326# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
6327# library will want to link with cygwin, hence won't run standalone in DOS.
6328      if test "$enable_doscompile" = mingw; then
6329        skip_lblas_check=yes
6330      fi
6331      case "$CC" in
6332        clang* ) ;;
6333        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6334          coin_save_LIBS="$LIBS"
6335          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6336echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6337          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6338          case $ac_ext in
6339  f)
6340    cat >conftest.$ac_ext <<_ACEOF
6341/* confdefs.h.  */
6342_ACEOF
6343cat confdefs.h >>conftest.$ac_ext
6344cat >>conftest.$ac_ext <<_ACEOF
6345/* end confdefs.h.  */
6346
6347#ifdef F77_DUMMY_MAIN
6348
6349#  ifdef __cplusplus
6350     extern "C"
6351#  endif
6352   int F77_DUMMY_MAIN() { return 1; }
6353
6354#endif
6355int
6356main ()
6357{
6358      call daxpy
6359  ;
6360  return 0;
6361}
6362_ACEOF
6363rm -f conftest.$ac_objext conftest$ac_exeext
6364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365  (eval $ac_link) 2>conftest.er1
6366  ac_status=$?
6367  grep -v '^ *+' conftest.er1 >conftest.err
6368  rm -f conftest.er1
6369  cat conftest.err >&5
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); } &&
6372         { ac_try='test -z "$ac_c_werror_flag"
6373                         || test ! -s conftest.err'
6374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375  (eval $ac_try) 2>&5
6376  ac_status=$?
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); }; } &&
6379         { ac_try='test -s conftest$ac_exeext'
6380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381  (eval $ac_try) 2>&5
6382  ac_status=$?
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); }; }; then
6385  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6386                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6387echo "${ECHO_T}yes: $use_blas" >&6
6388
6389else
6390  echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393echo "$as_me:$LINENO: result: no" >&5
6394echo "${ECHO_T}no" >&6
6395fi
6396rm -f conftest.err conftest.$ac_objext \
6397      conftest$ac_exeext conftest.$ac_ext
6398    ;;
6399  c)
6400    ac_ext=f
6401ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6402ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6404case $ac_cv_f77_mangling in
6405  upper*) ac_val="DAXPY" ;;
6406  lower*) ac_val="daxpy" ;;
6407  *)      ac_val="unknown" ;;
6408esac
6409case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6410
6411cfuncdaxpy="$ac_val"
6412
6413ac_ext=c
6414ac_cpp='$CPP $CPPFLAGS'
6415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419    if test x"$coin_need_flibs" = xyes; then
6420      flink_try=no;
6421    else
6422      cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428void $cfuncdaxpy();
6429#ifdef F77_DUMMY_MAIN
6430
6431#  ifdef __cplusplus
6432     extern "C"
6433#  endif
6434   int F77_DUMMY_MAIN() { return 1; }
6435
6436#endif
6437int
6438main ()
6439{
6440$cfuncdaxpy()
6441  ;
6442  return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447  (eval $ac_link) 2>conftest.er1
6448  ac_status=$?
6449  grep -v '^ *+' conftest.er1 >conftest.err
6450  rm -f conftest.er1
6451  cat conftest.err >&5
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); } &&
6454         { ac_try='test -z "$ac_c_werror_flag"
6455                         || test ! -s conftest.err'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; } &&
6461         { ac_try='test -s conftest$ac_exeext'
6462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463  (eval $ac_try) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; }; then
6467  flink_try=yes
6468else
6469  echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472flink_try=no
6473fi
6474rm -f conftest.err conftest.$ac_objext \
6475      conftest$ac_exeext conftest.$ac_ext
6476    fi
6477    if test $flink_try = yes; then
6478      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6479                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6480echo "${ECHO_T}yes: $use_blas" >&6
6481
6482    else
6483      if test x"$FLIBS" != x; then
6484        flink_save_libs="$LIBS"
6485        LIBS="$LIBS $FLIBS"
6486        cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h.  */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h.  */
6492void $cfuncdaxpy();
6493#ifdef F77_DUMMY_MAIN
6494
6495#  ifdef __cplusplus
6496     extern "C"
6497#  endif
6498   int F77_DUMMY_MAIN() { return 1; }
6499
6500#endif
6501int
6502main ()
6503{
6504$cfuncdaxpy()
6505  ;
6506  return 0;
6507}
6508_ACEOF
6509rm -f conftest.$ac_objext conftest$ac_exeext
6510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511  (eval $ac_link) 2>conftest.er1
6512  ac_status=$?
6513  grep -v '^ *+' conftest.er1 >conftest.err
6514  rm -f conftest.er1
6515  cat conftest.err >&5
6516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517  (exit $ac_status); } &&
6518         { ac_try='test -z "$ac_c_werror_flag"
6519                         || test ! -s conftest.err'
6520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521  (eval $ac_try) 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; } &&
6525         { ac_try='test -s conftest$ac_exeext'
6526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527  (eval $ac_try) 2>&5
6528  ac_status=$?
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); }; }; then
6531  LIBS="$flink_save_libs"
6532                     coin_need_flibs=yes
6533                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6534                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6535echo "${ECHO_T}yes: $use_blas" >&6
6536
6537
6538else
6539  echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542LIBS="$flink_save_libs"
6543                     echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545fi
6546rm -f conftest.err conftest.$ac_objext \
6547      conftest$ac_exeext conftest.$ac_ext
6548      else
6549        echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551      fi
6552    fi
6553    ;;
6554  cc|cpp)
6555    ac_ext=f
6556ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6557ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6559case $ac_cv_f77_mangling in
6560  upper*) ac_val="DAXPY" ;;
6561  lower*) ac_val="daxpy" ;;
6562  *)      ac_val="unknown" ;;
6563esac
6564case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6565
6566cfuncdaxpy="$ac_val"
6567
6568ac_ext=c
6569ac_cpp='$CPP $CPPFLAGS'
6570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573
6574    if test x"$coin_need_flibs" = xyes; then
6575      flink_try=no;
6576    else
6577      cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h.  */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h.  */
6583extern "C" {void $cfuncdaxpy();}
6584#ifdef F77_DUMMY_MAIN
6585
6586#  ifdef __cplusplus
6587     extern "C"
6588#  endif
6589   int F77_DUMMY_MAIN() { return 1; }
6590
6591#endif
6592int
6593main ()
6594{
6595$cfuncdaxpy()
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602  (eval $ac_link) 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } &&
6609         { ac_try='test -z "$ac_c_werror_flag"
6610                         || test ! -s conftest.err'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; } &&
6616         { ac_try='test -s conftest$ac_exeext'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; }; then
6622  flink_try=yes
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627flink_try=no
6628fi
6629rm -f conftest.err conftest.$ac_objext \
6630      conftest$ac_exeext conftest.$ac_ext
6631    fi
6632    if test $flink_try = yes; then
6633      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6634                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6635echo "${ECHO_T}yes: $use_blas" >&6
6636
6637    else
6638      if test x"$FLIBS" != x; then
6639        flink_save_libs="$LIBS"
6640        LIBS="$LIBS $FLIBS"
6641        cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h.  */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h.  */
6647extern "C" {void $cfuncdaxpy();}
6648#ifdef F77_DUMMY_MAIN
6649
6650#  ifdef __cplusplus
6651     extern "C"
6652#  endif
6653   int F77_DUMMY_MAIN() { return 1; }
6654
6655#endif
6656int
6657main ()
6658{
6659$cfuncdaxpy()
6660  ;
6661  return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext conftest$ac_exeext
6665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666  (eval $ac_link) 2>conftest.er1
6667  ac_status=$?
6668  grep -v '^ *+' conftest.er1 >conftest.err
6669  rm -f conftest.er1
6670  cat conftest.err >&5
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); } &&
6673         { ac_try='test -z "$ac_c_werror_flag"
6674                         || test ! -s conftest.err'
6675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676  (eval $ac_try) 2>&5
6677  ac_status=$?
6678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679  (exit $ac_status); }; } &&
6680         { ac_try='test -s conftest$ac_exeext'
6681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682  (eval $ac_try) 2>&5
6683  ac_status=$?
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); }; }; then
6686  LIBS="$flink_save_libs"
6687                     coin_need_flibs=yes
6688                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6689                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6690echo "${ECHO_T}yes: $use_blas" >&6
6691
6692
6693else
6694  echo "$as_me: failed program was:" >&5
6695sed 's/^/| /' conftest.$ac_ext >&5
6696
6697LIBS="$flink_save_libs"
6698                     echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
6700fi
6701rm -f conftest.err conftest.$ac_objext \
6702      conftest$ac_exeext conftest.$ac_ext
6703      else
6704        echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6
6706      fi
6707    fi
6708    ;;
6709esac
6710
6711          LIBS="$coin_save_LIBS"
6712
6713          if test "x$use_blas" = x ; then
6714            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6715echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6716            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6717            case $ac_ext in
6718  f)
6719    cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h.  */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h.  */
6725
6726#ifdef F77_DUMMY_MAIN
6727
6728#  ifdef __cplusplus
6729     extern "C"
6730#  endif
6731   int F77_DUMMY_MAIN() { return 1; }
6732
6733#endif
6734int
6735main ()
6736{
6737      call daxpy
6738  ;
6739  return 0;
6740}
6741_ACEOF
6742rm -f conftest.$ac_objext conftest$ac_exeext
6743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744  (eval $ac_link) 2>conftest.er1
6745  ac_status=$?
6746  grep -v '^ *+' conftest.er1 >conftest.err
6747  rm -f conftest.er1
6748  cat conftest.err >&5
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); } &&
6751         { ac_try='test -z "$ac_c_werror_flag"
6752                         || test ! -s conftest.err'
6753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754  (eval $ac_try) 2>&5
6755  ac_status=$?
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); }; } &&
6758         { ac_try='test -s conftest$ac_exeext'
6759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760  (eval $ac_try) 2>&5
6761  ac_status=$?
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); }; }; then
6764  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6765                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6766echo "${ECHO_T}yes: $use_blas" >&6
6767
6768else
6769  echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774fi
6775rm -f conftest.err conftest.$ac_objext \
6776      conftest$ac_exeext conftest.$ac_ext
6777    ;;
6778  c)
6779    ac_ext=f
6780ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6781ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6783case $ac_cv_f77_mangling in
6784  upper*) ac_val="DAXPY" ;;
6785  lower*) ac_val="daxpy" ;;
6786  *)      ac_val="unknown" ;;
6787esac
6788case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6789
6790cfuncdaxpy="$ac_val"
6791
6792ac_ext=c
6793ac_cpp='$CPP $CPPFLAGS'
6794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798    if test x"$coin_need_flibs" = xyes; then
6799      flink_try=no;
6800    else
6801      cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h.  */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h.  */
6807void $cfuncdaxpy();
6808#ifdef F77_DUMMY_MAIN
6809
6810#  ifdef __cplusplus
6811     extern "C"
6812#  endif
6813   int F77_DUMMY_MAIN() { return 1; }
6814
6815#endif
6816int
6817main ()
6818{
6819$cfuncdaxpy()
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext conftest$ac_exeext
6825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826  (eval $ac_link) 2>conftest.er1
6827  ac_status=$?
6828  grep -v '^ *+' conftest.er1 >conftest.err
6829  rm -f conftest.er1
6830  cat conftest.err >&5
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); } &&
6833         { ac_try='test -z "$ac_c_werror_flag"
6834                         || test ! -s conftest.err'
6835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836  (eval $ac_try) 2>&5
6837  ac_status=$?
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); }; } &&
6840         { ac_try='test -s conftest$ac_exeext'
6841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842  (eval $ac_try) 2>&5
6843  ac_status=$?
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); }; }; then
6846  flink_try=yes
6847else
6848  echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851flink_try=no
6852fi
6853rm -f conftest.err conftest.$ac_objext \
6854      conftest$ac_exeext conftest.$ac_ext
6855    fi
6856    if test $flink_try = yes; then
6857      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6858                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6859echo "${ECHO_T}yes: $use_blas" >&6
6860
6861    else
6862      if test x"$FLIBS" != x; then
6863        flink_save_libs="$LIBS"
6864        LIBS="$LIBS $FLIBS"
6865        cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h.  */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h.  */
6871void $cfuncdaxpy();
6872#ifdef F77_DUMMY_MAIN
6873
6874#  ifdef __cplusplus
6875     extern "C"
6876#  endif
6877   int F77_DUMMY_MAIN() { return 1; }
6878
6879#endif
6880int
6881main ()
6882{
6883$cfuncdaxpy()
6884  ;
6885  return 0;
6886}
6887_ACEOF
6888rm -f conftest.$ac_objext conftest$ac_exeext
6889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890  (eval $ac_link) 2>conftest.er1
6891  ac_status=$?
6892  grep -v '^ *+' conftest.er1 >conftest.err
6893  rm -f conftest.er1
6894  cat conftest.err >&5
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); } &&
6897         { ac_try='test -z "$ac_c_werror_flag"
6898                         || test ! -s conftest.err'
6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900  (eval $ac_try) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); }; } &&
6904         { ac_try='test -s conftest$ac_exeext'
6905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906  (eval $ac_try) 2>&5
6907  ac_status=$?
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); }; }; then
6910  LIBS="$flink_save_libs"
6911                     coin_need_flibs=yes
6912                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6913                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6914echo "${ECHO_T}yes: $use_blas" >&6
6915
6916
6917else
6918  echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920
6921LIBS="$flink_save_libs"
6922                     echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6
6924fi
6925rm -f conftest.err conftest.$ac_objext \
6926      conftest$ac_exeext conftest.$ac_ext
6927      else
6928        echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6
6930      fi
6931    fi
6932    ;;
6933  cc|cpp)
6934    ac_ext=f
6935ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6936ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6938case $ac_cv_f77_mangling in
6939  upper*) ac_val="DAXPY" ;;
6940  lower*) ac_val="daxpy" ;;
6941  *)      ac_val="unknown" ;;
6942esac
6943case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6944
6945cfuncdaxpy="$ac_val"
6946
6947ac_ext=c
6948ac_cpp='$CPP $CPPFLAGS'
6949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953    if test x"$coin_need_flibs" = xyes; then
6954      flink_try=no;
6955    else
6956      cat >conftest.$ac_ext <<_ACEOF
6957/* confdefs.h.  */
6958_ACEOF
6959cat confdefs.h >>conftest.$ac_ext
6960cat >>conftest.$ac_ext <<_ACEOF
6961/* end confdefs.h.  */
6962extern "C" {void $cfuncdaxpy();}
6963#ifdef F77_DUMMY_MAIN
6964
6965#  ifdef __cplusplus
6966     extern "C"
6967#  endif
6968   int F77_DUMMY_MAIN() { return 1; }
6969
6970#endif
6971int
6972main ()
6973{
6974$cfuncdaxpy()
6975  ;
6976  return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext conftest$ac_exeext
6980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981  (eval $ac_link) 2>conftest.er1
6982  ac_status=$?
6983  grep -v '^ *+' conftest.er1 >conftest.err
6984  rm -f conftest.er1
6985  cat conftest.err >&5
6986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); } &&
6988         { ac_try='test -z "$ac_c_werror_flag"
6989                         || test ! -s conftest.err'
6990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991  (eval $ac_try) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); }; } &&
6995         { ac_try='test -s conftest$ac_exeext'
6996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997  (eval $ac_try) 2>&5
6998  ac_status=$?
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); }; }; then
7001  flink_try=yes
7002else
7003  echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006flink_try=no
7007fi
7008rm -f conftest.err conftest.$ac_objext \
7009      conftest$ac_exeext conftest.$ac_ext
7010    fi
7011    if test $flink_try = yes; then
7012      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7013                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7014echo "${ECHO_T}yes: $use_blas" >&6
7015
7016    else
7017      if test x"$FLIBS" != x; then
7018        flink_save_libs="$LIBS"
7019        LIBS="$LIBS $FLIBS"
7020        cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h.  */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h.  */
7026extern "C" {void $cfuncdaxpy();}
7027#ifdef F77_DUMMY_MAIN
7028
7029#  ifdef __cplusplus
7030     extern "C"
7031#  endif
7032   int F77_DUMMY_MAIN() { return 1; }
7033
7034#endif
7035int
7036main ()
7037{
7038$cfuncdaxpy()
7039  ;
7040  return 0;
7041}
7042_ACEOF
7043rm -f conftest.$ac_objext conftest$ac_exeext
7044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045  (eval $ac_link) 2>conftest.er1
7046  ac_status=$?
7047  grep -v '^ *+' conftest.er1 >conftest.err
7048  rm -f conftest.er1
7049  cat conftest.err >&5
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); } &&
7052         { ac_try='test -z "$ac_c_werror_flag"
7053                         || test ! -s conftest.err'
7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055  (eval $ac_try) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; } &&
7059         { ac_try='test -s conftest$ac_exeext'
7060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061  (eval $ac_try) 2>&5
7062  ac_status=$?
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); }; }; then
7065  LIBS="$flink_save_libs"
7066                     coin_need_flibs=yes
7067                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7068                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7069echo "${ECHO_T}yes: $use_blas" >&6
7070
7071
7072else
7073  echo "$as_me: failed program was:" >&5
7074sed 's/^/| /' conftest.$ac_ext >&5
7075
7076LIBS="$flink_save_libs"
7077                     echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
7079fi
7080rm -f conftest.err conftest.$ac_objext \
7081      conftest$ac_exeext conftest.$ac_ext
7082      else
7083        echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085      fi
7086    fi
7087    ;;
7088esac
7089
7090            LIBS="$coin_save_LIBS"
7091          fi
7092          ;;
7093      esac
7094      ;;
7095
7096     *-darwin*)
7097      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
7098echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
7099      coin_need_flibs=no
7100      coin_save_LIBS="$LIBS"
7101      LIBS="-framework vecLib $LIBS"
7102      case $ac_ext in
7103  f)
7104    cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h.  */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h.  */
7110
7111#ifdef F77_DUMMY_MAIN
7112
7113#  ifdef __cplusplus
7114     extern "C"
7115#  endif
7116   int F77_DUMMY_MAIN() { return 1; }
7117
7118#endif
7119int
7120main ()
7121{
7122      call daxpy
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127rm -f conftest.$ac_objext conftest$ac_exeext
7128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129  (eval $ac_link) 2>conftest.er1
7130  ac_status=$?
7131  grep -v '^ *+' conftest.er1 >conftest.err
7132  rm -f conftest.er1
7133  cat conftest.err >&5
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); } &&
7136         { ac_try='test -z "$ac_c_werror_flag"
7137                         || test ! -s conftest.err'
7138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139  (eval $ac_try) 2>&5
7140  ac_status=$?
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); }; } &&
7143         { ac_try='test -s conftest$ac_exeext'
7144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145  (eval $ac_try) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }; }; then
7149  use_blas='-framework vecLib'
7150                         if test $coin_need_flibs = yes ; then
7151                           use_blas="$use_blas $FLIBS"
7152                         fi
7153                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7154echo "${ECHO_T}yes: $use_blas" >&6
7155
7156else
7157  echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
7160echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
7162fi
7163rm -f conftest.err conftest.$ac_objext \
7164      conftest$ac_exeext conftest.$ac_ext
7165    ;;
7166  c)
7167    ac_ext=f
7168ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7169ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7171case $ac_cv_f77_mangling in
7172  upper*) ac_val="DAXPY" ;;
7173  lower*) ac_val="daxpy" ;;
7174  *)      ac_val="unknown" ;;
7175esac
7176case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7177
7178cfuncdaxpy="$ac_val"
7179
7180ac_ext=c
7181ac_cpp='$CPP $CPPFLAGS'
7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186    if test x"$coin_need_flibs" = xyes; then
7187      flink_try=no;
7188    else
7189      cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h.  */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h.  */
7195void $cfuncdaxpy();
7196#ifdef F77_DUMMY_MAIN
7197
7198#  ifdef __cplusplus
7199     extern "C"
7200#  endif
7201   int F77_DUMMY_MAIN() { return 1; }
7202
7203#endif
7204int
7205main ()
7206{
7207$cfuncdaxpy()
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212rm -f conftest.$ac_objext conftest$ac_exeext
7213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214  (eval $ac_link) 2>conftest.er1
7215  ac_status=$?
7216  grep -v '^ *+' conftest.er1 >conftest.err
7217  rm -f conftest.er1
7218  cat conftest.err >&5
7219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); } &&
7221         { ac_try='test -z "$ac_c_werror_flag"
7222                         || test ! -s conftest.err'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; } &&
7228         { ac_try='test -s conftest$ac_exeext'
7229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230  (eval $ac_try) 2>&5
7231  ac_status=$?
7232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233  (exit $ac_status); }; }; then
7234  flink_try=yes
7235else
7236  echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239flink_try=no
7240fi
7241rm -f conftest.err conftest.$ac_objext \
7242      conftest$ac_exeext conftest.$ac_ext
7243    fi
7244    if test $flink_try = yes; then
7245      use_blas='-framework vecLib'
7246                         if test $coin_need_flibs = yes ; then
7247                           use_blas="$use_blas $FLIBS"
7248                         fi
7249                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7250echo "${ECHO_T}yes: $use_blas" >&6
7251
7252    else
7253      if test x"$FLIBS" != x; then
7254        flink_save_libs="$LIBS"
7255        LIBS="$LIBS $FLIBS"
7256        cat >conftest.$ac_ext <<_ACEOF
7257/* confdefs.h.  */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h.  */
7262void $cfuncdaxpy();
7263#ifdef F77_DUMMY_MAIN
7264
7265#  ifdef __cplusplus
7266     extern "C"
7267#  endif
7268   int F77_DUMMY_MAIN() { return 1; }
7269
7270#endif
7271int
7272main ()
7273{
7274$cfuncdaxpy()
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279rm -f conftest.$ac_objext conftest$ac_exeext
7280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281  (eval $ac_link) 2>conftest.er1
7282  ac_status=$?
7283  grep -v '^ *+' conftest.er1 >conftest.err
7284  rm -f conftest.er1
7285  cat conftest.err >&5
7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287  (exit $ac_status); } &&
7288         { ac_try='test -z "$ac_c_werror_flag"
7289                         || test ! -s conftest.err'
7290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291  (eval $ac_try) 2>&5
7292  ac_status=$?
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); }; } &&
7295         { ac_try='test -s conftest$ac_exeext'
7296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297  (eval $ac_try) 2>&5
7298  ac_status=$?
7299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300  (exit $ac_status); }; }; then
7301  LIBS="$flink_save_libs"
7302                     coin_need_flibs=yes
7303                     use_blas='-framework vecLib'
7304                         if test $coin_need_flibs = yes ; then
7305                           use_blas="$use_blas $FLIBS"
7306                         fi
7307                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7308echo "${ECHO_T}yes: $use_blas" >&6
7309
7310
7311else
7312  echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315LIBS="$flink_save_libs"
7316                     echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6
7318fi
7319rm -f conftest.err conftest.$ac_objext \
7320      conftest$ac_exeext conftest.$ac_ext
7321      else
7322        echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6
7324      fi
7325    fi
7326    ;;
7327  cc|cpp)
7328    ac_ext=f
7329ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7330ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7332case $ac_cv_f77_mangling in
7333  upper*) ac_val="DAXPY" ;;
7334  lower*) ac_val="daxpy" ;;
7335  *)      ac_val="unknown" ;;
7336esac
7337case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7338
7339cfuncdaxpy="$ac_val"
7340
7341ac_ext=c
7342ac_cpp='$CPP $CPPFLAGS'
7343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7345ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346
7347    if test x"$coin_need_flibs" = xyes; then
7348      flink_try=no;
7349    else
7350      cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h.  */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h.  */
7356extern "C" {void $cfuncdaxpy();}
7357#ifdef F77_DUMMY_MAIN
7358
7359#  ifdef __cplusplus
7360     extern "C"
7361#  endif
7362   int F77_DUMMY_MAIN() { return 1; }
7363
7364#endif
7365int
7366main ()
7367{
7368$cfuncdaxpy()
7369  ;
7370  return 0;
7371}
7372_ACEOF
7373rm -f conftest.$ac_objext conftest$ac_exeext
7374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375  (eval $ac_link) 2>conftest.er1
7376  ac_status=$?
7377  grep -v '^ *+' conftest.er1 >conftest.err
7378  rm -f conftest.er1
7379  cat conftest.err >&5
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); } &&
7382         { ac_try='test -z "$ac_c_werror_flag"
7383                         || test ! -s conftest.err'
7384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385  (eval $ac_try) 2>&5
7386  ac_status=$?
7387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388  (exit $ac_status); }; } &&
7389         { ac_try='test -s conftest$ac_exeext'
7390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391  (eval $ac_try) 2>&5
7392  ac_status=$?
7393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394  (exit $ac_status); }; }; then
7395  flink_try=yes
7396else
7397  echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400flink_try=no
7401fi
7402rm -f conftest.err conftest.$ac_objext \
7403      conftest$ac_exeext conftest.$ac_ext
7404    fi
7405    if test $flink_try = yes; then
7406      use_blas='-framework vecLib'
7407                         if test $coin_need_flibs = yes ; then
7408                           use_blas="$use_blas $FLIBS"
7409                         fi
7410                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7411echo "${ECHO_T}yes: $use_blas" >&6
7412
7413    else
7414      if test x"$FLIBS" != x; then
7415        flink_save_libs="$LIBS"
7416        LIBS="$LIBS $FLIBS"
7417        cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h.  */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h.  */
7423extern "C" {void $cfuncdaxpy();}
7424#ifdef F77_DUMMY_MAIN
7425
7426#  ifdef __cplusplus
7427     extern "C"
7428#  endif
7429   int F77_DUMMY_MAIN() { return 1; }
7430
7431#endif
7432int
7433main ()
7434{
7435$cfuncdaxpy()
7436  ;
7437  return 0;
7438}
7439_ACEOF
7440rm -f conftest.$ac_objext conftest$ac_exeext
7441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7442  (eval $ac_link) 2>conftest.er1
7443  ac_status=$?
7444  grep -v '^ *+' conftest.er1 >conftest.err
7445  rm -f conftest.er1
7446  cat conftest.err >&5
7447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448  (exit $ac_status); } &&
7449         { ac_try='test -z "$ac_c_werror_flag"
7450                         || test ! -s conftest.err'
7451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452  (eval $ac_try) 2>&5
7453  ac_status=$?
7454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455  (exit $ac_status); }; } &&
7456         { ac_try='test -s conftest$ac_exeext'
7457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458  (eval $ac_try) 2>&5
7459  ac_status=$?
7460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461  (exit $ac_status); }; }; then
7462  LIBS="$flink_save_libs"
7463                     coin_need_flibs=yes
7464                     use_blas='-framework vecLib'
7465                         if test $coin_need_flibs = yes ; then
7466                           use_blas="$use_blas $FLIBS"
7467                         fi
7468                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7469echo "${ECHO_T}yes: $use_blas" >&6
7470
7471
7472else
7473  echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476LIBS="$flink_save_libs"
7477                     echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
7479fi
7480rm -f conftest.err conftest.$ac_objext \
7481      conftest$ac_exeext conftest.$ac_ext
7482      else
7483        echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6
7485      fi
7486    fi
7487    ;;
7488esac
7489
7490      LIBS="$coin_save_LIBS"
7491      ;;
7492  esac
7493
7494  if test -z "$use_blas" && test $skip_lblas_check = no; then
7495    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7496echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7497    coin_need_flibs=no
7498    coin_save_LIBS="$LIBS"
7499    LIBS="-lblas $LIBS"
7500    case $ac_ext in
7501  f)
7502    cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508
7509#ifdef F77_DUMMY_MAIN
7510
7511#  ifdef __cplusplus
7512     extern "C"
7513#  endif
7514   int F77_DUMMY_MAIN() { return 1; }
7515
7516#endif
7517int
7518main ()
7519{
7520      call daxpy
7521  ;
7522  return 0;
7523}
7524_ACEOF
7525rm -f conftest.$ac_objext conftest$ac_exeext
7526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527  (eval $ac_link) 2>conftest.er1
7528  ac_status=$?
7529  grep -v '^ *+' conftest.er1 >conftest.err
7530  rm -f conftest.er1
7531  cat conftest.err >&5
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); } &&
7534         { ac_try='test -z "$ac_c_werror_flag"
7535                         || test ! -s conftest.err'
7536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537  (eval $ac_try) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }; } &&
7541         { ac_try='test -s conftest$ac_exeext'
7542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543  (eval $ac_try) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); }; }; then
7547  use_blas='-lblas'
7548                       if test $coin_need_flibs = yes ; then
7549                         use_blas="$use_blas $FLIBS"
7550                       fi
7551                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7552echo "${ECHO_T}yes: $use_blas" >&6
7553
7554else
7555  echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6
7560fi
7561rm -f conftest.err conftest.$ac_objext \
7562      conftest$ac_exeext conftest.$ac_ext
7563    ;;
7564  c)
7565    ac_ext=f
7566ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7567ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7569case $ac_cv_f77_mangling in
7570  upper*) ac_val="DAXPY" ;;
7571  lower*) ac_val="daxpy" ;;
7572  *)      ac_val="unknown" ;;
7573esac
7574case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7575
7576cfuncdaxpy="$ac_val"
7577
7578ac_ext=c
7579ac_cpp='$CPP $CPPFLAGS'
7580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
7584    if test x"$coin_need_flibs" = xyes; then
7585      flink_try=no;
7586    else
7587      cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h.  */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h.  */
7593void $cfuncdaxpy();
7594#ifdef F77_DUMMY_MAIN
7595
7596#  ifdef __cplusplus
7597     extern "C"
7598#  endif
7599   int F77_DUMMY_MAIN() { return 1; }
7600
7601#endif
7602int
7603main ()
7604{
7605$cfuncdaxpy()
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610rm -f conftest.$ac_objext conftest$ac_exeext
7611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612  (eval $ac_link) 2>conftest.er1
7613  ac_status=$?
7614  grep -v '^ *+' conftest.er1 >conftest.err
7615  rm -f conftest.er1
7616  cat conftest.err >&5
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); } &&
7619         { ac_try='test -z "$ac_c_werror_flag"
7620                         || test ! -s conftest.err'
7621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622  (eval $ac_try) 2>&5
7623  ac_status=$?
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); }; } &&
7626         { ac_try='test -s conftest$ac_exeext'
7627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628  (eval $ac_try) 2>&5
7629  ac_status=$?
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); }; }; then
7632  flink_try=yes
7633else
7634  echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
7637flink_try=no
7638fi
7639rm -f conftest.err conftest.$ac_objext \
7640      conftest$ac_exeext conftest.$ac_ext
7641    fi
7642    if test $flink_try = yes; then
7643      use_blas='-lblas'
7644                       if test $coin_need_flibs = yes ; then
7645                         use_blas="$use_blas $FLIBS"
7646                       fi
7647                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7648echo "${ECHO_T}yes: $use_blas" >&6
7649
7650    else
7651      if test x"$FLIBS" != x; then
7652        flink_save_libs="$LIBS"
7653        LIBS="$LIBS $FLIBS"
7654        cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h.  */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h.  */
7660void $cfuncdaxpy();
7661#ifdef F77_DUMMY_MAIN
7662
7663#  ifdef __cplusplus
7664     extern "C"
7665#  endif
7666   int F77_DUMMY_MAIN() { return 1; }
7667
7668#endif
7669int
7670main ()
7671{
7672$cfuncdaxpy()
7673  ;
7674  return 0;
7675}
7676_ACEOF
7677rm -f conftest.$ac_objext conftest$ac_exeext
7678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679  (eval $ac_link) 2>conftest.er1
7680  ac_status=$?
7681  grep -v '^ *+' conftest.er1 >conftest.err
7682  rm -f conftest.er1
7683  cat conftest.err >&5
7684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685  (exit $ac_status); } &&
7686         { ac_try='test -z "$ac_c_werror_flag"
7687                         || test ! -s conftest.err'
7688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689  (eval $ac_try) 2>&5
7690  ac_status=$?
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); }; } &&
7693         { ac_try='test -s conftest$ac_exeext'
7694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695  (eval $ac_try) 2>&5
7696  ac_status=$?
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); }; }; then
7699  LIBS="$flink_save_libs"
7700                     coin_need_flibs=yes
7701                     use_blas='-lblas'
7702                       if test $coin_need_flibs = yes ; then
7703                         use_blas="$use_blas $FLIBS"
7704                       fi
7705                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7706echo "${ECHO_T}yes: $use_blas" >&6
7707
7708
7709else
7710  echo "$as_me: failed program was:" >&5
7711sed 's/^/| /' conftest.$ac_ext >&5
7712
7713LIBS="$flink_save_libs"
7714                     echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716fi
7717rm -f conftest.err conftest.$ac_objext \
7718      conftest$ac_exeext conftest.$ac_ext
7719      else
7720        echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6
7722      fi
7723    fi
7724    ;;
7725  cc|cpp)
7726    ac_ext=f
7727ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7728ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7730case $ac_cv_f77_mangling in
7731  upper*) ac_val="DAXPY" ;;
7732  lower*) ac_val="daxpy" ;;
7733  *)      ac_val="unknown" ;;
7734esac
7735case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7736
7737cfuncdaxpy="$ac_val"
7738
7739ac_ext=c
7740ac_cpp='$CPP $CPPFLAGS'
7741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744
7745    if test x"$coin_need_flibs" = xyes; then
7746      flink_try=no;
7747    else
7748      cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h.  */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h.  */
7754extern "C" {void $cfuncdaxpy();}
7755#ifdef F77_DUMMY_MAIN
7756
7757#  ifdef __cplusplus
7758     extern "C"
7759#  endif
7760   int F77_DUMMY_MAIN() { return 1; }
7761
7762#endif
7763int
7764main ()
7765{
7766$cfuncdaxpy()
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773  (eval $ac_link) 2>conftest.er1
7774  ac_status=$?
7775  grep -v '^ *+' conftest.er1 >conftest.err
7776  rm -f conftest.er1
7777  cat conftest.err >&5
7778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779  (exit $ac_status); } &&
7780         { ac_try='test -z "$ac_c_werror_flag"
7781                         || test ! -s conftest.err'
7782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783  (eval $ac_try) 2>&5
7784  ac_status=$?
7785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786  (exit $ac_status); }; } &&
7787         { ac_try='test -s conftest$ac_exeext'
7788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789  (eval $ac_try) 2>&5
7790  ac_status=$?
7791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792  (exit $ac_status); }; }; then
7793  flink_try=yes
7794else
7795  echo "$as_me: failed program was:" >&5
7796sed 's/^/| /' conftest.$ac_ext >&5
7797
7798flink_try=no
7799fi
7800rm -f conftest.err conftest.$ac_objext \
7801      conftest$ac_exeext conftest.$ac_ext
7802    fi
7803    if test $flink_try = yes; then
7804      use_blas='-lblas'
7805                       if test $coin_need_flibs = yes ; then
7806                         use_blas="$use_blas $FLIBS"
7807                       fi
7808                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7809echo "${ECHO_T}yes: $use_blas" >&6
7810
7811    else
7812      if test x"$FLIBS" != x; then
7813        flink_save_libs="$LIBS"
7814        LIBS="$LIBS $FLIBS"
7815        cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h.  */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h.  */
7821extern "C" {void $cfuncdaxpy();}
7822#ifdef F77_DUMMY_MAIN
7823
7824#  ifdef __cplusplus
7825     extern "C"
7826#  endif
7827   int F77_DUMMY_MAIN() { return 1; }
7828
7829#endif
7830int
7831main ()
7832{
7833$cfuncdaxpy()
7834  ;
7835  return 0;
7836}
7837_ACEOF
7838rm -f conftest.$ac_objext conftest$ac_exeext
7839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840  (eval $ac_link) 2>conftest.er1
7841  ac_status=$?
7842  grep -v '^ *+' conftest.er1 >conftest.err
7843  rm -f conftest.er1
7844  cat conftest.err >&5
7845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846  (exit $ac_status); } &&
7847         { ac_try='test -z "$ac_c_werror_flag"
7848                         || test ! -s conftest.err'
7849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850  (eval $ac_try) 2>&5
7851  ac_status=$?
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); }; } &&
7854         { ac_try='test -s conftest$ac_exeext'
7855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856  (eval $ac_try) 2>&5
7857  ac_status=$?
7858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859  (exit $ac_status); }; }; then
7860  LIBS="$flink_save_libs"
7861                     coin_need_flibs=yes
7862                     use_blas='-lblas'
7863                       if test $coin_need_flibs = yes ; then
7864                         use_blas="$use_blas $FLIBS"
7865                       fi
7866                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7867echo "${ECHO_T}yes: $use_blas" >&6
7868
7869
7870else
7871  echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
7874LIBS="$flink_save_libs"
7875                     echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877fi
7878rm -f conftest.err conftest.$ac_objext \
7879      conftest$ac_exeext conftest.$ac_ext
7880      else
7881        echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6
7883      fi
7884    fi
7885    ;;
7886esac
7887
7888    LIBS="$coin_save_LIBS"
7889  fi
7890
7891  # If we have no other ideas, consider building BLAS.
7892  if test -z "$use_blas" ; then
7893    use_blas=BUILD
7894  fi
7895fi
7896
7897if test "x$use_blas" = xBUILD ; then
7898
7899echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
7900echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
7901
7902coin_has_blas=notGiven
7903
7904# check if user wants to skip package in any case
7905if test x"$COIN_SKIP_PROJECTS" != x; then
7906  for dir in $COIN_SKIP_PROJECTS; do
7907    if test $dir = "Blas"; then
7908      coin_has_blas=skipping
7909    fi
7910  done
7911fi
7912
7913if test "$coin_has_blas" != skipping; then
7914
7915# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
7916if test "${with_blas+set}" = set; then
7917  withval="$with_blas"
7918  if test "$withval" = no ; then
7919       coin_has_blas=skipping
7920     fi
7921
7922fi;
7923fi
7924
7925BLAS_LIBS=
7926BLAS_CFLAGS=
7927BLAS_DATA=
7928BLAS_DEPENDENCIES=
7929BLAS_PCLIBS=
7930BLAS_PCREQUIRES=
7931BLAS_DATA=
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
7950if test $coin_has_blas != skipping; then
7951
7952# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
7953if test "${with_blas_lib+set}" = set; then
7954  withval="$with_blas_lib"
7955  if test "$withval" = no ; then
7956       coin_has_blas=skipping
7957     else
7958       coin_has_blas=yes
7959       BLAS_LIBS="$withval"
7960       BLAS_PCLIBS="$withval"
7961
7962         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
7963         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
7964
7965       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7966       if test -z "$PKG_CONFIG" ; then
7967         BLAS_LIBS_INSTALLED="$withval"
7968         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
7969       fi
7970     fi
7971
7972fi;
7973fi
7974
7975if test $coin_has_blas != skipping; then
7976
7977# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
7978if test "${with_blas_incdir+set}" = set; then
7979  withval="$with_blas_incdir"
7980  if test "$withval" = no ; then
7981       coin_has_blas=skipping
7982     else
7983       coin_has_blas=yes
7984       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
7985       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
7986       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7987       if test -z "$PKG_CONFIG" ; then
7988         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
7989         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
7990       fi
7991     fi
7992
7993fi;
7994fi
7995
7996if test $coin_has_blas != skipping; then
7997
7998# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
7999if test "${with_blas_datadir+set}" = set; then
8000  withval="$with_blas_datadir"
8001  if test "$withval" = no ; then
8002       coin_has_blas=skipping
8003     else
8004       coin_has_blas=yes
8005       BLAS_DATA="$withval"
8006       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8007       if test -z "$PKG_CONFIG" ; then
8008         BLAS_DATA_INSTALLED="$withval"
8009       fi
8010     fi
8011
8012fi;
8013fi
8014
8015if test $coin_has_blas = notGiven; then
8016  if test -n "$PKG_CONFIG" ; then
8017    # set search path for pkg-config
8018    # need to export variable to be sure that the following pkg-config gets these values
8019    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
8020    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
8021    export PKG_CONFIG_PATH
8022
8023    # let pkg-config do it's magic
8024
8025
8026
8027if test -n "$PKG_CONFIG" ; then
8028  if $PKG_CONFIG --exists "coinblas"; then
8029    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
8030     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
8031    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
8032        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
8033        # but only do this if is not trivial
8034    if test "$CYGPATH_W" != "echo" ; then
8035      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
8036      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8037    fi
8038    BLAS_CFLAGS="$cflags"
8039    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
8040    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
8041     coin_has_blas=yes
8042        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
8043echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
8044
8045        # adjust linker flags for (i)cl compiler
8046        # 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)
8047        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8048        then
8049          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8050        fi
8051        BLAS_PCREQUIRES="coinblas"
8052
8053        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
8054
8055          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8056          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8057          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8058
8059
8060
8061  else
8062    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
8063      coin_has_blas=notGiven
8064        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
8065echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
8066
8067  fi
8068else
8069  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
8070echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
8071   { (exit 1); exit 1; }; }
8072fi
8073
8074
8075
8076
8077    # reset PKG_CONFIG_PATH variable
8078    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
8079    export PKG_CONFIG_PATH
8080
8081  else
8082    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
8083echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
8084
8085echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
8086echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
8087
8088coin_has_blas=notGiven
8089BLAS_LIBS=
8090BLAS_LIBS_INSTALLED=
8091BLAS_CFLAGS=
8092BLAS_CFLAGS_INSTALLED=
8093BLAS_DATA=
8094BLAS_DATA_INSTALLED=
8095BLAS_PCLIBS=
8096BLAS_PCREQUIRES=
8097
8098# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
8099projtoprocess="coinblas"
8100
8101# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
8102# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
8103# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
8104# also, we setup the DATA variable
8105allproj=""
8106allpcfiles=""
8107allpcifiles=""
8108while test "x$projtoprocess" != x ; do
8109
8110  for proj in $projtoprocess ; do
8111    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
8112    pcfile=""
8113    save_IFS="$IFS"
8114    IFS=":"
8115    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
8116      # 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
8117      if test -r "$dir/${proj}-uninstalled.pc" ; then
8118        pcfile="$dir/$proj-uninstalled.pc"
8119        if test -r "$dir/${proj}.pc" ; then
8120          pcifile="$dir/${proj}.pc"
8121        else
8122          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
8123echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
8124          pcifile=
8125        fi
8126        break
8127      fi
8128    done
8129    IFS="$save_IFS"
8130
8131    if test "x$pcfile" != x ; then
8132      # read dependencies from $pcfile and filter it
8133      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
8134
8135      # add projrequires to the front of the list of projects that have to be processed next
8136      # at the same time, remove $proj from this list
8137      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
8138
8139      # read DATA from $pcfile, if _DATA is still empty
8140      if test "x$BLAS_DATA" = x ; then
8141        projdatadir=
8142        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
8143        eval `sh -c "$pcfilemod"`
8144        BLAS_DATA="$projdatadir"
8145      fi
8146
8147      allproj="$allproj $proj"
8148      allpcfiles="$pcfile:$allpcfiles"
8149
8150    else
8151      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
8152echo "${ECHO_T}no, dependency $proj not available" >&6
8153      allproj=fail
8154      break 2
8155    fi
8156
8157    if test "x$pcifile" != x ; then
8158      allpcifiles="$pcifile:$allpcifiles"
8159
8160      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
8161      if test "x$BLAS_DATA_INSTALLED" = x ; then
8162        projdatadir=
8163        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
8164        eval `sh -c "$pcifilemod"`
8165        if test "${CYGPATH_W}" != "echo"; then
8166          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8167        fi
8168        BLAS_DATA_INSTALLED="$projdatadir"
8169      fi
8170
8171    fi
8172
8173    break
8174  done
8175
8176  # remove spaces on begin of $projtoprocess
8177  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8178
8179done
8180
8181if test "$allproj" != fail ; then
8182
8183  # now go through the list of .pc files and assemble compiler and linker flags
8184  # important is here to obey the reverse order that has been setup before,
8185  # since then libraries that are required by several others should be after these other libraries
8186  pcfilesprocessed=""
8187
8188  save_IFS="$IFS"
8189  IFS=":"
8190  for pcfile in $allpcfiles ; do
8191
8192    # if $pcfile has been processed already, skip this round
8193    if test "x$pcfilesprocessed" != x ; then
8194      for pcfiledone in $pcfilesprocessed ; do
8195        if test "$pcfiledone" = "$pcfile" ; then
8196          continue 2
8197        fi
8198      done
8199    fi
8200
8201    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8202    #   replace "Libs:" by "echo projlibs="
8203    #   replace "Cflags:" by "echo projcflags="
8204    #   remove every line starting with <some word>:
8205    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8206
8207    # set projcflags and projlibs variables by running $pcfilemod
8208    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8209    projcflags=
8210    projlibs=
8211    IFS="$save_IFS"
8212    eval `sh -c "$pcfilemod"`
8213    IFS=":"
8214
8215    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8216    if test "${CYGPATH_W}" != "echo"; then
8217      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8218    fi
8219    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8220
8221    # set LIBS variable
8222    BLAS_LIBS="$projlibs $BLAS_LIBS"
8223
8224    # remember that we have processed $pcfile
8225    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8226
8227  done
8228  IFS="$save_IFS"
8229
8230
8231  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8232  # important is here again to obey the reverse order that has been setup before,
8233  # since then libraries that are required by several others should be after these other libraries
8234  pcfilesprocessed=""
8235
8236  save_IFS="$IFS"
8237  IFS=":"
8238  for pcfile in $allpcifiles ; do
8239
8240    # if $pcfile has been processed already, skip this round
8241    if test "x$pcfilesprocessed" != x ; then
8242      for pcfiledone in $pcfilesprocessed ; do
8243        if test "$pcfiledone" = "$pcfile" ; then
8244          continue 2
8245        fi
8246      done
8247    fi
8248
8249    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8250    #   replace "Libs:" by "echo projlibs="
8251    #   replace "Cflags:" by "echo projcflags="
8252    #   remove every line starting with <some word>:
8253    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8254
8255    # set projcflags and projlibs variables by running $pcfilemod
8256    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8257    projcflags=
8258    projlibs=
8259    IFS="$save_IFS"
8260    eval `sh -c "$pcfilemod"`
8261    IFS=":"
8262
8263    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8264    if test "${CYGPATH_W}" != "echo"; then
8265      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8266    fi
8267    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8268
8269    # set LIBS variable
8270    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8271
8272    # remember that we have processed $pcfile
8273    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8274
8275  done
8276  IFS="$save_IFS"
8277
8278
8279  # finish up
8280  coin_has_blas=yes
8281  echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
8283
8284cat >>confdefs.h <<\_ACEOF
8285#define COIN_HAS_BLAS 1
8286_ACEOF
8287
8288
8289  # adjust linker flags for (i)cl compiler
8290  # 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),
8291  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8292  #    everything of the form "-lname" by "libname.lib", and
8293  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8294  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8295  then
8296    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8297    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
8298  fi
8299
8300  BLAS_PCREQUIRES="coinblas"
8301
8302    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8303    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8304    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8305    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8306    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8307
8308
8309fi
8310
8311
8312
8313if test $coin_has_blas != notGiven &&
8314                test $coin_has_blas != skipping; then
8315  COIN_HAS_BLAS_TRUE=
8316  COIN_HAS_BLAS_FALSE='#'
8317else
8318  COIN_HAS_BLAS_TRUE='#'
8319  COIN_HAS_BLAS_FALSE=
8320fi
8321
8322
8323
8324  fi
8325
8326else
8327  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8328echo "${ECHO_T}$coin_has_blas" >&6
8329fi
8330
8331if test $coin_has_blas != skipping &&
8332   test $coin_has_blas != notGiven ; then
8333
8334cat >>confdefs.h <<\_ACEOF
8335#define COIN_HAS_BLAS 1
8336_ACEOF
8337
8338
8339  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8340if test "${enable_interpackage_dependencies+set}" = set; then
8341  enableval="$enable_interpackage_dependencies"
8342
8343else
8344  enable_interpackage_dependencies=yes
8345fi;
8346
8347  if test $enable_interpackage_dependencies = yes ; then
8348     # construct dependencies variables from LIBS variables
8349     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8350     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
8351     # then remove everything of the form -xxx
8352     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8353     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8354
8355       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8356
8357  fi
8358
8359  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8360    if test -n "$BLAS_CFLAGS" ; then
8361      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8362echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8363    fi
8364    if test -n "$BLAS_LIBS" ; then
8365      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8366echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8367    fi
8368    if test -n "$BLAS_DEPENDENCIES" ; then
8369      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8370echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8371    fi
8372    if test -n "$BLAS_DATA" ; then
8373      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8374echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8375    fi
8376    if test -n "$BLAS_PCLIBS" ; then
8377      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8378echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8379    fi
8380    if test -n "$BLAS_PCREQUIRES" ; then
8381      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8382echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8383    fi
8384
8385      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8386echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8387      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8388echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8389      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8390echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8391
8392  fi
8393fi
8394
8395# Define the Makefile conditional
8396
8397
8398if test $coin_has_blas != notGiven &&
8399                test $coin_has_blas != skipping; then
8400  COIN_HAS_BLAS_TRUE=
8401  COIN_HAS_BLAS_FALSE='#'
8402else
8403  COIN_HAS_BLAS_TRUE='#'
8404  COIN_HAS_BLAS_FALSE=
8405fi
8406
8407
8408
8409
8410elif test "x$use_blas" != x && test "$use_blas" != no; then
8411  coin_has_blas=yes
8412
8413
8414if test 0 = 0; then
8415  COIN_HAS_BLAS_TRUE=
8416  COIN_HAS_BLAS_FALSE='#'
8417else
8418  COIN_HAS_BLAS_TRUE='#'
8419  COIN_HAS_BLAS_FALSE=
8420fi
8421
8422
8423cat >>confdefs.h <<\_ACEOF
8424#define COIN_HAS_BLAS 1
8425_ACEOF
8426
8427  BLAS_LIBS="$use_blas"
8428  BLAS_CFLAGS=
8429  BLAS_DATA=
8430
8431
8432
8433
8434    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8435    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8436    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8437
8438
8439else
8440  coin_has_blas=no
8441
8442
8443if test 0 = 1; then
8444  COIN_HAS_BLAS_TRUE=
8445  COIN_HAS_BLAS_FALSE='#'
8446else
8447  COIN_HAS_BLAS_TRUE='#'
8448  COIN_HAS_BLAS_FALSE=
8449fi
8450
8451fi
8452
8453
8454
8455
8456
8457
8458
8459
8460if test $coin_has_blas != yes; then
8461  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8462echo "$as_me: error: Required package BLAS not found." >&2;}
8463   { (exit 1); exit 1; }; }
8464fi
8465
8466# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8467LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8468
8469# Take care that optimization is disbled for DLAMCH.F
8470
8471if test "x$DLAMCH_FFLAGS" = x ; then
8472  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8473  case $F77 in
8474    ifort* | */ifort* | IFORT* | */IFORT* )
8475      case $build in
8476        *-cygwin* | *-mingw*)
8477          DLAMCH_FFLAGS="$FFLAGS -Od"
8478          ;;
8479        *)
8480          DLAMCH_FFLAGS="$FFLAGS -O0"
8481          ;;
8482      esac
8483      ;;
8484    compile_f2c*)
8485      case "$CC" in
8486        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8487          DLAMCH_FFLAGS="$FFLAGS -Od"
8488        ;;
8489        *)
8490          DLAMCH_FFLAGS="$FFLAGS -O0"
8491        ;;
8492      esac
8493      ;;
8494    *)
8495      DLAMCH_FFLAGS="$FFLAGS -O0"
8496      ;;
8497  esac
8498fi
8499
8500
8501# Initialize autotools
8502{
8503
8504
8505
8506# START
8507
8508coin_disable_shared=no
8509# Test if force_shared has been set
8510if test "x" = xforce_shared; then
8511  if test x$enable_shared = xno; then
8512    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8513echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8514   { (exit 1); exit 1; }; }
8515  fi
8516  enable_shared=yes;
8517else
8518  # On Cygwin and AIX, building DLLs doesn't work
8519  case $build in
8520    *-cygwin* | *-mingw*)
8521      coin_disable_shared=yes
8522      if test x"$enable_shared" = xyes; then
8523        case "$CXX" in
8524          clang* )
8525            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
8526echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
8527            ;;
8528          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8529            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
8530echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
8531            ;;
8532          *)
8533            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
8534echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
8535            ;;
8536        esac
8537      fi
8538    ;;
8539    *-aix*)
8540      coin_disable_shared=yes
8541      platform=AIX
8542      if test x"$enable_shared" = xyes; then
8543        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
8544echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
8545      fi
8546    ;;
8547  esac
8548fi
8549if test x"$coin_disable_shared" = xyes; then
8550  if test x"$enable_shared" = xyes; then
8551    :
8552  else
8553    # we don't disable shared, because it was not selected anyway
8554    coin_disable_shared=no
8555  fi
8556  enable_shared=no
8557fi
8558# By default, we only want the shared objects to be compiled
8559# Check whether --enable-static or --disable-static was given.
8560if test "${enable_static+set}" = set; then
8561  enableval="$enable_static"
8562  p=${PACKAGE-default}
8563    case $enableval in
8564    yes) enable_static=yes ;;
8565    no) enable_static=no ;;
8566    *)
8567     enable_static=no
8568      # Look at the argument we got.  We use all the common list separators.
8569      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8570      for pkg in $enableval; do
8571        IFS="$lt_save_ifs"
8572        if test "X$pkg" = "X$p"; then
8573          enable_static=yes
8574        fi
8575      done
8576      IFS="$lt_save_ifs"
8577      ;;
8578    esac
8579else
8580  enable_static=no
8581fi;
8582
8583
8584
8585
8586# Initialize automake
8587echo "$as_me:$LINENO: checking for egrep" >&5
8588echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8589if test "${ac_cv_prog_egrep+set}" = set; then
8590  echo $ECHO_N "(cached) $ECHO_C" >&6
8591else
8592  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8593    then ac_cv_prog_egrep='grep -E'
8594    else ac_cv_prog_egrep='egrep'
8595    fi
8596fi
8597echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8598echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8599 EGREP=$ac_cv_prog_egrep
8600
8601
8602echo "$as_me:$LINENO: checking whether ln -s works" >&5
8603echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8604LN_S=$as_ln_s
8605if test "$LN_S" = "ln -s"; then
8606  echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608else
8609  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8610echo "${ECHO_T}no, using $LN_S" >&6
8611fi
8612
8613am__api_version="1.9"
8614# Find a good install program.  We prefer a C program (faster),
8615# so one script is as good as another.  But avoid the broken or
8616# incompatible versions:
8617# SysV /etc/install, /usr/sbin/install
8618# SunOS /usr/etc/install
8619# IRIX /sbin/install
8620# AIX /bin/install
8621# AmigaOS /C/install, which installs bootblocks on floppy discs
8622# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8623# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8624# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8625# OS/2's system install, which has a completely different semantic
8626# ./install, which can be erroneously created by make from ./install.sh.
8627echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8628echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8629if test -z "$INSTALL"; then
8630if test "${ac_cv_path_install+set}" = set; then
8631  echo $ECHO_N "(cached) $ECHO_C" >&6
8632else
8633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634for as_dir in $PATH
8635do
8636  IFS=$as_save_IFS
8637  test -z "$as_dir" && as_dir=.
8638  # Account for people who put trailing slashes in PATH elements.
8639case $as_dir/ in
8640  ./ | .// | /cC/* | \
8641  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8642  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8643  /usr/ucb/* ) ;;
8644  *)
8645    # OSF1 and SCO ODT 3.0 have their own names for install.
8646    # Don't use installbsd from OSF since it installs stuff as root
8647    # by default.
8648    for ac_prog in ginstall scoinst install; do
8649      for ac_exec_ext in '' $ac_executable_extensions; do
8650        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8651          if test $ac_prog = install &&
8652            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8653            # AIX install.  It has an incompatible calling convention.
8654            :
8655          elif test $ac_prog = install &&
8656            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8657            # program-specific install script used by HP pwplus--don't use.
8658            :
8659          else
8660            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8661            break 3
8662          fi
8663        fi
8664      done
8665    done
8666    ;;
8667esac
8668done
8669
8670
8671fi
8672  if test "${ac_cv_path_install+set}" = set; then
8673    INSTALL=$ac_cv_path_install
8674  else
8675    # As a last resort, use the slow shell script.  We don't cache a
8676    # path for INSTALL within a source directory, because that will
8677    # break other packages using the cache if that directory is
8678    # removed, or if the path is relative.
8679    INSTALL=$ac_install_sh
8680  fi
8681fi
8682echo "$as_me:$LINENO: result: $INSTALL" >&5
8683echo "${ECHO_T}$INSTALL" >&6
8684
8685# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8686# It thinks the first close brace ends the variable substitution.
8687test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8688
8689test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8690
8691test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8692
8693echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8694echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8695# Just in case
8696sleep 1
8697echo timestamp > conftest.file
8698# Do `set' in a subshell so we don't clobber the current shell's
8699# arguments.  Must try -L first in case configure is actually a
8700# symlink; some systems play weird games with the mod time of symlinks
8701# (eg FreeBSD returns the mod time of the symlink's containing
8702# directory).
8703if (
8704   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8705   if test "$*" = "X"; then
8706      # -L didn't work.
8707      set X `ls -t $srcdir/configure conftest.file`
8708   fi
8709   rm -f conftest.file
8710   if test "$*" != "X $srcdir/configure conftest.file" \
8711      && test "$*" != "X conftest.file $srcdir/configure"; then
8712
8713      # If neither matched, then we have a broken ls.  This can happen
8714      # if, for instance, CONFIG_SHELL is bash and it inherits a
8715      # broken ls alias from the environment.  This has actually
8716      # happened.  Such a system could not be considered "sane".
8717      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8718alias in your environment" >&5
8719echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8720alias in your environment" >&2;}
8721   { (exit 1); exit 1; }; }
8722   fi
8723
8724   test "$2" = conftest.file
8725   )
8726then
8727   # Ok.
8728   :
8729else
8730   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8731Check your system clock" >&5
8732echo "$as_me: error: newly created file is older than distributed files!
8733Check your system clock" >&2;}
8734   { (exit 1); exit 1; }; }
8735fi
8736echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
8738test "$program_prefix" != NONE &&
8739  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8740# Use a double $ so make ignores it.
8741test "$program_suffix" != NONE &&
8742  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8743# Double any \ or $.  echo might interpret backslashes.
8744# By default was `s,x,x', remove it if useless.
8745cat <<\_ACEOF >conftest.sed
8746s/[\\$]/&&/g;s/;s,x,x,$//
8747_ACEOF
8748program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8749rm conftest.sed
8750
8751# expand $ac_aux_dir to an absolute path
8752am_aux_dir=`cd $ac_aux_dir && pwd`
8753
8754test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8755# Use eval to expand $SHELL
8756if eval "$MISSING --run true"; then
8757  am_missing_run="$MISSING --run "
8758else
8759  am_missing_run=
8760  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8761echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8762fi
8763
8764if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8765  # We used to keeping the `.' as first argument, in order to
8766  # allow $(mkdir_p) to be used without argument.  As in
8767  #   $(mkdir_p) $(somedir)
8768  # where $(somedir) is conditionally defined.  However this is wrong
8769  # for two reasons:
8770  #  1. if the package is installed by a user who cannot write `.'
8771  #     make install will fail,
8772  #  2. the above comment should most certainly read
8773  #     $(mkdir_p) $(DESTDIR)$(somedir)
8774  #     so it does not work when $(somedir) is undefined and
8775  #     $(DESTDIR) is not.
8776  #  To support the latter case, we have to write
8777  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8778  #  so the `.' trick is pointless.
8779  mkdir_p='mkdir -p --'
8780else
8781  # On NextStep and OpenStep, the `mkdir' command does not
8782  # recognize any option.  It will interpret all options as
8783  # directories to create, and then abort because `.' already
8784  # exists.
8785  for d in ./-p ./--version;
8786  do
8787    test -d $d && rmdir $d
8788  done
8789  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8790  if test -f "$ac_aux_dir/mkinstalldirs"; then
8791    mkdir_p='$(mkinstalldirs)'
8792  else
8793    mkdir_p='$(install_sh) -d'
8794  fi
8795fi
8796
8797for ac_prog in gawk mawk nawk awk
8798do
8799  # Extract the first word of "$ac_prog", so it can be a program name with args.
8800set dummy $ac_prog; ac_word=$2
8801echo "$as_me:$LINENO: checking for $ac_word" >&5
8802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8803if test "${ac_cv_prog_AWK+set}" = set; then
8804  echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806  if test -n "$AWK"; then
8807  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8808else
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812  IFS=$as_save_IFS
8813  test -z "$as_dir" && as_dir=.
8814  for ac_exec_ext in '' $ac_executable_extensions; do
8815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816    ac_cv_prog_AWK="$ac_prog"
8817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818    break 2
8819  fi
8820done
8821done
8822
8823fi
8824fi
8825AWK=$ac_cv_prog_AWK
8826if test -n "$AWK"; then
8827  echo "$as_me:$LINENO: result: $AWK" >&5
8828echo "${ECHO_T}$AWK" >&6
8829else
8830  echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
8832fi
8833
8834  test -n "$AWK" && break
8835done
8836
8837echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8838echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8839set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8840if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8841  echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843  cat >conftest.make <<\_ACEOF
8844all:
8845        @echo 'ac_maketemp="$(MAKE)"'
8846_ACEOF
8847# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8848eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8849if test -n "$ac_maketemp"; then
8850  eval ac_cv_prog_make_${ac_make}_set=yes
8851else
8852  eval ac_cv_prog_make_${ac_make}_set=no
8853fi
8854rm -f conftest.make
8855fi
8856if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8857  echo "$as_me:$LINENO: result: yes" >&5
8858echo "${ECHO_T}yes" >&6
8859  SET_MAKE=
8860else
8861  echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863  SET_MAKE="MAKE=${MAKE-make}"
8864fi
8865
8866rm -rf .tst 2>/dev/null
8867mkdir .tst 2>/dev/null
8868if test -d .tst; then
8869  am__leading_dot=.
8870else
8871  am__leading_dot=_
8872fi
8873rmdir .tst 2>/dev/null
8874
8875DEPDIR="${am__leading_dot}deps"
8876
8877          ac_config_commands="$ac_config_commands depfiles"
8878
8879
8880am_make=${MAKE-make}
8881cat > confinc << 'END'
8882am__doit:
8883        @echo done
8884.PHONY: am__doit
8885END
8886# If we don't find an include directive, just comment out the code.
8887echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8888echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8889am__include="#"
8890am__quote=
8891_am_result=none
8892# First try GNU make style include.
8893echo "include confinc" > confmf
8894# We grep out `Entering directory' and `Leaving directory'
8895# messages which can occur if `w' ends up in MAKEFLAGS.
8896# In particular we don't look at `^make:' because GNU make might
8897# be invoked under some other name (usually "gmake"), in which
8898# case it prints its new name instead of `make'.
8899if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8900   am__include=include
8901   am__quote=
8902   _am_result=GNU
8903fi
8904# Now try BSD make style include.
8905if test "$am__include" = "#"; then
8906   echo '.include "confinc"' > confmf
8907   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8908      am__include=.include
8909      am__quote="\""
8910      _am_result=BSD
8911   fi
8912fi
8913
8914
8915echo "$as_me:$LINENO: result: $_am_result" >&5
8916echo "${ECHO_T}$_am_result" >&6
8917rm -f confinc confmf
8918
8919# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8920if test "${enable_dependency_tracking+set}" = set; then
8921  enableval="$enable_dependency_tracking"
8922
8923fi;
8924if test "x$enable_dependency_tracking" != xno; then
8925  am_depcomp="$ac_aux_dir/depcomp"
8926  AMDEPBACKSLASH='\'
8927fi
8928
8929
8930if test "x$enable_dependency_tracking" != xno; then
8931  AMDEP_TRUE=
8932  AMDEP_FALSE='#'
8933else
8934  AMDEP_TRUE='#'
8935  AMDEP_FALSE=
8936fi
8937
8938
8939
8940
8941
8942
8943# AC_MSG_NOTICE([Beginning automake initialisation.])
8944# Stuff for automake
8945# test to see if srcdir already configured
8946if test "`cd $srcdir && pwd`" != "`pwd`" &&
8947   test -f $srcdir/config.status; then
8948  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8949echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8950   { (exit 1); exit 1; }; }
8951fi
8952
8953# test whether we have cygpath
8954if test -z "$CYGPATH_W"; then
8955  if (cygpath --version) >/dev/null 2>/dev/null; then
8956    CYGPATH_W='cygpath -w'
8957  else
8958    CYGPATH_W=echo
8959  fi
8960fi
8961
8962
8963# Define the identity of the package.
8964 PACKAGE='thirdpartylapack'
8965 VERSION='1.4'
8966
8967
8968cat >>confdefs.h <<_ACEOF
8969#define PACKAGE "$PACKAGE"
8970_ACEOF
8971
8972
8973cat >>confdefs.h <<_ACEOF
8974#define VERSION "$VERSION"
8975_ACEOF
8976
8977# Some tools Automake needs.
8978
8979ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8980
8981
8982AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8983
8984
8985AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8986
8987
8988AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8989
8990
8991MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8992
8993install_sh=${install_sh-"$am_aux_dir/install-sh"}
8994
8995# Installed binaries are usually stripped using `strip' when the user
8996# run `make install-strip'.  However `strip' might not be the right
8997# tool to use in cross-compilation environments, therefore Automake
8998# will honor the `STRIP' environment variable to overrule this program.
8999if test "$cross_compiling" != no; then
9000  if test -n "$ac_tool_prefix"; then
9001  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9002set dummy ${ac_tool_prefix}strip; ac_word=$2
9003echo "$as_me:$LINENO: checking for $ac_word" >&5
9004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9005if test "${ac_cv_prog_STRIP+set}" = set; then
9006  echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008  if test -n "$STRIP"; then
9009  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9010else
9011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012for as_dir in $PATH
9013do
9014  IFS=$as_save_IFS
9015  test -z "$as_dir" && as_dir=.
9016  for ac_exec_ext in '' $ac_executable_extensions; do
9017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9018    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9020    break 2
9021  fi
9022done
9023done
9024
9025fi
9026fi
9027STRIP=$ac_cv_prog_STRIP
9028if test -n "$STRIP"; then
9029  echo "$as_me:$LINENO: result: $STRIP" >&5
9030echo "${ECHO_T}$STRIP" >&6
9031else
9032  echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034fi
9035
9036fi
9037if test -z "$ac_cv_prog_STRIP"; then
9038  ac_ct_STRIP=$STRIP
9039  # Extract the first word of "strip", so it can be a program name with args.
9040set dummy strip; ac_word=$2
9041echo "$as_me:$LINENO: checking for $ac_word" >&5
9042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9043if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9044  echo $ECHO_N "(cached) $ECHO_C" >&6
9045else
9046  if test -n "$ac_ct_STRIP"; then
9047  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052  IFS=$as_save_IFS
9053  test -z "$as_dir" && as_dir=.
9054  for ac_exec_ext in '' $ac_executable_extensions; do
9055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056    ac_cv_prog_ac_ct_STRIP="strip"
9057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058    break 2
9059  fi
9060done
9061done
9062
9063  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9064fi
9065fi
9066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9067if test -n "$ac_ct_STRIP"; then
9068  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9069echo "${ECHO_T}$ac_ct_STRIP" >&6
9070else
9071  echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
9073fi
9074
9075  STRIP=$ac_ct_STRIP
9076else
9077  STRIP="$ac_cv_prog_STRIP"
9078fi
9079
9080fi
9081INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9082
9083# We need awk for the "check" target.  The system "awk" is bad on
9084# some platforms.
9085# Always define AMTAR for backward compatibility.
9086
9087AMTAR=${AMTAR-"${am_missing_run}tar"}
9088
9089am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9090
9091
9092
9093
9094depcc="$CC"   am_compiler_list=
9095
9096echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9097echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9098if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9099  echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
9101  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9102  # We make a subdir and do the tests there.  Otherwise we can end up
9103  # making bogus files that we don't know about and never remove.  For
9104  # instance it was reported that on HP-UX the gcc test will end up
9105  # making a dummy file named `D' -- because `-MD' means `put the output
9106  # in D'.
9107  mkdir conftest.dir
9108  # Copy depcomp to subdir because otherwise we won't find it if we're
9109  # using a relative directory.
9110  cp "$am_depcomp" conftest.dir
9111  cd conftest.dir
9112  # We will build objects and dependencies in a subdirectory because
9113  # it helps to detect inapplicable dependency modes.  For instance
9114  # both Tru64's cc and ICC support -MD to output dependencies as a
9115  # side effect of compilation, but ICC will put the dependencies in
9116  # the current directory while Tru64 will put them in the object
9117  # directory.
9118  mkdir sub
9119
9120  am_cv_CC_dependencies_compiler_type=none
9121  if test "$am_compiler_list" = ""; then
9122     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9123  fi
9124  for depmode in $am_compiler_list; do
9125    # Setup a source with many dependencies, because some compilers
9126    # like to wrap large dependency lists on column 80 (with \), and
9127    # we should not choose a depcomp mode which is confused by this.
9128    #
9129    # We need to recreate these files for each test, as the compiler may
9130    # overwrite some of them when testing with obscure command lines.
9131    # This happens at least with the AIX C compiler.
9132    : > sub/conftest.c
9133    for i in 1 2 3 4 5 6; do
9134      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9135      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9136      # Solaris 8's {/usr,}/bin/sh.
9137      touch sub/conftst$i.h
9138    done
9139    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9140
9141    case $depmode in
9142    nosideeffect)
9143      # after this tag, mechanisms are not by side-effect, so they'll
9144      # only be used when explicitly requested
9145      if test "x$enable_dependency_tracking" = xyes; then
9146        continue
9147      else
9148        break
9149      fi
9150      ;;
9151    none) break ;;
9152    esac
9153    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9154    # mode.  It turns out that the SunPro C++ compiler does not properly
9155    # handle `-M -o', and we need to detect this.
9156    if depmode=$depmode \
9157       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9158       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9159       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9160         >/dev/null 2>conftest.err &&
9161       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9162       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9163       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9164      # icc doesn't choke on unknown options, it will just issue warnings
9165      # or remarks (even with -Werror).  So we grep stderr for any message
9166      # that says an option was ignored or not supported.
9167      # When given -MP, icc 7.0 and 7.1 complain thusly:
9168      #   icc: Command line warning: ignoring option '-M'; no argument required
9169      # The diagnosis changed in icc 8.0:
9170      #   icc: Command line remark: option '-MP' not supported
9171      if (grep 'ignoring option' conftest.err ||
9172          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9173        am_cv_CC_dependencies_compiler_type=$depmode
9174        break
9175      fi
9176    fi
9177  done
9178
9179  cd ..
9180  rm -rf conftest.dir
9181else
9182  am_cv_CC_dependencies_compiler_type=none
9183fi
9184
9185fi
9186echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9187echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9188CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9189
9190
9191
9192if
9193  test "x$enable_dependency_tracking" != xno \
9194  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9195  am__fastdepCC_TRUE=
9196  am__fastdepCC_FALSE='#'
9197else
9198  am__fastdepCC_TRUE='#'
9199  am__fastdepCC_FALSE=
9200fi
9201
9202
9203
9204echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9205echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9206    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9207if test "${enable_maintainer_mode+set}" = set; then
9208  enableval="$enable_maintainer_mode"
9209  USE_MAINTAINER_MODE=$enableval
9210else
9211  USE_MAINTAINER_MODE=no
9212fi;
9213  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9214echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9215
9216
9217if test $USE_MAINTAINER_MODE = yes; then
9218  MAINTAINER_MODE_TRUE=
9219  MAINTAINER_MODE_FALSE='#'
9220else
9221  MAINTAINER_MODE_TRUE='#'
9222  MAINTAINER_MODE_FALSE=
9223fi
9224
9225  MAINT=$MAINTAINER_MODE_TRUE
9226
9227
9228
9229coin_have_externals=no
9230if test "$enable_maintainer_mode" = yes; then
9231
9232  # If maintainer mode is chosen, we make sure that the correct versions
9233  # of the tools are used, and that we know where libtool.m4 is (to
9234  # recreate acinclude.m4)
9235
9236
9237  LIBTOOLM4=
9238  # Normally, $HOME
9239  AUTOTOOLS_DFLT=$HOME
9240
9241  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9242echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9243if test "${ac_cv_use_correct_autotools+set}" = set; then
9244  echo $ECHO_N "(cached) $ECHO_C" >&6
9245else
9246  ac_cv_use_correct_autotools=check
9247fi
9248echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9249echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9250
9251  if test $ac_cv_use_correct_autotools = check; then
9252    ac_cv_use_correct_autotools=yes
9253    # Check if we have autoconf
9254    # Extract the first word of "autoconf", so it can be a program name with args.
9255set dummy autoconf; ac_word=$2
9256echo "$as_me:$LINENO: checking for $ac_word" >&5
9257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9258if test "${ac_cv_prog_have_autoconf+set}" = set; then
9259  echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261  if test -n "$have_autoconf"; then
9262  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9263else
9264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265for as_dir in $PATH
9266do
9267  IFS=$as_save_IFS
9268  test -z "$as_dir" && as_dir=.
9269  for ac_exec_ext in '' $ac_executable_extensions; do
9270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271    ac_cv_prog_have_autoconf="yes"
9272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9273    break 2
9274  fi
9275done
9276done
9277
9278  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9279fi
9280fi
9281have_autoconf=$ac_cv_prog_have_autoconf
9282if test -n "$have_autoconf"; then
9283  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9284echo "${ECHO_T}$have_autoconf" >&6
9285else
9286  echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
9288fi
9289
9290    if test $have_autoconf = no; then
9291      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9292echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9293   { (exit 1); exit 1; }; }
9294    fi
9295
9296    # Check whether autoconf is the correct version
9297    correct_version='2.59'
9298    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9299    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9300echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9301    autoconf --version > confauto.out 2>&1
9302    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9303      echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
9305    else
9306      rm -f confauto.out
9307      echo "$as_me:$LINENO: result: no" >&5
9308echo "${ECHO_T}no" >&6
9309      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9310echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9311   { (exit 1); exit 1; }; }
9312    fi
9313    rm -f confauto.out
9314
9315    # Check if the executable autoconf is picked up from the correct location
9316    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9317echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9318    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9319    autoconf_dir=`cd $autoconf_dir; pwd`
9320    if test x$AUTOTOOLS_DIR = x; then
9321      want_dir=$AUTOTOOLS_DFLT/bin
9322    else
9323      want_dir=$AUTOTOOLS_DIR/bin
9324    fi
9325    if test $autoconf_dir = `cd $want_dir; pwd`; then
9326      echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
9328    else
9329      rm -f confauto.out
9330      echo "$as_me:$LINENO: result: no" >&5
9331echo "${ECHO_T}no" >&6
9332      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9333echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9334   { (exit 1); exit 1; }; }
9335    fi
9336
9337    # Check if we have automake
9338    # Extract the first word of "automake", so it can be a program name with args.
9339set dummy automake; ac_word=$2
9340echo "$as_me:$LINENO: checking for $ac_word" >&5
9341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9342if test "${ac_cv_prog_have_automake+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345  if test -n "$have_automake"; then
9346  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9347else
9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349for as_dir in $PATH
9350do
9351  IFS=$as_save_IFS
9352  test -z "$as_dir" && as_dir=.
9353  for ac_exec_ext in '' $ac_executable_extensions; do
9354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9355    ac_cv_prog_have_automake="yes"
9356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9357    break 2
9358  fi
9359done
9360done
9361
9362  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9363fi
9364fi
9365have_automake=$ac_cv_prog_have_automake
9366if test -n "$have_automake"; then
9367  echo "$as_me:$LINENO: result: $have_automake" >&5
9368echo "${ECHO_T}$have_automake" >&6
9369else
9370  echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
9372fi
9373
9374    if test $have_automake = no; then
9375      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9376echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9377   { (exit 1); exit 1; }; }
9378    fi
9379
9380    # Check whether automake is the correct version
9381    correct_version='1.9.6'
9382    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9383    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9384echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9385    automake --version > confauto.out 2>&1
9386    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9387      echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6
9389    else
9390      rm -f confauto.out
9391      echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
9393      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9394echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9395   { (exit 1); exit 1; }; }
9396    fi
9397    rm -f confauto.out
9398
9399    # Check if the executable automake is picked up from the correct location
9400    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9401echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9402    automake_dir=`which automake | sed -e 's=/automake=='`
9403    automake_dir=`cd $automake_dir; pwd`
9404    if test x$AUTOTOOLS_DIR = x; then
9405      want_dir=$AUTOTOOLS_DFLT/bin
9406    else
9407      want_dir=$AUTOTOOLS_DIR/bin
9408    fi
9409    if test $automake_dir = `cd $want_dir; pwd`; then
9410      echo "$as_me:$LINENO: result: yes" >&5
9411echo "${ECHO_T}yes" >&6
9412    else
9413      rm -f confauto.out
9414      echo "$as_me:$LINENO: result: no" >&5
9415echo "${ECHO_T}no" >&6
9416      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9417echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9418   { (exit 1); exit 1; }; }
9419    fi
9420
9421    # Check if this is the correct version of libtool (with escaped dots)
9422    if test x$AUTOTOOLS_DIR = x; then
9423      want_dir=$AUTOTOOLS_DFLT/share
9424    else
9425      want_dir=$AUTOTOOLS_DIR/share
9426    fi
9427    correct_version='1.5.22'
9428    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9429    if test -r $want_dir/libtool/ltmain.sh; then
9430  have_ltmain=yes
9431  :
9432else
9433  have_ltmain=no
9434  :
9435fi
9436
9437    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9438echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9439    if test $have_ltmain = yes; then
9440    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9441        echo "$as_me:$LINENO: result: yes" >&5
9442echo "${ECHO_T}yes" >&6
9443      else
9444        echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9447echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9448   { (exit 1); exit 1; }; }
9449      fi
9450    else
9451      echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
9453      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9454echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9455   { (exit 1); exit 1; }; }
9456    fi
9457  fi
9458
9459  # Check if we can find the libtool file
9460  if test x$AUTOTOOLS_DIR = x; then
9461    want_dir=$AUTOTOOLS_DFLT/share
9462  else
9463    want_dir=$AUTOTOOLS_DIR/share
9464  fi
9465  if test -r $want_dir/aclocal/libtool.m4; then
9466  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9467  :
9468else
9469  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9470echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9471   { (exit 1); exit 1; }; }
9472  :
9473fi
9474
9475
9476  # Check if we have an Dependencies file
9477  if test -r $srcdir/Dependencies; then
9478    coin_have_externals=yes
9479  fi
9480  # Check if subversion is installed and understands https
9481  # Extract the first word of "svn", so it can be a program name with args.
9482set dummy svn; ac_word=$2
9483echo "$as_me:$LINENO: checking for $ac_word" >&5
9484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9485if test "${ac_cv_prog_have_svn+set}" = set; then
9486  echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488  if test -n "$have_svn"; then
9489  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9490else
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494  IFS=$as_save_IFS
9495  test -z "$as_dir" && as_dir=.
9496  for ac_exec_ext in '' $ac_executable_extensions; do
9497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9498    ac_cv_prog_have_svn="yes"
9499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9500    break 2
9501  fi
9502done
9503done
9504
9505  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9506fi
9507fi
9508have_svn=$ac_cv_prog_have_svn
9509if test -n "$have_svn"; then
9510  echo "$as_me:$LINENO: result: $have_svn" >&5
9511echo "${ECHO_T}$have_svn" >&6
9512else
9513  echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515fi
9516
9517  if test x$have_svn = xyes; then
9518    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9519echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9520if test "${ac_cv_svn_understands_https+set}" = set; then
9521  echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523  svn --version > confauto.out 2>&1
9524                    if $EGREP https confauto.out >/dev/null 2>&1; then
9525                      ac_cv_svn_understands_https=yes
9526                    else
9527                      ac_cv_svn_understands_https=no
9528                      have_svn=no
9529                      ac_cv_prog_have_svn=no
9530                    fi
9531                    rm -f confauto.out
9532fi
9533echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9534echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9535  fi
9536
9537  # Find the location of the BuildTools directory
9538  BUILDTOOLSDIR=
9539  if test -r $srcdir/BuildTools/coin.m4; then
9540    BUILDTOOLSDIR=$srcdir/BuildTools
9541  else
9542    if test -r $srcdir/../BuildTools/coin.m4; then
9543      BUILDTOOLSDIR=$srcdir/../BuildTools
9544    else
9545      if test -r $srcdir/../../BuildTools/coin.m4; then
9546        BUILDTOOLSDIR=$srcdir/../../BuildTools
9547      else
9548        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9549echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9550   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9551      fi
9552    fi
9553  fi
9554
9555
9556  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9557  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9558    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9559  fi
9560
9561  # The following variable is set to the name of the directory where
9562  # the autotool scripts are located
9563
9564  AUX_DIR=$ac_aux_dir
9565fi
9566
9567# helpful variable for the base directory of this package
9568abs_source_dir=`cd $srcdir; pwd`
9569
9570
9571# Stuff for example Makefiles
9572if test x$prefix = xNONE; then
9573  full_prefix=$ac_default_prefix
9574else
9575  full_prefix=$prefix
9576fi
9577full_prefix=`cd $full_prefix ; pwd`
9578
9579abs_lib_dir=$full_prefix/lib
9580
9581abs_include_dir=$full_prefix/include
9582
9583abs_bin_dir=$full_prefix/bin
9584
9585
9586
9587if test $coin_have_externals = yes && test x$have_svn = xyes; then
9588  HAVE_EXTERNALS_TRUE=
9589  HAVE_EXTERNALS_FALSE='#'
9590else
9591  HAVE_EXTERNALS_TRUE='#'
9592  HAVE_EXTERNALS_FALSE=
9593fi
9594
9595
9596# AC_MSG_NOTICE([End automake initialisation.])
9597
9598
9599
9600LIBTOOL=
9601if test -r ../libtool; then
9602  coin_config_dir=..
9603  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9604fi
9605if test "x$LIBTOOL" = x; then
9606  if test -r ../../libtool; then
9607    coin_config_dir=../..
9608    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9609  fi
9610fi
9611
9612if test "x$LIBTOOL" = x; then
9613# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9614  # Stuff for libtool
9615  # Check whether --enable-shared or --disable-shared was given.
9616if test "${enable_shared+set}" = set; then
9617  enableval="$enable_shared"
9618  p=${PACKAGE-default}
9619    case $enableval in
9620    yes) enable_shared=yes ;;
9621    no) enable_shared=no ;;
9622    *)
9623      enable_shared=no
9624      # Look at the argument we got.  We use all the common list separators.
9625      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9626      for pkg in $enableval; do
9627        IFS="$lt_save_ifs"
9628        if test "X$pkg" = "X$p"; then
9629          enable_shared=yes
9630        fi
9631      done
9632      IFS="$lt_save_ifs"
9633      ;;
9634    esac
9635else
9636  enable_shared=yes
9637fi;
9638
9639# Check whether --enable-fast-install or --disable-fast-install was given.
9640if test "${enable_fast_install+set}" = set; then
9641  enableval="$enable_fast_install"
9642  p=${PACKAGE-default}
9643    case $enableval in
9644    yes) enable_fast_install=yes ;;
9645    no) enable_fast_install=no ;;
9646    *)
9647      enable_fast_install=no
9648      # Look at the argument we got.  We use all the common list separators.
9649      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9650      for pkg in $enableval; do
9651        IFS="$lt_save_ifs"
9652        if test "X$pkg" = "X$p"; then
9653          enable_fast_install=yes
9654        fi
9655      done
9656      IFS="$lt_save_ifs"
9657      ;;
9658    esac
9659else
9660  enable_fast_install=yes
9661fi;
9662
9663echo "$as_me:$LINENO: checking host system type" >&5
9664echo $ECHO_N "checking host system type... $ECHO_C" >&6
9665if test "${ac_cv_host+set}" = set; then
9666  echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668  ac_cv_host_alias=$host_alias
9669test -z "$ac_cv_host_alias" &&
9670  ac_cv_host_alias=$ac_cv_build_alias
9671ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9672  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9673echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9674   { (exit 1); exit 1; }; }
9675
9676fi
9677echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9678echo "${ECHO_T}$ac_cv_host" >&6
9679host=$ac_cv_host
9680host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9681host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9682host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9683
9684
9685echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9686echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9687if test "${lt_cv_path_SED+set}" = set; then
9688  echo $ECHO_N "(cached) $ECHO_C" >&6
9689else
9690  # Loop through the user's path and test for sed and gsed.
9691# Then use that list of sed's as ones to test for truncation.
9692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693for as_dir in $PATH
9694do
9695  IFS=$as_save_IFS
9696  test -z "$as_dir" && as_dir=.
9697  for lt_ac_prog in sed gsed; do
9698    for ac_exec_ext in '' $ac_executable_extensions; do
9699      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9700        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9701      fi
9702    done
9703  done
9704done
9705lt_ac_max=0
9706lt_ac_count=0
9707# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9708# along with /bin/sed that truncates output.
9709for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9710  test ! -f $lt_ac_sed && continue
9711  cat /dev/null > conftest.in
9712  lt_ac_count=0
9713  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9714  # Check for GNU sed and select it if it is found.
9715  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9716    lt_cv_path_SED=$lt_ac_sed
9717    break
9718  fi
9719  while true; do
9720    cat conftest.in conftest.in >conftest.tmp
9721    mv conftest.tmp conftest.in
9722    cp conftest.in conftest.nl
9723    echo >>conftest.nl
9724    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9725    cmp -s conftest.out conftest.nl || break
9726    # 10000 chars as input seems more than enough
9727    test $lt_ac_count -gt 10 && break
9728    lt_ac_count=`expr $lt_ac_count + 1`
9729    if test $lt_ac_count -gt $lt_ac_max; then
9730      lt_ac_max=$lt_ac_count
9731      lt_cv_path_SED=$lt_ac_sed
9732    fi
9733  done
9734done
9735
9736fi
9737
9738SED=$lt_cv_path_SED
9739echo "$as_me:$LINENO: result: $SED" >&5
9740echo "${ECHO_T}$SED" >&6
9741
9742
9743# Check whether --with-gnu-ld or --without-gnu-ld was given.
9744if test "${with_gnu_ld+set}" = set; then
9745  withval="$with_gnu_ld"
9746  test "$withval" = no || with_gnu_ld=yes
9747else
9748  with_gnu_ld=no
9749fi;
9750ac_prog=ld
9751if test "$GCC" = yes; then
9752  # Check if gcc -print-prog-name=ld gives a path.
9753  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9754echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9755  case $host in
9756  *-*-mingw*)
9757    # gcc leaves a trailing carriage return which upsets mingw
9758    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9759  *)
9760    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9761  esac
9762  case $ac_prog in
9763    # Accept absolute paths.
9764    [\\/]* | ?:[\\/]*)
9765      re_direlt='/[^/][^/]*/\.\./'
9766      # Canonicalize the pathname of ld
9767      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9768      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9769        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9770      done
9771      test -z "$LD" && LD="$ac_prog"
9772      ;;
9773  "")
9774    # If it fails, then pretend we aren't using GCC.
9775    ac_prog=ld
9776    ;;
9777  *)
9778    # If it is relative, then search for the first ld in PATH.
9779    with_gnu_ld=unknown
9780    ;;
9781  esac
9782elif test "$with_gnu_ld" = yes; then
9783  echo "$as_me:$LINENO: checking for GNU ld" >&5
9784echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9785else
9786  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9787echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9788fi
9789if test "${lt_cv_path_LD+set}" = set; then
9790  echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792  if test -z "$LD"; then
9793  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9794  for ac_dir in $PATH; do
9795    IFS="$lt_save_ifs"
9796    test -z "$ac_dir" && ac_dir=.
9797    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9798      lt_cv_path_LD="$ac_dir/$ac_prog"
9799      # Check to see if the program is GNU ld.  I'd rather use --version,
9800      # but apparently some variants of GNU ld only accept -v.
9801      # Break only if it was the GNU/non-GNU ld that we prefer.
9802      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9803      *GNU* | *'with BFD'*)
9804        test "$with_gnu_ld" != no && break
9805        ;;
9806      *)
9807        test "$with_gnu_ld" != yes && break
9808        ;;
9809      esac
9810    fi
9811  done
9812  IFS="$lt_save_ifs"
9813else
9814  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9815fi
9816fi
9817
9818LD="$lt_cv_path_LD"
9819if test -n "$LD"; then
9820  echo "$as_me:$LINENO: result: $LD" >&5
9821echo "${ECHO_T}$LD" >&6
9822else
9823  echo "$as_me:$LINENO: result: no" >&5
9824echo "${ECHO_T}no" >&6
9825fi
9826test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9827echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9828   { (exit 1); exit 1; }; }
9829echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9830echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9831if test "${lt_cv_prog_gnu_ld+set}" = set; then
9832  echo $ECHO_N "(cached) $ECHO_C" >&6
9833else
9834  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9835case `$LD -v 2>&1 </dev/null` in
9836*GNU* | *'with BFD'*)
9837  lt_cv_prog_gnu_ld=yes
9838  ;;
9839*)
9840  lt_cv_prog_gnu_ld=no
9841  ;;
9842esac
9843fi
9844echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9845echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9846with_gnu_ld=$lt_cv_prog_gnu_ld
9847
9848
9849echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9850echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9851if test "${lt_cv_ld_reload_flag+set}" = set; then
9852  echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854  lt_cv_ld_reload_flag='-r'
9855fi
9856echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9857echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9858reload_flag=$lt_cv_ld_reload_flag
9859case $reload_flag in
9860"" | " "*) ;;
9861*) reload_flag=" $reload_flag" ;;
9862esac
9863reload_cmds='$LD$reload_flag -o $output$reload_objs'
9864case $host_os in
9865  darwin*)
9866    if test "$GCC" = yes; then
9867      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9868    else
9869      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9870    fi
9871    ;;
9872esac
9873
9874echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9875echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9876if test "${lt_cv_path_NM+set}" = set; then
9877  echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879  if test -n "$NM"; then
9880  # Let the user override the test.
9881  lt_cv_path_NM="$NM"
9882else
9883  lt_nm_to_check="${ac_tool_prefix}nm"
9884  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9885    lt_nm_to_check="$lt_nm_to_check nm"
9886  fi
9887  for lt_tmp_nm in $lt_nm_to_check; do
9888    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9889    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9890      IFS="$lt_save_ifs"
9891      test -z "$ac_dir" && ac_dir=.
9892      tmp_nm="$ac_dir/$lt_tmp_nm"
9893      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9894        # Check to see if the nm accepts a BSD-compat flag.
9895        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9896        #   nm: unknown option "B" ignored
9897        # Tru64's nm complains that /dev/null is an invalid object file
9898        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9899        */dev/null* | *'Invalid file or object type'*)
9900          lt_cv_path_NM="$tmp_nm -B"
9901          break
9902          ;;
9903        *)
9904          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9905          */dev/null*)
9906            lt_cv_path_NM="$tmp_nm -p"
9907            break
9908            ;;
9909          *)
9910            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9911            continue # so that we can try to find one that supports BSD flags
9912            ;;
9913          esac
9914          ;;
9915        esac
9916      fi
9917    done
9918    IFS="$lt_save_ifs"
9919  done
9920  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9921fi
9922fi
9923echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9924echo "${ECHO_T}$lt_cv_path_NM" >&6
9925NM="$lt_cv_path_NM"
9926
9927echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9928echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9929if test "${lt_cv_deplibs_check_method+set}" = set; then
9930  echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932  lt_cv_file_magic_cmd='$MAGIC_CMD'
9933lt_cv_file_magic_test_file=
9934lt_cv_deplibs_check_method='unknown'
9935# Need to set the preceding variable on all platforms that support
9936# interlibrary dependencies.
9937# 'none' -- dependencies not supported.
9938# `unknown' -- same as none, but documents that we really don't know.
9939# 'pass_all' -- all dependencies passed with no checks.
9940# 'test_compile' -- check by making test program.
9941# 'file_magic [[regex]]' -- check by looking for files in library path
9942# which responds to the $file_magic_cmd with a given extended regex.
9943# If you have `file' or equivalent on your system and you're not sure
9944# whether `pass_all' will *always* work, you probably want this one.
9945
9946case $host_os in
9947aix4* | aix5*)
9948  lt_cv_deplibs_check_method=pass_all
9949  ;;
9950
9951beos*)
9952  lt_cv_deplibs_check_method=pass_all
9953  ;;
9954
9955bsdi[45]*)
9956  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9957  lt_cv_file_magic_cmd='/usr/bin/file -L'
9958  lt_cv_file_magic_test_file=/shlib/libc.so
9959  ;;
9960
9961cygwin*)
9962  # func_win32_libid is a shell function defined in ltmain.sh
9963  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9964  lt_cv_file_magic_cmd='func_win32_libid'
9965  ;;
9966
9967mingw* | pw32*)
9968  # Base MSYS/MinGW do not provide the 'file' command needed by
9969  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9970  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9971  lt_cv_file_magic_cmd='$OBJDUMP -f'
9972  ;;
9973
9974darwin* | rhapsody*)
9975  lt_cv_deplibs_check_method=pass_all
9976  ;;
9977
9978freebsd* | kfreebsd*-gnu | dragonfly*)
9979  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9980    case $host_cpu in
9981    i*86 )
9982      # Not sure whether the presence of OpenBSD here was a mistake.
9983      # Let's accept both of them until this is cleared up.
9984      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9985      lt_cv_file_magic_cmd=/usr/bin/file
9986      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9987      ;;
9988    esac
9989  else
9990    lt_cv_deplibs_check_method=pass_all
9991  fi
9992  ;;
9993
9994gnu*)
9995  lt_cv_deplibs_check_method=pass_all
9996  ;;
9997
9998hpux10.20* | hpux11*)
9999  lt_cv_file_magic_cmd=/usr/bin/file
10000  case $host_cpu in
10001  ia64*)
10002    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10003    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10004    ;;
10005  hppa*64*)
10006    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]'
10007    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10008    ;;
10009  *)
10010    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10011    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10012    ;;
10013  esac
10014  ;;
10015
10016interix3*)
10017  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10018  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10019  ;;
10020
10021irix5* | irix6* | nonstopux*)
10022  case $LD in
10023  *-32|*"-32 ") libmagic=32-bit;;
10024  *-n32|*"-n32 ") libmagic=N32;;
10025  *-64|*"-64 ") libmagic=64-bit;;
10026  *) libmagic=never-match;;
10027  esac
10028  lt_cv_deplibs_check_method=pass_all
10029  ;;
10030
10031# This must be Linux ELF.
10032linux*)
10033  lt_cv_deplibs_check_method=pass_all
10034  ;;
10035
10036netbsd*)
10037  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10038    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10039  else
10040    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10041  fi
10042  ;;
10043
10044newos6*)
10045  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10046  lt_cv_file_magic_cmd=/usr/bin/file
10047  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10048  ;;
10049
10050nto-qnx*)
10051  lt_cv_deplibs_check_method=unknown
10052  ;;
10053
10054openbsd*)
10055  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10056    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10057  else
10058    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10059  fi
10060  ;;
10061
10062osf3* | osf4* | osf5*)
10063  lt_cv_deplibs_check_method=pass_all
10064  ;;
10065
10066solaris*)
10067  lt_cv_deplibs_check_method=pass_all
10068  ;;
10069
10070sysv4 | sysv4.3*)
10071  case $host_vendor in
10072  motorola)
10073    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]'
10074    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10075    ;;
10076  ncr)
10077    lt_cv_deplibs_check_method=pass_all
10078    ;;
10079  sequent)
10080    lt_cv_file_magic_cmd='/bin/file'
10081    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10082    ;;
10083  sni)
10084    lt_cv_file_magic_cmd='/bin/file'
10085    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10086    lt_cv_file_magic_test_file=/lib/libc.so
10087    ;;
10088  siemens)
10089    lt_cv_deplibs_check_method=pass_all
10090    ;;
10091  pc)
10092    lt_cv_deplibs_check_method=pass_all
10093    ;;
10094  esac
10095  ;;
10096
10097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10098  lt_cv_deplibs_check_method=pass_all
10099  ;;
10100esac
10101
10102fi
10103echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10104echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10105file_magic_cmd=$lt_cv_file_magic_cmd
10106deplibs_check_method=$lt_cv_deplibs_check_method
10107test -z "$deplibs_check_method" && deplibs_check_method=unknown
10108
10109
10110
10111
10112# If no C compiler was specified, use CC.
10113LTCC=${LTCC-"$CC"}
10114
10115# If no C compiler flags were specified, use CFLAGS.
10116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10117
10118# Allow CC to be a program name with arguments.
10119compiler=$CC
10120
10121# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10122if test "${enable_libtool_lock+set}" = set; then
10123  enableval="$enable_libtool_lock"
10124
10125fi;
10126test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10127
10128# Some flags need to be propagated to the compiler or linker for good
10129# libtool support.
10130case $host in
10131ia64-*-hpux*)
10132  # Find out which ABI we are using.
10133  echo 'int i;' > conftest.$ac_ext
10134  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135  (eval $ac_compile) 2>&5
10136  ac_status=$?
10137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138  (exit $ac_status); }; then
10139    case `/usr/bin/file conftest.$ac_objext` in
10140    *ELF-32*)
10141      HPUX_IA64_MODE="32"
10142      ;;
10143    *ELF-64*)
10144      HPUX_IA64_MODE="64"
10145      ;;
10146    esac
10147  fi
10148  rm -rf conftest*
10149  ;;
10150*-*-irix6*)
10151  # Find out which ABI we are using.
10152  echo '#line 10152 "configure"' > conftest.$ac_ext
10153  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154  (eval $ac_compile) 2>&5
10155  ac_status=$?
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); }; then
10158   if test "$lt_cv_prog_gnu_ld" = yes; then
10159    case `/usr/bin/file conftest.$ac_objext` in
10160    *32-bit*)
10161      LD="${LD-ld} -melf32bsmip"
10162      ;;
10163    *N32*)
10164      LD="${LD-ld} -melf32bmipn32"
10165      ;;
10166    *64-bit*)
10167      LD="${LD-ld} -melf64bmip"
10168      ;;
10169    esac
10170   else
10171    case `/usr/bin/file conftest.$ac_objext` in
10172    *32-bit*)
10173      LD="${LD-ld} -32"
10174      ;;
10175    *N32*)
10176      LD="${LD-ld} -n32"
10177      ;;
10178    *64-bit*)
10179      LD="${LD-ld} -64"
10180      ;;
10181    esac
10182   fi
10183  fi
10184  rm -rf conftest*
10185  ;;
10186
10187x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10188  # Find out which ABI we are using.
10189  echo 'int i;' > conftest.$ac_ext
10190  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191  (eval $ac_compile) 2>&5
10192  ac_status=$?
10193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); }; then
10195    case `/usr/bin/file conftest.o` in
10196    *32-bit*)
10197      case $host in
10198        x86_64-*linux*)
10199          LD="${LD-ld} -m elf_i386"
10200          ;;
10201        ppc64-*linux*|powerpc64-*linux*)
10202          LD="${LD-ld} -m elf32ppclinux"
10203          ;;
10204        s390x-*linux*)
10205          LD="${LD-ld} -m elf_s390"
10206          ;;
10207        sparc64-*linux*)
10208          LD="${LD-ld} -m elf32_sparc"
10209          ;;
10210      esac
10211      ;;
10212    *64-bit*)
10213      case $host in
10214        x86_64-*linux*)
10215          LD="${LD-ld} -m elf_x86_64"
10216          ;;
10217        ppc*-*linux*|powerpc*-*linux*)
10218          LD="${LD-ld} -m elf64ppc"
10219          ;;
10220        s390*-*linux*)
10221          LD="${LD-ld} -m elf64_s390"
10222          ;;
10223        sparc*-*linux*)
10224          LD="${LD-ld} -m elf64_sparc"
10225          ;;
10226      esac
10227      ;;
10228    esac
10229  fi
10230  rm -rf conftest*
10231  ;;
10232
10233*-*-sco3.2v5*)
10234  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10235  SAVE_CFLAGS="$CFLAGS"
10236  CFLAGS="$CFLAGS -belf"
10237  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10238echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10239if test "${lt_cv_cc_needs_belf+set}" = set; then
10240  echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242  ac_ext=c
10243ac_cpp='$CPP $CPPFLAGS'
10244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246ac_compiler_gnu=$ac_cv_c_compiler_gnu
10247
10248     cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h.  */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h.  */
10254
10255#ifdef F77_DUMMY_MAIN
10256
10257#  ifdef __cplusplus
10258     extern "C"
10259#  endif
10260   int F77_DUMMY_MAIN() { return 1; }
10261
10262#endif
10263int
10264main ()
10265{
10266
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
10272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273  (eval $ac_link) 2>conftest.er1
10274  ac_status=$?
10275  grep -v '^ *+' conftest.er1 >conftest.err
10276  rm -f conftest.er1
10277  cat conftest.err >&5
10278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279  (exit $ac_status); } &&
10280         { ac_try='test -z "$ac_c_werror_flag"
10281                         || test ! -s conftest.err'
10282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283  (eval $ac_try) 2>&5
10284  ac_status=$?
10285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286  (exit $ac_status); }; } &&
10287         { ac_try='test -s conftest$ac_exeext'
10288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289  (eval $ac_try) 2>&5
10290  ac_status=$?
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); }; }; then
10293  lt_cv_cc_needs_belf=yes
10294else
10295  echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
10298lt_cv_cc_needs_belf=no
10299fi
10300rm -f conftest.err conftest.$ac_objext \
10301      conftest$ac_exeext conftest.$ac_ext
10302     ac_ext=c
10303ac_cpp='$CPP $CPPFLAGS'
10304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10306ac_compiler_gnu=$ac_cv_c_compiler_gnu
10307
10308fi
10309echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10310echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10311  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10312    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10313    CFLAGS="$SAVE_CFLAGS"
10314  fi
10315  ;;
10316sparc*-*solaris*)
10317  # Find out which ABI we are using.
10318  echo 'int i;' > conftest.$ac_ext
10319  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320  (eval $ac_compile) 2>&5
10321  ac_status=$?
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); }; then
10324    case `/usr/bin/file conftest.o` in
10325    *64-bit*)
10326      case $lt_cv_prog_gnu_ld in
10327      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10328      *)    LD="${LD-ld} -64" ;;
10329      esac
10330      ;;
10331    esac
10332  fi
10333  rm -rf conftest*
10334  ;;
10335
10336
10337esac
10338
10339need_locks="$enable_libtool_lock"
10340
10341
10342ac_ext=c
10343ac_cpp='$CPP $CPPFLAGS'
10344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346ac_compiler_gnu=$ac_cv_c_compiler_gnu
10347echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10348echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10349# On Suns, sometimes $CPP names a directory.
10350if test -n "$CPP" && test -d "$CPP"; then
10351  CPP=
10352fi
10353if test -z "$CPP"; then
10354  if test "${ac_cv_prog_CPP+set}" = set; then
10355  echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357      # Double quotes because CPP needs to be expanded
10358    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10359    do
10360      ac_preproc_ok=false
10361for ac_c_preproc_warn_flag in '' yes
10362do
10363  # Use a header file that comes with gcc, so configuring glibc
10364  # with a fresh cross-compiler works.
10365  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366  # <limits.h> exists even on freestanding compilers.
10367  # On the NeXT, cc -E runs the code through the compiler's parser,
10368  # not just through cpp. "Syntax error" is here to catch this case.
10369  cat >conftest.$ac_ext <<_ACEOF
10370/* confdefs.h.  */
10371_ACEOF
10372cat confdefs.h >>conftest.$ac_ext
10373cat >>conftest.$ac_ext <<_ACEOF
10374/* end confdefs.h.  */
10375#ifdef __STDC__
10376# include <limits.h>
10377#else
10378# include <assert.h>
10379#endif
10380                     Syntax error
10381_ACEOF
10382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10383  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } >/dev/null; then
10390  if test -s conftest.err; then
10391    ac_cpp_err=$ac_c_preproc_warn_flag
10392    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10393  else
10394    ac_cpp_err=
10395  fi
10396else
10397  ac_cpp_err=yes
10398fi
10399if test -z "$ac_cpp_err"; then
10400  :
10401else
10402  echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405  # Broken: fails on valid input.
10406continue
10407fi
10408rm -f conftest.err conftest.$ac_ext
10409
10410  # OK, works on sane cases.  Now check whether non-existent headers
10411  # can be detected and how.
10412  cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h.  */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h.  */
10418#include <ac_nonexistent.h>
10419_ACEOF
10420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10422  ac_status=$?
10423  grep -v '^ *+' conftest.er1 >conftest.err
10424  rm -f conftest.er1
10425  cat conftest.err >&5
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); } >/dev/null; then
10428  if test -s conftest.err; then
10429    ac_cpp_err=$ac_c_preproc_warn_flag
10430    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10431  else
10432    ac_cpp_err=
10433  fi
10434else
10435  ac_cpp_err=yes
10436fi
10437if test -z "$ac_cpp_err"; then
10438  # Broken: success on invalid input.
10439continue
10440else
10441  echo "$as_me: failed program was:" >&5
10442sed 's/^/| /' conftest.$ac_ext >&5
10443
10444  # Passes both tests.
10445ac_preproc_ok=:
10446break
10447fi
10448rm -f conftest.err conftest.$ac_ext
10449
10450done
10451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10452rm -f conftest.err conftest.$ac_ext
10453if $ac_preproc_ok; then
10454  break
10455fi
10456
10457    done
10458    ac_cv_prog_CPP=$CPP
10459
10460fi
10461  CPP=$ac_cv_prog_CPP
10462else
10463  ac_cv_prog_CPP=$CPP
10464fi
10465echo "$as_me:$LINENO: result: $CPP" >&5
10466echo "${ECHO_T}$CPP" >&6
10467ac_preproc_ok=false
10468for ac_c_preproc_warn_flag in '' yes
10469do
10470  # Use a header file that comes with gcc, so configuring glibc
10471  # with a fresh cross-compiler works.
10472  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10473  # <limits.h> exists even on freestanding compilers.
10474  # On the NeXT, cc -E runs the code through the compiler's parser,
10475  # not just through cpp. "Syntax error" is here to catch this case.
10476  cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h.  */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h.  */
10482#ifdef __STDC__
10483# include <limits.h>
10484#else
10485# include <assert.h>
10486#endif
10487                     Syntax error
10488_ACEOF
10489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10490  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10491  ac_status=$?
10492  grep -v '^ *+' conftest.er1 >conftest.err
10493  rm -f conftest.er1
10494  cat conftest.err >&5
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); } >/dev/null; then
10497  if test -s conftest.err; then
10498    ac_cpp_err=$ac_c_preproc_warn_flag
10499    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10500  else
10501    ac_cpp_err=
10502  fi
10503else
10504  ac_cpp_err=yes
10505fi
10506if test -z "$ac_cpp_err"; then
10507  :
10508else
10509  echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
10512  # Broken: fails on valid input.
10513continue
10514fi
10515rm -f conftest.err conftest.$ac_ext
10516
10517  # OK, works on sane cases.  Now check whether non-existent headers
10518  # can be detected and how.
10519  cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h.  */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h.  */
10525#include <ac_nonexistent.h>
10526_ACEOF
10527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10528  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10529  ac_status=$?
10530  grep -v '^ *+' conftest.er1 >conftest.err
10531  rm -f conftest.er1
10532  cat conftest.err >&5
10533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); } >/dev/null; then
10535  if test -s conftest.err; then
10536    ac_cpp_err=$ac_c_preproc_warn_flag
10537    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10538  else
10539    ac_cpp_err=
10540  fi
10541else
10542  ac_cpp_err=yes
10543fi
10544if test -z "$ac_cpp_err"; then
10545  # Broken: success on invalid input.
10546continue
10547else
10548  echo "$as_me: failed program was:" >&5
10549sed 's/^/| /' conftest.$ac_ext >&5
10550
10551  # Passes both tests.
10552ac_preproc_ok=:
10553break
10554fi
10555rm -f conftest.err conftest.$ac_ext
10556
10557done
10558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10559rm -f conftest.err conftest.$ac_ext
10560if $ac_preproc_ok; then
10561  :
10562else
10563  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10564See \`config.log' for more details." >&5
10565echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10566See \`config.log' for more details." >&2;}
10567   { (exit 1); exit 1; }; }
10568fi
10569
10570ac_ext=c
10571ac_cpp='$CPP $CPPFLAGS'
10572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10574ac_compiler_gnu=$ac_cv_c_compiler_gnu
10575
10576
10577echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10578echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10579if test "${ac_cv_header_stdc+set}" = set; then
10580  echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582  cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h.  */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h.  */
10588#include <stdlib.h>
10589#include <stdarg.h>
10590#include <string.h>
10591#include <float.h>
10592
10593#ifdef F77_DUMMY_MAIN
10594
10595#  ifdef __cplusplus
10596     extern "C"
10597#  endif
10598   int F77_DUMMY_MAIN() { return 1; }
10599
10600#endif
10601int
10602main ()
10603{
10604
10605  ;
10606  return 0;
10607}
10608_ACEOF
10609rm -f conftest.$ac_objext
10610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611  (eval $ac_compile) 2>conftest.er1
10612  ac_status=$?
10613  grep -v '^ *+' conftest.er1 >conftest.err
10614  rm -f conftest.er1
10615  cat conftest.err >&5
10616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617  (exit $ac_status); } &&
10618         { ac_try='test -z "$ac_c_werror_flag"
10619                         || test ! -s conftest.err'
10620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621  (eval $ac_try) 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; } &&
10625         { ac_try='test -s conftest.$ac_objext'
10626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627  (eval $ac_try) 2>&5
10628  ac_status=$?
10629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630  (exit $ac_status); }; }; then
10631  ac_cv_header_stdc=yes
10632else
10633  echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636ac_cv_header_stdc=no
10637fi
10638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10639
10640if test $ac_cv_header_stdc = yes; then
10641  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10642  cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h.  */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h.  */
10648#include <string.h>
10649
10650_ACEOF
10651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10652  $EGREP "memchr" >/dev/null 2>&1; then
10653  :
10654else
10655  ac_cv_header_stdc=no
10656fi
10657rm -f conftest*
10658
10659fi
10660
10661if test $ac_cv_header_stdc = yes; then
10662  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10663  cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h.  */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h.  */
10669#include <stdlib.h>
10670
10671_ACEOF
10672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10673  $EGREP "free" >/dev/null 2>&1; then
10674  :
10675else
10676  ac_cv_header_stdc=no
10677fi
10678rm -f conftest*
10679
10680fi
10681
10682if test $ac_cv_header_stdc = yes; then
10683  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10684  if test "$cross_compiling" = yes; then
10685  :
10686else
10687  cat >conftest.$ac_ext <<_ACEOF
10688/* confdefs.h.  */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h.  */
10693#include <ctype.h>
10694#if ((' ' & 0x0FF) == 0x020)
10695# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10696# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10697#else
10698# define ISLOWER(c) \
10699                   (('a' <= (c) && (c) <= 'i') \
10700                     || ('j' <= (c) && (c) <= 'r') \
10701                     || ('s' <= (c) && (c) <= 'z'))
10702# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10703#endif
10704
10705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10706int
10707main ()
10708{
10709  int i;
10710  for (i = 0; i < 256; i++)
10711    if (XOR (islower (i), ISLOWER (i))
10712        || toupper (i) != TOUPPER (i))
10713      exit(2);
10714  exit (0);
10715}
10716_ACEOF
10717rm -f conftest$ac_exeext
10718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719  (eval $ac_link) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724  (eval $ac_try) 2>&5
10725  ac_status=$?
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); }; }; then
10728  :
10729else
10730  echo "$as_me: program exited with status $ac_status" >&5
10731echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734( exit $ac_status )
10735ac_cv_header_stdc=no
10736fi
10737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10738fi
10739fi
10740fi
10741echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10742echo "${ECHO_T}$ac_cv_header_stdc" >&6
10743if test $ac_cv_header_stdc = yes; then
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define STDC_HEADERS 1
10747_ACEOF
10748
10749fi
10750
10751# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10762                  inttypes.h stdint.h unistd.h
10763do
10764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10765echo "$as_me:$LINENO: checking for $ac_header" >&5
10766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10767if eval "test \"\${$as_ac_Header+set}\" = set"; then
10768  echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
10770  cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h.  */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h.  */
10776$ac_includes_default
10777
10778#include <$ac_header>
10779_ACEOF
10780rm -f conftest.$ac_objext
10781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782  (eval $ac_compile) 2>conftest.er1
10783  ac_status=$?
10784  grep -v '^ *+' conftest.er1 >conftest.err
10785  rm -f conftest.er1
10786  cat conftest.err >&5
10787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788  (exit $ac_status); } &&
10789         { ac_try='test -z "$ac_c_werror_flag"
10790                         || test ! -s conftest.err'
10791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792  (eval $ac_try) 2>&5
10793  ac_status=$?
10794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795  (exit $ac_status); }; } &&
10796         { ac_try='test -s conftest.$ac_objext'
10797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798  (eval $ac_try) 2>&5
10799  ac_status=$?
10800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801  (exit $ac_status); }; }; then
10802  eval "$as_ac_Header=yes"
10803else
10804  echo "$as_me: failed program was:" >&5
10805sed 's/^/| /' conftest.$ac_ext >&5
10806
10807eval "$as_ac_Header=no"
10808fi
10809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10810fi
10811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10813if test `eval echo '${'$as_ac_Header'}'` = yes; then
10814  cat >>confdefs.h <<_ACEOF
10815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816_ACEOF
10817
10818fi
10819
10820done
10821
10822
10823
10824for ac_header in dlfcn.h
10825do
10826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10827if eval "test \"\${$as_ac_Header+set}\" = set"; then
10828  echo "$as_me:$LINENO: checking for $ac_header" >&5
10829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10830if eval "test \"\${$as_ac_Header+set}\" = set"; then
10831  echo $ECHO_N "(cached) $ECHO_C" >&6
10832fi
10833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10835else
10836  # Is the header compilable?
10837echo "$as_me:$LINENO: checking $ac_header usability" >&5
10838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10839cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h.  */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h.  */
10845$ac_includes_default
10846#include <$ac_header>
10847_ACEOF
10848rm -f conftest.$ac_objext
10849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850  (eval $ac_compile) 2>conftest.er1
10851  ac_status=$?
10852  grep -v '^ *+' conftest.er1 >conftest.err
10853  rm -f conftest.er1
10854  cat conftest.err >&5
10855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856  (exit $ac_status); } &&
10857         { ac_try='test -z "$ac_c_werror_flag"
10858                         || test ! -s conftest.err'
10859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860  (eval $ac_try) 2>&5
10861  ac_status=$?
10862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863  (exit $ac_status); }; } &&
10864         { ac_try='test -s conftest.$ac_objext'
10865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866  (eval $ac_try) 2>&5
10867  ac_status=$?
10868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869  (exit $ac_status); }; }; then
10870  ac_header_compiler=yes
10871else
10872  echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875ac_header_compiler=no
10876fi
10877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10879echo "${ECHO_T}$ac_header_compiler" >&6
10880
10881# Is the header present?
10882echo "$as_me:$LINENO: checking $ac_header presence" >&5
10883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10884cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h.  */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
10889/* end confdefs.h.  */
10890#include <$ac_header>
10891_ACEOF
10892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10893  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10894  ac_status=$?
10895  grep -v '^ *+' conftest.er1 >conftest.err
10896  rm -f conftest.er1
10897  cat conftest.err >&5
10898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899  (exit $ac_status); } >/dev/null; then
10900  if test -s conftest.err; then
10901    ac_cpp_err=$ac_c_preproc_warn_flag
10902    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10903  else
10904    ac_cpp_err=
10905  fi
10906else
10907  ac_cpp_err=yes
10908fi
10909if test -z "$ac_cpp_err"; then
10910  ac_header_preproc=yes
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915  ac_header_preproc=no
10916fi
10917rm -f conftest.err conftest.$ac_ext
10918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10919echo "${ECHO_T}$ac_header_preproc" >&6
10920
10921# So?  What about this header?
10922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10923  yes:no: )
10924    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10926    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10928    ac_header_preproc=yes
10929    ;;
10930  no:yes:* )
10931    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10933    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10934echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10935    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10937    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10938echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10941    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10943    (
10944      cat <<\_ASBOX
10945## --------------------------------------------------------------- ##
10946## Report this to http://projects.coin-or.org/BuildTools/newticket ##
10947## --------------------------------------------------------------- ##
10948_ASBOX
10949    ) |
10950      sed "s/^/$as_me: WARNING:     /" >&2
10951    ;;
10952esac
10953echo "$as_me:$LINENO: checking for $ac_header" >&5
10954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10955if eval "test \"\${$as_ac_Header+set}\" = set"; then
10956  echo $ECHO_N "(cached) $ECHO_C" >&6
10957else
10958  eval "$as_ac_Header=\$ac_header_preproc"
10959fi
10960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10962
10963fi
10964if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965  cat >>confdefs.h <<_ACEOF
10966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967_ACEOF
10968
10969fi
10970
10971done
10972
10973ac_ext=cc
10974ac_cpp='$CXXCPP $CPPFLAGS'