Changeset 3eb613198d10628b37985303db0f8dfb2a245b33

Show
Ignore:
Timestamp:
12/11/08 17:08:59 (3 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
164303a799af7adefaf2c395bb80722016888ffe
Parents:
fa864158f7bbe5120d55ea64cce775c4ee25a78a
git-committer:
Lincoln de Sousa <lincoln@…> (12/11/08 17:08:59)
Message:

updates from the autotools stuff

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • m4/intltool.m4

    r5e274bf r3eb6131  
    2525dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 
    2626# serial 40 IT_PROG_INTLTOOL 
    27 AC_DEFUN([IT_PROG_INTLTOOL], 
    28 [AC_PREREQ([2.50])dnl 
     27AC_DEFUN([IT_PROG_INTLTOOL], [ 
     28AC_PREREQ([2.50])dnl 
     29AC_REQUIRE([AM_NLS])dnl 
    2930 
    3031case "$am__api_version" in 
     
    99100AC_PATH_PROG(MSGMERGE, msgmerge) 
    100101AC_PATH_PROG(MSGFMT, msgfmt) 
     102AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 
    101103if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 
    102104    AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 
     
    170172AC_CONFIG_COMMANDS_PRE([ 
    171173  AC_CONFIG_COMMANDS([$1/stamp-it], [ 
     174    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then 
     175       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) 
     176    fi 
    172177    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" 
    173178    >"$1/stamp-it.tmp" 
     
    178183      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" 
    179184    ] 
    180     if test ! -f "$1/Makefile"; then 
    181       AC_MSG_ERROR([$1/Makefile is not ready.]) 
    182     fi 
    183     mv "$1/Makefile" "$1/Makefile.tmp" 
    184185    [sed '/^POTFILES =/,/[^\\]$/ { 
    185186                /^POTFILES =/!d 
    186187                r $1/POTFILES 
    187188          } 
    188          ' "$1/Makefile.tmp" >"$1/Makefile"] 
     189         ' "$1/Makefile.in" >"$1/Makefile"] 
    189190    rm -f "$1/Makefile.tmp" 
    190191    mv "$1/stamp-it.tmp" "$1/stamp-it" 
     
    193194]) 
    194195 
    195  
    196196# deprecated macros 
    197197AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])