source: ThirdParty/Lapack/releases/1.4.3/configure @ 2834

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

temporarily committing release candidate

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