source: ThirdParty/Lapack/trunk/configure @ 2673

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

rerun autotools

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