source: ThirdParty/Lapack/stable/1.3/configure @ 2445

Last change on this file since 2445 was 2445, checked in by stefan, 8 years ago

temporarily committing release candidate

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