Skip to content

Commit 7305765

Browse files
author
Luke Pickering
committed
Now searches for root by looking for root-config
rather than deprecated ROOTSYS Env Var
1 parent 31b6290 commit 7305765

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

configure

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ if(-e $BANNER_FILE) {
9696
close(BANNER);
9797
}
9898

99-
# Check that $ROOTSYS is set
99+
# Check that ROOT can be seen
100100
#
101-
$ROOTSYS = $ENV{'ROOTSYS'};
102-
die ("*** Error *** The ROOTSYS environmental variable is not defined. Is ROOT installed?")
103-
unless defined $ROOTSYS;
101+
`hash root-config`;
102+
$HAVE_ROOT_CONFIG = $?;
103+
die ("*** Error *** Cannot find root-config. Is ROOT installed?")
104+
unless $HAVE_ROOT_CONFIG == 0;
104105

105106
# Check whether ROOT itself was build with GSL enabled
106107
# (GENIE uses GSL via ROOT's MathMore library.)

0 commit comments

Comments
 (0)