diff -urN autofs-5.0.3.orig/daemon/Makefile autofs-5.0.3/daemon/Makefile --- autofs-5.0.3.orig/daemon/Makefile 2008-01-14 06:39:16 +0200 +++ autofs-5.0.3/daemon/Makefile 2008-05-22 10:22:05 +0300 @@ -19,7 +19,7 @@ CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfifodir)\" CFLAGS += -DVERSION_STRING=\"$(version)\" LDFLAGS += -rdynamic -LIBS = -ldl +LIBS = -lpthread -ldl all: automount diff -urN autofs-5.0.3.orig/Makefile.rules autofs-5.0.3/Makefile.rules --- autofs-5.0.3.orig/Makefile.rules 2008-01-14 06:39:16 +0200 +++ autofs-5.0.3/Makefile.rules 2008-05-22 10:50:50 +0300 @@ -33,7 +33,6 @@ STRIP = : else CFLAGS ?= -O2 -Wall -LDFLAGS = -s STRIP = strip --strip-debug endif endif @@ -45,7 +44,6 @@ SOLDFLAGS = -shared CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 -LDFLAGS += -lpthread ifdef DMALLOCLIB LDFLAGS += $(DMALLOCLIB) diff -urN autofs-5.0.3.orig/modules/Makefile autofs-5.0.3/modules/Makefile --- autofs-5.0.3.orig/modules/Makefile 2008-01-14 06:39:16 +0200 +++ autofs-5.0.3/modules/Makefile 2008-05-22 10:22:05 +0300 @@ -63,7 +63,9 @@ -rm -f $(INSTALLROOT)$(autofslibdir)/mount_smbfs.so ln -fs lookup_file.so $(INSTALLROOT)$(autofslibdir)/lookup_files.so ln -fs lookup_yp.so $(INSTALLROOT)$(autofslibdir)/lookup_nis.so +ifeq ($(LDAP), 1) ln -fs lookup_ldap.so $(INSTALLROOT)$(autofslibdir)/lookup_ldaps.so +endif ln -fs mount_nfs.so $(INSTALLROOT)$(autofslibdir)/mount_nfs4.so ifeq ($(EXT2FS), 1) ifeq ($(EXT3FS), 1) diff -urN autofs-5.0.3.orig/samples/Makefile autofs-5.0.3/samples/Makefile --- autofs-5.0.3.orig/samples/Makefile 2008-01-14 06:39:16 +0200 +++ autofs-5.0.3/samples/Makefile 2008-05-22 10:22:05 +0300 @@ -173,8 +173,12 @@ fi ; \ fi +ifeq ($(LDAP), 1) install: rc.autofs autofs.conf.default dirs autofs.init autofs.conf \ autofs_ldap_auth.conf $(SAMPLES) +else +install: rc.autofs autofs.conf.default dirs autofs.init autofs.conf $(SAMPLES) +endif @echo clean: