[PATCH 04/11] configure: Use compile_exec_prog() for s390_z196_facilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx>

The existing compile_prog() for s390_z196_facilities can be replaced
with compile_exec_prog() since what this does is

 if (s390_z196_facilities test code compiles)
     if (s390_z196_facilities test code returns 0)
         s390_z196_facilities = "yes";

and this is what compile_exec_prog() does too.

Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx>
---
 configure | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index 09c5f60..0b72f45 100755
--- a/configure
+++ b/configure
@@ -1708,11 +1708,8 @@ int main(int argc, char **argv)
       return -1;
 }
 EOF
-if compile_prog "" "" "s390_z196_facilities"; then
-  $TMPE
-  if [ $? -eq 0 ]; then
-  	s390_z196_facilities="yes"
-  fi
+if compile_exec_prog "" "" "s390_z196_facilities"; then
+  s390_z196_facilities="yes"
 fi
 echo "s390_z196_facilities          $s390_z196_facilities"
 
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux