dnl dnl LIDIA_PROG_LIBTOOL dnl -- a wrapper for AC_PROG_LIBTOOL that works around some bugs dnl dnl AC_PROG_LIBTOOL does its actual work in an AC_REQUIRE, therefore the dnl wrapper must be put into AC_REQUIREs too, in order to be placed right. dnl dnl Excuse the non-indentation, it makes the `configure' code look better. dnl AC_DEFUN([LIDIA_PROG_LIBTOOL_PRE], [# Libtool 1.4's tests assume that $ac_compile contains '$CFLAGS' :-/ lidia_compile=$ac_compile lidia_CFLAGS=$CFLAGS case "$ac_compile " in *' $CFLAGS '* | *' ${CFLAGS} '*) ;; *) CFLAGS= ac_compile=`echo "$ac_compile " | sed 's:.*FLAGS}\? :&$CFLAGS :; s: $::'` ;; esac]) AC_DEFUN([LIDIA_PROG_LIBTOOL_POST], [# Restore the variables that were manipulated for the Libtool tests ac_compile=$lidia_compile CFLAGS=$lidia_CFLAGS]) AC_DEFUN([LIDIA_PROG_LIBTOOL], [dnl AC_REQUIRE([LIDIA_PROG_LIBTOOL_PRE])dnl AC_REQUIRE([AC_PROG_LIBTOOL])dnl AC_REQUIRE([LIDIA_PROG_LIBTOOL_POST])dnl ])