1799N/AThis patch fixes the configure script to pick up the perl libraries correctly
1799N/Afor supporting perl bindings.
1799N/AThis patch has not been contributed upstream, but is planned to be done by
1799N/A 2013-Jul-12.
1799N/A
1799N/A--- openscap-0.9.7/configure.ac.~1~ 2013-04-26 04:47:24.501000000 -0700
1799N/A+++ openscap-0.9.7/configure.ac 2013-06-20 10:56:13.253028642 -0700
1799N/A@@ -1067,14 +1067,14 @@
1799N/A if test "x${perl_bind}" = xyes; then
1799N/A AC_PATH_PROG(PERL, perl)
1799N/A PERL_INCLUDES="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
1799N/A- vendorlib="$( $PERL -e 'use Config; print $Config{vendorlib}' | sed "s|$($PERL -e 'use Config; print $Config{prefix}')||" )"
1799N/A- vendorarch="$( $PERL -e 'use Config; print $Config{vendorarch}' | sed "s|$($PERL -e 'use Config; print $Config{prefix}')||" )"
1799N/A+ vendorlib="$( $PERL -e 'use Config; print $Config{vendorlib}')"
1799N/A+ vendorarch="$( $PERL -e 'use Config; print $Config{vendorarch}')"
1799N/A AC_SUBST([PERL_INCLUDES], ["-I$PERL_INCLUDES"])
1799N/A- AC_SUBST([perl_vendorlibdir], ['${prefix}'$vendorlib])
1799N/A- AC_SUBST([perl_vendorarchdir], ['${prefix}'$vendorarch])
1799N/A+ AC_SUBST([perl_vendorlibdir], [$vendorlib])
1799N/A+ AC_SUBST([perl_vendorarchdir], [$vendorarch])
1799N/A save_CPPFLAGS="$CPPFLAGS"
1799N/A CPPFLAGS="$CPPFLAGS $PERL_INCLUDES"
1799N/A- AC_CHECK_HEADERS([EXTERN.h],[],[AC_MSG_ERROR(Perl development librarier are needed for perl bindings)],[-])
1799N/A+ AC_CHECK_HEADERS([EXTERN.h],[],[AC_MSG_ERROR(Perl development libraries are needed for perl bindings)],[-])
1799N/A CPPFLAGS="$save_CPPFLAGS"
1799N/A fi
906N/A