X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a051c75af568971246f7349d5d75026cb6d144c1..9c6eb97a9af6205a25d94e8dc319816ae54673c1:/configure.ac diff --git a/configure.ac b/configure.ac index ee7a572dbc..9a696b5fcf 100644 --- a/configure.ac +++ b/configure.ac @@ -176,7 +176,20 @@ fi ## SG_CONFIGURE_PART(Checking extra libraries dependencies...) + +AC_MSG_CHECKING(for csdp) SIMGRID_DEP="" +sdp=no +AC_CHECK_LIB(sdp,sdp,csdp=yes, csdp=no,-llapack -lblas -lm) +if test "x$csdp" = xyes; then + SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm" + AC_MSG_RESULT(Found working sdp library.) + AC_DEFINE(HAVE_SDP, 1, [Indicates whether printf("%s",NULL) works]) +else + AC_MSG_RESULT(Could not find any working sdp library.) +fi; +AM_CONDITIONAL(HAVE_SDP,test x$csdp != xno) + AC_SUBST([SIMGRID_DEP]) GRAS_DEP=""