Hi Yavor.
> +have_jpeglib=no
> +AC_CHECK_LIB([jpeg],[jpeg_std_error],[have_jpeglib=yes],,)
> +
> +if test "x$have_jpeglib" = "xyes"; then
> + LIBS="-ljpeg $LIBS"
> + AC_DEFINE([HAVE_JPEGLIB], [1], [The jpeglib library is available])
> +fi
> +AM_CONDITIONAL([JPEGLIB], [test "x$have_jpeglib" = "xyes"])
Sorry to interfere, but why not simply:
AC_CHECK_LIB([jpeg], [jpeg_std_error], [], [have_jpeglib=no])
AM_CONDITIONAL([JPEGLIB], [test "$have_jpeglib" != "no"])
...
Using JPEG filter? ${ac_cv_lib_jpeg_jpeg_std_error}
Indeed it is a good suggestion :) I just changed the existing checking
for libraries in configure.ac in the trunk.
Thanks!