[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.status cases error for non-bash
From: |
Jay K |
Subject: |
config.status cases error for non-bash |
Date: |
Wed, 7 Jul 2021 10:44:06 +0000 |
./config.status: syntax error at line 1179: `(' unexpected
cases in ncurses aclocal.m4 all/many have leading parens.
I've never seen that. Though it does look nice, to balance them.
I guess it is bash-ism?
Fix it?
This is just the start, I can do it all if tacitly approved.
diff --git a/aclocal.m4 b/aclocal.m4
index d48cde0c..fecda97d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -71,7 +71,7 @@ dnl Provide configure-script defaults for different ncurses
ABIs.
AC_DEFUN([CF_ABI_DEFAULTS],[
AC_REQUIRE([CF_NCURSES_WITH_ABI_VERSION])
case x$cf_cv_abi_version in
-(x[[6789]])
+x[[6789]])
cf_dft_ext_colors=yes
cf_dft_ext_const=yes
cf_dft_ext_mouse=yes
@@ -177,11 +177,11 @@ cf_new_extra_cppflags=
for cf_add_cflags in $1
do
case "$cf_fix_cppflags" in
-(no)
+no)
case "$cf_add_cflags" in
(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
case "$cf_add_cflags" in
- (-D*)
+ -D*)
cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e
's/^-D[[^=]]*='\''\"[[^"]]*//'`
test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
@@ -198,11 +198,11 @@ case "$cf_fix_cppflags" in
;;
esac
case "$CPPFLAGS" in
- (*$cf_add_cflags)
+ *$cf_add_cflags)
Thank you,
- Jay
- config.status cases error for non-bash,
Jay K <=