Skip to content

Commit 6b30855

Browse files
committed
Remove use of 'hash' to check for root-config in the configure script.
Using root-config directly is more portable.
1 parent bfa72be commit 6b30855

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ if(-e $BANNER_FILE) {
9898

9999
# Check that ROOT can be seen
100100
#
101-
`hash root-config`;
101+
`root-config --version 2> /dev/null`;
102102
$HAVE_ROOT_CONFIG = $?;
103103
die ("*** Error *** Cannot find root-config. Is ROOT installed?")
104104
unless $HAVE_ROOT_CONFIG == 0;
@@ -969,7 +969,7 @@ if ($gopt_enable_professor2 eq "YES") {
969969
#run git submodule update src/ExternalLibs/professor
970970
print "Checking out Professor2 submodule...\n";
971971
system("git submodule update --init src/ExternalLibs/professor");
972-
print "Done.\n";
972+
print "Done.\n";
973973
}
974974

975975
# Save config options

0 commit comments

Comments
 (0)