Allow autogen.sh to do the right thing with newer libtool/autoconf
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 19 Jan 2013 18:43:40 +0000 (13:43 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 19 Jan 2013 18:43:40 +0000 (13:43 -0500)
* autogen.sh (libtool_ver): Force the run of libtoolize --copy
--ltdl before autoreconf so that sxe-libtool.m4 does not cause
an autoreconf error (and therefore no configure generated)

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
autogen.sh

index b31eb50..0aaedfd 100755 (executable)
@@ -149,6 +149,12 @@ else
     LIBTOOLIZE=libtoolize
 fi
 
+if test ! -d libtldl; then
+        # Force run of libtoolize before autoreconf because newer autoconf
+        # don't deal well with our inclusion of libtldl/m4 in sxe-libtool.m4
+        # if libltdl dir does not exist yet.
+       $LIBTOOLIZE --copy --ltdl > /dev/null 2>&1
+fi
 autoreconf $FORCE --verbose --install -Wall
 
 # hack-o-matic.  Using gmp's config.{guess,sub} lets us have properer