Changeset 1481


Ignore:
Timestamp:
Feb 21, 2010 10:46:52 AM (10 years ago)
Author:
stefan
Message:

synchronize with trunk by merging chgset 1450 (add MA77 support)

Location:
ThirdParty/HSL/branches/BSPsplit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/HSL/branches/BSPsplit

  • ThirdParty/HSL/branches/BSPsplit/Makefile.am

    r1469 r1481  
    1 # Copyright (C) 2003, 2008, 2009 International Business Machines and others
     1# Copyright (C) 2003, 2009 International Business Machines and others
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    3131endif
    3232
     33if COIN_HAS_MA77
     34  libcoinhsl_la_SOURCES += hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
     35endif
     36
    3337libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
     38
     39# dependencies
     40hsl_ma77d.lo: hsl_ma77d.deps90.lo
    3441
    3542#############################################################################
     
    7986pkgconfiglib_DATA = coinhsl.pc
    8087
     88# Need to overwrite automake definition since otherwise libtool does not
     89# understand the fortran file (need to add --tag=F77)
     90LTFCCOMPILE = $(LIBTOOL) --tag=F77 --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
     91
     92
    8193########################################################################
    8294#                         Maintainer Stuff                             #
  • ThirdParty/HSL/branches/BSPsplit/Makefile.in

    r1469 r1481  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2003, 2008, 2009 International Business Machines and others
     17# Copyright (C) 2003, 2009 International Business Machines and others
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    5858@COIN_HAS_MA28_TRUE@    mc21ad.f mc22ad.f mc23ad.f mc24ad.f
    5959
     60@COIN_HAS_MA77_TRUE@am__append_5 = hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
    6061DIST_COMMON = README $(am__configure_deps) \
    6162        $(srcdir)/../../BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     
    6465        $(top_srcdir)/configure config.guess config.sub depcomp \
    6566        install-sh ltmain.sh missing
    66 @HAVE_EXTERNALS_TRUE@am__append_5 = Externals
    67 @HAVE_EXTERNALS_TRUE@am__append_6 = .Externals-stamp
     67@HAVE_EXTERNALS_TRUE@am__append_6 = Externals
     68@HAVE_EXTERNALS_TRUE@am__append_7 = .Externals-stamp
    6869subdir = .
    6970ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    8990am__libcoinhsl_la_SOURCES_DIST = dummy.c ma27ad.f ma57ad.f mc19ad.f \
    9091        ma28ad.f ma30ad.f mc13dd.f mc20ad.f mc21ad.f mc22ad.f mc23ad.f \
    91         mc24ad.f
     92        mc24ad.f hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
    9293@COIN_HAS_MA27_TRUE@am__objects_1 = ma27ad.lo
    9394@COIN_HAS_MA57_TRUE@am__objects_2 = ma57ad.lo
     
    9697@COIN_HAS_MA28_TRUE@    mc20ad.lo mc21ad.lo mc22ad.lo mc23ad.lo \
    9798@COIN_HAS_MA28_TRUE@    mc24ad.lo
     99@COIN_HAS_MA77_TRUE@am__objects_5 = hsl_ma77d.lo hsl_ma77d.deps90.lo \
     100@COIN_HAS_MA77_TRUE@    hsl_ma77d.deps77.lo
    98101am_libcoinhsl_la_OBJECTS = dummy.lo $(am__objects_1) $(am__objects_2) \
    99         $(am__objects_3) $(am__objects_4)
     102        $(am__objects_3) $(am__objects_4) $(am__objects_5)
    100103libcoinhsl_la_OBJECTS = $(am_libcoinhsl_la_OBJECTS)
    101104DEFAULT_INCLUDES = -I. -I$(srcdir)
     
    116119F77LINK = $(LIBTOOL) --tag=F77 --mode=link $(F77LD) $(AM_FFLAGS) \
    117120        $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
     121FCCOMPILE = $(FC) $(AM_FCFLAGS) $(FCFLAGS)
     122FCLD = $(FC)
     123FCLINK = $(LIBTOOL) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \
     124        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    118125SOURCES = $(libcoinhsl_la_SOURCES)
    119126DIST_SOURCES = $(am__libcoinhsl_la_SOURCES_DIST)
     
    161168COIN_HAS_MA57_FALSE = @COIN_HAS_MA57_FALSE@
    162169COIN_HAS_MA57_TRUE = @COIN_HAS_MA57_TRUE@
     170COIN_HAS_MA77_FALSE = @COIN_HAS_MA77_FALSE@
     171COIN_HAS_MA77_TRUE = @COIN_HAS_MA77_TRUE@
    163172COIN_HAS_MC19_FALSE = @COIN_HAS_MC19_FALSE@
    164173COIN_HAS_MC19_TRUE = @COIN_HAS_MC19_TRUE@
     
    188197F77_SHARED_CMD = @F77_SHARED_CMD@
    189198FADDLIBS = @FADDLIBS@
     199FC = @FC@
     200FCFLAGS = @FCFLAGS@
    190201FFLAGS = @FFLAGS@
    191202FLIBS = @FLIBS@
     
    243254ac_ct_CXX = @ac_ct_CXX@
    244255ac_ct_F77 = @ac_ct_F77@
     256ac_ct_FC = @ac_ct_FC@
    245257ac_ct_RANLIB = @ac_ct_RANLIB@
    246258ac_ct_STRIP = @ac_ct_STRIP@
     
    288300target_alias = @target_alias@
    289301AUTOMAKE_OPTIONS = foreign
    290 EXTRA_DIST = INSTALL.HSL $(am__append_5)
     302EXTRA_DIST = INSTALL.HSL $(am__append_6)
    291303thirdpartylibdir = $(libdir)/coin/ThirdParty
    292304thirdpartylib_LTLIBRARIES = libcoinhsl.la
    293305libcoinhsl_la_SOURCES = dummy.c $(am__append_1) $(am__append_2) \
    294         $(am__append_3) $(am__append_4)
     306        $(am__append_3) $(am__append_4) $(am__append_5)
    295307libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
    296308@EXTRA_SHARED_COMMAND_TRUE@CLEANFILES = $(HSL_SHARED_LIB) $(DEFFILE)
     
    300312pkgconfiglib_DATA = coinhsl.pc
    301313
     314# Need to overwrite automake definition since otherwise libtool does not
     315# understand the fortran file (need to add --tag=F77)
     316LTFCCOMPILE = $(LIBTOOL) --tag=F77 --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
     317
    302318########################################################################
    303319#                         Maintainer Stuff                             #
     
    305321
    306322# Files that are generated and should be cleaned with make distclean
    307 DISTCLEANFILES = $(am__append_6) $(VPATH_DISTCLEANFILES)
     323DISTCLEANFILES = $(am__append_7) $(VPATH_DISTCLEANFILES)
    308324DocFiles = README AUTHORS LICENSE
    309 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     325DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    310326all: all-am
    311327
    312328.SUFFIXES:
    313 .SUFFIXES: .c .f .lo .o .obj
     329.SUFFIXES: .c .f .f90 .lo .o .obj
    314330am--refresh:
    315331        @:
     
    418434.f.lo:
    419435        $(LTF77COMPILE) -c -o $@ $<
     436
     437.f90.o:
     438        $(FCCOMPILE) -c -o $@ $<
     439
     440.f90.obj:
     441        $(FCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
     442
     443.f90.lo:
     444        $(LTFCCOMPILE) -c -o $@ $<
    420445
    421446mostlyclean-libtool:
     
    748773
    749774
     775# dependencies
     776hsl_ma77d.lo: hsl_ma77d.deps90.lo
     777
    750778#############################################################################
    751779#  Generating a shared library for delay loading
  • ThirdParty/HSL/branches/BSPsplit/configure

    r1469 r1481  
    1010#
    1111#
    12 # Copyright 2006 International Business Machines and others.
     12# Copyright 2006, 2009 International Business Machines and others.
    1313# All Rights Reserved.
    1414# This file is part of the open source package Coin which is distributed
     
    473473#endif"
    474474
    475 ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE 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 MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS EGREP 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 LN_S 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 COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE HAVE_MXXX_CFLAGS F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
     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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE 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 MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS EGREP FC FCFLAGS ac_ct_FC 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 LN_S 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 COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA77_TRUE COIN_HAS_MA77_FALSE HAVE_MXXX_CFLAGS F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    974974ac_cv_env_MPIF77_set=${MPIF77+set}
    975975ac_cv_env_MPIF77_value=$MPIF77
     976ac_env_FC_set=${FC+set}
     977ac_env_FC_value=$FC
     978ac_cv_env_FC_set=${FC+set}
     979ac_cv_env_FC_value=$FC
     980ac_env_FCFLAGS_set=${FCFLAGS+set}
     981ac_env_FCFLAGS_value=$FCFLAGS
     982ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
     983ac_cv_env_FCFLAGS_value=$FCFLAGS
    976984ac_env_CPP_set=${CPP+set}
    977985ac_env_CPP_value=$CPP
     
    11221130  FFLAGS      Fortran 77 compiler flags
    11231131  MPIF77      Fortran MPI Compiler
     1132  FC          Fortran compiler command
     1133  FCFLAGS     Fortran compiler flags
    11241134  CPP         C preprocessor
    11251135  CXX         C++ compiler command
     
    12341244
    12351245
    1236 Copyright 2006 International Business Machines and others.
     1246Copyright 2006, 2009 International Business Machines and others.
    12371247All Rights Reserved.
    12381248This file is part of the open source package Coin which is distributed
     
    33003310
    33013311# Provide some information about the compiler.
    3302 echo "$as_me:3302:" \
     3312echo "$as_me:3312:" \
    33033313     "checking for Fortran 77 compiler version" >&5
    33043314ac_compiler=`set X $ac_compile; echo $2`
     
    38683878ac_save_FFLAGS=$FFLAGS
    38693879FFLAGS="$FFLAGS $ac_verb"
    3870 (eval echo $as_me:3870: \"$ac_link\") >&5
     3880(eval echo $as_me:3880: \"$ac_link\") >&5
    38713881ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    38723882echo "$ac_f77_v_output" >&5
     
    39463956ac_save_FFLAGS=$FFLAGS
    39473957FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    3948 (eval echo $as_me:3948: \"$ac_link\") >&5
     3958(eval echo $as_me:3958: \"$ac_link\") >&5
    39493959ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    39503960echo "$ac_f77_v_output" >&5
     
    47134723 EGREP=$ac_cv_prog_egrep
    47144724
     4725
     4726
     4727# Also set up the FC compiler variable, required to compile .f90
     4728# files.  We use the same compile and flags as F77 and FFLAGS, unless
     4729# the user has set FC and FCFLAGS explicitly.
     4730if test "$FC" = ""; then
     4731  FC="$F77"
     4732fi
     4733if test "$FCFLAGS" = ""; then
     4734  FCFLAGS="$FFLAGS"
     4735fi
     4736ac_ext=${FC_SRCEXT-f}
     4737ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
     4738ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
     4739ac_compiler_gnu=$ac_cv_fc_compiler_gnu
     4740if test -n "$ac_tool_prefix"; then
     4741  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
     4742  do
     4743    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     4744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     4745echo "$as_me:$LINENO: checking for $ac_word" >&5
     4746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4747if test "${ac_cv_prog_FC+set}" = set; then
     4748  echo $ECHO_N "(cached) $ECHO_C" >&6
     4749else
     4750  if test -n "$FC"; then
     4751  ac_cv_prog_FC="$FC" # Let the user override the test.
     4752else
     4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4754for as_dir in $PATH
     4755do
     4756  IFS=$as_save_IFS
     4757  test -z "$as_dir" && as_dir=.
     4758  for ac_exec_ext in '' $ac_executable_extensions; do
     4759  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4760    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
     4761    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4762    break 2
     4763  fi
     4764done
     4765done
     4766
     4767fi
     4768fi
     4769FC=$ac_cv_prog_FC
     4770if test -n "$FC"; then
     4771  echo "$as_me:$LINENO: result: $FC" >&5
     4772echo "${ECHO_T}$FC" >&6
     4773else
     4774  echo "$as_me:$LINENO: result: no" >&5
     4775echo "${ECHO_T}no" >&6
     4776fi
     4777
     4778    test -n "$FC" && break
     4779  done
     4780fi
     4781if test -z "$FC"; then
     4782  ac_ct_FC=$FC
     4783  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
     4784do
     4785  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4786set dummy $ac_prog; ac_word=$2
     4787echo "$as_me:$LINENO: checking for $ac_word" >&5
     4788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4789if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
     4790  echo $ECHO_N "(cached) $ECHO_C" >&6
     4791else
     4792  if test -n "$ac_ct_FC"; then
     4793  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
     4794else
     4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4796for as_dir in $PATH
     4797do
     4798  IFS=$as_save_IFS
     4799  test -z "$as_dir" && as_dir=.
     4800  for ac_exec_ext in '' $ac_executable_extensions; do
     4801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4802    ac_cv_prog_ac_ct_FC="$ac_prog"
     4803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4804    break 2
     4805  fi
     4806done
     4807done
     4808
     4809fi
     4810fi
     4811ac_ct_FC=$ac_cv_prog_ac_ct_FC
     4812if test -n "$ac_ct_FC"; then
     4813  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
     4814echo "${ECHO_T}$ac_ct_FC" >&6
     4815else
     4816  echo "$as_me:$LINENO: result: no" >&5
     4817echo "${ECHO_T}no" >&6
     4818fi
     4819
     4820  test -n "$ac_ct_FC" && break
     4821done
     4822
     4823  FC=$ac_ct_FC
     4824fi
     4825
     4826
     4827# Provide some information about the compiler.
     4828echo "$as_me:4828:" \
     4829     "checking for Fortran compiler version" >&5
     4830ac_compiler=`set X $ac_compile; echo $2`
     4831{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     4832  (eval $ac_compiler --version </dev/null >&5) 2>&5
     4833  ac_status=$?
     4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4835  (exit $ac_status); }
     4836{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     4837  (eval $ac_compiler -v </dev/null >&5) 2>&5
     4838  ac_status=$?
     4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4840  (exit $ac_status); }
     4841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     4842  (eval $ac_compiler -V </dev/null >&5) 2>&5
     4843  ac_status=$?
     4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4845  (exit $ac_status); }
     4846rm -f a.out
     4847
     4848# If we don't use `.F' as extension, the preprocessor is not run on the
     4849# input file.  (Note that this only needs to work for GNU compilers.)
     4850ac_save_ext=$ac_ext
     4851ac_ext=F
     4852echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
     4853echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
     4854if test "${ac_cv_fc_compiler_gnu+set}" = set; then
     4855  echo $ECHO_N "(cached) $ECHO_C" >&6
     4856else
     4857  cat >conftest.$ac_ext <<_ACEOF
     4858      program main
     4859#ifndef __GNUC__
     4860       choke me
     4861#endif
     4862
     4863      end
     4864_ACEOF
     4865rm -f conftest.$ac_objext
     4866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4867  (eval $ac_compile) 2>conftest.er1
     4868  ac_status=$?
     4869  grep -v '^ *+' conftest.er1 >conftest.err
     4870  rm -f conftest.er1
     4871  cat conftest.err >&5
     4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4873  (exit $ac_status); } &&
     4874         { ac_try='test -z "$ac_fc_werror_flag"
     4875                         || test ! -s conftest.err'
     4876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4877  (eval $ac_try) 2>&5
     4878  ac_status=$?
     4879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4880  (exit $ac_status); }; } &&
     4881         { ac_try='test -s conftest.$ac_objext'
     4882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4883  (eval $ac_try) 2>&5
     4884  ac_status=$?
     4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4886  (exit $ac_status); }; }; then
     4887  ac_compiler_gnu=yes
     4888else
     4889  echo "$as_me: failed program was:" >&5
     4890sed 's/^/| /' conftest.$ac_ext >&5
     4891
     4892ac_compiler_gnu=no
     4893fi
     4894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4895ac_cv_fc_compiler_gnu=$ac_compiler_gnu
     4896
     4897fi
     4898echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
     4899echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
     4900ac_ext=$ac_save_ext
     4901ac_test_FFLAGS=${FCFLAGS+set}
     4902ac_save_FFLAGS=$FCFLAGS
     4903FCFLAGS=
     4904echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
     4905echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
     4906if test "${ac_cv_prog_fc_g+set}" = set; then
     4907  echo $ECHO_N "(cached) $ECHO_C" >&6
     4908else
     4909  FCFLAGS=-g
     4910cat >conftest.$ac_ext <<_ACEOF
     4911      program main
     4912
     4913      end
     4914_ACEOF
     4915rm -f conftest.$ac_objext
     4916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4917  (eval $ac_compile) 2>conftest.er1
     4918  ac_status=$?
     4919  grep -v '^ *+' conftest.er1 >conftest.err
     4920  rm -f conftest.er1
     4921  cat conftest.err >&5
     4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4923  (exit $ac_status); } &&
     4924         { ac_try='test -z "$ac_fc_werror_flag"
     4925                         || test ! -s conftest.err'
     4926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4927  (eval $ac_try) 2>&5
     4928  ac_status=$?
     4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4930  (exit $ac_status); }; } &&
     4931         { ac_try='test -s conftest.$ac_objext'
     4932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4933  (eval $ac_try) 2>&5
     4934  ac_status=$?
     4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4936  (exit $ac_status); }; }; then
     4937  ac_cv_prog_fc_g=yes
     4938else
     4939  echo "$as_me: failed program was:" >&5
     4940sed 's/^/| /' conftest.$ac_ext >&5
     4941
     4942ac_cv_prog_fc_g=no
     4943fi
     4944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4945
     4946fi
     4947echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
     4948echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
     4949if test "$ac_test_FFLAGS" = set; then
     4950  FCFLAGS=$ac_save_FFLAGS
     4951elif test $ac_cv_prog_fc_g = yes; then
     4952  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
     4953    FCFLAGS="-g -O2"
     4954  else
     4955    FCFLAGS="-g"
     4956  fi
     4957else
     4958  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
     4959    FCFLAGS="-O2"
     4960  else
     4961    FCFLAGS=
     4962  fi
     4963fi
     4964
     4965ac_ext=c
     4966ac_cpp='$CPP $CPPFLAGS'
     4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
    47154970
    47164971
     
    63376592*-*-irix6*)
    63386593  # Find out which ABI we are using.
    6339   echo '#line 6339 "configure"' > conftest.$ac_ext
     6594  echo '#line 6594 "configure"' > conftest.$ac_ext
    63406595  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    63416596  (eval $ac_compile) 2>&5
     
    88149069   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    88159070   -e 's:$: $lt_compiler_flag:'`
    8816    (eval echo "\"\$as_me:8816: $lt_compile\"" >&5)
     9071   (eval echo "\"\$as_me:9071: $lt_compile\"" >&5)
    88179072   (eval "$lt_compile" 2>conftest.err)
    88189073   ac_status=$?
    88199074   cat conftest.err >&5
    8820    echo "$as_me:8820: \$? = $ac_status" >&5
     9075   echo "$as_me:9075: \$? = $ac_status" >&5
    88219076   if (exit $ac_status) && test -s "$ac_outfile"; then
    88229077     # The compiler can only warn and ignore the option if not recognized
     
    90829337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90839338   -e 's:$: $lt_compiler_flag:'`
    9084    (eval echo "\"\$as_me:9084: $lt_compile\"" >&5)
     9339   (eval echo "\"\$as_me:9339: $lt_compile\"" >&5)
    90859340   (eval "$lt_compile" 2>conftest.err)
    90869341   ac_status=$?
    90879342   cat conftest.err >&5
    9088    echo "$as_me:9088: \$? = $ac_status" >&5
     9343   echo "$as_me:9343: \$? = $ac_status" >&5
    90899344   if (exit $ac_status) && test -s "$ac_outfile"; then
    90909345     # The compiler can only warn and ignore the option if not recognized
     
    91869441   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    91879442   -e 's:$: $lt_compiler_flag:'`
    9188    (eval echo "\"\$as_me:9188: $lt_compile\"" >&5)
     9443   (eval echo "\"\$as_me:9443: $lt_compile\"" >&5)
    91899444   (eval "$lt_compile" 2>out/conftest.err)
    91909445   ac_status=$?
    91919446   cat out/conftest.err >&5
    9192    echo "$as_me:9192: \$? = $ac_status" >&5
     9447   echo "$as_me:9447: \$? = $ac_status" >&5
    91939448   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    91949449   then
     
    1160311858  lt_status=$lt_dlunknown
    1160411859  cat > conftest.$ac_ext <<EOF
    11605 #line 11605 "configure"
     11860#line 11860 "configure"
    1160611861#include "confdefs.h"
    1160711862
     
    1170311958  lt_status=$lt_dlunknown
    1170411959  cat > conftest.$ac_ext <<EOF
    11705 #line 11705 "configure"
     11960#line 11960 "configure"
    1170611961#include "confdefs.h"
    1170711962
     
    1406314318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1406414319   -e 's:$: $lt_compiler_flag:'`
    14065    (eval echo "\"\$as_me:14065: $lt_compile\"" >&5)
     14320   (eval echo "\"\$as_me:14320: $lt_compile\"" >&5)
    1406614321   (eval "$lt_compile" 2>conftest.err)
    1406714322   ac_status=$?
    1406814323   cat conftest.err >&5
    14069    echo "$as_me:14069: \$? = $ac_status" >&5
     14324   echo "$as_me:14324: \$? = $ac_status" >&5
    1407014325   if (exit $ac_status) && test -s "$ac_outfile"; then
    1407114326     # The compiler can only warn and ignore the option if not recognized
     
    1416714422   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1416814423   -e 's:$: $lt_compiler_flag:'`
    14169    (eval echo "\"\$as_me:14169: $lt_compile\"" >&5)
     14424   (eval echo "\"\$as_me:14424: $lt_compile\"" >&5)
    1417014425   (eval "$lt_compile" 2>out/conftest.err)
    1417114426   ac_status=$?
    1417214427   cat out/conftest.err >&5
    14173    echo "$as_me:14173: \$? = $ac_status" >&5
     14428   echo "$as_me:14428: \$? = $ac_status" >&5
    1417414429   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1417514430   then
     
    1573715992   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1573815993   -e 's:$: $lt_compiler_flag:'`
    15739    (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
     15994   (eval echo "\"\$as_me:15994: $lt_compile\"" >&5)
    1574015995   (eval "$lt_compile" 2>conftest.err)
    1574115996   ac_status=$?
    1574215997   cat conftest.err >&5
    15743    echo "$as_me:15743: \$? = $ac_status" >&5
     15998   echo "$as_me:15998: \$? = $ac_status" >&5
    1574415999   if (exit $ac_status) && test -s "$ac_outfile"; then
    1574516000     # The compiler can only warn and ignore the option if not recognized
     
    1584116096   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1584216097   -e 's:$: $lt_compiler_flag:'`
    15843    (eval echo "\"\$as_me:15843: $lt_compile\"" >&5)
     16098   (eval echo "\"\$as_me:16098: $lt_compile\"" >&5)
    1584416099   (eval "$lt_compile" 2>out/conftest.err)
    1584516100   ac_status=$?
    1584616101   cat out/conftest.err >&5
    15847    echo "$as_me:15847: \$? = $ac_status" >&5
     16102   echo "$as_me:16102: \$? = $ac_status" >&5
    1584816103   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1584916104   then
     
    1804818303   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1804918304   -e 's:$: $lt_compiler_flag:'`
    18050    (eval echo "\"\$as_me:18050: $lt_compile\"" >&5)
     18305   (eval echo "\"\$as_me:18305: $lt_compile\"" >&5)
    1805118306   (eval "$lt_compile" 2>conftest.err)
    1805218307   ac_status=$?
    1805318308   cat conftest.err >&5
    18054    echo "$as_me:18054: \$? = $ac_status" >&5
     18309   echo "$as_me:18309: \$? = $ac_status" >&5
    1805518310   if (exit $ac_status) && test -s "$ac_outfile"; then
    1805618311     # The compiler can only warn and ignore the option if not recognized
     
    1831618571   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1831718572   -e 's:$: $lt_compiler_flag:'`
    18318    (eval echo "\"\$as_me:18318: $lt_compile\"" >&5)
     18573   (eval echo "\"\$as_me:18573: $lt_compile\"" >&5)
    1831918574   (eval "$lt_compile" 2>conftest.err)
    1832018575   ac_status=$?
    1832118576   cat conftest.err >&5
    18322    echo "$as_me:18322: \$? = $ac_status" >&5
     18577   echo "$as_me:18577: \$? = $ac_status" >&5
    1832318578   if (exit $ac_status) && test -s "$ac_outfile"; then
    1832418579     # The compiler can only warn and ignore the option if not recognized
     
    1842018675   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1842118676   -e 's:$: $lt_compiler_flag:'`
    18422    (eval echo "\"\$as_me:18422: $lt_compile\"" >&5)
     18677   (eval echo "\"\$as_me:18677: $lt_compile\"" >&5)
    1842318678   (eval "$lt_compile" 2>out/conftest.err)
    1842418679   ac_status=$?
    1842518680   cat out/conftest.err >&5
    18426    echo "$as_me:18426: \$? = $ac_status" >&5
     18681   echo "$as_me:18681: \$? = $ac_status" >&5
    1842718682   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1842818683   then
     
    2134221597#############################################################################
    2134321598
     21599echo "$as_me:$LINENO: checking whether we can compile Fortran 90 code" >&5
     21600echo $ECHO_N "checking whether we can compile Fortran 90 code... $ECHO_C" >&6
     21601ac_ext=f
     21602ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21603ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21604ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21605
     21606cat >conftest.$ac_ext <<_ACEOF
     21607        MODULE BLA
     21608      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     21609      END MODULE BLA
     21610_ACEOF
     21611rm -f conftest.$ac_objext
     21612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21613  (eval $ac_compile) 2>conftest.er1
     21614  ac_status=$?
     21615  grep -v '^ *+' conftest.er1 >conftest.err
     21616  rm -f conftest.er1
     21617  cat conftest.err >&5
     21618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21619  (exit $ac_status); } &&
     21620         { ac_try='test -z "$ac_f77_werror_flag"
     21621                         || test ! -s conftest.err'
     21622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21623  (eval $ac_try) 2>&5
     21624  ac_status=$?
     21625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21626  (exit $ac_status); }; } &&
     21627         { ac_try='test -s conftest.$ac_objext'
     21628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21629  (eval $ac_try) 2>&5
     21630  ac_status=$?
     21631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21632  (exit $ac_status); }; }; then
     21633  have_f90=yes
     21634else
     21635  echo "$as_me: failed program was:" >&5
     21636sed 's/^/| /' conftest.$ac_ext >&5
     21637
     21638have_f90=no
     21639fi
     21640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21641echo "$as_me:$LINENO: result: $have_f90" >&5
     21642echo "${ECHO_T}$have_f90" >&6
     21643ac_ext=c
     21644ac_cpp='$CPP $CPPFLAGS'
     21645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21647ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21648
     21649
     21650
     21651
    2134421652
    2134521653
     
    2143421742fi
    2143521743
     21744if test $have_f90 = yes; then
     21745   if test -r $srcdir/hsl_ma77d.f90; then
     21746  hsl_files="$hsl_files hsl_ma77d.f"
     21747                       coin_has_hsl_ma77d=yes
     21748  :
     21749else
     21750  coin_has_hsl_ma77d=no
     21751  :
     21752fi
     21753
     21754else
     21755  coin_has_hsl_ma77d=no
     21756fi
     21757
     21758
     21759if test $coin_has_hsl_ma77d = yes; then
     21760  COIN_HAS_MA77_TRUE=
     21761  COIN_HAS_MA77_FALSE='#'
     21762else
     21763  COIN_HAS_MA77_TRUE='#'
     21764  COIN_HAS_MA77_FALSE=
     21765fi
     21766
    2143621767
    2143721768HAVE_MXXX_CFLAGS=
     
    2144721778if test $coin_has_ma28ad = yes; then
    2144821779  HAVE_MXXX_CFLAGS="-DHAVE_MA28 $HAVE_MXXX_CFLAGS"
     21780fi
     21781if test $coin_has_hsl_ma77d = yes; then
     21782  HAVE_MXXX_CFLAGS="-DHAVE_MA77 $HAVE_MXXX_CFLAGS"
    2144921783fi
    2145021784
     
    2179922133Usually this means the macro was only invoked conditionally." >&5
    2180022134echo "$as_me: error: conditional \"COIN_HAS_MA28\" was never defined.
     22135Usually this means the macro was only invoked conditionally." >&2;}
     22136   { (exit 1); exit 1; }; }
     22137fi
     22138if test -z "${COIN_HAS_MA77_TRUE}" && test -z "${COIN_HAS_MA77_FALSE}"; then
     22139  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MA77\" was never defined.
     22140Usually this means the macro was only invoked conditionally." >&5
     22141echo "$as_me: error: conditional \"COIN_HAS_MA77\" was never defined.
    2180122142Usually this means the macro was only invoked conditionally." >&2;}
    2180222143   { (exit 1); exit 1; }; }
     
    2238122722s,@FLIBS@,$FLIBS,;t t
    2238222723s,@EGREP@,$EGREP,;t t
     22724s,@FC@,$FC,;t t
     22725s,@FCFLAGS@,$FCFLAGS,;t t
     22726s,@ac_ct_FC@,$ac_ct_FC,;t t
    2238322727s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    2238422728s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    2245822802s,@COIN_HAS_MA28_TRUE@,$COIN_HAS_MA28_TRUE,;t t
    2245922803s,@COIN_HAS_MA28_FALSE@,$COIN_HAS_MA28_FALSE,;t t
     22804s,@COIN_HAS_MA77_TRUE@,$COIN_HAS_MA77_TRUE,;t t
     22805s,@COIN_HAS_MA77_FALSE@,$COIN_HAS_MA77_FALSE,;t t
    2246022806s,@HAVE_MXXX_CFLAGS@,$HAVE_MXXX_CFLAGS,;t t
    2246122807s,@F77_SHARED_CMD@,$F77_SHARED_CMD,;t t
  • ThirdParty/HSL/branches/BSPsplit/configure.ac

    r1469 r1481  
    1717
    1818AC_COPYRIGHT([
    19 Copyright 2006 International Business Machines and others.
     19Copyright 2006, 2009 International Business Machines and others.
    2020All Rights Reserved.
    2121This file is part of the open source package Coin which is distributed
     
    6969AC_PROG_EGREP
    7070
     71# Also set up the FC compiler variable, required to compile .f90
     72# files.  We use the same compile and flags as F77 and FFLAGS, unless
     73# the user has set FC and FCFLAGS explicitly.
     74if test "$FC" = ""; then
     75  FC="$F77"
     76fi
     77if test "$FCFLAGS" = ""; then
     78  FCFLAGS="$FFLAGS"
     79fi
     80AC_PROG_FC
     81
    7182# Initialize autotools
    7283
     
    7990#                    Find out which files are available                     #
    8091#############################################################################
     92
     93AC_MSG_CHECKING([whether we can compile Fortran 90 code])
     94AC_LANG_PUSH(Fortran 77)
     95AC_COMPILE_IFELSE([        MODULE BLA
     96      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     97      END MODULE BLA],[have_f90=yes],[have_f90=no])
     98AC_MSG_RESULT([$have_f90])
     99AC_LANG_POP(Fortran 77)
    81100
    82101AC_DEFUN([MY_CHECK_HSLFILE],
     
    85104                     coin_has_$1=yes],
    86105                    [coin_has_$1=no])
     106AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
     107
     108AC_DEFUN([MY_CHECK_HSLFILE_F90],
     109[if test $have_f90 = yes; then
     110   AC_COIN_CHECK_FILE([$srcdir/$1.f90],
     111                      [hsl_files="$hsl_files $1.f"
     112                       coin_has_$1=yes],
     113                      [coin_has_$1=no])
     114else
     115  coin_has_$1=no
     116fi
    87117AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
    88118
     
    100130MY_CHECK_HSLFILE(ma57ad,MA57)
    101131MY_CHECK_HSLFILE(ma28ad,MA28)
     132MY_CHECK_HSLFILE_F90(hsl_ma77d,MA77)
    102133
    103134HAVE_MXXX_CFLAGS=
     
    113144if test $coin_has_ma28ad = yes; then
    114145  HAVE_MXXX_CFLAGS="-DHAVE_MA28 $HAVE_MXXX_CFLAGS"
     146fi
     147if test $coin_has_hsl_ma77d = yes; then
     148  HAVE_MXXX_CFLAGS="-DHAVE_MA77 $HAVE_MXXX_CFLAGS"
    115149fi
    116150AC_SUBST(HAVE_MXXX_CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.