X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=configure.in;h=7ac1006aaecec30f20c25b69d1fafcdb53cddc59;hb=29712efb58a9520824b4b0d7d1b9b9e2d1f59694;hp=5f2325d04bd34c2f753d9d673fbed88735a177ab;hpb=5f600a045603ac743f0b327a3f2990b830e6033e;p=pkg%2Fabook.git diff --git a/configure.in b/configure.in index 5f2325d..7ac1006 100644 --- a/configure.in +++ b/configure.in @@ -137,18 +137,16 @@ AC_ARG_ENABLE(vformat, [ --enable-vformat Use libvformat is available no) vformat=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-vformat) ;; esac], [vformat=false]) -VFORMAT="no" if test x$vformat = xtrue; then AC_CHECK_HEADER([vf_iface.h], [ AC_CHECK_LIB([vformat], [vf_read_file], [ MODULES="$MODULES m_vcf" - VFORMAT="yes" - LDFLAGS="-lvformat $LDFLAGS" - CFLAGS="-DVFORMAT=1 $CFLAGS" + AC_DEFINE(HAVE_VFORMAT,1,[Defined if the vformat library is available]) + have_vformat=yes ]) ]) fi -AC_SUBST(VFORMAT) +AM_CONDITIONAL(ENABLE_VFORMAT_SUPPORT,test x"$have_vformat" = "xyes") dnl ------------------------- dnl end of vformat detection