diff options
author | Russ Allbery <eagle@eyrie.org> | 2018-06-03 17:36:30 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2018-06-03 17:39:28 -0700 |
commit | f31585af9ec404b3fc63738d48d6e9bfb6e7db25 (patch) | |
tree | 898350ed1b6009ba86d01fbd5c9d1e7e4c2a2897 /m4 | |
parent | 68c4b05c268cd6e358cc41c8feb44bc2c7fcb898 (diff) |
Resync files with rra-c-util
Mostly comment and copyright changes, nothing that affects this
package.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/perl.m4 | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -104,4 +104,14 @@ AC_DEFUN([RRA_LIB_PERL], rra_perl_core_libs=`echo "$rra_perl_core_libs" | sed 's/ *$//'` PERL_CPPFLAGS="$rra_perl_core_flags" PERL_LIBS="$rra_perl_core_libs" - AC_MSG_RESULT([$PERL_LIBS])]) + AC_MSG_RESULT([$PERL_LIBS]) + rra_perl_save_CPPFLAGS="$CPPFLAGS" + rra_perl_save_LIBS="$LIBS" + CPPFLAGS="$PERL_CPPFLAGS $CPPFLAGS" + LIBS="$PERL_LIBS $LIBS" + AC_CHECK_HEADER([EXTERN.h], [], + [AC_MSG_FAILURE([unable to compile with EXTERN.h])]) + AC_CHECK_FUNC([perl_alloc], [], + [AC_MSG_FAILURE([unable to link with Perl library])]) + CPPFLAGS="$rra_perl_save_CPPFLAGS" + LIBS="$rra_perl_save_LIBS"]) |