Skip to content

Commit

Permalink
Only check for mpb_printf_callback if we are building with MPB (NanoC…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan authored and stevengj committed Jun 4, 2019
1 parent 167fc5b commit 1e7e16b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ if test $have_mpb = maybe; then
fi

AM_CONDITIONAL(WITH_MPB, test "x$have_mpb" = "xyes")
# check for mpb_printf_callback
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <mpb.h>]], [mpb_printf_callback = 0;])],
AC_DEFINE([HAVE_MPB_PRINTF_CALLBACK], [1], [If we have the mpb_printf_callback variable]))
if test "x$have_mpb" = "xyes"; then
# check for mpb_printf_callback
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <mpb.h>]], [mpb_printf_callback = 0;])],
AC_DEFINE([HAVE_MPB_PRINTF_CALLBACK], [1], [If we have the mpb_printf_callback variable]))
fi

##############################################################################
# GNU Scientific Library
Expand Down

0 comments on commit 1e7e16b

Please sign in to comment.