actually just re-use the ENABLE_NLS macro rather than checking for libintl.h
SVN revision: 19589
This commit is contained in:
parent
f7c2c61cfd
commit
6a58ed9a95
|
@ -71,7 +71,6 @@ if test "x$LIBINTL" = "x"; then
|
|||
LIBINTL="$INTLLIBS"
|
||||
AC_SUBST(LIBINTL)
|
||||
fi
|
||||
AC_CHECK_HEADERS(libintl.h)
|
||||
|
||||
AC_ARG_ENABLE(fsstd,
|
||||
[ --enable-fsstd install files following FSSTD @<:@default=yes@:>@],,
|
||||
|
|
20
src/E.h
20
src/E.h
|
@ -140,14 +140,20 @@ int Esnprintf(va_alist);
|
|||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBINTL_H
|
||||
#include <libintl.h>
|
||||
#endif
|
||||
#define _(String) gettext(String)
|
||||
#ifdef gettext_noop
|
||||
#define N_(String) gettext_noop(String)
|
||||
#ifdef ENABLE_NLS
|
||||
# include <libintl.h>
|
||||
# define _(String) gettext(String)
|
||||
# ifdef gettext_noop
|
||||
# define N_(String) gettext_noop(String)
|
||||
# else
|
||||
# define N_(String) (String)
|
||||
# endif
|
||||
#else
|
||||
#define N_(String) (String)
|
||||
# define _(String) (String)
|
||||
# define N_(String) (String)
|
||||
# define bindtextdomain(pkg,locale)
|
||||
# define textdomain(pkg)
|
||||
# define bind_textdomain_codeset(pkg,enc)
|
||||
#endif
|
||||
|
||||
#ifndef MAX
|
||||
|
|
Loading…
Reference in New Issue