autoconf: Use `uname -p` instead of $HOST_CPU for ctf tools 75/13275/4
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Mon, 10 Sep 2018 18:14:55 +0000 (18:14 +0000)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 14 Sep 2018 13:17:31 +0000 (09:17 -0400)
Currently, we check if the ctf tools are present searching for them in
a few directories. One of these directories (/opt/onbld/bin/$HOST_CPU) looks at
the $HOST_CPU variable, which on x86 can be 'x86_64' or 'i386', but the only
valid directories for the onbld tools are 'i386' and 'sparc'. So instead of
$HOST_CPU, just use $(uname -p), which is only ever 'i386' on x86, and 'sparc'
on sparc.

[adeason@sinenomine.net: reword commit message]

Change-Id: I972cf1cc0dda81f5ee454b14ddbe2830c82c838d
Reviewed-on: https://gerrit.openafs.org/13275
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/cf/ctf-tools.m4

index a45529d..3410214 100644 (file)
@@ -1,6 +1,6 @@
 AC_DEFUN([OPENAFS_CTF_TOOLS_CHECKS],[
 
-CTF_DEFAULT_PATH="$PATH:/usr/bin:/opt/onbld/bin/$HOST_CPU"
+CTF_DEFAULT_PATH="$PATH:/usr/bin:/opt/onbld/bin/$(uname -p)"
 
 AC_ARG_WITH([ctf-tools],
         AS_HELP_STRING([--with-ctf-tools@<:@=DIR@:>@],