+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
cat >> confdefs.h <<\EOF
#define LDAP_DEBUG 1
# Check Configuration
OL_SYS_ERRLIST
+dnl ----------------------------------------------------------------
+dnl Check our declaration of strdup()
+OL_DECL_STRDUP
+
dnl ----------------------------------------------------------------
dnl Sort out defines
/* define if 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
/* define if you actually have sys_errlist in your libs */
#undef HAVE_SYS_ERRLIST
+/* define if you have strdup() but it's not declared */
+#undef DECL_STRDUP
+
/* begin of postamble */
#ifdef HAVE_STDDEF_H