Changeset 1435


Ignore:
Timestamp:
Nov 1, 2009 12:02:07 PM (11 years ago)
Author:
stefan
Message:

use AC_COIN_HAS_MODULE to check for Blas and Metis; setup .pc files

Location:
ThirdParty/Mumps/branches/BSPsplit
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/branches/BSPsplit/Makefile.in

    r1388 r1435  
    5555DIST_COMMON = README $(am__configure_deps) \
    5656        $(srcdir)/../../BuildTools/Makemain.inc $(srcdir)/Makefile.am \
    57         $(srcdir)/Makefile.in $(srcdir)/mumps_addlibs.txt.in \
     57        $(srcdir)/Makefile.in $(srcdir)/mumps-uninstalled.pc.in \
     58        $(srcdir)/mumps.pc.in $(srcdir)/mumps_addlibs.txt.in \
    5859        $(thirdpartyinclude_HEADERS) $(top_srcdir)/configure \
    5960        config.guess config.sub depcomp install-sh ltmain.sh missing
     
    6970 configure.lineno configure.status.lineno
    7071mkinstalldirs = $(install_sh) -d
    71 CONFIG_CLEAN_FILES = mumps_addlibs.txt
     72CONFIG_CLEAN_FILES = mumps_addlibs.txt mumps.pc mumps-uninstalled.pc
    7273am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
    7374am__vpath_adj = case $$p in \
     
    146147AUX_DIR = @AUX_DIR@
    147148AWK = @AWK@
     149BLAS_CFLAGS = @BLAS_CFLAGS@
     150BLAS_DATA = @BLAS_DATA@
     151BLAS_LIBS = @BLAS_LIBS@
    148152BUILDTOOLSDIR = @BUILDTOOLSDIR@
    149153CC = @CC@
     
    199203MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    200204MAKEINFO = @MAKEINFO@
     205METIS_CFLAGS = @METIS_CFLAGS@
     206METIS_DATA = @METIS_DATA@
     207METIS_LIBS = @METIS_LIBS@
    201208MPICC = @MPICC@
    202209MPIF77 = @MPIF77@
    203210MUMPSDIR = @MUMPSDIR@
     211MUMPSOBJDIR = @MUMPSOBJDIR@
     212MUMPSSRCDIR = @MUMPSSRCDIR@
    204213MY_DEFS = @MY_DEFS@
    205214MY_FDEFS = @MY_FDEFS@
     
    214223PACKAGE_VERSION = @PACKAGE_VERSION@
    215224PATH_SEPARATOR = @PATH_SEPARATOR@
     225PKG_CONFIG = @PKG_CONFIG@
    216226RANLIB = @RANLIB@
     227REQUIREDPACKAGES = @REQUIREDPACKAGES@
    217228RPATH_FLAGS = @RPATH_FLAGS@
    218229SET_MAKE = @SET_MAKE@
     
    233244ac_ct_STRIP = @ac_ct_STRIP@
    234245ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     246ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    235247am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    236248am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    372384        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    373385mumps_addlibs.txt: $(top_builddir)/config.status $(srcdir)/mumps_addlibs.txt.in
     386        cd $(top_builddir) && $(SHELL) ./config.status $@
     387mumps.pc: $(top_builddir)/config.status $(srcdir)/mumps.pc.in
     388        cd $(top_builddir) && $(SHELL) ./config.status $@
     389mumps-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/mumps-uninstalled.pc.in
    374390        cd $(top_builddir) && $(SHELL) ./config.status $@
    375391install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES)
  • ThirdParty/Mumps/branches/BSPsplit/configure

    r1391 r1435  
    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 CPP EGREP MY_DEFS 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 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_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES 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 CPP EGREP MY_DEFS 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 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 PKG_CONFIG ac_pt_PKG_CONFIG BLAS_LIBS BLAS_CFLAGS BLAS_DATA REQUIREDPACKAGES COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    990990ac_cv_env_CXXCPP_set=${CXXCPP+set}
    991991ac_cv_env_CXXCPP_value=$CXXCPP
     992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     993ac_env_PKG_CONFIG_value=$PKG_CONFIG
     994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    992996
    993997#
     
    11001104  --with-tags[=TAGS]
    11011105                          include additional configurations [automatic]
     1106  --with-blas-lib linker flags for using module Blas
     1107  --with-blas-incdir directory with header files for using module Blas
     1108  --with-blas-datadir directory with data files for using module Blas
     1109  --with-coin-instdir     prefix of installation directory for precompiled
     1110                          COIN packages
     1111  --with-metis-lib linker flags for using module Metis
     1112  --with-metis-incdir directory with header files for using module Metis
     1113  --with-metis-datadir directory with data files for using module Metis
    11021114  --with-blas             specify BLAS library (or BUILD for compilation)
    11031115  --with-metis            specify flags to link with METIS library
     
    11251137  CXXFLAGS    C++ compiler flags
    11261138  CXXCPP      C++ preprocessor
     1139  PKG_CONFIG  path to pkg-config utility
    11271140
    11281141Use these variables to override the choices made by `configure' or to help
     
    15981611
    15991612
    1600 # As backup, we make sure we don't loose an FLIBS if it has been set
    1601 # by the user
    1602 save_FLIBS="$FLIBS"
    1603 
    16041613# Initialize the FADDLIBS variable (which is to be used with a fortran
    16051614# compiler and will not include FLIBS)
     
    32963305
    32973306# Provide some information about the compiler.
    3298 echo "$as_me:3298:" \
     3307echo "$as_me:3307:" \
    32993308     "checking for Fortran 77 compiler version" >&5
    33003309ac_compiler=`set X $ac_compile; echo $2`
     
    38643873ac_save_FFLAGS=$FFLAGS
    38653874FFLAGS="$FFLAGS $ac_verb"
    3866 (eval echo $as_me:3866: \"$ac_link\") >&5
     3875(eval echo $as_me:3875: \"$ac_link\") >&5
    38673876ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    38683877echo "$ac_f77_v_output" >&5
     
    39423951ac_save_FFLAGS=$FFLAGS
    39433952FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    3944 (eval echo $as_me:3944: \"$ac_link\") >&5
     3953(eval echo $as_me:3953: \"$ac_link\") >&5
    39453954ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    39463955echo "$ac_f77_v_output" >&5
     
    45414550
    45424551
     4552save_FLIBS="$FLIBS"
     4553
    45434554ac_ext=f
    45444555ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     
    46324643
    46334644
    4634 # If FLIBS has been set by the user, we just restore its value here
    46354645if test x"$save_FLIBS" != x; then
    46364646  FLIBS="$save_FLIBS"
     
    46424652      case $flag in
    46434653        -lcrt*.o) ;;
    4644         -lcygwin) ;;
    46454654               *) my_flibs="$my_flibs $flag" ;;
    46464655      esac
     
    69967005*-*-irix6*)
    69977006  # Find out which ABI we are using.
    6998   echo '#line 6998 "configure"' > conftest.$ac_ext
     7007  echo '#line 7007 "configure"' > conftest.$ac_ext
    69997008  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    70007009  (eval $ac_compile) 2>&5
     
    89929001   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    89939002   -e 's:$: $lt_compiler_flag:'`
    8994    (eval echo "\"\$as_me:8994: $lt_compile\"" >&5)
     9003   (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
    89959004   (eval "$lt_compile" 2>conftest.err)
    89969005   ac_status=$?
    89979006   cat conftest.err >&5
    8998    echo "$as_me:8998: \$? = $ac_status" >&5
     9007   echo "$as_me:9007: \$? = $ac_status" >&5
    89999008   if (exit $ac_status) && test -s "$ac_outfile"; then
    90009009     # The compiler can only warn and ignore the option if not recognized
     
    92609269   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    92619270   -e 's:$: $lt_compiler_flag:'`
    9262    (eval echo "\"\$as_me:9262: $lt_compile\"" >&5)
     9271   (eval echo "\"\$as_me:9271: $lt_compile\"" >&5)
    92639272   (eval "$lt_compile" 2>conftest.err)
    92649273   ac_status=$?
    92659274   cat conftest.err >&5
    9266    echo "$as_me:9266: \$? = $ac_status" >&5
     9275   echo "$as_me:9275: \$? = $ac_status" >&5
    92679276   if (exit $ac_status) && test -s "$ac_outfile"; then
    92689277     # The compiler can only warn and ignore the option if not recognized
     
    93649373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    93659374   -e 's:$: $lt_compiler_flag:'`
    9366    (eval echo "\"\$as_me:9366: $lt_compile\"" >&5)
     9375   (eval echo "\"\$as_me:9375: $lt_compile\"" >&5)
    93679376   (eval "$lt_compile" 2>out/conftest.err)
    93689377   ac_status=$?
    93699378   cat out/conftest.err >&5
    9370    echo "$as_me:9370: \$? = $ac_status" >&5
     9379   echo "$as_me:9379: \$? = $ac_status" >&5
    93719380   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    93729381   then
     
    1178111790  lt_status=$lt_dlunknown
    1178211791  cat > conftest.$ac_ext <<EOF
    11783 #line 11783 "configure"
     11792#line 11792 "configure"
    1178411793#include "confdefs.h"
    1178511794
     
    1188111890  lt_status=$lt_dlunknown
    1188211891  cat > conftest.$ac_ext <<EOF
    11883 #line 11883 "configure"
     11892#line 11892 "configure"
    1188411893#include "confdefs.h"
    1188511894
     
    1424114250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1424214251   -e 's:$: $lt_compiler_flag:'`
    14243    (eval echo "\"\$as_me:14243: $lt_compile\"" >&5)
     14252   (eval echo "\"\$as_me:14252: $lt_compile\"" >&5)
    1424414253   (eval "$lt_compile" 2>conftest.err)
    1424514254   ac_status=$?
    1424614255   cat conftest.err >&5
    14247    echo "$as_me:14247: \$? = $ac_status" >&5
     14256   echo "$as_me:14256: \$? = $ac_status" >&5
    1424814257   if (exit $ac_status) && test -s "$ac_outfile"; then
    1424914258     # The compiler can only warn and ignore the option if not recognized
     
    1434514354   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1434614355   -e 's:$: $lt_compiler_flag:'`
    14347    (eval echo "\"\$as_me:14347: $lt_compile\"" >&5)
     14356   (eval echo "\"\$as_me:14356: $lt_compile\"" >&5)
    1434814357   (eval "$lt_compile" 2>out/conftest.err)
    1434914358   ac_status=$?
    1435014359   cat out/conftest.err >&5
    14351    echo "$as_me:14351: \$? = $ac_status" >&5
     14360   echo "$as_me:14360: \$? = $ac_status" >&5
    1435214361   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1435314362   then
     
    1591515924   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1591615925   -e 's:$: $lt_compiler_flag:'`
    15917    (eval echo "\"\$as_me:15917: $lt_compile\"" >&5)
     15926   (eval echo "\"\$as_me:15926: $lt_compile\"" >&5)
    1591815927   (eval "$lt_compile" 2>conftest.err)
    1591915928   ac_status=$?
    1592015929   cat conftest.err >&5
    15921    echo "$as_me:15921: \$? = $ac_status" >&5
     15930   echo "$as_me:15930: \$? = $ac_status" >&5
    1592215931   if (exit $ac_status) && test -s "$ac_outfile"; then
    1592315932     # The compiler can only warn and ignore the option if not recognized
     
    1601916028   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1602016029   -e 's:$: $lt_compiler_flag:'`
    16021    (eval echo "\"\$as_me:16021: $lt_compile\"" >&5)
     16030   (eval echo "\"\$as_me:16030: $lt_compile\"" >&5)
    1602216031   (eval "$lt_compile" 2>out/conftest.err)
    1602316032   ac_status=$?
    1602416033   cat out/conftest.err >&5
    16025    echo "$as_me:16025: \$? = $ac_status" >&5
     16034   echo "$as_me:16034: \$? = $ac_status" >&5
    1602616035   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1602716036   then
     
    1822618235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1822718236   -e 's:$: $lt_compiler_flag:'`
    18228    (eval echo "\"\$as_me:18228: $lt_compile\"" >&5)
     18237   (eval echo "\"\$as_me:18237: $lt_compile\"" >&5)
    1822918238   (eval "$lt_compile" 2>conftest.err)
    1823018239   ac_status=$?
    1823118240   cat conftest.err >&5
    18232    echo "$as_me:18232: \$? = $ac_status" >&5
     18241   echo "$as_me:18241: \$? = $ac_status" >&5
    1823318242   if (exit $ac_status) && test -s "$ac_outfile"; then
    1823418243     # The compiler can only warn and ignore the option if not recognized
     
    1849418503   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1849518504   -e 's:$: $lt_compiler_flag:'`
    18496    (eval echo "\"\$as_me:18496: $lt_compile\"" >&5)
     18505   (eval echo "\"\$as_me:18505: $lt_compile\"" >&5)
    1849718506   (eval "$lt_compile" 2>conftest.err)
    1849818507   ac_status=$?
    1849918508   cat conftest.err >&5
    18500    echo "$as_me:18500: \$? = $ac_status" >&5
     18509   echo "$as_me:18509: \$? = $ac_status" >&5
    1850118510   if (exit $ac_status) && test -s "$ac_outfile"; then
    1850218511     # The compiler can only warn and ignore the option if not recognized
     
    1859818607   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1859918608   -e 's:$: $lt_compiler_flag:'`
    18600    (eval echo "\"\$as_me:18600: $lt_compile\"" >&5)
     18609   (eval echo "\"\$as_me:18609: $lt_compile\"" >&5)
    1860118610   (eval "$lt_compile" 2>out/conftest.err)
    1860218611   ac_status=$?
    1860318612   cat out/conftest.err >&5
    18604    echo "$as_me:18604: \$? = $ac_status" >&5
     18613   echo "$as_me:18613: \$? = $ac_status" >&5
    1860518614   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1860618615   then
     
    2151621525}
    2151721526
    21518 # Check for user-provided BLAS library
    21519 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then
     21527#fake that pkg-config is not available
     21528#AC_COIN_HAS_PKGCONFIG
     21529#PKG_CONFIG=""
     21530
     21531
     21532
     21533if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     21534  if test -n "$ac_tool_prefix"; then
     21535  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     21536set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     21537echo "$as_me:$LINENO: checking for $ac_word" >&5
     21538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     21539if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     21540  echo $ECHO_N "(cached) $ECHO_C" >&6
     21541else
     21542  case $PKG_CONFIG in
     21543  [\\/]* | ?:[\\/]*)
     21544  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     21545  ;;
     21546  *)
     21547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     21548for as_dir in $PATH
     21549do
     21550  IFS=$as_save_IFS
     21551  test -z "$as_dir" && as_dir=.
     21552  for ac_exec_ext in '' $ac_executable_extensions; do
     21553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     21554    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     21555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     21556    break 2
     21557  fi
     21558done
     21559done
     21560
     21561  ;;
     21562esac
     21563fi
     21564PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     21565
     21566if test -n "$PKG_CONFIG"; then
     21567  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     21568echo "${ECHO_T}$PKG_CONFIG" >&6
     21569else
     21570  echo "$as_me:$LINENO: result: no" >&5
     21571echo "${ECHO_T}no" >&6
     21572fi
     21573
     21574fi
     21575if test -z "$ac_cv_path_PKG_CONFIG"; then
     21576  ac_pt_PKG_CONFIG=$PKG_CONFIG
     21577  # Extract the first word of "pkg-config", so it can be a program name with args.
     21578set dummy pkg-config; ac_word=$2
     21579echo "$as_me:$LINENO: checking for $ac_word" >&5
     21580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     21581if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     21582  echo $ECHO_N "(cached) $ECHO_C" >&6
     21583else
     21584  case $ac_pt_PKG_CONFIG in
     21585  [\\/]* | ?:[\\/]*)
     21586  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     21587  ;;
     21588  *)
     21589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     21590for as_dir in $PATH
     21591do
     21592  IFS=$as_save_IFS
     21593  test -z "$as_dir" && as_dir=.
     21594  for ac_exec_ext in '' $ac_executable_extensions; do
     21595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     21596    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     21597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     21598    break 2
     21599  fi
     21600done
     21601done
     21602
     21603  ;;
     21604esac
     21605fi
     21606ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     21607
     21608if test -n "$ac_pt_PKG_CONFIG"; then
     21609  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     21610echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     21611else
     21612  echo "$as_me:$LINENO: result: no" >&5
     21613echo "${ECHO_T}no" >&6
     21614fi
     21615
     21616  PKG_CONFIG=$ac_pt_PKG_CONFIG
     21617else
     21618  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     21619fi
     21620
     21621fi
     21622if test -n "$PKG_CONFIG"; then
     21623  _pkg_min_version=0.9.0
     21624  echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     21625echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     21626  if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     21627    echo "$as_me:$LINENO: result: yes" >&5
     21628echo "${ECHO_T}yes" >&6
     21629  else
     21630    echo "$as_me:$LINENO: result: no" >&5
     21631echo "${ECHO_T}no" >&6
     21632    PKG_CONFIG=""
     21633  fi
     21634fi
     21635
     21636# check if pkg-config supports the short-errors flag
     21637if test -n "$PKG_CONFIG" && \
     21638  $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     21639  pkg_short_errors=" --short-errors "
     21640else
     21641  pkg_short_errors=""
     21642fi
     21643
     21644
     21645
     21646echo "$as_me:$LINENO: checking for COIN module Blas" >&5
     21647echo $ECHO_N "checking for COIN module Blas... $ECHO_C" >&6
     21648
     21649coin_has_blas=notGiven
     21650
     21651# check if user wants to skip module in any case
     21652if test x"$COIN_SKIP_PROJECTS" != x; then
     21653  for dir in $COIN_SKIP_PROJECTS; do
     21654    if test $dir = "Blas"; then
     21655      coin_has_blas=skipping
     21656    fi
     21657  done
     21658fi
     21659
     21660BLAS_LIBS=
     21661BLAS_CFLAGS=
     21662BLAS_DATA=
     21663
     21664
     21665
     21666
     21667#check if user provided LIBS, CFLAGS, and DATA for module
     21668if test $coin_has_blas != skipping; then
     21669
     21670
     21671# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
     21672if test "${with_blas_lib+set}" = set; then
     21673  withval="$with_blas_lib"
     21674  coin_has_blas=yes
     21675       BLAS_LIBS="$withval"
     21676fi;
     21677
     21678
     21679# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
     21680if test "${with_blas_incdir+set}" = set; then
     21681  withval="$with_blas_incdir"
     21682  coin_has_blas=yes
     21683     BLAS_CFLAGS="-I$withval"
     21684fi;
     21685
     21686
     21687# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
     21688if test "${with_blas_datadir+set}" = set; then
     21689  withval="$with_blas_datadir"
     21690  coin_has_blas=yes
     21691     BLAS_DATA="$withval"
     21692fi;
     21693fi
     21694
     21695if test $coin_has_blas = notGiven; then
     21696  #assemble search path for pkg-config
     21697  if test -n "$PKG_CONFIG" ; then
     21698    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21699
     21700
     21701# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21702if test "${with_coin_instdir+set}" = set; then
     21703  withval="$with_coin_instdir"
     21704  if test -d "$withval"; then : ; else
     21705         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21706echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21707   { (exit 1); exit 1; }; }
     21708       fi
     21709       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH",
     21710
     21711fi;
     21712
     21713    # go through Blas to ... and assemble PKG_CONFIG_PATH with ../Blas and module search string
     21714    module_content=""
     21715
     21716module_content="$module_content blas"
     21717
     21718# extract the package name: get everything before first space
     21719pkgname=`echo "Blas" | sed -e 's/ .*//g'`
     21720
     21721# check if directory $srcdir/../Blas exists and add ../Blas to the PKG_CONFIG_PATH
     21722# this is for the classic setup where an uninstalled project can be found in ../Blas
     21723if test -d $srcdir/../$pkgname; then
     21724  PKG_CONFIG_PATH="../$pkgname:$PKG_CONFIG_PATH"
     21725fi
     21726
     21727
     21728
     21729
     21730
     21731
     21732
     21733
     21734
     21735
     21736    # let pkg-config do it's magic
     21737    # need to export variable to be sure that the following pkg-config gets these values
     21738    export PKG_CONFIG_PATH
     21739
     21740
     21741
     21742if test -n "$PKG_CONFIG" ; then
     21743  if $PKG_CONFIG --exists "$module_content"; then
     21744    BLAS_VERSIONS="`$PKG_CONFIG --modversion $module_content 2>/dev/null`"
     21745     BLAS_CFLAGS=`$PKG_CONFIG --cflags "blas" 2>/dev/null`
     21746    BLAS_LIBS=`$PKG_CONFIG --libs "blas" 2>/dev/null`
     21747    BLAS_DATA=`$PKG_CONFIG --variable=datadir "blas" 2>/dev/null`
     21748     coin_has_blas=yes
     21749        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
     21750echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
     21751        REQUIREDPACKAGES="$REQUIREDPACKAGES $module_content"
     21752
     21753
     21754
     21755  else
     21756    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors $module_content`
     21757      coin_has_blas=notGiven
     21758        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
     21759echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
     21760
     21761  fi
     21762else
     21763  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
     21764echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
     21765   { (exit 1); exit 1; }; }
     21766fi
     21767
     21768
     21769
     21770
     21771    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21772  else
     21773    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21774echo "${ECHO_T}skipped check via pkg-config" >&6
     21775  fi
     21776
     21777else
     21778  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     21779echo "${ECHO_T}$coin_has_blas" >&6
     21780fi
     21781
     21782if test $coin_has_blas != skipping &&
     21783   test $coin_has_blas != notGiven ; then
     21784  if test "x$BLAS_CFLAGS" != x ; then
     21785    { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     21786echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
     21787  fi
     21788  if test "x$BLAS_LIBS" != x ; then
     21789    { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
     21790echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
     21791  fi
     21792  if test "x$BLAS_DATA" != x ; then
     21793    { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
     21794echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
     21795  fi
     21796
     21797cat >>confdefs.h <<\_ACEOF
     21798#define COIN_HAS_BLAS 1
     21799_ACEOF
     21800
     21801fi
     21802
     21803# Define the Makefile conditional
     21804
     21805
     21806if test $coin_has_blas != notGiven &&
     21807                test $coin_has_blas != skipping; then
     21808  COIN_HAS_BLAS_TRUE=
     21809  COIN_HAS_BLAS_FALSE='#'
     21810else
     21811  COIN_HAS_BLAS_TRUE='#'
     21812  COIN_HAS_BLAS_FALSE=
     21813fi
     21814
     21815
     21816
     21817
     21818echo "$as_me:$LINENO: checking for COIN module Metis" >&5
     21819echo $ECHO_N "checking for COIN module Metis... $ECHO_C" >&6
     21820
     21821coin_has_metis=notGiven
     21822
     21823# check if user wants to skip module in any case
     21824if test x"$COIN_SKIP_PROJECTS" != x; then
     21825  for dir in $COIN_SKIP_PROJECTS; do
     21826    if test $dir = "Metis"; then
     21827      coin_has_metis=skipping
     21828    fi
     21829  done
     21830fi
     21831
     21832METIS_LIBS=
     21833METIS_CFLAGS=
     21834METIS_DATA=
     21835
     21836
     21837
     21838
     21839#check if user provided LIBS, CFLAGS, and DATA for module
     21840if test $coin_has_metis != skipping; then
     21841
     21842
     21843# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given.
     21844if test "${with_metis_lib+set}" = set; then
     21845  withval="$with_metis_lib"
     21846  coin_has_metis=yes
     21847       METIS_LIBS="$withval"
     21848fi;
     21849
     21850
     21851# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given.
     21852if test "${with_metis_incdir+set}" = set; then
     21853  withval="$with_metis_incdir"
     21854  coin_has_metis=yes
     21855     METIS_CFLAGS="-I$withval"
     21856fi;
     21857
     21858
     21859# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given.
     21860if test "${with_metis_datadir+set}" = set; then
     21861  withval="$with_metis_datadir"
     21862  coin_has_metis=yes
     21863     METIS_DATA="$withval"
     21864fi;
     21865fi
     21866
     21867if test $coin_has_metis = notGiven; then
     21868  #assemble search path for pkg-config
     21869  if test -n "$PKG_CONFIG" ; then
     21870    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21871
     21872
     21873# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21874if test "${with_coin_instdir+set}" = set; then
     21875  withval="$with_coin_instdir"
     21876  if test -d "$withval"; then : ; else
     21877         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21878echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21879   { (exit 1); exit 1; }; }
     21880       fi
     21881       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH",
     21882
     21883fi;
     21884
     21885    # go through Metis >= 4.0 to ... and assemble PKG_CONFIG_PATH with ../Metis >= 4.0 and module search string
     21886    module_content=""
     21887
     21888module_content="$module_content metis >= 4.0"
     21889
     21890# extract the package name: get everything before first space
     21891pkgname=`echo "Metis >= 4.0" | sed -e 's/ .*//g'`
     21892
     21893# check if directory $srcdir/../Metis >= 4.0 exists and add ../Metis >= 4.0 to the PKG_CONFIG_PATH
     21894# this is for the classic setup where an uninstalled project can be found in ../Metis >= 4.0
     21895if test -d $srcdir/../$pkgname; then
     21896  PKG_CONFIG_PATH="../$pkgname:$PKG_CONFIG_PATH"
     21897fi
     21898
     21899
     21900
     21901
     21902
     21903
     21904
     21905
     21906
     21907
     21908    # let pkg-config do it's magic
     21909    # need to export variable to be sure that the following pkg-config gets these values
     21910    export PKG_CONFIG_PATH
     21911
     21912
     21913
     21914if test -n "$PKG_CONFIG" ; then
     21915  if $PKG_CONFIG --exists "$module_content"; then
     21916    METIS_VERSIONS="`$PKG_CONFIG --modversion $module_content 2>/dev/null`"
     21917     METIS_CFLAGS=`$PKG_CONFIG --cflags "metis" 2>/dev/null`
     21918    METIS_LIBS=`$PKG_CONFIG --libs "metis" 2>/dev/null`
     21919    METIS_DATA=`$PKG_CONFIG --variable=datadir "metis" 2>/dev/null`
     21920     coin_has_metis=yes
     21921        echo "$as_me:$LINENO: result: yes: $METIS_VERSIONS" >&5
     21922echo "${ECHO_T}yes: $METIS_VERSIONS" >&6
     21923        REQUIREDPACKAGES="$REQUIREDPACKAGES $module_content"
     21924
     21925
     21926
     21927  else
     21928    METIS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors $module_content`
     21929      coin_has_metis=notGiven
     21930        echo "$as_me:$LINENO: result: not given: $METIS_PKG_ERRORS" >&5
     21931echo "${ECHO_T}not given: $METIS_PKG_ERRORS" >&6
     21932
     21933  fi
     21934else
     21935  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Metis without pkg-config\"" >&5
     21936echo "$as_me: error: \"Cannot check for existance of module Metis without pkg-config\"" >&2;}
     21937   { (exit 1); exit 1; }; }
     21938fi
     21939
     21940
     21941
     21942
     21943    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21944  else
     21945    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21946echo "${ECHO_T}skipped check via pkg-config" >&6
     21947  fi
     21948
     21949else
     21950  echo "$as_me:$LINENO: result: $coin_has_metis" >&5
     21951echo "${ECHO_T}$coin_has_metis" >&6
     21952fi
     21953
     21954if test $coin_has_metis != skipping &&
     21955   test $coin_has_metis != notGiven ; then
     21956  if test "x$METIS_CFLAGS" != x ; then
     21957    { echo "$as_me:$LINENO: Metis CFLAGS are $METIS_CFLAGS" >&5
     21958echo "$as_me: Metis CFLAGS are $METIS_CFLAGS" >&6;}
     21959  fi
     21960  if test "x$METIS_LIBS" != x ; then
     21961    { echo "$as_me:$LINENO: Metis LIBS   are $METIS_LIBS" >&5
     21962echo "$as_me: Metis LIBS   are $METIS_LIBS" >&6;}
     21963  fi
     21964  if test "x$METIS_DATA" != x ; then
     21965    { echo "$as_me:$LINENO: Metis DATA   is  $METIS_DATA" >&5
     21966echo "$as_me: Metis DATA   is  $METIS_DATA" >&6;}
     21967  fi
     21968
     21969cat >>confdefs.h <<\_ACEOF
     21970#define COIN_HAS_METIS 1
     21971_ACEOF
     21972
     21973fi
     21974
     21975# Define the Makefile conditional
     21976
     21977
     21978if test $coin_has_metis != notGiven &&
     21979                test $coin_has_metis != skipping; then
     21980  COIN_HAS_METIS_TRUE=
     21981  COIN_HAS_METIS_FALSE='#'
     21982else
     21983  COIN_HAS_METIS_TRUE='#'
     21984  COIN_HAS_METIS_FALSE=
     21985fi
     21986
     21987
     21988
     21989
     21990#Fallback if pkgconfig not available or projects do not have .pc files
     21991if test "$coin_has_blas" != yes ; then
     21992  if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then
    2152021993  coin_blasobjdir=../Blas
    2152121994else
     
    2353024003fi
    2353124004
    23532 
    23533 # Check if Metis is available
     24005else
     24006  #to make configure happy, since COIN_BUILD_BLAS is defined by AC_COIN_HAS_BLAS
     24007
     24008
     24009if test "$coin_has_blas" = yes; then
     24010  COIN_BUILD_BLAS_TRUE=
     24011  COIN_BUILD_BLAS_FALSE='#'
     24012else
     24013  COIN_BUILD_BLAS_TRUE='#'
     24014  COIN_BUILD_BLAS_FALSE=
     24015fi
     24016
     24017fi
     24018if test "$coin_has_metis" != yes ; then
    2353424019
    2353524020case "$PACKAGE_NAME" in
     
    2368124166
    2368224167
     24168fi
     24169
    2368324170if test "$coin_has_metis" = yes; then
    2368424171  MY_DEFS="$MY_DEFS -Dmetis"
     
    2376824255
    2376924256# Verify that we can compile Fortran 90 code
    23770 #if test "$use_mumps" = BUILD; then
    23771   echo "$as_me:$LINENO: checking whether we can compile Fortran 90 code" >&5
     24257echo "$as_me:$LINENO: checking whether we can compile Fortran 90 code" >&5
    2377224258echo $ECHO_N "checking whether we can compile Fortran 90 code... $ECHO_C" >&6
    23773   ac_ext=f
     24259ac_ext=f
    2377424260ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    2377524261ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2377624262ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    2377724263
    23778   cat >conftest.$ac_ext <<_ACEOF
     24264cat >conftest.$ac_ext <<_ACEOF
    2377924265        MODULE BLA
    23780         DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
    23781         END MODULE BLA
     24266      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     24267      END MODULE BLA
    2378224268_ACEOF
    2378324269rm -f conftest.$ac_objext
     
    2381124297fi
    2381224298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    23813   echo "$as_me:$LINENO: result: $can_f90" >&5
     24299echo "$as_me:$LINENO: result: $can_f90" >&5
    2381424300echo "${ECHO_T}$can_f90" >&6
    23815   ac_ext=c
     24301ac_ext=c
    2381624302ac_cpp='$CPP $CPPFLAGS'
    2381724303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2381924305ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2382024306
    23821   if test $can_f90 = no; then
    23822     { { echo "$as_me:$LINENO: error: Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS" >&5
     24307if test $can_f90 = no; then
     24308  { { echo "$as_me:$LINENO: error: Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS" >&5
    2382324309echo "$as_me: error: Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS" >&2;}
    2382424310   { (exit 1); exit 1; }; }
    23825 #    use_mumps=
    23826   fi
    23827 #fi
     24311fi
    2382824312
    2382924313#rm -f $MAKEOKFILE
     
    2383824322
    2383924323MUMPSDIR=MUMPS
     24324MUMPSOBJDIR=`pwd`
     24325MUMPSSRCDIR=$abs_source_dir/$coin_mumpsobjdir/$MUMPSDIR
     24326
     24327
     24328
    2384024329
    2384124330
     
    2386124350echo "${ECHO_T}$MY_FDEFS" >&6
    2386224351
    23863                     ac_config_files="$ac_config_files Makefile mumps_addlibs.txt"
     24352                                        ac_config_files="$ac_config_files Makefile mumps_addlibs.txt mumps.pc mumps-uninstalled.pc"
    2386424353
    2386524354
     
    2408924578Usually this means the macro was only invoked conditionally." >&5
    2409024579echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24580Usually this means the macro was only invoked conditionally." >&2;}
     24581   { (exit 1); exit 1; }; }
     24582fi
     24583if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
     24584  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
     24585Usually this means the macro was only invoked conditionally." >&5
     24586echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
     24587Usually this means the macro was only invoked conditionally." >&2;}
     24588   { (exit 1); exit 1; }; }
     24589fi
     24590if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24591  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24592Usually this means the macro was only invoked conditionally." >&5
     24593echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24594Usually this means the macro was only invoked conditionally." >&2;}
     24595   { (exit 1); exit 1; }; }
     24596fi
     24597if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
     24598  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     24599Usually this means the macro was only invoked conditionally." >&5
     24600echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
    2409124601Usually this means the macro was only invoked conditionally." >&2;}
    2409224602   { (exit 1); exit 1; }; }
     
    2454725057  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    2454825058  "mumps_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES mumps_addlibs.txt" ;;
     25059  "mumps.pc" ) CONFIG_FILES="$CONFIG_FILES mumps.pc" ;;
     25060  "mumps-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES mumps-uninstalled.pc" ;;
    2454925061  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2455025062  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     
    2473225244s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2473325245s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     25246s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     25247s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     25248s,@BLAS_LIBS@,$BLAS_LIBS,;t t
     25249s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
     25250s,@BLAS_DATA@,$BLAS_DATA,;t t
     25251s,@REQUIREDPACKAGES@,$REQUIREDPACKAGES,;t t
    2473425252s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
    2473525253s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
     25254s,@METIS_LIBS@,$METIS_LIBS,;t t
     25255s,@METIS_CFLAGS@,$METIS_CFLAGS,;t t
     25256s,@METIS_DATA@,$METIS_DATA,;t t
     25257s,@COIN_HAS_METIS_TRUE@,$COIN_HAS_METIS_TRUE,;t t
     25258s,@COIN_HAS_METIS_FALSE@,$COIN_HAS_METIS_FALSE,;t t
    2473625259s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
    2473725260s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
    24738 s,@COIN_HAS_METIS_TRUE@,$COIN_HAS_METIS_TRUE,;t t
    24739 s,@COIN_HAS_METIS_FALSE@,$COIN_HAS_METIS_FALSE,;t t
    2474025261s,@MUMPSDIR@,$MUMPSDIR,;t t
     25262s,@MUMPSOBJDIR@,$MUMPSOBJDIR,;t t
     25263s,@MUMPSSRCDIR@,$MUMPSSRCDIR,;t t
    2474125264s,@MY_FDEFS@,$MY_FDEFS,;t t
    2474225265s,@LIBEXT@,$LIBEXT,;t t
  • ThirdParty/Mumps/branches/BSPsplit/configure.ac

    r1391 r1435  
    9393AC_COIN_INIT_AUTO_TOOLS
    9494
    95 # Check for user-provided BLAS library
    96 AC_COIN_HAS_BLAS
     95#fake that pkg-config is not available
     96#AC_COIN_HAS_PKGCONFIG
     97#PKG_CONFIG=""
    9798
    98 # Check if Metis is available
    99 AC_COIN_HAS_METIS
     99AC_COIN_HAS_MODULE(Blas, Blas)
     100AC_COIN_HAS_MODULE(Metis, Metis >= 4.0)
     101
     102#Fallback if pkgconfig not available or projects do not have .pc files
     103if test "$coin_has_blas" != yes ; then
     104  AC_COIN_HAS_BLAS
     105else
     106  #to make configure happy, since COIN_BUILD_BLAS is defined by AC_COIN_HAS_BLAS
     107  AM_CONDITIONAL([COIN_BUILD_BLAS],[test "$coin_has_blas" = yes])
     108fi
     109if test "$coin_has_metis" != yes ; then
     110  AC_COIN_HAS_METIS
     111fi
     112
    100113if test "$coin_has_metis" = yes; then
    101114  MY_DEFS="$MY_DEFS -Dmetis"
     
    110123
    111124# Verify that we can compile Fortran 90 code
    112 #if test "$use_mumps" = BUILD; then
    113   AC_MSG_CHECKING([whether we can compile Fortran 90 code])
    114   AC_LANG_PUSH(Fortran 77)
    115   AC_COMPILE_IFELSE([        MODULE BLA
    116         DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
    117         END MODULE BLA],[can_f90=yes],[can_f90=no])
    118   AC_MSG_RESULT([$can_f90])
    119   AC_LANG_POP(Fortran 77)
    120   if test $can_f90 = no; then
    121     AC_MSG_ERROR([Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS])
    122 #    use_mumps=
    123   fi
    124 #fi
     125AC_MSG_CHECKING([whether we can compile Fortran 90 code])
     126AC_LANG_PUSH(Fortran 77)
     127AC_COMPILE_IFELSE([        MODULE BLA
     128      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     129      END MODULE BLA],[can_f90=yes],[can_f90=no])
     130AC_MSG_RESULT([$can_f90])
     131AC_LANG_POP(Fortran 77)
     132if test $can_f90 = no; then
     133  AC_MSG_ERROR([Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS])
     134fi
    125135
    126136#rm -f $MAKEOKFILE
     
    135145
    136146MUMPSDIR=MUMPS
     147MUMPSOBJDIR=`pwd`
     148MUMPSSRCDIR=$abs_source_dir/$coin_mumpsobjdir/$MUMPSDIR
     149
    137150AC_SUBST(MUMPSDIR)
     151AC_SUBST(MUMPSOBJDIR)
     152AC_SUBST(MUMPSSRCDIR)
    138153
    139154# Fix Fortran preprocessor flags
     
    154169AC_MSG_RESULT([$MY_FDEFS])
    155170
    156 AC_CONFIG_FILES([Makefile mumps_addlibs.txt])
     171AC_CONFIG_FILES([Makefile mumps_addlibs.txt mumps.pc mumps-uninstalled.pc])
    157172
    158173AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.