--- old/php5_2-sapi.eclass 2009-02-19 16:23:44 +0100 +++ new/php5_2-sapi.eclass 2009-02-19 16:22:32 +0100 @@ -388,6 +388,11 @@ fi fi + # gettext patch for Gentoo/Prefix + if use prefix ; then + sed -e 's|/usr/local /usr|${EPREFIX}/usr/local ${EPREFIX}/usr|g' -i ext/gettext/config.m4 || die "Failed to fix gettext include paths for prefix" + fi + # We are heavily patching autotools base files (configure.in) because # of suhosin etc., so let's regenerate the whole stuff now