Forbid spaces in install suffix

To avoid potential issues with removing unintended files after 'make
uninstall', spaces are no longer allowed in install suffix. It's worth
mentioning, that with GNU Make on Linux spaces in install suffix didn't
work anyway, leading to errors in the Makefile. But being verbose
about this restriction makes it more transparent for the developers.
This commit is contained in:
Alex Lapenkou 2022-01-18 14:08:01 -08:00 committed by Alexander Lapenkov
parent 640c3c72e6
commit 36a09ba2c7

View File

@ -1109,7 +1109,10 @@ AC_SUBST([private_namespace])
dnl Do not add suffix to installed files by default. dnl Do not add suffix to installed files by default.
AC_ARG_WITH([install_suffix], AC_ARG_WITH([install_suffix],
[AS_HELP_STRING([--with-install-suffix=<suffix>], [Suffix to append to all installed files])], [AS_HELP_STRING([--with-install-suffix=<suffix>], [Suffix to append to all installed files])],
[INSTALL_SUFFIX="$with_install_suffix"], [case "$with_install_suffix" in
*\ * ) AC_MSG_ERROR([Install suffix should not contain spaces]) ;;
* ) INSTALL_SUFFIX="$with_install_suffix" ;;
esac],
[INSTALL_SUFFIX=] [INSTALL_SUFFIX=]
) )
install_suffix="$INSTALL_SUFFIX" install_suffix="$INSTALL_SUFFIX"