From: Jim Meyering Date: Sun, 9 Jun 2013 22:16:53 +0000 (-0700) Subject: build: use more portable shell syntax in search of working shell X-Git-Tag: v1.6~3 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=622e9b1d024da1343b83fc47fb1891e1d245add3;p=debian%2Fgzip build: use more portable shell syntax in search of working shell * m4/shell.m4: Adjust sh/case syntax not to evoke a syntax error from Solaris 10's /bin/sh. --- diff --git a/m4/shell.m4 b/m4/shell.m4 index fbde696..017aa27 100644 --- a/m4/shell.m4 +++ b/m4/shell.m4 @@ -37,7 +37,7 @@ AC_DEFUN([AC_PROG_SHELL], ac_cv_path_shell=no case $SHELL in - (/*) + /*) rm -f conftest.c if ("$SHELL" -c "$ac_command") 2>/dev/null; then ac_cv_path_shell=$SHELL @@ -45,7 +45,7 @@ AC_DEFUN([AC_PROG_SHELL], esac case $ac_cv_path_shell in - (no) + no) # Prefer shells that are more likely to be installed in the # same place on all hosts of this platform. Therefore, prefer # shells in /bin and /usr/bin to shells in the installer's @@ -57,7 +57,7 @@ AC_DEFUN([AC_PROG_SHELL], do IFS=$as_save_IFS case $as_dir in - (/*) + /*) for ac_base in sh bash ksh sh5; do rm -f conftest.c if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then @@ -66,7 +66,7 @@ AC_DEFUN([AC_PROG_SHELL], fi done case $ac_cv_path_shell in - (/*) break + /*) break esac esac done