configure.ac: Use echo|tr to change PROGRAM_PREFIX case

The ${VAR,} syntax seems to be new to Bash 4, and thus not portable
to older versions or other shells.
This commit is contained in:
Mike Swanson 2017-03-17 11:22:06 -07:00
parent 7f4e1ae124
commit bc87379f59

View file

@ -141,10 +141,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
WINDOWS_RC_VERSION=`echo $PACKAGE_VERSION | sed 's/-.*//; s/\./, /g; s/$/, 0/'`
PROGRAM_PREFIX=${PACKAGE_SHORTNAME,}-
dnl Without a hyphen. This is used for the bash-completion scripts.
PROGRAM_SPREFIX=${PACKAGE_SHORTNAME,}
PROGRAM_SPREFIX=$(echo $PACKAGE_SHORTNAME | tr A-Z a-z)
dnl With a hyphen, used almost everywhere else.
PROGRAM_PREFIX=${PROGRAM_SPREFIX}-
AC_SUBST(PROGRAM_PREFIX)
AC_DEFINE_UNQUOTED(PROGRAM_PREFIX, "$PROGRAM_PREFIX",