bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AM_GNU_GETTEXT working with autoconf 2.50, yet again


From: Bruno Haible
Subject: Re: AM_GNU_GETTEXT working with autoconf 2.50, yet again
Date: Thu, 14 Jun 2001 19:47:45 +0200 (CEST)

> One more (final?) revision of the patch to make AM_WITH_NLS work with
> autoconf 2.50 ...

Thanks for your attempts to make gettext.m4 work with autoconf 2.50.

Your patch was not entirely correct (it wouldn't work in packages
which have multiple PO directories and different hierarchy depths,
because $ac_top_srcdir depends on the last AC_OUTPUTted file).
Therefore here is the patch which I recommend.

Note also that I cannot unconditionally recommend the use of
autoconf-2.50 at this point because

  - autoconf-2.50 doesn't work with libtool-1.3.5 or libtool-1.4,
    it requires a patched version of libtool-1.4, which itself
    requires automake-1.4-p2,

  - autoconf-2.50 doesn't work with some automake-1.4-p2 macros,
    such as AM_TYPE_PTRDIFF_T.

In other words, since other tools are not yet ready for use with
autoconf-2.50, you are on your own.


2001-06-14  Bruno Haible  <address@hidden>

        * gettext.m4 (AM_WITH_NLS): Add support for autoconf-2.50.

*** gettext-0.10.38/m4/gettext.m4.bak   Thu May 17 15:35:37 2001
--- gettext-0.10.38/m4/gettext.m4       Thu Jun 14 14:37:43 2001
***************
*** 181,186 ****
--- 181,187 ----
            ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
            ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
            ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
+           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
            case "$ac_given_srcdir" in
              .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
              /*) top_srcdir="$ac_given_srcdir" ;;
***************
*** 188,196 ****
            esac
            if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
              rm -f "$ac_dir/POTFILES"
!             echo creating "$ac_dir/POTFILES"
              sed -e "/^#/d" -e "/^[    ]*\$/d" -e "s,.*,     $top_srcdir/& 
\\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > 
"$ac_dir/POTFILES"
!             echo creating "$ac_dir/Makefile"
              sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > 
"$ac_dir/Makefile"
            fi
            ;;
--- 189,197 ----
            esac
            if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
              rm -f "$ac_dir/POTFILES"
!             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || 
echo "creating $ac_dir/POTFILES"
              sed -e "/^#/d" -e "/^[    ]*\$/d" -e "s,.*,     $top_srcdir/& 
\\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > 
"$ac_dir/POTFILES"
!             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || 
echo "creating $ac_dir/Makefile"
              sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > 
"$ac_dir/Makefile"
            fi
            ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]