瀏覽代碼

Fix issues with detecting Fortran libraries

Dhairya Malhotra 7 年之前
父節點
當前提交
eeace813a7
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      configure.ac

+ 6 - 0
configure.ac

@@ -163,10 +163,16 @@ AC_CHECK_FFTWF
 #    CPPFLAGS="${PETSC_BLASLAPACK_INCLUDE} $CPPFLAGS"
 #  fi
 #fi
+CFLAGS_save=$CFLAGS
+CXXFLAGS_save=$CXXFLAGS
+CFLAGS=""
+CXXFLAGS=""
 AX_BLAS(acx_blas_ok=yes, AC_MSG_ERROR([Cannot find BLAS library.
                     Please specify the location of the library using: --with-blas=LIB]))
 AX_LAPACK(acx_lapack_ok=yes, AC_MSG_ERROR([Cannot find LAPACK library.
                     Please specify the location of the library using: --with-lapack=LIB]))
+CFLAGS=$CFLAGS_save
+CXXFLAGS=$CXXFLAGS_save
 AC_SUBST(LAPACK_LIBS)
 AC_SUBST(BLAS_LIBS)
 AC_SUBST(FLIBS)