aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libltdl/libtoolize-ltdl-no-la
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libltdl/libtoolize-ltdl-no-la
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libltdl/libtoolize-ltdl-no-la')
-rwxr-xr-xvcpkg/ports/libltdl/libtoolize-ltdl-no-la19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/libltdl/libtoolize-ltdl-no-la b/vcpkg/ports/libltdl/libtoolize-ltdl-no-la
new file mode 100755
index 0000000..9443725
--- /dev/null
+++ b/vcpkg/ports/libltdl/libtoolize-ltdl-no-la
@@ -0,0 +1,19 @@
+#!/bin/sh
+me=libtoolize-ltdl-no-la
+if test -n "$VCPKG_LIBLTDL_LIBTOOLIZE"; then
+ libtoolize="${VCPKG_LIBLTDL_LIBTOOLIZE}"
+elif hash glibtoolize 2>/dev/null; then
+ libtoolize=glibtoolize
+else
+ libtoolize=libtoolize
+fi
+echo "$me: running: ${libtoolize} $*" 1>&2
+"${libtoolize}" "$@" &&
+echo "$me: disabling libltdl.la check in m4/ltdl.m4" # most distros removes the la file
+if test -f m4/ltdl.m4 ; then
+ sed -e 's,test -f "\$with_ltdl_lib/libltdl.la",test -d "\$with_ltdl_lib",' m4/ltdl.m4 > m4/_ltdl.m4.tmp &&
+ cp m4/_ltdl.m4.tmp m4/ltdl.m4 &&
+ rm m4/_ltdl.m4.tmp
+else
+ echo "$me: Cannot find m4/libltdl.m4" 1>&2
+fi