summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2001-06-05 14:01:56 +0200
committerMarco d'Itri <md@linux.it>2013-03-30 02:31:27 +0100
commitbd5fd88c6bb2b9d56f9c359c351a30e52c0a4c18 (patch)
treed40ebe4108733e23a7504e55cc2286c7ee0b0375 /config.h
parent210d9619a3d30ffe897201ef9cb68f8d64e40c7d (diff)
downloadwhois-bd5fd88c6bb2b9d56f9c359c351a30e52c0a4c18.tar.gz
Imported Debian version 4.5.7v4.5.7
Diffstat (limited to 'config.h')
-rw-r--r--config.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/config.h b/config.h
index 8093b61..f27a597 100644
--- a/config.h
+++ b/config.h
@@ -1,6 +1,6 @@
/* Program version */
/* not for the inetutils version */
-#define VERSION "4.5.6"
+#define VERSION "4.5.7"
/* Configurable features */
@@ -13,7 +13,7 @@
/* Default server */
#define DEFAULTSERVER "whois.internic.net"
-/* not for the inetutils version */
+/* autoconf in cpp macros */
#ifdef linux
# define ENABLE_NLS
# define HAVE_GETOPT_LONG
@@ -22,3 +22,35 @@
# endif
#endif
+/* system features */
+#ifdef ENABLE_NLS
+# ifndef NLS_CAT_NAME
+# define NLS_CAT_NAME "whois"
+# endif
+# ifndef LOCALEDIR
+# define LOCALEDIR "/usr/share/locale"
+# endif
+#endif
+
+#ifdef HAVE_GETOPT_LONG
+# define GETOPT_LONGISH(c, v, o, l, i) getopt_long(c, v, o, l, i)
+#else
+# define GETOPT_LONGISH(c, v, o, l, i) getopt(c, v, o)
+#endif
+
+
+/* NLS stuff */
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# include <locale.h>
+# define _(a) (gettext (a))
+# ifdef gettext_noop
+# define N_(a) gettext_noop (a)
+# else
+# define N_(a) (a)
+# endif
+#else
+# define _(a) (a)
+# define N_(a) a
+#endif
+