2 dnl Copyright 1998,1999 The OpenLDAP Foundation. All Rights Reserved.
4 dnl Redistribution and use in source and binary forms are permitted only
5 dnl as authorized by the OpenLDAP Public License. A copy of this
6 dnl license is available at http://www.OpenLDAP.org/license.html or
7 dnl in file LICENSE in the top-level directory of the distribution.
10 dnl Configure.in for OpenLDAP
11 AC_INIT(include/ldap.h)dnl
12 AC_CONFIG_AUX_DIR(build)dnl
13 AM_INIT_AUTOMAKE(OpenLDAP,[2.0-devel], [no ac_define])dnl
15 dnl Do not use AutoConf 2.12; it produces a configuration script
16 dnl that causes an "internal 2K buffer" error on HPUX when run
17 dnl with /bin/sh. Autoconf 2.10 seems to be okay.
18 AC_PREREQ(2.13)dnl Required Autoconf version
20 AC_CONFIG_HEADER(include/portable.h include/ldap_features.h)dnl
24 AC_MSG_CHECKING(configure arguments)
25 AC_PREFIX_DEFAULT(/usr/local)
28 AC_SUBST(top_builddir)dnl
30 ldap_subdir="openldap"
32 AC_ARG_WITH(subdir, [ --with-subdir=DIR change default subdirectory used for installs], [
33 if test "$withval" = "no"; then
35 elif test "$withval" != "yes"; then
36 ldap_subdir="$withval"
40 AC_SUBST(ldap_subdir)dnl
42 OL_ARG_ENABLE(debug,[ --enable-debug enable debugging], yes)dnl
44 dnl OL_ARG_ENABLE(syslog,[ --enable-syslog enable syslog support], auto)dnl
45 OL_ARG_ENABLE(proctitle,[ --enable-proctitle enable proctitle support], yes)dnl
46 OL_ARG_ENABLE(cache,[ --enable-cache enable caching], yes)dnl
47 OL_ARG_ENABLE(dns,[ --enable-dns enable V2 DNS extension], no)dnl
48 OL_ARG_ENABLE(referrals,[ --enable-referrals enable V2 Referrals extension], yes)dnl
49 OL_ARG_ENABLE(cldap,[ --enable-cldap enable connectionless ldap], no)dnl
50 OL_ARG_ENABLE(x_compile,[ --enable-x-compile enable cross compiling],
54 dnl General "with" options
55 OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl
57 OL_ARG_WITH(kerberos,[ --with-kerberos use Kerberos],
58 auto, [auto k5 k4 afs yes no])
59 OL_ARG_WITH(threads,[ --with-threads use threads],
60 auto, [auto posix mach lwp yes no manual] )
61 OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding select],
62 auto, [auto yes no manual] )
67 AC_ARG_WITH(xxldapdoptions,[LDAPD Options:])
68 OL_ARG_ENABLE(ldapd,[ --enable-ldapd enable building ldapd], no)dnl
71 AC_ARG_WITH(xxslapdoptions,[SLAPD Options:])
72 OL_ARG_ENABLE(slapd,[ --enable-slapd enable building slapd], yes)dnl
73 OL_ARG_ENABLE(aclgroups,[ --enable-aclgroups enable ACL group support], auto)dnl
74 OL_ARG_ENABLE(cleartext,[ --enable-cleartext enable cleartext passwords], yes)dnl
75 OL_ARG_ENABLE(crypt,[ --enable-crypt enable crypt(3) passwords], auto)dnl
76 OL_ARG_ENABLE(wrappers,[ --enable-wrappers enable tcp wrapper support], no)dnl
77 OL_ARG_ENABLE(phonetic,[ --enable-phonetic enable phonetic/soundex], no)dnl
78 OL_ARG_ENABLE(rlookups,[ --enable-rlookups enable reverse lookups], auto)dnl
80 dnl SLAPD Backend options
81 OL_ARG_ENABLE(bdb2,[ --enable-bdb2 enable bdb2 backend], no)dnl
82 OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], yes)dnl
83 OL_ARG_WITH(ldbm_api,[ --with-ldbm-api use LDBM API], auto,
84 [auto db2 db gdbm ndbm manual])
85 OL_ARG_WITH(ldbm_type,[ --with-ldbm-type use LDBM type], auto,
88 OL_ARG_ENABLE(passwd,[ --enable-passwd enable passwd backend], no)dnl
89 OL_ARG_ENABLE(perl,[ --enable-perl enable perl backend], no)dnl
90 OL_ARG_ENABLE(shell,[ --enable-shell enable shell backend], no)dnl
93 AC_ARG_WITH(xxslurpdoptions,[SLURPD Options:])
94 OL_ARG_ENABLE(slurpd,[ --enable-slurpd enable building slurpd], auto)dnl
96 AC_ARG_WITH(xxliboptions,[Library Generation & Linking Options])
101 dnl General "enable" options
103 if test $ol_enable_dns = yes ; then
104 if test $ol_enable_referrals = no ; then
105 AC_MSG_ERROR([DNS requires --enable-referrals])
107 if test $ol_enable_referrals = auto ; then
108 AC_MSG_WARN([DNS requires referrals, adding --enable-referrals])
109 ol_enable_referrals=yes
113 if test $ol_enable_slapd = no ; then
114 dnl SLAPD was specificallly disabled
115 if test $ol_enable_bdb2 = yes ; then
116 AC_MSG_WARN([slapd disabled, ignoring --enable_bdb2 argument])
118 if test $ol_enable_ldbm = yes ; then
119 AC_MSG_WARN([slapd disabled, ignoring --enable_ldbm argument])
121 if test $ol_enable_passwd = yes ; then
122 AC_MSG_WARN([slapd disabled, ignoring --enable_passwd argument])
124 if test $ol_enable_perl = yes ; then
125 AC_MSG_WARN([slapd disabled, ignoring --enable_perl argument])
127 if test $ol_enable_shell = yes ; then
128 AC_MSG_WARN([slapd disabled, ignoring --enable_shell argument])
130 if test $ol_enable_aclgroups = yes ; then
131 AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroups argument])
133 if test $ol_enable_wrappers = yes ; then
134 AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument])
136 if test $ol_enable_phonetic = yes ; then
137 AC_MSG_WARN([slapd disabled, ignoring --enable_phonetic argument])
139 if test $ol_enable_rlookups = yes ; then
140 AC_MSG_WARN([slapd disabled, ignoring --enable_rlookups argument])
142 if test $ol_with_ldbm_api != auto ; then
143 AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_api argument])
145 if test $ol_with_ldbm_type != auto ; then
146 AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_type argument])
148 if test $ol_enable_slurpd = yes ; then
149 AC_MSG_ERROR([slurpd requires slapd])
152 # force settings to no
158 ol_enable_aclgroups=no
159 ol_enable_wrappers=no
160 ol_enable_phonetic=no
161 ol_enable_rlookups=no
166 elif test $ol_enable_ldbm = no ; then
167 dnl SLAPD without LDBM
169 if test $ol_with_ldbm_api != auto ; then
170 AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_api argument])
173 if test $ol_with_ldbm_type != auto ; then
174 AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_type argument])
177 if test $ol_enable_ldbm = yes ; then
178 AC_MSG_ERROR([BDB2 requires --enable-ldbm])
181 if test $ol_enable_passwd = no -a \
182 $ol_enable_perl = no -a
183 $ol_enable_shell = no ; then
184 AC_MSG_ERROR([slapd requires a backend])
190 elif test $ol_enable_bdb2 = yes ; then
193 if test $ol_with_ldbm_api != auto -a \
194 $ol_with_ldbm_api != db2 ; then
195 AC_MSG_ERROR([BDB2 requires LDBM API DB2])
203 if test $ol_enable_bdb2 != no ; then
204 if test $ol_with_ldbm_api != auto -a \
205 $ol_with_ldbm_api != db2 ; then
206 AC_MSG_WARN([BDB2 requires LDBM api db2 or auto])
211 if test $ol_with_ldbm_api = gdbm -a \
212 $ol_with_ldbm_type = btree ; then
213 AC_MSG_ERROR([GDBM only supports LDBM type hash])
215 if test $ol_with_ldbm_api = ndbm -a \
216 $ol_with_ldbm_type = btree ; then
217 AC_MSG_ERROR([NDBM only supports LDBM type hash])
221 if test $ol_enable_slurpd = yes ; then
222 dnl SLURPD was specifically enabled
223 if test $ol_with_threads = no ; then
224 AC_MSG_ERROR([slurpd requires threads])
259 dnl ----------------------------------------------------------------
260 dnl Checks for programs
269 AC_PATH_PROG(SENDMAIL, sendmail, /usr/lib/sendmail,
270 $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc)
271 AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi, $PATH:/usr/ucb)
272 AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
274 if test $ol_enable_perl = yes ; then
275 AC_PATH_PROG(PERLBIN, perl, /usr/bin/perl)
277 if test "no$PERLBIN" = "no" ; then
281 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
282 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
287 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
288 AC_MSG_WARN([cross compiling.... some functionality will be removed.])
290 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
291 AC_MSG_WARN([programs compiled here do run here...])
292 AC_MSG_ERROR([ if not cross compiling, use --disable-x-compile.])
294 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
295 AC_MSG_WARN([programs compiled here do not run here...])
296 AC_MSG_ERROR([ if cross compiling, add --enable-x-compile.])
299 dnl Checks for UNIX Variants
304 dnl Checks for system services
310 dnl OpenLDAP requires STDC features
312 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
313 AC_MSG_ERROR([OpenLDAP requires compiler to support STDC prototypes.])
318 dnl Checks for libraries
321 dnl Likely combinations:
322 dnl -lsocket [ -lnsl_s | -lnsl ]
325 AC_CHECK_FUNC(socket, [have_socket=yes], [
327 dnl hopefully we won't include too many libraries
329 AC_CHECK_LIB(socket, main)
330 AC_CHECK_LIB(net, main)
331 AC_CHECK_LIB(nsl_s, main)
332 AC_CHECK_LIB(nsl, main)
333 AC_CHECK_LIB(inet, socket)
334 AC_CHECK_LIB(gen, main)
337 dnl Check for resolver routines
338 AC_CHECK_FUNCS(res_search)
339 if test $ac_cv_func_res_search = "no" ; then
340 AC_CHECK_LIB(bind, res_search)
341 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
342 AC_DEFINE(HAVE_RES_SEARCH,1)
344 AC_CHECK_LIB(resolv, res_search)
345 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
346 AC_DEFINE(HAVE_RES_SEARCH,1)
351 dnl HP-UX requires -lV3
352 AC_CHECK_LIB(V3, sigset)
356 if test $ol_enable_ldapd != no ; then
357 dnl look for ISODE libraries
358 AC_CHECK_LIB(xtpp, main, [
360 AC_DEFINE(HAVE_XTPP,1)
361 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
362 ],:,[-lxtdsap -lxtisode -losi])
363 AC_CHECK_LIB(dsap, main, [
365 AC_DEFINE(HAVE_DSAP,1)
366 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
368 AC_CHECK_LIB(isode, main, [
370 AC_DEFINE(HAVE_ISODE,1)
371 LDAPD_LIBS="$LDAPD_LIBS -lisode"
375 if test $ol_link_isode != no; then
376 AC_CHECK_LIB(pp, main, [
378 LDAPD_LIBS="-lpp $LDAPD_LIBS"
381 AC_PATH_PROG(PEPSY, pepsy)
385 dnl check for kerberos
389 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
390 AC_CHECK_HEADERS(kerberosIV/krb.h kerberosIV/des.h)
392 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
393 AC_CHECK_LIB(krb4, main, [have_k5=yes], [have_k5=no],
396 if test $have_k5 = yes ; then
397 ol_with_kerberos=found
400 AC_DEFINE(HAVE_KERBEROS)
401 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
406 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
407 AC_CHECK_HEADERS(krb.h des.h)
409 if test $ac_cv_header_krb_h = yes ; then
410 AC_CHECK_LIB(krb, main, [have_k4=yes], [have_k4=no], [-ldes])
412 if test $have_k4 = yes ; then
413 ol_with_kerberos=found
416 AC_DEFINE(HAVE_KERBEROS)
417 KRB_LIBS="-lkrb -ldes"
422 dnl if test $ol_link_kerberos = yes ; then
424 dnl LIBS="$KRB_LIBS $LIBS"
425 dnl AC_CHECK_FUNCS(des_string_to_key)
430 if test $ol_with_threads = auto -o $ol_with_threads = yes \
431 -o $ol_with_threads = posix ; then
433 AC_CHECK_HEADERS(pthread.h sched.h)
435 if test $ac_cv_header_pthread_h = yes ; then
436 OL_POSIX_THREAD_VERSION
438 if test $ol_cv_pthread_version = final ; then
439 AC_DEFINE(HAVE_PTHREADS_FINAL)
440 elif test $ol_cv_pthread_version = draft4 ; then
441 AC_DEFINE(HAVE_PTHREADS_D4)
443 AC_MSG_ERROR([unknown pthread version])
446 # consider threads found
447 ol_with_threads=found
451 if test $ol_cv_linux_threads = yes ; then
452 AC_DEFINE(HAVE_LINUX_THREADS,1)
455 dnl Now the hard part, how to link?
457 dnl currently supported checks:
459 dnl 0) pthread_create() in $LIBS
461 dnl Check special pthread (final) flags
462 dnl 1) pthread_create() with -kthread (FreeBSD)
463 dnl 2) pthread_create() with -pthread (FreeBSD)
464 dnl 3) pthread_create() with -pthreads (OSF/1)
465 dnl 4) pthread_create() with -thread (?)
467 dnl Check pthread (final) libraries
468 dnl 5) pthread_mutex_lock() in -lpthread -lexc (OSF/1)
469 dnl 6) pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1)
470 dnl 7) pthread_create() in -lpthread (many)
471 dnl 8) pthread_create() in -lc_r (FreeBSD)
472 dnl 9) pthread_create() in -lpthreads (many)
473 dnl 10) pthread_join() -Wl,-woff,85 -lpthreads (IRIX)
474 dnl 11) pthread_create() in HP-UX -lpthread (HP-UX 11)
476 dnl Check pthread (draft4) flags (to be depreciated)
477 dnl 12) pthread_create() with -threads (OSF/1)
479 dnl Check pthread (final) libraries (to be depreciated)
480 dnl 13) pthread_mutex_lock() in -lpthreads -lexc (OSF/1)
481 dnl 14) pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1)
484 dnl pthread_create in $LIBS
485 AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
487 if test $ol_link_threads = no ; then
489 AC_CACHE_CHECK([for pthread_create with -kthread],
490 [ol_cv_kthread_flag], [
493 LIBS="-kthread $LIBS"
494 AC_TRY_LINK([char pthread();],[
496 ], ol_cv_kthread_flag=yes, ol_cv_kthread_flag=no)
501 if test $ol_cv_kthread_flag = yes ; then
502 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
503 ol_link_threads=posix
507 if test $ol_link_threads = no ; then
509 AC_CACHE_CHECK([for pthread_create with -pthread],
510 [ol_cv_pthread_flag], [
513 LIBS="-pthread $LIBS"
514 AC_TRY_LINK([char pthread();],[
516 ], ol_cv_pthread_flag=yes, ol_cv_pthread_flag=no)
521 if test $ol_cv_pthread_flag = yes ; then
522 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
523 ol_link_threads=posix
527 if test $ol_link_threads = no ; then
529 AC_CACHE_CHECK([for pthread_create with -pthreads],
530 [ol_cv_pthreads_flag], [
533 LIBS="-pthreads $LIBS"
534 AC_TRY_LINK([char pthread();],[
536 ], ol_cv_pthreads_flag=yes, ol_cv_pthreads_flag=no)
541 if test $ol_cv_pthreads_flag = yes ; then
542 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
543 ol_link_threads=posix
547 if test $ol_link_threads = no ; then
549 AC_CACHE_CHECK([for pthread_create with -thread],
550 [ol_cv_thread_flag], [
554 AC_TRY_LINK([char pthread();],[
556 ], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
561 if test $ol_cv_thread_flag = yes ; then
562 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
563 ol_link_threads=posix
567 if test $ol_link_threads = no ; then
568 dnl try DEC Threads -lpthread -lexc
570 AC_CHECK_LIB(pthread, pthread_mutex_lock, [
571 ol_link_threads=posix
572 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
573 if test $ol_with_yielding_select = auto ; then
574 ol_with_yielding_select=yes
580 if test $ol_link_threads = no ; then
581 dnl try DEC Threads -lpthread -lmach -lexc -lc_r
583 AC_CHECK_LIB(pthread, pthread_mutex_unlock, [
584 ol_link_threads=posix
585 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
586 if test $ol_with_yielding_select = auto ; then
587 ol_with_yielding_select=yes
589 ],:,[-lmach -lexc -lc_r])
593 if test $ol_link_threads = no ; then
596 AC_CHECK_LIB(pthread, pthread_create, [
597 ol_link_threads=posix
598 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"],:)
602 if test $ol_link_threads = no ; then
605 AC_CHECK_LIB(c_r, pthread_create, [
606 ol_link_threads=posix
607 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"],:)
611 if test $ol_link_threads = no ; then
614 AC_CHECK_LIB(pthreads, pthread_create, [
615 ol_link_threads=posix
616 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"],:)
620 dnl IRIX Pthread check
621 if test $ol_link_threads = no ; then
622 dnl try IRIX Pthreads -Wl,-woff,85 -lpthreads
624 AC_CHECK_LIB(pthreads, pthread_join, [
625 ol_link_threads=posix
626 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
631 dnl HP-UX 11 Pthread check
632 if test $ol_link_threads = no; then
634 LIBS="$LIBS -lpthread"
635 AC_MSG_CHECKING([for pthread_create() in HP-UX -lpthread])
636 ol_try_pthread_hpux_11=no
637 AC_CACHE_VAL(ol_cv_pthread_hpux_11,[
641 #ifndef ELFABI_HPUX_REL11
644 ], [pthread_create(NULL, NULL, NULL, NULL);],
645 ol_try_pthread_hpux_11=yes
646 ol_cv_pthread_hpux_11=yes,
647 ol_cv_pthread_hpux_11=no)])
651 if test $ol_cv_pthread_hpux_11=yes ; then
652 ol_link_threads=posix
653 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
654 if test $ol_try_pthread_hpux_11=yes ; then
655 dnl Some tests below may fail, cause we aint including
656 dnl pthread.h. Force appropriate ones to yes
657 ac_cv_func_pthread_attr_init=yes
662 if test $ol_link_threads = no ; then
664 AC_CACHE_CHECK([for pthread_create with -threads],
665 [ol_cv_thread_flag], [
668 LIBS="-threads $LIBS"
669 AC_TRY_LINK([char pthread();],[
671 ], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
676 if test $ol_cv_thread_flag = yes ; then
677 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
678 ol_link_threads=posix
682 if test $ol_link_threads = no ; then
683 dnl try DEC Threads -lpthreads -lexc
685 AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
686 ol_link_threads=posix
687 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
688 if test $ol_with_yielding_select = auto ; then
689 ol_with_yielding_select=yes
695 if test $ol_link_threads = no ; then
696 dnl try DEC Threads -lpthreads -lmach -lexc -lc_r
698 AC_CHECK_LIB(pthreads, pthread_mutex_unlock, [
699 ol_link_threads=posix
700 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
701 if test $ol_with_yielding_select = auto ; then
702 ol_with_yielding_select=yes
704 ],:,[-lmach -lexc -lc_r])
708 if test $ol_link_threads != no ; then
709 AC_DEFINE(HAVE_PTHREADS)
712 save_CPPFLAGS="$CPPFLAGS"
714 LIBS="$LTHREAD_LIBS $LIBS"
716 dnl All POSIX Thread (final) implementations should have
717 dnl sched_yield instead of pthread yield.
719 AC_CHECK_FUNCS(sched_yield pthread_yield)
721 if test $ac_cv_func_sched_yield = no -a \
722 $ac_cv_func_pthread_yield = no ; then
723 dnl Digital UNIX has sched_yield() in -lrt
724 AC_CHECK_LIB(rt, sched_yield,
725 [LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
726 AC_DEFINE(HAVE_SCHED_YIELD,1)
727 ac_cv_func_sched_yield=yes],
728 [ac_cv_func_sched_yield=no])
730 if test $ac_cv_func_sched_yield = no -a \
731 $ac_cv_func_pthread_yield = no ; then
732 dnl Solaris has sched_yield() in -lposix4
733 dnl but we'll use thr_yield instead.
734 AC_CHECK_FUNCS(thr_yield)
736 if test $ac_cv_func_sched_yield = no -a \
737 $ac_cv_func_pthread_yield = no -a \
738 "$ac_cv_func_thr_yield" = no ; then
739 AC_MSG_WARN([could not locate sched_yield() or pthread_yield()])
742 dnl Check functions for compatibility
743 AC_CHECK_FUNCS(pthread_kill pthread_detach)
745 if test $ac_cv_func_pthread_detach = no ; then
746 AC_MSG_ERROR([could not locate pthread_detach()])
749 dnl Check for setconcurreny functions
751 pthread_setconcurrency \
752 pthread_getconcurrency \
757 AC_MSG_CHECKING([if pthread_create() works])
758 AC_CACHE_VAL(ol_cv_pthread_create_works,[
762 #define NULL (void*)0
768 return (void *) (p == NULL);
776 exit(pthread_create(&t, NULL, task, NULL));
779 [ol_cv_pthread_create_works=yes],
780 [ol_cv_pthread_create_works=no],
782 ol_cv_pthread_create_works=yes])])
783 AC_MSG_RESULT($ol_cv_pthread_create_works)
785 if test $ol_cv_pthread_create_works = no ; then
786 AC_MSG_ERROR([pthread.h and pthread_create are not compatible])
789 dnl Check if select causes an yield
790 if test $ol_with_yielding_select = auto ; then
791 AC_MSG_CHECKING([if select yields when using pthreads])
792 AC_CACHE_VAL(ol_cv_pthread_select_yields,[
794 #include <sys/types.h>
795 #include <sys/time.h>
799 #define NULL (void*) 0
802 static int fildes[2];
816 FD_SET(fildes[0], &rfds);
818 /* we're not interested in any fds */
819 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
826 exit(0); /* if we exit here, the select blocked the whole process */
835 /* create a pipe to select */
836 if(pipe(&fildes[0])) {
841 #ifdef HAVE_PTHREAD_SETCONCURRENCY
842 (void) pthread_setconcurrency(2);
844 #ifdef HAVE_THR_SETCONCURRENCY
845 /* Set Solaris LWP concurrency to 2 */
846 thr_setconcurrency(2);
850 pthread_create(&t, NULL, task, NULL);
853 sched_yield(); /* make sure task runs first */
855 #ifdef HAVE_PTHREAD_YIELD
856 pthread_yield(); /* make sure task runs first */
862 [ol_cv_pthread_select_yields=no],
863 [ol_cv_pthread_select_yields=yes], [
864 AC_MSG_ERROR([crossing compiling: use --with-yielding_select=yes|no|manual])])])
865 AC_MSG_RESULT($ol_cv_pthread_select_yields)
867 if test $ol_cv_pthread_select_yields = yes ; then
868 ol_with_yielding_select=yes
873 CPPFLAGS="$save_CPPFLAGS"
876 AC_MSG_ERROR([could not link with POSIX Threads])
880 if test $ol_with_threads = posix ; then
881 AC_MSG_ERROR([could not locate POSIX Threads])
885 if test $ol_with_threads = auto -o $ol_with_threads = yes \
886 -o $ol_with_threads = mach ; then
888 dnl check for Mach CThreads
889 AC_CHECK_HEADERS(mach/cthreads.h)
890 if test $ac_cv_header_mach_cthreads_h = yes ; then
891 ol_with_threads=found
893 dnl check for cthread support in current $LIBS
894 AC_CHECK_FUNC(cthread_fork,[ol_link_threads=yes])
896 if test $ol_link_threads = no ; then
898 dnl this test needs work
899 AC_CACHE_CHECK([for cthread_fork with -all_load],
900 [ol_cv_cthread_all_load], [
903 LIBS="-all_load $LIBS"
904 AC_TRY_LINK([#include <mach/cthreads.h>],[
905 cthread_fork((void *)0, (void *)0);
906 ], ol_cv_cthread_all_load=yes, ol_cv_cthread_all_load=no)
911 if test $ol_cv_cthread_all_load = yes ; then
912 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
917 if test $ol_link_threads != no ; then
918 : check for cthread specific functionality here
919 AC_DEFINE(HAVE_MACH_CTHREADS,1)
921 AC_MSG_ERROR([could not link with Mach CThreads])
925 if test $ol_with_threads = mach ; then
926 AC_MSG_ERROR([could not locate Mach CThreads])
930 if test $ol_with_threads = auto -o $ol_with_threads = yes \
931 -o $ol_with_threads = lwp ; then
933 dnl check for SunOS5 LWP
934 AC_CHECK_HEADERS(thread.h synch.h)
935 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
936 AC_CHECK_LIB(thread, thr_create, [have_thr=yes], [have_thr=no])
938 if test $have_thr = yes ; then
940 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
943 if test $ol_with_yielding_select = auto ; then
944 ol_with_yielding_select=yes
947 dnl Check for setconcurreny functions
955 dnl check for SunOS4 LWP
956 AC_CHECK_HEADERS(lwp/lwp.h)
957 if test $ac_cv_header_lwp_lwp_h = yes ; then
958 AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no])
960 if test $have_lwp = yes ; then
962 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
965 if test $ol_with_yielding_select = auto ; then
966 ol_with_yielding_select=no
972 if test $ol_with_yielding_select = yes ; then
973 AC_DEFINE(HAVE_YIELDING_SELECT,1)
976 if test $ol_with_threads = manual ; then
977 dnl User thinks he can manually configure threads.
980 AC_MSG_WARN([thread defines and link options must be set manually])
982 AC_CHECK_HEADERS(pthread.h sched.h)
983 AC_CHECK_FUNCS(sched_yield pthread_yield)
986 AC_CHECK_HEADERS(mach/cthreads.h)
987 AC_CHECK_HEADERS(lwp/lwp.h)
988 AC_CHECK_HEADERS(thread.h synch.h)
991 if test $ol_link_threads != no ; then
992 dnl needed to get reentrant/threadsafe versions
994 AC_DEFINE(REENTRANT,1)
995 AC_DEFINE(_REENTRANT,1)
996 AC_DEFINE(THREAD_SAFE,1)
997 AC_DEFINE(_THREAD_SAFE,1)
998 AC_DEFINE(THREADSAFE,1)
999 AC_DEFINE(_THREADSAFE,1)
1001 dnl this might cause the errno symbol to be
1002 dnl replaced with a function to get a thread specific errno.
1003 dnl check to see if everything needs to be compiled
1004 dnl with the thread libraries
1005 AC_CACHE_CHECK([for thread specific errno],
1006 [ol_cv_errno_thread_specific], [
1012 [ol_cv_errno_thread_specific=yes],
1013 [ol_cv_errno_thread_specific=no])
1016 if test $ol_cv_errno_thread_specific != yes ; then
1017 LIBS="$LTHREAD_LIBS $LIBS"
1021 dnl When in thread environment, use
1022 dnl #if defined( HAVE_REENTRANT_FUNCTIONS ) \
1023 dnl || defined( HAVE_FUNC_R )
1026 dnl # if defined( HAVE_THREADS )
1030 dnl # if defined( HAVE_THREADS )
1035 dnl HAVE_REENTRANT_FUNCTIONS is derived from:
1036 dnl _POSIX_REENTRANT_FUNCTIONS
1037 dnl _POSIX_THREAD_SAFE_FUNCTIONS
1038 dnl _POSIX_THREADSAFE_FUNCTIONS
1040 dnl and is currently defined in lthread.h
1042 dnl HAVE_THREADS is defined by lthread.h iff -UNO_THREADS
1044 dnl libldap/*.c should only include <lthread.h> iff
1045 dnl LDAP_R_COMPILE is defined. ie:
1046 dnl #ifdef LDAP_R_COMPILE
1047 dnl # include LDAP_R_COMPILE
1050 dnl LDAP_R_COMIPLE is defined by libldap_r/Makefile.in
1051 dnl specifically for compiling the threadsafe version of
1052 dnl the ldap library (-lldap_r).
1054 dnl dnl check for reentrant/threadsafe functions
1056 dnl dnl note: these should only be used when linking
1057 dnl dnl with $LTHREAD_LIBS
1059 dnl save_CPPFLAGS="$CPPFLAGS"
1060 dnl save_LIBS="$LIBS"
1061 dnl LIBS="$LTHREAD_LIBS $LIBS"
1062 dnl AC_CHECK_FUNCS( \
1065 dnl gethostbyaddr_r gethostbyname_r \
1066 dnl feof_unlocked unlocked_feof \
1067 dnl putc_unlocked unlocked_putc \
1068 dnl flockfile ftrylockfile \
1070 dnl CPPFLAGS="$save_CPPFLAGS"
1071 dnl LIBS="$save_LIBS"
1074 dnl ----------------------------------------------------------------
1076 if test $ol_link_threads = no ; then
1077 if test $ol_with_threads = yes ; then
1078 AC_MSG_ERROR([no suitable thread support])
1081 if test $ol_with_threads = auto ; then
1082 AC_MSG_WARN([no suitable thread support, disabling threads])
1086 AC_DEFINE(NO_THREADS,1)
1091 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
1094 if test $ol_cv_berkeley_db2 = yes ; then
1096 ol_with_ldbm_api=db2
1098 if test $ol_with_ldbm_type = hash ; then
1099 AC_DEFINE(LDBM_USE_DBHASH,1)
1101 AC_DEFINE(LDBM_USE_DBBTREE,1)
1104 dnl $ol_cv_lib_db2 should be yes or -ldb
1105 dnl (it could be no, but that would be an error
1106 if test $ol_cv_lib_db2 != yes ; then
1107 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
1113 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
1117 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
1120 if test $ol_cv_berkeley_db = yes ; then
1124 if test $ol_with_ldbm_type = hash ; then
1125 AC_DEFINE(LDBM_USE_DBHASH,1)
1127 AC_DEFINE(LDBM_USE_DBBTREE,1)
1130 dnl $ol_cv_lib_db should be yes or -ldb
1131 dnl (it could be no, but that would be an error
1132 if test $ol_cv_lib_db != yes ; then
1133 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
1138 if test $ol_with_ldbm_api = manual ; then
1139 dnl User thinks he can manually configure LDBM api.
1142 AC_MSG_WARN([LDBM defines and link options must be set manually])
1144 AC_CHECK_HEADERS(db.h db_185.h gdbm.h ndbm.h)
1147 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
1148 AC_MSG_WARN(Could not find LDBM with BTREE support)
1149 ol_with_ldbm_api=none
1152 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
1155 if test $ol_cv_gdbm = yes ; then
1157 ol_with_ldbm_api=gdbm
1159 if test $ol_cv_lib_gdbm != yes ; then
1160 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
1165 if test $ol_with_ldbm_api = auto ; then
1166 AC_MSG_WARN([skipping automatic checking for NDBM, must be manually enabled.])
1167 elif test $ol_with_ldbm_api = ndbm ; then
1170 if test $ol_cv_ndbm = yes ; then
1172 ol_with_ldbm_api=ndbm
1174 if test $ol_cv_lib_ndbm != yes ; then
1175 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
1180 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
1181 AC_MSG_WARN(could not find suitable LDBM backend)
1182 if test $ol_enable_ldbm = yes ; then
1183 AC_MSG_ERROR(select appropriate LDBM options or disable)
1186 AC_MSG_WARN(disabling LDBM)
1190 if test $ol_enable_wrappers != no ; then
1191 AC_CHECK_HEADERS(tcpd.h)
1193 if test $ac_cv_header_tcpd_h != yes ; then
1196 AC_CHECK_LIB(wrap, main,
1197 [have_wrappers=yes], [have_wrappers=no])
1200 if test $have_wrappers = yes ; then
1201 AC_DEFINE(HAVE_TCPD)
1202 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
1204 AC_MSG_WARN(could not find -lwrap)
1205 if test $ol_enable_wrappers = yes ; then
1206 AC_MSG_ERROR(could not find wrappers, select appropriate options or disable)
1209 AC_MSG_WARN(disabling wrappers support)
1210 ol_enable_wrappers=no
1214 if test $ol_enable_syslog != no ; then
1215 AC_CHECK_FUNC(openlog)
1216 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
1217 AC_MSG_ERROR(could not find syslog, select appropriate options or disable)
1219 ol_enable_syslog=$ac_cv_func_openlog
1222 if test $ol_enable_dmalloc != no ; then
1223 AC_CHECK_HEADERS(dmalloc.h)
1224 AC_CHECK_LIB(dmalloc, dmalloc_shutdown)
1227 # ud needs termcap (should insert check here)
1229 AC_CHECK_HEADERS(termcap.h ncurses.h)
1231 if test $ol_link_termcap = no ; then
1232 AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no])
1233 if test $have_termcap = yes ; then
1234 AC_DEFINE(HAVE_TERMCAP)
1236 TERMCAP_LIBS=-ltermcap
1240 if test $ol_link_termcap = no ; then
1241 AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
1242 if test $have_ncurses = yes ; then
1243 AC_DEFINE(HAVE_NCURSES)
1245 TERMCAP_LIBS=-lncurses
1249 if test $ol_link_termcap = no ; then
1250 AC_DEFINE(NO_TERMCAP,1)
1254 # FreeBSD (and others) have crypt(3) in -lcrypt
1255 if test $ol_enable_crypt != no ; then
1256 AC_CHECK_FUNC(crypt, [have_crypt=yes], [
1257 AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
1258 have_crypt=yes], [have_crypt=no])])
1260 if test $have_crypt = yes ; then
1261 AC_DEFINE(HAVE_CRYPT,1)
1263 AC_MSG_WARN(could not find crypt)
1264 if test $ol_enable_crypt = yes ; then
1265 AC_MSG_ERROR(could not find crypt, select appropriate options or disable)
1268 AC_MSG_WARN(disabling crypt support)
1273 # FreeBSD (and others) have setproctitle(3) in -lutil
1274 if test $ol_enable_proctitle != no ; then
1275 AC_CHECK_FUNC(setproctitle, [have_setproctitle=yes], [
1276 AC_CHECK_LIB(util, setproctitle,
1277 [have_setproctitle=yes
1278 LUTIL_LIBS="$LUTIL_LIBS -lutil"],
1279 [have_setproctitle=no
1280 LIBOBJS="$LIBOBJS setproctitle.o"])])
1282 if test $have_setproctitle = yes ; then
1283 AC_DEFINE(HAVE_SETPROCTITLE,1)
1287 dnl ----------------------------------------------------------------
1288 dnl Checks for header files.
1291 if test $ac_cv_header_stdc != yes; then
1292 AC_MSG_WARN([could not Standard C compliant headers])
1297 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
1298 if test $am_cv_sys_posix_termios = yes ; then
1299 AC_DEFINE(HAVE_POSIX_TERMIOS,1)
1336 dnl ----------------------------------------------------------------
1337 dnl Checks for typedefs, structures, and compiler characteristics.
1338 AC_TYPE_GETGROUPS dnl requires AC_TYPE_UID_T
1344 OL_TYPE_SIG_ATOMIC_T
1346 AC_STRUCT_ST_BLKSIZE
1354 if test $cross_compiling = yes ; then
1355 AC_DEFINE(CROSS_COMPILING, 1)
1358 AC_CHECK_SIZEOF(short)
1359 AC_CHECK_SIZEOF(int)
1360 AC_CHECK_SIZEOF(long)
1363 dnl ----------------------------------------------------------------
1364 dnl Checks for library functions.
1366 dnl AM_FUNC_MKTIME dnl checks for sys/time.h and unistd.h
1371 if test $ac_cv_func_vprintf = yes ; then
1372 dnl check for vsnprintf
1373 AC_CHECK_FUNCS(vsnprintf vsprintf)
1408 # these functions are required to build a thread_safe -lldap
1416 if test "$ac_cv_func_ctime_r" = yes ; then
1417 OL_FUNC_CTIME_R_NARGS
1419 ol_cv_func_ctime_r=0
1422 if test "$ac_cv_func_strtok_r" = yes \
1423 -a "$ac_cv_func_ctime_r" = yes \
1424 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
1425 -a "$ac_cv_func_gethostbyaddr_r" = yes \
1426 -a "$ac_cv_func_gethostbyname_r" = yes \
1429 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_REENTRANT, 1)
1432 if test $ol_link_threads != no ; then
1433 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE, 1)
1436 dnl We actually may need to replace more than this.
1437 AC_REPLACE_FUNCS(getopt tempnam)
1439 dnl ----------------------------------------------------------------
1440 # Check Configuration
1443 dnl ----------------------------------------------------------------
1444 dnl Sort out defines
1446 if test "$ol_enable_debug" != no ; then
1447 AC_DEFINE(LDAP_DEBUG,1)
1449 if test "$ol_enable_syslog" = yes ; then
1450 AC_DEFINE(LDAP_SYSLOG,1)
1452 if test "$ol_enable_libui" = yes ; then
1453 AC_DEFINE(LDAP_LIBUI,1)
1455 if test "$ol_enable_cache" = no ; then
1456 AC_DEFINE(LDAP_NOCACHE,1)
1458 if test "$ol_enable_dns" != no ; then
1459 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,LDAP_VENDOR_VERSION,1)
1461 if test "$ol_enable_proctitle" != no ; then
1462 AC_DEFINE(LDAP_PROCTITLE,1)
1464 if test "$ol_enable_referrals" != no ; then
1465 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION,1)
1467 if test "$ol_enable_cldap" != no ; then
1468 AC_DEFINE(LDAP_CONNECTIONLESS,1)
1471 if test "$ol_enable_aclgroups" != no ; then
1472 AC_DEFINE(SLAPD_ACLGROUPS,1)
1474 if test "$ol_enable_crypt" != no ; then
1475 AC_DEFINE(SLAPD_CRYPT,1)
1477 if test "$ol_enable_cleartext" != no ; then
1478 AC_DEFINE(SLAPD_CLEARTEXT,1)
1480 if test "$ol_enable_phonetic" != no ; then
1481 AC_DEFINE(SLAPD_PHONETIC,1)
1483 if test "$ol_enable_rlookups" != no ; then
1484 AC_DEFINE(SLAPD_RLOOKUPS,1)
1487 if test "$ol_link_bdb2" != no ; then
1488 AC_DEFINE(SLAPD_BDB2,1)
1493 if test "$ol_link_ldbm" != no ; then
1494 AC_DEFINE(SLAPD_LDBM,1)
1499 if test "$ol_enable_passwd" != no ; then
1500 AC_DEFINE(SLAPD_PASSWD,1)
1505 if test "$ol_enable_perl" != no ; then
1506 AC_DEFINE(SLAPD_PERL,1)
1511 if test "$ol_enable_shell" != no ; then
1512 AC_DEFINE(SLAPD_SHELL,1)
1517 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
1518 $BUILD_SLAPD = yes ; then
1522 if test "$ol_link_isode" != no ; then
1526 dnl ----------------------------------------------------------------
1528 AC_SUBST(BUILD_LDAPD)
1529 AC_SUBST(BUILD_SLAPD)
1530 AC_SUBST(BUILD_BDB2)
1531 AC_SUBST(BUILD_LDBM)
1532 AC_SUBST(BUILD_PASSWD)
1533 AC_SUBST(BUILD_PERL)
1534 AC_SUBST(BUILD_SHELL)
1535 AC_SUBST(BUILD_SLURPD)
1538 AC_SUBST(LDAPD_LIBS)
1539 AC_SUBST(SLAPD_LIBS)
1540 AC_SUBST(SLURPD_LIBS)
1542 AC_SUBST(LTHREAD_LIBS)
1543 AC_SUBST(LUTIL_LIBS)
1545 AC_SUBST(SLAPD_PERL_CPPFLAGS)
1546 AC_SUBST(SLAPD_PERL_LDFLAGS)
1549 AC_SUBST(TERMCAP_LIBS)
1551 dnl ----------------------------------------------------------------
1556 Makefile:build/top.mk:Makefile.in:build/dir.mk \
1557 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
1558 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
1559 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
1560 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
1561 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
1562 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
1563 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
1564 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
1565 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
1566 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
1567 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
1568 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
1569 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
1570 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
1571 include/Makefile:build/top.mk:include/Makefile.in \
1572 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
1573 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
1574 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
1575 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
1576 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
1577 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
1578 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
1579 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
1580 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
1581 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
1582 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
1583 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
1584 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
1585 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
1586 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
1587 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
1588 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
1589 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
1590 tests/Makefile:build/top.mk:tests/Makefile.in \
1593 echo Please \"make depend\" to build dependencies