mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
configure.in now includes OL_DECL_STRDUP, configure and portable.h.in
rebuilt to reflect it.
This commit is contained in:
parent
da5444cee5
commit
e732e12279
3 changed files with 45 additions and 1 deletions
37
configure
vendored
37
configure
vendored
|
|
@ -10089,6 +10089,43 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo $ac_n "checking strdup decleration""... $ac_c" 1>&6
|
||||||
|
echo "configure:10094: checking strdup decleration" >&5
|
||||||
|
if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
|
else
|
||||||
|
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 10100 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
int main() {
|
||||||
|
extern char *strdup()
|
||||||
|
; return 0; }
|
||||||
|
EOF
|
||||||
|
if { (eval echo configure:10108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
|
rm -rf conftest*
|
||||||
|
ol_cv_dcl_strdup=yes
|
||||||
|
else
|
||||||
|
echo "configure: failed program was:" >&5
|
||||||
|
cat conftest.$ac_ext >&5
|
||||||
|
rm -rf conftest*
|
||||||
|
ol_cv_dcl_strdup=no
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
|
||||||
|
if test $ol_cv_dcl_strdup = yes ; then
|
||||||
|
cat >> confdefs.h <<\EOF
|
||||||
|
#define DECL_STRDUP 1
|
||||||
|
EOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test "$ol_enable_debug" != no ; then
|
if test "$ol_enable_debug" != no ; then
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
#define LDAP_DEBUG 1
|
#define LDAP_DEBUG 1
|
||||||
|
|
|
||||||
|
|
@ -1671,6 +1671,10 @@ dnl ----------------------------------------------------------------
|
||||||
# Check Configuration
|
# Check Configuration
|
||||||
OL_SYS_ERRLIST
|
OL_SYS_ERRLIST
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Check our declaration of strdup()
|
||||||
|
OL_DECL_STRDUP
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Sort out defines
|
dnl Sort out defines
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -663,12 +663,15 @@
|
||||||
/* define if cross compiling */
|
/* define if cross compiling */
|
||||||
#undef CROSS_COMPILING
|
#undef CROSS_COMPILING
|
||||||
|
|
||||||
/* define if sys_errlist is declared in stdio.h or errno.h */
|
/* define if sys_errlist is not declared in stdio.h or errno.h */
|
||||||
#undef DECL_SYS_ERRLIST
|
#undef DECL_SYS_ERRLIST
|
||||||
|
|
||||||
/* define if you actually have sys_errlist in your libs */
|
/* define if you actually have sys_errlist in your libs */
|
||||||
#undef HAVE_SYS_ERRLIST
|
#undef HAVE_SYS_ERRLIST
|
||||||
|
|
||||||
|
/* define if you have strdup() but it's not declared */
|
||||||
|
#undef DECL_STRDUP
|
||||||
|
|
||||||
/* begin of postamble */
|
/* begin of postamble */
|
||||||
|
|
||||||
#ifdef HAVE_STDDEF_H
|
#ifdef HAVE_STDDEF_H
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue