source: ThirdParty/Lapack/trunk/configure @ 2217

Last change on this file since 2217 was 2217, checked in by stefan, 11 years ago

rerun autotools

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