the "new" C++ reserved word, even though there is likely no way
nano will EVER be compilable with a C++ compiler. (suggested by
Rocco Corsi).
- - Added explicit check for libintl.h and only #include it if
- found.
- aclocal.m4
- Minor patch for intl check (Christian Weisgerber)
/* Define if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
-/* Define if you have the <libintl.h> header file. */
-#undef HAVE_LIBINTL_H
-
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
fi
-for ac_hdr in fcntl.h unistd.h malloc.h termios.h termio.h limits.h getopt.h regex.h libintl.h
+for ac_hdr in fcntl.h unistd.h malloc.h termios.h termio.h limits.h getopt.h regex.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h malloc.h termios.h termio.h limits.h getopt.h regex.h libintl.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h malloc.h termios.h termio.h limits.h getopt.h regex.h)
dnl options
AC_ARG_ENABLE(tiny,
#include "nano.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "nano.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "proto.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "nano.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "nano.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "nano.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "proto.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)
#include "nano.h"
#ifndef NANO_SMALL
-#ifdef HAVE_LIBINTL_H
#include <libintl.h>
-#endif
#define _(string) gettext(string)
#else
#define _(string) (string)