summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-02 15:56:49 +0000
committermidipix <writeonce@midipix.org>2021-05-02 15:56:49 +0000
commit1ca682a4ca64b67733a66f41ca244897a833c978 (patch)
tree3c43154dcd598ad611de27044a125c390892799f
parent32fd48eab4d183042b5557ea03d06cc9ba0248d5 (diff)
downloadslibtool-1ca682a4ca64b67733a66f41ca244897a833c978.tar.bz2
slibtool-1ca682a4ca64b67733a66f41ca244897a833c978.tar.xz
slibtool.m4: slibtool_set_flavor(): support backward-compatible heuristics.
-rw-r--r--m4/slibtool.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index 4eb283b..9bca38c 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -146,6 +146,8 @@ slibtool_set_flavor()
*)
SLIBTOOL='false'
+ slibtool_enable_shared='no'
+ slibtool_enable_static='no'
;;
esac
@@ -156,6 +158,13 @@ slibtool_set_flavor()
enable_win32_dll=${slibtool_enable_win32_dll}
enable_fast_install=${slibtool_enable_fast_install}
pic_mode=${slibtool_pic_mode}
+
+ # backward-compatible heuristics support
+ printf "%s\n%s=%s\n%s=%s\n" \
+ '#!/dev/null' \
+ 'build_libtool_libs' "${slibtool_enable_shared}" \
+ 'build_old_libs' "${slibtool_enable_static}" \
+ > libtool
}
])