1/* -*- C -*- */ 2 3/* Note: this is for Unix only. See slrnconf.h for other systems. 4 * Also edit slrnfeat.h for slrn features. 5 */ 6 7#ifndef SLRN_CONFIG_H 8#define SLRN_CONFIG_H 9 10/* Define to 1 if translation of program messages to the user's native 11 * language is requested. 12 */ 13#undef ENABLE_NLS 14#define PACKAGE "slrn" 15 16/* define if you want SSL support */ 17#undef USE_SSL 18 19/* define if you want to use NSS compat library instead of OpenSSL */ 20#undef USE_NSS_COMPAT 21 22/* define if you want to use GNU TLS library instead of OpenSSL */ 23#undef USE_GNUTLS 24 25/* define if iconv is not GNU compatible */ 26#undef NON_GNU_ICONV 27 28/* define if you have stdlib.h */ 29#undef HAVE_STDLIB_H 30 31/* define if you have unistd.h */ 32#undef HAVE_UNISTD_H 33 34/* define if you have fcntl.h */ 35#undef HAVE_FCNTL_H 36#undef HAVE_SYS_FCNTL_H 37 38/* define if you have termios.h */ 39#undef HAVE_TERMIOS_H 40 41/* define if you have memory.h */ 42#undef HAVE_MEMORY_H 43 44/* define if you have malloc.h */ 45#undef HAVE_MALLOC_H 46 47/* define if you have memset */ 48#undef HAVE_MEMSET 49 50/* define if you have memcpy */ 51#undef HAVE_MEMCPY 52#undef HAVE_MEMCMP 53#undef HAVE_MEMCHR 54 55#undef HAVE_SYS_UTSNAME_H 56#undef HAVE_UNAME 57 58#undef HAVE_SIGLONGJMP 59 60/* define if you have this. */ 61#undef HAVE_PUTENV 62#undef HAVE_GETCWD 63 64#undef HAVE_VSNPRINTF 65 66#undef HAVE_DIRENT_H 67#undef HAVE_SYS_NDIR_H 68#undef HAVE_SYS_DIR_H 69#undef HAVE_NDIR_H 70 71#undef HAVE_SYS_WAIT_H 72 73/* define if you have <sys/socket.h> */ 74#undef HAVE_SYS_SOCKET_H 75 76/* define if you have <socket.h> */ 77#undef HAVE_SOCKET_H 78 79/* define if you have <netinet/in.h> */ 80#undef HAVE_NETINET_IN_H 81 82/* define if you have <arpa/inet.h> */ 83#undef HAVE_ARPA_INET_H 84 85#undef HAVE_LOCALE_H 86#undef HAVE_LANGINFO_H 87 88#undef HAVE_SYS_TIME_H 89 90/* define if you have a "timezone" variable in time.h */ 91#undef HAVE_TIMEZONE 92 93/* define if you have "tm_gmtoff" in struct tm */ 94#undef HAVE_TM_GMTOFF 95 96#undef HAVE_GETDOMAINNAME 97 98/* functions for IPv6 */ 99#undef HAVE_GETADDRINFO 100#undef HAVE_GETNAMEINFO 101 102/* Do we have posix signals? */ 103#undef HAVE_SIGACTION 104#undef HAVE_SIGPROCMASK 105#undef HAVE_SIGEMPTYSET 106#undef HAVE_SIGADDSET 107 108#undef HAVE_ISALPHA 109#undef HAVE_ISSPACE 110#undef HAVE_ISDIGIT 111#undef HAVE_ISALNUM 112#undef HAVE_ISPUNCT 113#undef HAVE_SETLOCALE 114 115#undef HAVE_ICONV 116#undef HAVE_UUDEVIEW_H 117 118/* define if you have va_copy() in stdarg.h */ 119#undef VA_COPY 120 121/* define if va_lists can't be copied by value */ 122#undef VA_COPY_AS_ARRAY 123 124#if defined(HAVE_SIGADDSET) && defined(HAVE_SIGEMPTYSET) 125# if defined(HAVE_SIGACTION) && defined(HAVE_SIGPROCMASK) 126# define SLRN_POSIX_SIGNALS 127# endif 128#endif 129 130#undef mode_t 131#undef pid_t 132#undef uid_t 133#undef pid_t 134 135/* This is here to support snprintf. We don't use long doubles. */ 136#undef HAVE_LONG_DOUBLE 137 138#if defined(ultrix) && !defined(__GNUC__) 139# ifndef NO_PROTOTYPES 140# define NO_PROTOTYPES 141# endif 142#endif 143 144#ifndef REAL_UNIX_SYSTEM 145# define REAL_UNIX_SYSTEM 146#endif 147 148#ifdef _AIX 149# ifndef _POSIX_SOURCE 150# define _POSIX_SOURCE 151# endif 152# ifndef _ALL_SOURCE 153# define _ALL_SOURCE 154# endif 155/* This may generate warnings but the fact is that without it, xlc will 156 * INCORRECTLY inline many str* functions. */ 157# undef __STR__ 158#endif 159 160#ifndef __unix__ 161# define __unix__ 1 162#endif 163 164#ifdef USE_SSL 165# define SLRN_HAS_SSL_SUPPORT 1 166#else 167# define SLRN_HAS_SSL_SUPPORT 0 168#endif 169 170#ifdef USE_GNUTLS 171# define SLTCP_HAS_GNUTLS_SUPPORT 1 172#else 173# define SLTCP_HAS_GNUTLS_SUPPORT 0 174#endif 175 176#define SLTCP_HAS_SSL_SUPPORT SLRN_HAS_SSL_SUPPORT 177 178#ifdef USE_NSS_COMPAT 179# define SLTCP_HAS_NSS_COMPAT 1 180#else 181# define SLTCP_HAS_NSS_COMPAT 0 182#endif 183 184#define SLRN_SERVER_ID_NNTP 1 185#define SLRN_SERVER_ID_SPOOL 2 186 187#define SLRN_POST_ID_NNTP 1 188#define SLRN_POST_ID_INEWS 2 189#define SLRN_POST_ID_PULL 3 190 191#define SLRN_PATH_SLASH_CHAR '/' 192 193#undef SIZEOF_SHORT 194#undef SIZEOF_INT 195#undef SIZEOF_LONG 196#undef SIZEOF_FLOAT 197#undef SIZEOF_DOUBLE 198#undef SIZEOF_LONG_LONG 199 200#undef HAVE_LONG_LONG 201#undef HAVE_ATOLL 202#undef HAVE_STRTOLL 203 204#undef NNTPSERVER_NAME 205#undef NNTPSERVER_FILE 206 207#if defined(HAVE_LONG_LONG) && (SIZEOF_LONG < SIZEOF_LONG_LONG) 208typedef long long NNTP_Artnum_Type; 209# define NNTP_FMT_ARTNUM "%lld" 210# define NNTP_FMT_ARTNUM_2 "%lld %lld" 211# define NNTP_FMT_ARTNUM_3 "%lld %lld %lld" 212# define NNTP_FMT_ARTRANGE "%lld-%lld" 213# ifdef HAVE_ATOLL 214# define NNTP_STR_TO_ARTNUM(x) atoll(x) 215# else 216# define NNTP_STR_TO_ARTNUM(x) strtoll((x),NULL,10) 217# endif 218# define NNTP_ARTNUM_TYPE_MAX 9223372036854775807LL 219#else 220typedef long NNTP_Artnum_Type; 221# define NNTP_FMT_ARTNUM "%ld" 222# define NNTP_FMT_ARTNUM_2 "%ld %ld" 223# define NNTP_FMT_ARTNUM_3 "%ld %ld %ld" 224# define NNTP_FMT_ARTRANGE "%ld-%ld" 225# define NNTP_STR_TO_ARTNUM atol 226# define NNTP_ARTNUM_TYPE_MAX LONG_MAX 227#endif 228 229/* The following set defines may be necessary to activate long file support */ 230#undef _FILE_OFFSET_BITS 231#undef _LARGE_FILES 232#undef _LARGEFILE_SOURCE 233 234 235#endif /* SLRN_CONFIG_H */ 236