X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=49f3a0b321a88051c1bc9c080cc351ac492efb0c;hb=cb962ee9edc95f73507d35f0714ec8aa68c5295c;hp=7921bcc345025de9b01a823645cbd76b31711801;hpb=fecdcd43e4355c3573733d18951d9eb9c6ed19f3;p=pspp diff --git a/configure.ac b/configure.ac index 7921bcc345..49f3a0b321 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,16 @@ dnl Checks for libraries. AC_SYS_LARGEFILE AC_FUNC_FSEEKO AC_CHECK_LIB(m, sin) +AC_ARG_WITH(libplot, [ --without-libplot don't compile in support of charts (using libplot)]) + +if test x"$with_libplot" != x"no" ; then + AC_CHECK_LIB(plot, pl_newpl_r,, + AC_MSG_ERROR([You must install libplot (or use --without-libplot)]) + ) +fi +AM_CONDITIONAL(WITHCHARTS, test x"$with_libplot" != x"no") + + AC_CHECK_LIB(gmp, mpf_get_str,, AC_CHECK_LIB(gmp, __gmpf_get_str,, AC_MSG_ERROR([You must install libgmp])