Start integrating new build system with "configure"
[freeradius.git] / src / modules / rlm_perl / configure.in
index 85118db..3f9b5ba 100644 (file)
@@ -50,6 +50,16 @@ if test x$with_[]modname != xno; then
                targetname=
           fi
 
+         AC_TRY_LINK([extern char Perl_hv_store();],
+                     [ Perl_hv_store()],
+                     BROKEN=,
+                     BROKEN="yes")
+
+        if test "x$BROKEN" != "x"; then
+               fail="$fail libperl.so"
+               targetname=
+         fi
+
           CFLAGS=$old_CFLAGS
         fi
        targetname=modname
@@ -80,3 +90,4 @@ AC_CONFIG_HEADER(config.h)
 
 AC_SUBST(targetname)
 AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)