+2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libltdl/m4/ltdl.m4 (LT_WITH_LTDL, LTDL_CONVENIENCE)
+ (LTDL_INSTALLABLE): Use less quoting for expanded LIBLTDL,
+ LTDLINCL. Use m4_default instead of m4_if, to work
+ around AU_ALIAS bug with empty macro arguments.
+ (LTDL_INIT): Likewise.
+ * libltdl/m4/ltoptions.m4 (_LT_WITH_PIC): Likewise.
+ * TODO, HACKING: Updated.
+
2005-09-10 Gary V. Vaughan <gary@gnu.org>
* libtoolize.m4sh (TAR): Allow the user to override the tar
if test "x$enable_ltdl_install" != xyes; then
# If the user did not specify an installable libltdl, then default
# to a convenience lib.
- LTDL_CONVENIENCE([$1])
+ LTDL_CONVENIENCE(m4_default([$1], [libltdl]))
fi
if test "x$with_included_ltdl" = xno; then
AC_MSG_CHECKING([whether to use included libltdl])
AC_MSG_RESULT([$with_included_ltdl])
-AC_CONFIG_SUBDIRS(m4_if($#, 1, [$1], [libltdl]))
+AC_CONFIG_SUBDIRS(m4_default([$1], [libltdl]))
])# LT_WITH_LTDL
# Old name:
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
-LIBLTDL='${top_builddir}/'m4_if($#, 1, [$1], ['libltdl'])/libltdlc.la
-LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl'])
+LIBLTDL='${top_builddir}/'m4_default([$1], [libltdl])/libltdlc.la
+LTDLINCL='-I${top_srcdir}/'m4_default([$1], [libltdl])
AC_SUBST([LIBLTDL])
AC_SUBST([LTDLINCL])
])
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
- LIBLTDL='${top_builddir}/'m4_if($#, 1, [$1], ['libltdl'])/libltdl.la
- LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl'])
+ LIBLTDL='${top_builddir}/'m4_default([$1], [libltdl])/libltdl.la
+ LTDLINCL='-I${top_srcdir}/'m4_default([$1], [libltdl])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
# Perform all the checks necessary for compilation of the ltdl objects
# -- including compiler checks and header checks.
AC_DEFUN([LTDL_INIT],
-[m4_if([$#], 1, [m4_divert_push([DEFAULTS])dnl
+[m4_ifval([$1], [m4_divert_push([DEFAULTS])dnl
# libltdl will be built in the named DIRECTORY, relative to $top_builddir.
lt_ltdl_dir='$1'
m4_divert_pop([DEFAULTS])])dnl