]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
configure.ac: switch from $host to $host_os
authorR. Diez <rdiezmail-openocd@yahoo.de>
Fri, 29 Nov 2024 20:09:50 +0000 (21:09 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 22 Dec 2024 09:54:54 +0000 (09:54 +0000)
Suggested during review https://review.openocd.org/c/openocd/+/8533
Only the OS part was being checked anyway.
The aim is to facilitate merging all $host_os checks in the future.

Change-Id: Idce1d5872cf19ef423429fa0c3b2ff7ee3945332
Signed-off-by: R. Diez <rdiezmail-openocd@yahoo.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8607
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
configure.ac

index 1e545dcc45f31d3642692291c82202bee889faa0..b353bced70959c236d563f56ceea4d7a40e7fe41 100644 (file)
@@ -415,8 +415,8 @@ AS_CASE(["${host_cpu}"],
 
 can_build_buspirate=yes
 
-AS_CASE([$host],
-  [*-cygwin*], [
+AS_CASE([$host_os],
+  [cygwin*], [
     is_win32=yes
     parport_use_ppdev=no
 
@@ -436,7 +436,7 @@ AS_CASE([$host],
       ])
     ])
   ],
-  [*-mingw* | *-msys*], [
+  [mingw* | msys*], [
     is_mingw=yes
     is_win32=yes
     parport_use_ppdev=no
@@ -455,7 +455,7 @@ AS_CASE([$host],
 
     AC_SUBST([HOST_CPPFLAGS], ["-D__USE_MINGW_ANSI_STDIO -DFD_SETSIZE=128"])
   ],
-  [*darwin*], [
+  [darwin*], [
     is_darwin=yes
 
     AS_IF([test "x$parport_use_giveio" = "xyes"], [