mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Fix getopt(3) detection
This commit is contained in:
parent
5562857f68
commit
7cb1293c34
4
CHANGES
4
CHANGES
@ -1,5 +1,9 @@
|
|||||||
OpenLDAP 2.0 Change Log
|
OpenLDAP 2.0 Change Log
|
||||||
|
|
||||||
|
OpenLDAP 2.0.27 Engineering
|
||||||
|
Build environment
|
||||||
|
Fix getopt(3) detection
|
||||||
|
|
||||||
OpenLDAP 2.0.26 Release
|
OpenLDAP 2.0.26 Release
|
||||||
Fixed slapd ACL buffer size bug (ITS#1963)
|
Fixed slapd ACL buffer size bug (ITS#1963)
|
||||||
Fixed slapd ACL filters w/substrings bug (ITS#2023, ITS#2027)
|
Fixed slapd ACL filters w/substrings bug (ITS#2023, ITS#2027)
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.26-Release
|
2.0.27-Engineering
|
||||||
|
73
configure
vendored
73
configure
vendored
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# $OpenLDAP$
|
# $OpenLDAP$
|
||||||
# from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.40 2002/08/28 05:51:41 hyc Exp
|
# from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.41 2002/09/12 19:40:49 kurt Exp
|
||||||
|
|
||||||
# Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
|
# Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
|
||||||
#
|
#
|
||||||
@ -16964,19 +16964,78 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
for ac_func in getopt
|
||||||
|
do
|
||||||
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
|
echo "configure:16971: checking for $ac_func" >&5
|
||||||
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
|
else
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 16976 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
|
which can conflict with char $ac_func(); below. */
|
||||||
|
#include <assert.h>
|
||||||
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char $ac_func();
|
||||||
|
char (*f)();
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
|
||||||
|
/* The GNU C library defines this for functions which it implements
|
||||||
|
to always fail with ENOSYS. Some functions are actually named
|
||||||
|
something starting with __ and the normal name is an alias. */
|
||||||
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
||||||
|
choke me
|
||||||
|
#else
|
||||||
|
f = $ac_func;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
; return 0; }
|
||||||
|
EOF
|
||||||
|
if { (eval echo configure:17000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
|
rm -rf conftest*
|
||||||
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
|
else
|
||||||
|
echo "configure: failed program was:" >&5
|
||||||
|
cat conftest.$ac_ext >&5
|
||||||
|
rm -rf conftest*
|
||||||
|
eval "ac_cv_func_$ac_func=no"
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
fi
|
||||||
|
|
||||||
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
||||||
|
echo "$ac_t""yes" 1>&6
|
||||||
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||||
|
cat >> confdefs.h <<EOF
|
||||||
|
#define $ac_tr_func 1
|
||||||
|
EOF
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "$ac_t""no" 1>&6
|
||||||
|
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test "$ac_cv_func_getopt" != yes; then
|
if test "$ac_cv_func_getopt" != yes; then
|
||||||
LIBSRCS="$LIBSRCS getopt.c"
|
LIBSRCS="$LIBSRCS getopt.c"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check Configuration
|
# Check Configuration
|
||||||
echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
|
echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
|
||||||
echo "configure:16974: checking declaration of sys_errlist" >&5
|
echo "configure:17033: checking declaration of sys_errlist" >&5
|
||||||
if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
|
if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 16980 "configure"
|
#line 17039 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -16989,7 +17048,7 @@ int main() {
|
|||||||
char *c = (char *) *sys_errlist
|
char *c = (char *) *sys_errlist
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:16993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:17052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
ol_cv_dcl_sys_errlist=yes
|
ol_cv_dcl_sys_errlist=yes
|
||||||
ol_cv_have_sys_errlist=yes
|
ol_cv_have_sys_errlist=yes
|
||||||
@ -17012,20 +17071,20 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
|
echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
|
||||||
echo "configure:17016: checking existence of sys_errlist" >&5
|
echo "configure:17075: checking existence of sys_errlist" >&5
|
||||||
if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
|
if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 17022 "configure"
|
#line 17081 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
int main() {
|
int main() {
|
||||||
char *c = (char *) *sys_errlist
|
char *c = (char *) *sys_errlist
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:17029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:17088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
ol_cv_have_sys_errlist=yes
|
ol_cv_have_sys_errlist=yes
|
||||||
else
|
else
|
||||||
|
@ -2108,6 +2108,9 @@ AC_CHECK_FUNCS( \
|
|||||||
sendto \
|
sendto \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
dnl We actually may need to replace more than this.
|
||||||
|
AC_REPLACE_FUNCS(getopt)
|
||||||
|
|
||||||
if test "$ac_cv_func_getopt" != yes; then
|
if test "$ac_cv_func_getopt" != yes; then
|
||||||
LIBSRCS="$LIBSRCS getopt.c"
|
LIBSRCS="$LIBSRCS getopt.c"
|
||||||
fi
|
fi
|
||||||
|
@ -169,6 +169,9 @@
|
|||||||
/* Define if you have the gethostname function. */
|
/* Define if you have the gethostname function. */
|
||||||
#undef HAVE_GETHOSTNAME
|
#undef HAVE_GETHOSTNAME
|
||||||
|
|
||||||
|
/* Define if you have the getopt function. */
|
||||||
|
#undef HAVE_GETOPT
|
||||||
|
|
||||||
/* Define if you have the getpass function. */
|
/* Define if you have the getpass function. */
|
||||||
#undef HAVE_GETPASS
|
#undef HAVE_GETPASS
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ SRCS = slapd-tester.c slapd-search.c slapd-read.c slapd-addel.c
|
|||||||
LDAP_INCDIR= ../../include
|
LDAP_INCDIR= ../../include
|
||||||
LDAP_LIBDIR= ../../libraries
|
LDAP_LIBDIR= ../../libraries
|
||||||
|
|
||||||
XLIBS = -lldap -llber
|
XLIBS = -lldap -llber -llutil
|
||||||
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
|
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
|
||||||
|
|
||||||
# build-tools: FORCE
|
# build-tools: FORCE
|
||||||
|
Loading…
Reference in New Issue
Block a user