home *** CD-ROM | disk | FTP | other *** search
/ Chip: Linux Special / CorelLinux_CHIP.iso / live / usr / share / aclocal / lcmessage.m4 < prev    next >
Encoding:
Text File  |  1999-01-25  |  755 b   |  20 lines

  1. # Check whether LC_MESSAGES is available in <locale.h>.
  2. # Ulrich Drepper <drepper@cygnus.com>, 1995.
  3. #
  4. # This file can be copied and used freely without restrictions.  It can
  5. # be used in projects which are not available under the GNU Public License
  6. # but which still want to provide support for the GNU gettext functionality.
  7. # Please note that the actual code is *not* freely available.
  8.  
  9. # serial 1
  10.  
  11. AC_DEFUN(AM_LC_MESSAGES,
  12.   [if test $ac_cv_header_locale_h = yes; then
  13.     AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
  14.       [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
  15.        am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
  16.     if test $am_cv_val_LC_MESSAGES = yes; then
  17.       AC_DEFINE(HAVE_LC_MESSAGES)
  18.     fi
  19.   fi])
  20.