Hi,

>I have installed gettext-0.10.35 separately in /usr/local/lib, so
>it is definitely there and configure finds it. My gimp is not installed

When configure finds libintl, it should set INTLLIBS="-lintl", I think.
But current gettext.m4 doesn't do that.

--- gettext.m4.orig     Fri May  1 14:45:20 1998
+++ gettext.m4  Wed Dec  1 00:44:11 1999
@@ -54,8 +54,7 @@
                 gt_cv_func_gettext_libintl=no)])
           fi
 
-          if test "$gt_cv_func_gettext_libc" = "yes" \
-             || test "$gt_cv_func_gettext_libintl" = "yes"; then
+          if test "$gt_cv_func_gettext_libc" = "yes"; then
              AC_DEFINE(HAVE_GETTEXT)
              AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
@@ -72,6 +71,29 @@
                   DATADIRNAME=lib])
                INSTOBJEXT=.mo
              fi
+           fi
+
+          if test "$gt_cv_func_gettext_libintl" = "yes"; then
+             alter_LIBS="$LIBS";
+             LIBS="$LIBS -lintl";
+             AC_DEFINE(HAVE_GETTEXT)
+             AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+               [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
+             if test "$MSGFMT" != "no"; then
+               AC_CHECK_FUNCS(dcgettext)
+               AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+               AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+                 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
+               AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
+                              return _nl_msg_cat_cntr],
+                 [CATOBJEXT=.gmo
+                  DATADIRNAME=share],
+                 [CATOBJEXT=.mo
+                  DATADIRNAME=lib])
+               INSTOBJEXT=.mo
+             fi
+             LIBS="$alter_LIBS";
+             INTLLIBS="-lintl";
            fi
        ])
 
--
SHIRASAKI Yasuhiro : Experimental Particle Physics, JLC Team
Graduate School of Science, TOHOKU University 980-8578 Japan.

Reply via email to