Added additional flags to RLM_CFLAGS fix for bug # 301
authorbjordanov <bjordanov>
Thu, 15 Dec 2005 13:25:56 +0000 (13:25 +0000)
committerbjordanov <bjordanov>
Thu, 15 Dec 2005 13:25:56 +0000 (13:25 +0000)
src/modules/rlm_perl/configure.in

index fcd7a9a..0172a57 100644 (file)
@@ -16,12 +16,12 @@ if test x$with_[]modname != xno; then
            fail=$fail" perl"
        else
           old_CFLAGS=$CFLAGS
-          CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts`"
+          CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts; perl -MConfig -e 'print $Config{cppflags}'`"
 
          smart_try_dir=
          AC_SMART_CHECK_INCLUDE(EXTERN.h)
          if test "x$ac_cv_header_EXTERN_h" = "xyes"; then
-               perl_cflags='`perl -MExtUtils::Embed -e ccopts`'
+               perl_cflags="`perl -MExtUtils::Embed -e ccopts; perl -MConfig -e 'print $Config{cppflags}'`"
          else
                fail="$fail EXTERN.h"
                targetname=
@@ -29,7 +29,7 @@ if test x$with_[]modname != xno; then
 
          AC_SMART_CHECK_INCLUDE(perl.h, [#include <EXTERN.h>])
          if test "x$ac_cv_header_perl_h" = "xyes"; then
-               perl_cflags='`perl -MExtUtils::Embed -e ccopts`'
+               perl_cflags="`perl -MExtUtils::Embed -e ccopts; perl -MConfig -e 'print $Config{cppflags}'`"
          else
                fail="$fail perl.h"
                targetname=