This commit is contained in:
psyc://psyced.org/~lynX 2009-05-22 00:23:49 +02:00
parent cfd89e7e48
commit 480babdac9
5 changed files with 10906 additions and 6025 deletions

View File

@ -1,138 +0,0 @@
#ifndef MACHINE_H
#define MACHINE_H
@TOP@
/* Set in response to the signal handler return type, since not all
* compilers understand direct definition comparisons
*/
#undef RETSIGTYPE_VOID
/* does the compiler provide inline functions? */
#undef HAS_INLINE
/* Is the library function inet_ntoa() compatible with the compiler?
* TODO: Is there any platform where this is not the case?
*/
#undef INET_NTOA_OK
/* A mask that allows to extract an unsigned char from a signed */
#define CHARBIT_MASK 0xff
#undef RENAME_HANDLES_DIRECTORIES
/* Does the system have a getrusage call? */
#undef HAVE_GETRUSAGE
/* If so, is it restricted to user and system time? */
#undef GETRUSAGE_RESTRICTED
/* Is it available as a subfunction of syscall() ? */
#undef GETRUSAGE_VIA_SYSCALL
/* Can ru_utime / ru_stime be accessed as a timeval with tv_sec and tv_usec ? */
#undef RUSAGE_USEC
/* the atari strtol() used to consider characters '9' < c < 'A' to be numeric */
#undef STRTOL_BROKEN
/* does the libc consider it normal to free a null pointer? */
#undef FREE_NULL_POINTER
/* needs the first argument of strtol be declared as const ? */
#undef STRTOL_CONST_CHARP
/* Define if you have bcopy, and it handles overlapping ranges correctly. */
#undef OVERLAPPING_BCOPY
#define MALLOC_ALIGN 4
/* does the sys/types.h define the uint*_t types? */
#undef HAVE_INTTYPES
/* does the compiler know of a 'ssize_t' type? */
#undef HAVE_SSIZE_T
/* does the compiler know of a 'long long' type? */
#undef HAVE_LONG_LONG
/* does the compiler know of a 'bool' type? */
#undef HAVE_BOOL
/* what kind of pointer is used by malloc() et al */
#define POINTER *
#undef FREE_RETURNS_VOID
/* can we define our own malloc() safely? */
#undef SBRK_OK
/* The following is needed for smalloc without SBRK_OK to use memory
* efficiently. smalloc will malloc blocks that are a large power of
* two, minus EXTERN_MALLOC_OVERHEAD. If you have no idea what number to
* choose, compile & run util/overhead.c
*/
#define EXTERN_MALLOC_OVERHEAD 16
/* How to set a socket non-blocking */
#undef USE_IOCTL_FIONBIO
#undef USE_FCNTL_O_NDELAY
#undef USE_FCNTL_FNDELAY
/* Can F_SETOWN be used on a socket? */
#undef USE_FCNTL_SETOWN
/* Can SO_OOBINLINE be used on a socket? */
#undef USE_OOBINLINE
/* Does the machine offer IPv6? */
#undef HAS_IPV6
/* Does the machine offer iconv? */
#undef HAS_ICONV
/* Does the machine's iconv take a non-const 'char**' as first arg? */
#undef HAS_ICONV_NONCONST_IN
/* Does the machine offer PCRE? */
#undef HAS_PCRE
/* Does the machine offer IDNA? */
#undef HAS_IDN
/* Does the machine offer mySQL? */
#undef HAS_MYSQL
/* Does the machine offer PostgreSQL? */
#undef HAS_PGSQL
/* Does the machine offer SQLite3? */
#undef HAS_SQLITE3
/* Does SQLite3 use pthreads? */
#undef SQLITE3_USES_PTHREADS
/* Does the machine offer JSON (json-c)? */
#undef HAS_JSON
/* Does the machine offer expat? */
#undef HAS_EXPAT
/* Does the machine offer GnuTLS? */
#undef HAS_GNUTLS
#undef HAS_GNUTLS_VERSION
/* Does the machine offer OpenSSL/SSL? */
#undef HAS_OPENSSL
/* define the erq include file. */
#undef ERQ_INCLUDE
/* Does the machine offer pthreads? */
#undef HAS_PTHREADS
/* Does the machine offer pthread_atfork()? */
#undef HAS_PTHREAD_ATFORK
/* define the host-specific include file */
#undef HOST_INCLUDE
@BOTTOM@
#endif

View File

@ -1859,7 +1859,7 @@ AC_CHECK_HEADER(json/json.h,,[
# The system has the json include files - now search for the libraries.
if test "x$enable_use_json" = "x" || test "x$enable_use_json" = "xyes"; then
AC_CHECK_LIB(json, main, [
AC_DEFINE(HAS_JSON, 1, [Does the machine offer native json?])
AC_DEFINE(HAS_JSON, 1, [Does the machine offer json-c support?])
PKGLIBS="$PKGLIBS -ljson"
lp_cv_has_json=yes
cdef_use_json="#define"

View File

@ -141,6 +141,11 @@
*/
#define MAX_MALLOCED @val_max_malloced@
/* --- Random Number Generator (SFMT) --- */
/* Set the period length of the SFMT.
* Default is a period length of 2^19937 - 1
*/
#define RANDOM_PERIOD_LENGTH @val_random_period_length@
/* --- Interpreter --- */
@ -198,11 +203,14 @@
/* If you want to use threads to write the data to the sockets
* define USE_PTHREADS.
*/
*/
@cdef_use_pthreads@ USE_PTHREADS
/* maximum number of concurrent outgoing connection attempts by net_connect()
* (that is connections that are in progress but not fully established yet).
*/
#define MAX_OUTCONN @val_max_net_connects@
/* ----------- Compilation Options ----------
* To change these options, the config.h must be recreated and the
@ -380,6 +388,10 @@
*/
@cdef_use_builtin_pcre@ USE_BUILTIN_PCRE
/* Define this if you want iksemel library support.
*/
@cdef_use_iksemel@ USE_IKSEMEL
/* Define this if you want the obsolete and deprecated efuns.
*/
@cdef_use_deprecated@ USE_DEPRECATED
@ -412,6 +424,10 @@
*/
@cdef_dynamic_costs@ DYNAMIC_COSTS
/* Show the evaluation costs in the stacktrace.
*/
@cdef_eval_cost_trace@ EVAL_COST_TRACE
/* Define the maximum stack size of the stack machine. This stack will also
* contain all local variables and arguments.
*/
@ -444,6 +460,18 @@
#define ALLOWED_ED_CMDS @val_allowed_ed_cmds@
/* TODO: ALLOWED_ED_CMDS: make this a runtime option */
/* Limit the amount of recursion in the PCRE code. Setting it to low will
* prevent certain regexps to be executed properly, setting it too high can
* cause that regexps to crash the driver. Set it according to the
* available maximum stack size for the driver process. (Rule of thumb:
* The memory used for a recursion on the stack seems to be within 466 and
* 1008 bytes. If you have 8M of stack size, reserve half of it for LPC
* recursions and choose about 3000 - 4000.) In doubt, increase the stack
* size limit for the driver process with ulimit & Co.)
* Defaults to 3000
*/
#define LD_PCRE_RECURSION_LIMIT @val_pcre_recursion_limit@
/* --- Compiler --- */
@ -659,12 +687,6 @@
/****** PSYCLPC ******/
/* maximum number of currently outgoing connections which are
* not yet fully established
* psyced needs a quite large value here
*/
#define MAX_OUTCONN @val_max_net_connects@
/* Size of each interactive socket's buffer for incoming data.
* This is also the maximum size for one command().
* For MUD use, this value used to be 2048 traditionally.
@ -673,7 +695,7 @@
/* Why make comments in config.h if you're not supposed to edit it anyway?
* Here is the list of the new psyclpc flags.
* See elsewhere for explainations.
* See elsewhere for explanations.
*
@cdef_backtrace_always@ BACKTRACE_ALWAYS
@cdef_use_paranoid_refs@ PARANOID_REFS

16352
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,138 +1,11 @@
/* machine.h.in. Generated from configure.in by autoheader. */
#ifndef MACHINE_H
#define MACHINE_H
/* Set in response to the signal handler return type, since not all
* compilers understand direct definition comparisons
*/
#undef RETSIGTYPE_VOID
/* does the compiler provide inline functions? */
#undef HAS_INLINE
/* Is the library function inet_ntoa() compatible with the compiler?
* TODO: Is there any platform where this is not the case?
*/
#undef INET_NTOA_OK
/* A mask that allows to extract an unsigned char from a signed */
#define CHARBIT_MASK 0xff
#undef RENAME_HANDLES_DIRECTORIES
/* Does the system have a getrusage call? */
#undef HAVE_GETRUSAGE
/* If so, is it restricted to user and system time? */
#undef GETRUSAGE_RESTRICTED
/* Is it available as a subfunction of syscall() ? */
#undef GETRUSAGE_VIA_SYSCALL
/* Can ru_utime / ru_stime be accessed as a timeval with tv_sec and tv_usec ? */
#undef RUSAGE_USEC
/* the atari strtol() used to consider characters '9' < c < 'A' to be numeric */
#undef STRTOL_BROKEN
/* does the libc consider it normal to free a null pointer? */
#undef FREE_NULL_POINTER
/* needs the first argument of strtol be declared as const ? */
#undef STRTOL_CONST_CHARP
/* Define if you have bcopy, and it handles overlapping ranges correctly. */
#undef OVERLAPPING_BCOPY
#define MALLOC_ALIGN 4
/* does the sys/types.h define the uint*_t types? */
#undef HAVE_INTTYPES
/* does the compiler know of a 'ssize_t' type? */
#undef HAVE_SSIZE_T
/* does the compiler know of a 'long long' type? */
#undef HAVE_LONG_LONG
/* does the compiler know of a 'bool' type? */
#undef HAVE_BOOL
/* what kind of pointer is used by malloc() et al */
#define POINTER *
#undef FREE_RETURNS_VOID
/* can we define our own malloc() safely? */
#undef SBRK_OK
/* The following is needed for smalloc without SBRK_OK to use memory
* efficiently. smalloc will malloc blocks that are a large power of
* two, minus EXTERN_MALLOC_OVERHEAD. If you have no idea what number to
* choose, compile & run util/overhead.c
*/
#define EXTERN_MALLOC_OVERHEAD 16
/* How to set a socket non-blocking */
#undef USE_IOCTL_FIONBIO
#undef USE_FCNTL_O_NDELAY
#undef USE_FCNTL_FNDELAY
/* Can F_SETOWN be used on a socket? */
#undef USE_FCNTL_SETOWN
/* Can SO_OOBINLINE be used on a socket? */
#undef USE_OOBINLINE
/* Does the machine offer IPv6? */
#undef HAS_IPV6
/* Does the machine offer iconv? */
#undef HAS_ICONV
/* Does the machine's iconv take a non-const 'char**' as first arg? */
#undef HAS_ICONV_NONCONST_IN
/* Does the machine offer PCRE? */
#undef HAS_PCRE
/* Does the machine offer IDNA? */
#undef HAS_IDN
/* Does the machine offer mySQL? */
#undef HAS_MYSQL
/* Does the machine offer PostgreSQL? */
#undef HAS_PGSQL
/* Does the machine offer SQLite3? */
#undef HAS_SQLITE3
/* Does SQLite3 use pthreads? */
#undef SQLITE3_USES_PTHREADS
/* Does the machine offer json-c support? */
#undef HAS_JSON
/* Does the machine offer expat? */
#undef HAS_EXPAT
/* Does the machine offer GnuTLS? */
#undef HAS_GNUTLS
#undef HAS_GNUTLS_VERSION
/* Does the machine offer OpenSSL/SSL? */
#undef HAS_OPENSSL
/* define the erq include file. */
#undef ERQ_INCLUDE
/* Does the machine offer pthreads? */
#undef HAS_PTHREADS
/* Does the machine offer pthread_atfork()? */
#undef HAS_PTHREAD_ATFORK
/* define the host-specific include file */
#undef HOST_INCLUDE
#undef CHARBIT_MASK
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
@ -142,9 +15,78 @@
/* Define to 1 if using `alloca.c'. */
#undef C_ALLOCA
/* Does the machine offer idn libraries. */
/* define the erq include file. */
#undef ERQ_INCLUDE
/* The following is needed for smalloc without SBRK_OK to use memory
efficiently. smalloc will malloc blocks that are a large power of two,
minus EXTERN_MALLOC_OVERHEAD. If you have no idea what number to choose,
compile & run util/overhead.c */
#undef EXTERN_MALLOC_OVERHEAD
/* does free() have void as its returntype? */
#undef FREE_RETURNS_VOID
/* If so, is it restricted to user and system time? */
#undef GETRUSAGE_RESTRICTED
/* Is it available as a subfunction of syscall()? */
#undef GETRUSAGE_VIA_SYSCALL
/* Does the machine offer expat? */
#undef HAS_EXPAT
/* Does the machine offer GnuTLS? */
#undef HAS_GNUTLS
/* version of GNUTLS library */
#undef HAS_GNUTLS_VERSION
/* Does the machine offer iconv? */
#undef HAS_ICONV
/* Does the machine's iconv take a non-const 'char**' as first arg? */
#undef HAS_ICONV_NONCONST_IN
/* Does the machine offer IDNA? */
#undef HAS_IDN
/* Does the machine offer iksemel? */
#undef HAS_IKSEMEL
/* Does the compiler provide inline functions? */
#undef HAS_INLINE
/* Does the machine offer IPv6? */
#undef HAS_IPV6
/* Does the machine offer json-c support? */
#undef HAS_JSON
/* Does the machine offer mySQL? */
#undef HAS_MYSQL
/* Does the machine offer OpenSSL/SSL? */
#undef HAS_OPENSSL
/* Does the machine offer PCRE? */
#undef HAS_PCRE
/* Does the machine offer PostgreSQL? */
#undef HAS_PGSQL
/* Does the machine offer pthreads? */
#undef HAS_PTHREADS
/* Does the machine offer pthread_atfork()? */
#undef HAS_PTHREAD_ATFORK
/* Does the machine offer SQLite3? */
#undef HAS_SQLITE3
/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM
/* Define to 1 if you have `alloca', as a function or macro. */
#undef HAVE_ALLOCA
@ -180,12 +122,18 @@
/* Define to 1 if you have the `getdomainname' function. */
#undef HAVE_GETDOMAINNAME
/* Define to 1 if you have the `getrusage' function. */
/* Does the system have a getrusage call? */
#undef HAVE_GETRUSAGE
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
/* Define to 1 if the system has the type `intmax_t'. */
#undef HAVE_INTMAX_T
/* Define to 1 if the system has the type `intptr_t'. */
#undef HAVE_INTPTR_T
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
@ -204,6 +152,16 @@
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define to 1 if the system has the type `long double'. */
#undef HAVE_LONG_DOUBLE
/* Define to 1 if the type `long double' works and has more range or precision
than `double'. */
#undef HAVE_LONG_DOUBLE_WIDER
/* Define to 1 if the system has the type `long long int'. */
#undef HAVE_LONG_LONG_INT
/* Define to 1 if you have the `memcpy' function. */
#undef HAVE_MEMCPY
@ -228,6 +186,9 @@
/* Define to 1 if you have the `poll' function. */
#undef HAVE_POLL
/* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
@ -243,6 +204,9 @@
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
/* Define to 1 if cpp supports the ANSI # stringizing operator. */
#undef HAVE_STRINGIZE
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
@ -287,11 +251,20 @@
/* Define to 1 if you have the `trunc' function. */
#undef HAVE_TRUNC
/* Define to 1 if typeof works with your compiler. */
#undef HAVE_TYPEOF
/* Define to 1 if the system has the type `uintmax_t'. */
#undef HAVE_UINTMAX_T
/* Define to 1 if the system has the type `uintptr_t'. */
#undef HAVE_UINTPTR_T
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the <values.h> header file. */
#undef HAVE_VALUES_H
/* Define to 1 if the system has the type `unsigned long long int'. */
#undef HAVE_UNSIGNED_LONG_LONG_INT
/* Define to 1 if you have the `wait3' function. */
#undef HAVE_WAIT3
@ -299,9 +272,24 @@
/* Define to 1 if you have the `waitpid' function. */
#undef HAVE_WAITPID
/* Define to 1 if the system has the type `_Bool'. */
#undef HAVE__BOOL
/* Define to 1 if you have the `_crypt' function. */
#undef HAVE__CRYPT
/* define the host-specific include file */
#undef HOST_INCLUDE
/* Is the library function inet_ntoa() compatible with the compiler? */
#undef INET_NTOA_OK
/* word alignment */
#undef MALLOC_ALIGN
/* Define if you have bcopy, and it handles overlapping ranges correctly. */
#undef OVERLAPPING_BCOPY
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
@ -317,27 +305,53 @@
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* what kind of pointer is used by malloc() et al */
#undef POINTER
/* Can rename handle directories? */
#undef RENAME_HANDLES_DIRECTORIES
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* The size of a `char *', as computed by sizeof. */
/* Set in response to the signal handler return type, since not all compilers
understand direct definition comparisons. */
#undef RETSIGTYPE_VOID
/* Can ru_utime / ru_stime be accessed as a timeval with tv_sec and tv_usec?
*/
#undef RUSAGE_USEC
/* can we define our own malloc() safely? */
#undef SBRK_OK
/* The size of `char *', as computed by sizeof. */
#undef SIZEOF_CHAR_P
/* The size of a `int', as computed by sizeof. */
/* The size of `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of a `long', as computed by sizeof. */
/* The size of `intmax_t', as computed by sizeof. */
#undef SIZEOF_INTMAX_T
/* The size of `intptr_t', as computed by sizeof. */
#undef SIZEOF_INTPTR_T
/* The size of `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of a `long long', as computed by sizeof. */
/* The size of `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
/* The size of a `short', as computed by sizeof. */
/* The size of `short', as computed by sizeof. */
#undef SIZEOF_SHORT
/* Does SQLite3 use pthreads? */
#undef SQLITE3_USES_PTHREADS
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
@ -346,16 +360,117 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* the atari strtol() used to consider characters '9' < c < 'A' to be numeric
*/
#undef STRTOL_BROKEN
/* needs the first argument of strtol be declared as const? */
#undef STRTOL_CONST_CHARP
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* nonblocking using fcntl with FNDELAY */
#undef USE_FCNTL_FNDELAY
/* nonblocking using fcntl with O_NDELAY */
#undef USE_FCNTL_O_NDELAY
/* Can F_SETOWN be used on a socket? */
#undef USE_FCNTL_SETOWN
/* How to set a socket non-blocking */
#undef USE_IOCTL_FIONBIO
/* Can SO_OOBINLINE be used on a socket? */
#undef USE_OOBINLINE
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */
#undef _UINT32_T
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */
#undef _UINT64_T
/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */
#undef _UINT8_T
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#undef inline
#endif
/* Define to the type of a signed integer type of width exactly 16 bits if
such a type exists and the standard includes do not define it. */
#undef int16_t
/* Define to the type of a signed integer type of width exactly 32 bits if
such a type exists and the standard includes do not define it. */
#undef int32_t
/* Define to the type of a signed integer type of width exactly 64 bits if
such a type exists and the standard includes do not define it. */
#undef int64_t
/* Define to the type of a signed integer type of width exactly 8 bits if such
a type exists and the standard includes do not define it. */
#undef int8_t
/* Define to the widest signed integer type if <stdint.h> and <inttypes.h> do
not define. */
#undef intmax_t
/* Define to the type of a signed integer type wide enough to hold a pointer,
if such a type exists, and if the system does not define it. */
#undef intptr_t
/* Define to `int' if <sys/types.h> does not define. */
#undef mode_t
/* Define to `long int' if <sys/types.h> does not define. */
#undef off_t
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t
/* Define to `unsigned' if <sys/types.h> does not define. */
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
/* Define to `int' if <sys/types.h> does not define. */
#undef ssize_t
/* Define to __typeof__ if your compiler spells it that way. */
#undef typeof
/* Define to the type of an unsigned integer type of width exactly 16 bits if
such a type exists and the standard includes do not define it. */
#undef uint16_t
/* Define to the type of an unsigned integer type of width exactly 32 bits if
such a type exists and the standard includes do not define it. */
#undef uint32_t
/* Define to the type of an unsigned integer type of width exactly 64 bits if
such a type exists and the standard includes do not define it. */
#undef uint64_t
/* Define to the type of an unsigned integer type of width exactly 8 bits if
such a type exists and the standard includes do not define it. */
#undef uint8_t
/* Define to the widest unsigned integer type if <stdint.h> and <inttypes.h>
do not define. */
#undef uintmax_t
/* Define to the type of an unsigned integer type wide enough to hold a
pointer, if such a type exists, and if the system does not define it. */
#undef uintptr_t
#endif