From 3beedcad96d3e7b646274a246b551f15892894b7 Mon Sep 17 00:00:00 2001 From: Michele Martone Date: Fri, 5 Nov 2010 17:19:09 +0000 Subject: [PATCH] psblas3: configure changes for librsb interoperability. --- configure | 18 ++++++++++++++++++ configure.ac | 10 ++++++++++ 2 files changed, 28 insertions(+) diff --git a/configure b/configure index 794fa331..42095046 100755 --- a/configure +++ b/configure @@ -742,6 +742,7 @@ with_module_path enable_dependency_tracking with_blas with_lapack +with_rsb with_metis ' ac_precious_vars='build_alias @@ -1404,6 +1405,7 @@ Optional Packages: prepend to [MODULE_PATH] --with-blas= use BLAS library --with-lapack= use LAPACK library + --with-rsb Specify Recursive Sparse BLAS library --with-metis=LIB Specify -lMETISLIBNAME or the absolute library filename. @@ -8772,6 +8774,22 @@ fi #AC_CHECK_LIB(umf,umfpack_di_solve,psblas_cv_have_umfpack=yes,psblas_cv_have_umfpack=no,[amd]) +# Check whether --with-rsb was given. +if test "${with_rsb+set}" = set; then : + withval=$with_rsb; if test x$withval = xno; then +want_rsb_libs= ; else if test x$withval = xyes ; then want_rsb_libs=-lrsb ; else want_rsb_libs="$withval" ; fi ; FDEFINES="$psblas_cv_define_prepend-DHAVE_LIBRSB $FDEFINES" ; fi +else + want_rsb_libs="" +fi + +if test x$want_rsb_libs != x ; then + # FIXME ! temporary for OpenMP + want_rsb_libs="`/usr/local/bin/librsb-config --static --ldflags` -fopenmp $want_rsb_libs" +fi +RSB_LIBS="$want_rsb_libs" +LIBS="$RSB_LIBS ${LIBS}" + + # Check whether --with-metis was given. if test "${with_metis+set}" = set; then : withval=$with_metis; psblas_cv_metis=$withval diff --git a/configure.ac b/configure.ac index 76789e9f..dd86fed9 100755 --- a/configure.ac +++ b/configure.ac @@ -652,6 +652,16 @@ PAC_MAKE_IS_GNUMAKE # Note : also umfdi_local_search, ... #AC_CHECK_LIB(umf,umfpack_di_solve,psblas_cv_have_umfpack=yes,psblas_cv_have_umfpack=no,[amd]) +AC_ARG_WITH(rsb, AC_HELP_STRING([--with-rsb], [Specify Recursive Sparse BLAS library]), [if test x$withval = xno; then +want_rsb_libs= ; else if test x$withval = xyes ; then want_rsb_libs=-lrsb ; else want_rsb_libs="$withval" ; fi ; FDEFINES="$psblas_cv_define_prepend-DHAVE_LIBRSB $FDEFINES" ; fi], [want_rsb_libs=""]) +if test x$want_rsb_libs != x ; then + # FIXME ! temporary for OpenMP + want_rsb_libs="`/usr/local/bin/librsb-config --static --ldflags` -fopenmp $want_rsb_libs" +fi +RSB_LIBS="$want_rsb_libs" +LIBS="$RSB_LIBS ${LIBS}" +dnl AC_CHECK_HEADERS([rsb.h], [ LIBS="${LIBS} $want_rsb_libs"], []) + AC_ARG_WITH(metis, AC_HELP_STRING([--with-metis=LIB], [Specify -lMETISLIBNAME or the absolute library filename.]), [psblas_cv_metis=$withval], [psblas_cv_metis=''])