Commit 16fc5c3b authored by stolz's avatar stolz
Browse files

[project @ 2002-03-26 16:36:09 by stolz]

Add dlopen() and friends to package 'posix'.
A configure-test for RTLD_NEXT is required. Record if -ldl is
required in posix.conf.
parent 22348fd0
......@@ -369,6 +369,9 @@
/* Define if you need -ldl to get dlopen() */
#undef HAVE_LIBDL
/* Define if we can see RTLD_NEXT in dlfcn.h */
#undef HAVE_RTLDNEXT
/* Define if C compiler supports long long types */
#undef HAVE_LONG_LONG
......
......@@ -958,6 +958,8 @@ dnl ################################################################
dnl Check for libraries
dnl ################################################################
dnl ** check for libdl & RTLD_NEXT
AC_CHECK_LIB(dl, dlopen,
[HaveLibDL=YES
AC_DEFINE(HAVE_LIBDL)
......@@ -966,6 +968,24 @@ AC_CHECK_LIB(dl, dlopen,
AC_CHECK_FUNCS(dlopen)
AC_SUBST(HaveLibDL)
dnl ** sometimes RTLD_NEXT is hidden in #ifdefs we really don't wan to set
AC_MSG_CHECKING(for RTLD_NEXT from dlfcn.h)
AC_EGREP_CPP(yes,
[
#include <dlfcn.h>
#ifdef RTLD_NEXT
yes
#endif
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_RTLDNEXT)
HaveRtldNext=YES
], [
AC_MSG_RESULT(no)
HaveRtldNext=NO
])
AC_SUBST(HaveRtldNext)
FPTOOLS_CHECK_LIB_NOWARN(m, atan)
dnl --------------------------------------------------
......
......@@ -15,59 +15,6 @@
/* Define if using alloca.c. */
#undef C_ALLOCA
/* Define to empty if the keyword does not work. */
#undef const
/* 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. */
#undef CRAY_STACKSEG_END
/* Define if you have alloca, as a function or macro. */
#undef HAVE_ALLOCA
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
#undef HAVE_ALLOCA_H
/* Define if your struct stat has st_blksize. */
#undef HAVE_ST_BLKSIZE
/* Define if your struct tm has tm_zone. */
#undef HAVE_TM_ZONE
/* Define if you don't have tm_zone but do have the external array
tzname. */
#undef HAVE_TZNAME
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* 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.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
#undef STACK_DIRECTION
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Define if your <sys/time.h> declares struct tm. */
#undef TM_IN_SYS_TIME
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Define if the X Window System is missing or not being used. */
#undef X_DISPLAY_MISSING
/* Define to alignment constraint on chars */
#undef ALIGNMENT_CHAR
......@@ -108,6 +55,300 @@
/* Define to alignment constraint on void pointers */
#undef ALIGNMENT_VOID_P
/* The value of E2BIG. */
#undef CCONST_E2BIG
/* The value of EACCES. */
#undef CCONST_EACCES
/* The value of EADDRINUSE. */
#undef CCONST_EADDRINUSE
/* The value of EADDRNOTAVAIL. */
#undef CCONST_EADDRNOTAVAIL
/* The value of EADV. */
#undef CCONST_EADV
/* The value of EAFNOSUPPORT. */
#undef CCONST_EAFNOSUPPORT
/* The value of EAGAIN. */
#undef CCONST_EAGAIN
/* The value of EALREADY. */
#undef CCONST_EALREADY
/* The value of EBADF. */
#undef CCONST_EBADF
/* The value of EBADMSG. */
#undef CCONST_EBADMSG
/* The value of EBADRPC. */
#undef CCONST_EBADRPC
/* The value of EBUSY. */
#undef CCONST_EBUSY
/* The value of ECHILD. */
#undef CCONST_ECHILD
/* The value of ECOMM. */
#undef CCONST_ECOMM
/* The value of ECONNABORTED. */
#undef CCONST_ECONNABORTED
/* The value of ECONNREFUSED. */
#undef CCONST_ECONNREFUSED
/* The value of ECONNRESET. */
#undef CCONST_ECONNRESET
/* The value of EDEADLK. */
#undef CCONST_EDEADLK
/* The value of EDESTADDRREQ. */
#undef CCONST_EDESTADDRREQ
/* The value of EDIRTY. */
#undef CCONST_EDIRTY
/* The value of EDOM. */
#undef CCONST_EDOM
/* The value of EDQUOT. */
#undef CCONST_EDQUOT
/* The value of EEXIST. */
#undef CCONST_EEXIST
/* The value of EFAULT. */
#undef CCONST_EFAULT
/* The value of EFBIG. */
#undef CCONST_EFBIG
/* The value of EFTYPE. */
#undef CCONST_EFTYPE
/* The value of EHOSTDOWN. */
#undef CCONST_EHOSTDOWN
/* The value of EHOSTUNREACH. */
#undef CCONST_EHOSTUNREACH
/* The value of EIDRM. */
#undef CCONST_EIDRM
/* The value of EILSEQ. */
#undef CCONST_EILSEQ
/* The value of EINPROGRESS. */
#undef CCONST_EINPROGRESS
/* The value of EINTR. */
#undef CCONST_EINTR
/* The value of EINVAL. */
#undef CCONST_EINVAL
/* The value of EIO. */
#undef CCONST_EIO
/* The value of EISCONN. */
#undef CCONST_EISCONN
/* The value of EISDIR. */
#undef CCONST_EISDIR
/* The value of ELOOP. */
#undef CCONST_ELOOP
/* The value of EMFILE. */
#undef CCONST_EMFILE
/* The value of EMLINK. */
#undef CCONST_EMLINK
/* The value of EMSGSIZE. */
#undef CCONST_EMSGSIZE
/* The value of EMULTIHOP. */
#undef CCONST_EMULTIHOP
/* The value of ENAMETOOLONG. */
#undef CCONST_ENAMETOOLONG
/* The value of ENETDOWN. */
#undef CCONST_ENETDOWN
/* The value of ENETRESET. */
#undef CCONST_ENETRESET
/* The value of ENETUNREACH. */
#undef CCONST_ENETUNREACH
/* The value of ENFILE. */
#undef CCONST_ENFILE
/* The value of ENOBUFS. */
#undef CCONST_ENOBUFS
/* The value of ENODATA. */
#undef CCONST_ENODATA
/* The value of ENODEV. */
#undef CCONST_ENODEV
/* The value of ENOENT. */
#undef CCONST_ENOENT
/* The value of ENOEXEC. */
#undef CCONST_ENOEXEC
/* The value of ENOLCK. */
#undef CCONST_ENOLCK
/* The value of ENOLINK. */
#undef CCONST_ENOLINK
/* The value of ENOMEM. */
#undef CCONST_ENOMEM
/* The value of ENOMSG. */
#undef CCONST_ENOMSG
/* The value of ENONET. */
#undef CCONST_ENONET
/* The value of ENOPROTOOPT. */
#undef CCONST_ENOPROTOOPT
/* The value of ENOSPC. */
#undef CCONST_ENOSPC
/* The value of ENOSR. */
#undef CCONST_ENOSR
/* The value of ENOSTR. */
#undef CCONST_ENOSTR
/* The value of ENOSYS. */
#undef CCONST_ENOSYS
/* The value of ENOTBLK. */
#undef CCONST_ENOTBLK
/* The value of ENOTCONN. */
#undef CCONST_ENOTCONN
/* The value of ENOTDIR. */
#undef CCONST_ENOTDIR
/* The value of ENOTEMPTY. */
#undef CCONST_ENOTEMPTY
/* The value of ENOTSOCK. */
#undef CCONST_ENOTSOCK
/* The value of ENOTTY. */
#undef CCONST_ENOTTY
/* The value of ENXIO. */
#undef CCONST_ENXIO
/* The value of EOPNOTSUPP. */
#undef CCONST_EOPNOTSUPP
/* The value of EPERM. */
#undef CCONST_EPERM
/* The value of EPFNOSUPPORT. */
#undef CCONST_EPFNOSUPPORT
/* The value of EPIPE. */
#undef CCONST_EPIPE
/* The value of EPROCLIM. */
#undef CCONST_EPROCLIM
/* The value of EPROCUNAVAIL. */
#undef CCONST_EPROCUNAVAIL
/* The value of EPROGMISMATCH. */
#undef CCONST_EPROGMISMATCH
/* The value of EPROGUNAVAIL. */
#undef CCONST_EPROGUNAVAIL
/* The value of EPROTO. */
#undef CCONST_EPROTO
/* The value of EPROTONOSUPPORT. */
#undef CCONST_EPROTONOSUPPORT
/* The value of EPROTOTYPE. */
#undef CCONST_EPROTOTYPE
/* The value of ERANGE. */
#undef CCONST_ERANGE
/* The value of EREMCHG. */
#undef CCONST_EREMCHG
/* The value of EREMOTE. */
#undef CCONST_EREMOTE
/* The value of EROFS. */
#undef CCONST_EROFS
/* The value of ERPCMISMATCH. */
#undef CCONST_ERPCMISMATCH
/* The value of ERREMOTE. */
#undef CCONST_ERREMOTE
/* The value of ESHUTDOWN. */
#undef CCONST_ESHUTDOWN
/* The value of ESOCKTNOSUPPORT. */
#undef CCONST_ESOCKTNOSUPPORT
/* The value of ESPIPE. */
#undef CCONST_ESPIPE
/* The value of ESRCH. */
#undef CCONST_ESRCH
/* The value of ESRMNT. */
#undef CCONST_ESRMNT
/* The value of ESTALE. */
#undef CCONST_ESTALE
/* The value of ETIME. */
#undef CCONST_ETIME
/* The value of ETIMEDOUT. */
#undef CCONST_ETIMEDOUT
/* The value of ETOOMANYREFS. */
#undef CCONST_ETOOMANYREFS
/* The value of ETXTBSY. */
#undef CCONST_ETXTBSY
/* The value of EUSERS. */
#undef CCONST_EUSERS
/* The value of EWOULDBLOCK. */
#undef CCONST_EWOULDBLOCK
/* The value of EXDEV. */
#undef CCONST_EXDEV
/* Define if code lives before data in memory */
#undef CODE_BEFORE_DATA
......@@ -129,6 +370,9 @@
/* Define if you need -ldl to get dlopen() */
#undef HAVE_LIBDL
/* Define if we can see RTLD_NEXT in dlfcn.h */
#undef HAVE_RTLDNEXT
/* Define if C compiler supports long long types */
#undef HAVE_LONG_LONG
......@@ -192,7 +436,6 @@
/* Define to Haskell type for GLclampd */
#undef HTYPE_GLCLAMPD
/* Define to Haskell type for GLclampf */
#undef HTYPE_GLCLAMPF
......@@ -312,179 +555,33 @@
*/
#undef VOID_INT_SIGNALS
/* The number of bytes in a char. */
#undef SIZEOF_CHAR
/* The number of bytes in a double. */
#undef SIZEOF_DOUBLE
/* The number of bytes in a float. */
#undef SIZEOF_FLOAT
/* The number of bytes in a int. */
#undef SIZEOF_INT
/* The number of bytes in a long. */
#undef SIZEOF_LONG
/* The number of bytes in a long long. */
#undef SIZEOF_LONG_LONG
/* The number of bytes in a short. */
#undef SIZEOF_SHORT
/* The number of bytes in a unsigned char. */
#undef SIZEOF_UNSIGNED_CHAR
/* The number of bytes in a unsigned int. */
#undef SIZEOF_UNSIGNED_INT
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:
The entries are in sort -df order: alphabetical, case insensitive,
ignoring punctuation (such as underscores). */
/* The number of bytes in a unsigned long. */
#undef SIZEOF_UNSIGNED_LONG
/* autoheader doesn't grok AC_CHECK_LIB_NOWARN so we have to add them
manually. */
/* The number of bytes in a unsigned long long. */
#undef SIZEOF_UNSIGNED_LONG_LONG
/* The number of bytes in a unsigned short. */
#undef SIZEOF_UNSIGNED_SHORT
/* 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.
*/
#undef CRAY_STACKSEG_END
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
/* Define if using `alloca.c'. */
#undef C_ALLOCA
/* Define if you have the access function. */
/* Define if you have the `access' function. */
#undef HAVE_ACCESS
/* Define if you have the dlopen function. */
#undef HAVE_DLOPEN
/* Define if you have the farcalloc function. */
#undef HAVE_FARCALLOC
/* Define if you have the fgetpos function. */
#undef HAVE_FGETPOS
/* Define if you have the fseek function. */
#undef HAVE_FSEEK
/* Define if you have the fsetpos function. */
#undef HAVE_FSETPOS
/* Define if you have the ftell function. */
#undef HAVE_FTELL
/* Define if you have the ftime function. */
#undef HAVE_FTIME
/* Define if you have the _fullpath function. */
#undef HAVE__FULLPATH
/* Define if you have the getclock function. */
#undef HAVE_GETCLOCK
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
/* Define if you have the getrusage function. */
#undef HAVE_GETRUSAGE
/* Define if you have the gettimeofday function. */
#undef HAVE_GETTIMEOFDAY
/* Define if you have the gmtime_r function. */
#undef HAVE_GMTIME_R
/* Define if you have the localtime_r function. */
#undef HAVE_LOCALTIME_R
/* Define if you have the lstat function. */
#undef HAVE_LSTAT
/* Define if you have the macsystem function. */
#undef HAVE_MACSYSTEM
/* Define if you have the mktime function. */
#undef HAVE_MKTIME
/* Define if you have the mprotect function. */
#undef HAVE_MPROTECT
/* Define if you have the PBHSetVolSync function. */
#undef HAVE_PBHSETVOLSYNC
/* Define if you have the pclose function. */
#undef HAVE_PCLOSE
/* Define if you have the _pclose function. */
#undef HAVE__PCLOSE
/* Define if you have the popen function. */
#undef HAVE_POPEN
/* Define if you have the _popen function. */
#undef HAVE__POPEN
/* Define if you have the readdir_r function. */
#undef HAVE_READDIR_R
/* Define if you have the readlink function. */
#undef HAVE_READLINK
/* Define if you have the realpath function. */
#undef HAVE_REALPATH
/* Define if you have the setitimer function. */
#undef HAVE_SETITIMER
/* Define if you have the snprintf function. */
#undef HAVE_SNPRINTF
/* Define if you have the _snprintf function. */
#undef HAVE__SNPRINTF
/* Define if you have the stat function. */
#undef HAVE_STAT
/* Define if you have the strcasecmp function. */
#undef HAVE_STRCASECMP
/* Define if you have the strcmp function. */
#undef HAVE_STRCMP
/* Define if you have the strcmpi function. */
#undef HAVE_STRCMPI
/* Define if you have the stricmp function. */
#undef HAVE_STRICMP
/* Define if you have the _stricmp function. */
#undef HAVE__STRICMP
/* Define if you have the symlink function. */
#undef HAVE_SYMLINK
/* Define if you have the sysconf function. */
#undef HAVE_SYSCONF
/* Define if you have the timelocal function. */
#undef HAVE_TIMELOCAL
/* Define if you have the times function. */
#undef HAVE_TIMES
/* Define if you have the vadvise function. */
#undef HAVE_VADVISE
/* Define if you have the valloc function. */
#undef HAVE_VALLOC
/* Define if you have the vfork function. */
#undef HAVE_VFORK
/* Define if you have the vsnprintf function. */
#undef HAVE_VSNPRINTF
/* Define if you have `alloca', as a function or macro. */
#undef HAVE_ALLOCA
/* Define if you have the _vsnprintf function. */
#undef HAVE__VSNPRINTF
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
#undef HAVE_ALLOCA_H
/* Define if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H
......@@ -510,6 +607,9 @@
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define if you have the `dlopen' function. */
#undef HAVE_DLOPEN
/* Define if you have the <dl.h> header file. */
#undef HAVE_DL_H
......@@ -519,21 +619,54 @@
/* Define if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
/* Define if you have the `farcalloc' function. */
#undef HAVE_FARCALLOC
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the `fgetpos' function. */
#undef HAVE_FGETPOS
/* Define if you have the <Files.h> header file. */
#undef HAVE_FILES_H
/* Define if you have the <float.h> header file. */
#undef HAVE_FLOAT_H
/* Define if you have the `fseek' function. */
#undef HAVE_FSEEK
/* Define if you have the `fsetpos' function. */
#undef HAVE_FSETPOS
/* Define if you have the `ftell' function. */
#undef HAVE_FTELL
/* Define if you have the `ftime' function. */
#undef HAVE_FTIME
/* Define if you have the <ftw.h> header file. */
#undef HAVE_FTW_H
/* Define if you have the `getclock' function. */
#undef HAVE_GETCLOCK
/* Define if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE