Fix typo and add verbosity in function-capable shell test
authorKen Raeburn <raeburn@mit.edu>
Wed, 20 Jun 2007 06:54:59 +0000 (06:54 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 20 Jun 2007 06:54:59 +0000 (06:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19608 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in

index 518fdba065e294d6bc391f8dc13d2fffde293096..74b6163dea819219b0bdff242a2eea1b12366d3a 100644 (file)
@@ -621,8 +621,13 @@ AC_PATH_PROG(SH,sh,false)
 AC_PATH_PROG(SH5,sh5,false)
 AC_PATH_PROG(BASH,bash,false)
 for prog in $SH $SH5 $BASH; do
-  if $prog -c 'foo() { true; } foo' >/dev/null 2>&1; then
-    FCTSH=$prog ; break
+  AC_MSG_CHECKING(if $prog supports functions)
+  if $prog -c 'foo() { true; }; foo' >/dev/null 2>&1; then
+    AC_MSG_RESULT(yes)
+    FCTSH=$prog
+    break
+  else
+    AC_MSG_RESULT(no)
   fi
 done
 AC_SUBST(FCTSH)