Commit 43e6fc8e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

SLDAP compiles, needs LDBM work to link

parent c0f5c884
......@@ -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],
......
......@@ -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
......
/* 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_ */
/* 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment