]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2972: LTDL 2.2.6b compile errors
authorAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 5 Jul 2010 11:00:00 +0000 (05:00 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 5 Jul 2010 11:00:00 +0000 (05:00 -0600)
Bundle a slightly hacked version of libltdl/ltdl.h which does not use <>
for inclusion of its dependency files. This makes it portable to OS with
older libtool versions.

bootstrap.sh

index 5fdade1cd7aba5206e1375497bc28484200f53aa..2ccde1a50368f768b210e4adfc1752c5eb33f604 100755 (executable)
@@ -101,6 +101,10 @@ bootstrap_libtoolize() {
         chmod u+w $makefile
         mv $makefile.new $makefile
         chmod u-w $makefile
+
+        # Libtool 2.2.6b we bundle is slightly broken with non-portable dependencies
+        sed 's/<libltdl/\"libltdl/g' $src/ltdl.h | sed 's/.h>/.h\"/g' > $src/ltdl.h.new;
+        mv $src/ltdl.h.new $src/ltdl.h
     fi
 }