aboutsummaryrefslogtreecommitdiffstats
path: root/conf/m4/plptools/AC_REMOVE_FORBIDDEN.m4
diff options
context:
space:
mode:
Diffstat (limited to 'conf/m4/plptools/AC_REMOVE_FORBIDDEN.m4')
-rw-r--r--conf/m4/plptools/AC_REMOVE_FORBIDDEN.m423
1 files changed, 0 insertions, 23 deletions
diff --git a/conf/m4/plptools/AC_REMOVE_FORBIDDEN.m4 b/conf/m4/plptools/AC_REMOVE_FORBIDDEN.m4
deleted file mode 100644
index 87a4b40..0000000
--- a/conf/m4/plptools/AC_REMOVE_FORBIDDEN.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-dnl AC_REMOVE_FORBIDDEN removes forbidden arguments from variables
-dnl use: AC_REMOVE_FORBIDDEN(CC, [-forbid -bad-option whatever])
-dnl it's all white-space separated
-AC_DEFUN([AC_REMOVE_FORBIDDEN],
-[ __val=$$1
- __forbid=" $2 "
- if test -n "$__val"; then
- __new=""
- ac_save_IFS=$IFS
- IFS=" "
- for i in $__val; do
- case "$__forbid" in
- *" $i "*) AC_MSG_WARN([found forbidden $i in $1, removing it]) ;;
- *) # Careful to not add spaces, where there were none, because otherwise
- # libtool gets confused, if we change e.g. CXX
- if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
- esac
- done
- IFS=$ac_save_IFS
- $1=$__new
- fi
-])
-