From: oetiker Date: Thu, 1 Mar 2001 21:37:54 +0000 (+0000) Subject: added check for the presence of the compiler used to build perl modules X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7fa6c92aa8d1eff65df2595cbdc6a5d842845bb3;p=rrdtool-all.git added check for the presence of the compiler used to build perl modules git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@17 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/configure.in b/program/configure.in index 84d88cb0..3466c45b 100644 --- a/program/configure.in +++ b/program/configure.in @@ -50,6 +50,18 @@ else AC_MSG_CHECKING(for shared library extension) 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}'` + if test x$PROBLEMCC != x; then + AC_MSG_RESULT(no) + echo Could not find the Compiler: '"'$PROBLEMCC'"' + echo which has been used to build perl. You may have to compile + echo your own copy of perl to make this work. Binary perls often + echo exhibit this problem + exit 1 + else + AC_MSG_RESULT(found) + fi fi AC_SUBST(COMP_PERL) AC_SUBST(SO_EXT)