--- parser3/aclocal.m4 2002/09/19 13:16:43 1.8 +++ parser3/aclocal.m4 2002/12/16 10:35:11 1.19 @@ -11,6 +11,7 @@ dnl even the implied warranty of MERCHAN dnl PARTICULAR PURPOSE. + # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for # the libltdl convenience library and INCLTDL to the include flags for # the libltdl header and adds --enable-ltdl-convenience to the @@ -22,6 +23,11 @@ dnl PARTICULAR PURPOSE. # flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case "$enable_ltdl_convenience" in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.a INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) ])