From 06127b4004da0603dd39fe6c4ef99f77c85c29b0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 29 Apr 2002 17:17:17 +0000 Subject: [PATCH] Removed caching of libperl-check, so many people have that problem and it's easier to fix if you don't need to remember to remove config.cache too. Also, now if perl fails it suggests apt-get installing libperl-dev with debian systems. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2739 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/configure.in b/configure.in index 46a5bc32..26df3ebc 100644 --- a/configure.in +++ b/configure.in @@ -568,21 +568,14 @@ if test "$want_perl" != "no"; then esac dnl * check that perl's ldflags actually work - AC_CACHE_VAL(irssi_cv_lib_perl_works, [ - echo "main(){perl_alloc(); return 0;}" > conftest.c - $CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null - if test -s conftest; then - irssi_cv_lib_perl_works=yes - else - irssi_cv_lib_perl_works=no - fi - ]) - - if test "x$irssi_cv_lib_perl_works" = "xno"; then + echo "main(){perl_alloc(); return 0;}" > conftest.c + $CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null + if test ! -s conftest; then perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`" AC_MSG_RESULT([error linking with perl libraries, building without Perl]) want_perl=no fi + rm -f perl.error.tmp fi @@ -873,6 +866,10 @@ if test "x$want_perl" != "xno" -a "x$perl_mod_error" != "x"; then echo " - NOTE: Perl support will be compiled statically to irssi, not as" echo " a module as requested. Reason:" echo " $perl_mod_error" + + if test -f /etc/debian_version; then + echo " - Try: apt-get install libperl-dev" + fi fi if test "x$want_perl" != "xno"; then