make ltmain.sh unless there's an ltmain.in to do it with.
This prevents make/configure loops caused by Automake's
dependency rules.
+2004-01-23 Scott James Remnant <scott@netsplit.com>
+
+ * libtool.m4 (AC_LIBTOOL_CONFIG): Don't attempt to
+ make ltmain.sh unless there's an ltmain.in to do it with.
+ This prevents make/configure loops caused by Automake's
+ dependency rules.
+
2004-01-23 Scott James Remnant <scott@netsplit.com>
* libtoolize.in: Fix libtoolize so the cd command run when
# If there is no Makefile yet, we rely on a make rule to execute
# `config.status --recheck' to rerun these tests and create the
# libtool script then.
- test -f Makefile && make "$ltmain"
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
fi
])# AC_LIBTOOL_CONFIG