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