ports/devel/i386-rtems-gcc/files/patch-gcc::configure
James E. Housley e4ebf8e46f - Fix build by explicitly tell configure how to correctly link gettext
- Add extra empty line between PATCH_SITES and DISTFILES to make
  portlint(1) happy
- Use += for *_DEPENDS after pre.mk to per portlint(1)

Submitted By:	Rong-En Fan
PR:		111404
2007-04-16 09:57:25 +00:00

43 lines
1.3 KiB
Text

--- gcc-3.2.3/gcc/configure.orig Tue Feb 4 08:17:46 2003
+++ gcc-3.2.3/gcc/configure Mon Apr 9 18:35:53 2007
@@ -6013,7 +6013,7 @@
cat > conftest.$ac_ext <<EOF
#line 6015 "configure"
#include "confdefs.h"
-#include <libintl.h>
+#include "%%LOCALBASE%%/include/libintl.h"
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
@@ -6044,7 +6044,7 @@
cat > conftest.$ac_ext <<EOF
#line 6046 "configure"
#include "confdefs.h"
-#include <libintl.h>
+#include "%%LOCALBASE%%/include/libintl.h"
extern int _nl_msg_cat_cntr;
int main() {
bindtextdomain ("", "");
@@ -6072,11 +6072,11 @@
echo $ac_n "(cached) $ac_c" 1>&6
else
gt_save_LIBS="$LIBS"
- LIBS="$LIBS -lintl $LIBICONV"
+ LIBS="$LIBS -L%%LOCALBASE%% -lintl $LIBICONV"
cat > conftest.$ac_ext <<EOF
#line 6078 "configure"
#include "confdefs.h"
-#include <libintl.h>
+#include "%%LOCALBASE%%/include/libintl.h"
extern int _nl_msg_cat_cntr;
int main() {
bindtextdomain ("", "");
@@ -6108,7 +6108,7 @@
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
- INTLLIBS="-lintl $LIBICONV"
+ INTLLIBS="-L%%LOCALBASE%% -lintl $LIBICONV"
fi
gt_save_LIBS="$LIBS"