mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
SLDAP compiles, needs LDBM work to link
This commit is contained in:
parent
c0f5c88429
commit
43e6fc8e76
7 changed files with 53 additions and 11 deletions
6
aclocal.m4
vendored
6
aclocal.m4
vendored
|
|
@ -347,13 +347,13 @@ AC_DEFUN([OL_C_UPPER_LOWER],
|
|||
AC_MSG_CHECKING([if toupper() requires islower()])
|
||||
AC_CACHE_VAL(ol_cv_c_upper_lower,[
|
||||
AC_TRY_RUN([
|
||||
#include <ctypes.h>
|
||||
#include <ctype.h>
|
||||
main()
|
||||
{
|
||||
if ('C' == toupper('C'))
|
||||
exit 0;
|
||||
exit(0);
|
||||
else
|
||||
exit 1;
|
||||
exit(1);
|
||||
}],
|
||||
[ol_cv_c_upper_lower=no],
|
||||
[ol_cv_c_upper_lower=yes],
|
||||
|
|
|
|||
6
configure
vendored
6
configure
vendored
|
|
@ -5444,13 +5444,13 @@ else
|
|||
#line 5445 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <ctypes.h>
|
||||
#include <ctype.h>
|
||||
main()
|
||||
{
|
||||
if ('C' == toupper('C'))
|
||||
exit 0;
|
||||
exit(0);
|
||||
else
|
||||
exit 1;
|
||||
exit(1);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
|
|
|
|||
16
include/ac/ctype.h
Normal file
16
include/ac/ctype.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* Generic ctype.h */
|
||||
|
||||
#ifndef _AC_CTYPE_H
|
||||
#define _AC_CTYPE_H
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef C_UPPER_LOWER
|
||||
# define TOUPPER(c) (islower(c) ? toupper(c) : (c))
|
||||
# define TOLOWER(c) (islower(c) ? toupper(c) : (c))
|
||||
#else
|
||||
# define TOUPPER(c) toupper(c)
|
||||
# define TOLOWER(c) tolower(c)
|
||||
#endif
|
||||
|
||||
#endif /* _AC_CTYPE_H */
|
||||
|
|
@ -9,6 +9,11 @@
|
|||
# include <errno.h>
|
||||
#endif
|
||||
|
||||
#ifdef DECL_SYS_ERRLIST
|
||||
extern int sys_nerr;
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
/* use _POSIX_VERSION for POSIX.1 code */
|
||||
|
||||
#endif /* _AC_ERRNO_H */
|
||||
|
|
|
|||
|
|
@ -8,12 +8,16 @@
|
|||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_REGEX_H
|
||||
#ifndef HAVE_REGEX_H
|
||||
/* NO POSIX REGEX!!
|
||||
you'll need to install a POSIX compatible REGEX library.
|
||||
Either Henry Spencer's or GNU regex will do.
|
||||
|
||||
For NT: http://people.delphi.com/gjc/hs_regex.html
|
||||
*/
|
||||
#else
|
||||
/* have regex.h, assume it's POSIX compliant */
|
||||
# include <regex.h>
|
||||
#else
|
||||
/* no regex.h, use compatibility library */
|
||||
# include <regex-compat.h>
|
||||
#endif /* ! regex.h */
|
||||
#endif /* regex.h */
|
||||
|
||||
#endif /* _AC_REGEX_H_ */
|
||||
|
|
|
|||
14
include/ac/signal.h
Normal file
14
include/ac/signal.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* Generic signal.h */
|
||||
|
||||
#ifndef _AC_SIGNAL_H
|
||||
#define _AC_SIGNAL_H
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef HAVE_SIGSET
|
||||
#define SIGNAL sigset
|
||||
#else
|
||||
#define SIGNAL signal
|
||||
#endif
|
||||
|
||||
#endif /* _AC_SIGNAL_H */
|
||||
|
|
@ -31,6 +31,9 @@ is provided ``as is'' without express or implied warranty.
|
|||
#ifndef _LDAP_PORTABLE_H
|
||||
#define _LDAP_PORTABLE_H
|
||||
|
||||
/* we installed Henry Spencer's REGEX */
|
||||
#define HAVE_REGEX_H 1
|
||||
|
||||
/* win32 specific stuff */
|
||||
#define strcasecmp stricmp
|
||||
#define strncasecmp strnicmp
|
||||
|
|
|
|||
Loading…
Reference in a new issue