Explorar o código

Fix possible bashism in test.
Author: doogie
Date: 1999-12-10 04:25:33 GMT
Fix possible bashism in test.

Arch Librarian %!s(int64=22) %!d(string=hai) anos
pai
achega
36c62cf8e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      buildlib/tools.m4

+ 1 - 1
buildlib/tools.m4

@@ -19,7 +19,7 @@ AC_DEFUN(ah_NUM_CPUS,
 	AC_ARG_WITH(cpus,
 	AC_ARG_WITH(cpus,
 		[  --with-cpus             The number of cpus to be used for building(see --with-procs, default 1)],
 		[  --with-cpus             The number of cpus to be used for building(see --with-procs, default 1)],
 		[if test "$withval" = "yes"; then
 		[if test "$withval" = "yes"; then
-			if test "$GETCONF";then
+			if test ! -z "$GETCONF";then
 				NUM_CPUS=`$GETCONF _NPROCESSORS_ONLN 2>/dev/null`
 				NUM_CPUS=`$GETCONF _NPROCESSORS_ONLN 2>/dev/null`
 			else
 			else
 				NUM_CPUS=1
 				NUM_CPUS=1