From: <ps...@us...> - 2010-04-27 15:30:57
|
Revision: 1946 http://znc.svn.sourceforge.net/znc/?rev=1946&view=rev Author: psychon Date: 2010-04-27 15:30:50 +0000 (Tue, 27 Apr 2010) Log Message: ----------- Outsmart autoconf When checking for libperl, evil little autoconf thought we intent to use perl everywhere (HAHA, no!) so it went forward and added -lperl to $LIBS. Despite this being a bad idea in general (come on, it's perl!), this also made subsequent checks fail because the linker didn't find libperl (we reverted back LDFLAGS to an older value after checking for perl and so the path to libperl got lost). Fix this by outsmarting autoconf. Let's wait for the autofail to strike back! Modified Paths: -------------- trunk/configure trunk/configure.in Modified: trunk/configure =================================================================== --- trunk/configure 2010-04-26 16:39:11 UTC (rev 1945) +++ trunk/configure 2010-04-27 15:30:50 UTC (rev 1946) @@ -3416,12 +3416,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perl_perl_alloc" >&5 $as_echo "$ac_cv_lib_perl_perl_alloc" >&6; } if test "x$ac_cv_lib_perl_perl_alloc" = x""yes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPERL 1 -_ACEOF - - LIBS="-lperl $LIBS" - + : No, we do not want autoconf to do sth automatically else PERL="no" fi Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2010-04-26 16:39:11 UTC (rev 1945) +++ trunk/configure.in 2010-04-27 15:30:50 UTC (rev 1946) @@ -242,7 +242,9 @@ if test -n "$PERL_BINARY"; then my_saved_LDFLAGS="$LDFLAGS" appendLD `$PERL_BINARY -MExtUtils::Embed -e ccopts -e ldopts` - AC_CHECK_LIB(perl, perl_alloc,, PERL="no") + AC_CHECK_LIB(perl, perl_alloc, + [: No, we do not want autoconf to do sth automatically], + PERL="no") LDFLAGS="$my_saved_LDFLAGS" else PERL="no" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |