summaryrefslogtreecommitdiffhomepage
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-17 07:02:19 +0000
committermidipix <writeonce@midipix.org>2025-06-17 07:04:18 +0000
commit8567306be556c14b2b99098f9510f50d3322a842 (patch)
tree46ec840437739a2f33c10871aea0f85b9357caa4 /project/config
parent48015f5396f0a536b5c21fae51d0326f74922495 (diff)
downloadslibtool-8567306be556c14b2b99098f9510f50d3322a842.tar.bz2
slibtool-8567306be556c14b2b99098f9510f50d3322a842.tar.xz
project: added the --m4-dir switch (install aux files to a custom location).
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 6510abd..20c89b1 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -28,6 +28,10 @@ _mb_quotes='\"'
for arg ; do
case "$arg" in
+ --m4-dir=*)
+ m4_dir=${arg#*=}
+ ;;
+
--with-preferred-host-ar=*)
slbt_preferred_host_ar=${_mb_quotes}${arg#*=}${_mb_quotes}
;;
@@ -52,11 +56,20 @@ done
cfgdefs_output_custom_defs()
{
+ if [ -z "${m4_dir:-}" ]; then
+ m4_dir="${mb_datadir}/${mb_package}"
+ fi
+
if [ $mb_cfgtest_cfgtype = 'host' ]; then
cfgtest_cflags_append -DSLBT_PREFERRED_HOST_AR=${slbt_preferred_host_ar:-0}
cfgtest_cflags_append -DSLBT_PREFERRED_HOST_AS=${slbt_preferred_host_as:-0}
cfgtest_cflags_append -DSLBT_PREFERRED_HOST_NM=${slbt_preferred_host_nm:-0}
cfgtest_cflags_append -DSLBT_PREFERRED_HOST_RANLIB=${slbt_preferred_host_ranlib:-0}
+
+ cfgtest_newline
+ cfgtest_comment '# m4,aux'
+ mb_cfgtest_makevar='M4_DIR'
+ cfgtest_makevar_set "$m4_dir"
fi
}