From 622e9b1d024da1343b83fc47fb1891e1d245add3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 9 Jun 2013 15:16:53 -0700 Subject: [PATCH] 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. --- m4/shell.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.2