From 00029a401869bb41e3a1aeb77dfda164d48fc827 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 14 Dec 2002 22:30:41 +0000 Subject: [PATCH] fix rrdtool compile on solaris where CC for perl is "gcc -B/usr/ccs/bin/" -- Russell Van Tassell git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@170 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/configure.ac b/program/configure.ac index 7f02e711..7b7155e9 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -167,7 +167,7 @@ else SO_EXT=`$PERL -e 'use Config; if (defined $Config{so} and $Config{so} ne 'a') {print "$Config{so}\n"} else {print "so\n"};'` AC_MSG_RESULT($SO_EXT) AC_MSG_CHECKING(for the C compiler perl wants to use to build its modules) - PROBLEMCC=`$PERL -e 'use Config; map {if (-x "$_/$Config{cc}"){exit 0}} split /:/, $ENV{PATH};print $Config{cc}'` + PROBLEMCC=`$PERL -e 'use Config; ($cc = $Config{cc}) =~ s/\s.*//; exit 0 if -x $cc; map {if (-x "$_/$cc"){exit 0}} split /:/, $ENV{PATH};print $Config{cc}'` if test x$PROBLEMCC != x; then AC_MSG_RESULT(no) echo Could not find the Compiler: '"'$PROBLEMCC'"' -- 2.30.2