Changeset 1101


Ignore:
Timestamp:
Jan 29, 2004, 3:57:43 PM (22 years ago)
Author:
bird
Message:

Corrected tests so we recognize gettext tools and newer intl libs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/gettext.m4

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1100 r1101  
    3434
    3535      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
     36      echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
    3637      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
    3738        dnl User does not insist on using GNU NLS library.  Figure out what
     
    5253               [AC_CACHE_CHECK([for gettext in libintl],
    5354                 gt_cv_func_gettext_libintl,
    54                  [AC_TRY_LINK([], [return (int) gettext ("")],
     55                 [ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
     56                 AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
    5557                 gt_cv_func_gettext_libintl=yes,
    56                  gt_cv_func_gettext_libintl=no)])])
     58                 gt_cv_func_gettext_libintl=no)
     59                 LIBS="$ac_save_LIBS";])])
    5760           fi
    5861
     
    6871                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
    6972                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
     73
    7074                AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
    7175                               return _nl_msg_cat_cntr],
     
    8690          dnl Fall back on GNU gettext library.
    8791          nls_cv_use_gnu_gettext=yes
     92          echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
    8893        fi
    8994      fi
     
    295300AC_CACHE_VAL(ac_cv_path_$1,
    296301[case "[$]$1" in
    297   /*)
     302  [[/\\]]*|[[a-zA-Z]]:*)
    298303  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
    299304  ;;
     
    308313      fi
    309314    fi
     315    ac_word_saved="$ac_word"
     316    ac_word=$ac_word$ac_cv_exeext
     317    if test -f $ac_dir/$ac_word; then
     318      if [$3]; then
     319        ac_cv_path_$1="$ac_dir/$ac_word"
     320        break
     321      fi
     322    fi
     323    ac_word="$ac_word_saved"
    310324  done
    311325  IFS="$ac_save_ifs"
Note: See TracChangeset for help on using the changeset viewer.