diff --git a/configure.in b/configure.in index 90b589a5e0..9f41c47da1 100644 --- a/configure.in +++ b/configure.in @@ -954,7 +954,7 @@ dnl Test for libpng dnl Test for libjasper if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then - AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg) + AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg -lm) fi if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then