X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=49f3a0b321a88051c1bc9c080cc351ac492efb0c;hb=cb962ee9edc95f73507d35f0714ec8aa68c5295c;hp=738ca16a5742b482681012028a69cdb9c5a6dfbd;hpb=06f9ee45954e5e71fa7f6262dbf37defa1dbf996;p=pspp diff --git a/configure.ac b/configure.ac index 738ca16a57..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]) @@ -36,9 +46,17 @@ AC_CHECK_LIB(gnugetopt,getopt_long) AC_CHECK_FUNC(getopt_long,, AC_MSG_ERROR(`This application depends upon getopt_long')) +AC_ARG_WITH(ncurses, +[ --without-ncurses don't compile in ncurses command line editing]) + + +if test "x$with_ncurses" = x"yes"; then AC_CHECK_LIB(ncurses, tgetent, LIBS="-lncurses $LIBS" termcap=yes, AC_CHECK_LIB(termcap, tgetent, LIBS="-ltermcap $LIBS" termcap=yes, termcap=no)) +fi + + if test "$termcap" = yes; then AC_CHECK_HEADERS(termcap.h) AC_DEFINE(HAVE_LIBTERMCAP, 1, @@ -68,6 +86,7 @@ AC_HEADER_TIME AC_C_CONST AC_C_INLINE +AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_STRUCT_TM