2 #define VERSION "5.0.26"
4 /* Configurable features */
6 /* Always hide legal disclaimers */
7 #undef ALWAYS_HIDE_DISCL
10 #define DEFAULTSERVER "whois.arin.net"
12 /* Configuration file */
14 #define CONFIG_FILE "/etc/whois.conf"
18 /* autoconf in cpp macros */
25 # define HAVE_GETOPT_LONG
26 # define HAVE_GETADDRINFO
29 # define LOCALEDIR "/usr/local/share/locale"
34 #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L
35 # define HAVE_GETADDRINFO
39 #if defined __APPLE__ && defined __MACH__
40 # define HAVE_GETOPT_LONG
41 # define HAVE_GETADDRINFO
45 # define HAVE_GETOPT_LONG
46 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
47 # define HAVE_GETADDRINFO
49 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 7
50 # define HAVE_SHA_CRYPT
54 /* Unknown versions of Solaris */
55 #if defined __SVR4 && defined __sun
56 # define HAVE_SHA_CRYPT
57 # define HAVE_SOLARIS_CRYPT_GENSALT
60 /* FIXME: which systems lack this? */
61 #define HAVE_GETTIMEOFDAY
62 /* FIXME: disabled because it does not parse addresses with a netmask length.
63 * The code using it needs to be either fixed or removed.
64 #define HAVE_INET_PTON
68 * Please send patches to correctly ignore old releases which lack a RNG
69 * and add more systems which have one.
72 #elif defined __GLIBC__ \
73 || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \
76 /* HP-UX >= B.11.11.09? */ \
79 || (defined __APPLE__ && defined __MACH__) \
80 /* Solaris >= 9 (this is >= 7): */ \
81 || (defined __SVR4 && defined __sun && defined SUSv2) \
82 /* Tru64 UNIX >= 5.1B? */ \
84 # define RANDOM_DEVICE "/dev/urandom"
89 # define NLS_CAT_NAME "whois"
92 # define LOCALEDIR "/usr/share/locale"