--- configure.orig 2010-04-01 22:38:13.000000000 -0700 +++ configure 2010-04-01 23:19:47.000000000 -0700 @@ -18656,8 +18656,8 @@ if test "$enable_perl" = "yes"; then - PERL_LIBS="`perl -MExtUtils::Embed -e ldopts`" - PERL_CFLAGS="`perl -MExtUtils::Embed -e ccopts`" + PERL_LIBS="`perl -MExtUtils::Embed -e ldopts | perl -ne 's/(-arch|i386|ppc(64)?|x86_64)//g; print $_'`" + PERL_CFLAGS="`perl -MExtUtils::Embed -e ccopts | perl -ne 's/(-arch|i386|ppc(64)?|x86_64)//g; print $_'`" LIBS="$PERL_LIBS $LIBS" CFLAGS="$PERL_CFLAGS $CFLAGS" CPPFLAGS="$CPPFLAGS $PERL_CFLAGS" @@ -19252,7 +19252,7 @@ echo $ECHO_N "checking for TRE in pkg-config... $ECHO_C" >&6; } if pkg-config tre; then TRE_CFLAGS=`pkg-config --cflags tre` - TRE_LIBS=`pkg-config --libs tre` + TRE_LIBS="`pkg-config --libs-only-L tre` `pkg-config --libs-only-l tre`" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else