1 If CC supports the "-print-multi-os-directory" option, use it to determine
2 where to check for the existence libcrypt. If it doesn't, then we get /usr/lib.
4 --- ppp-2.4.2/pppd/Makefile.linux 2003-11-27 16:55:19.000000000 -0500
5 +++ ppp-2.4.2/pppd/Makefile.linux 2004-03-10 17:44:04.000000000 -0500
7 BINDIR = $(DESTDIR)/usr/sbin
8 MANDIR = $(DESTDIR)/usr/share/man
9 INCDIR = $(DESTDIR)/usr/include
10 +LIBDIR = $(DESTDIR)/$(libdir)
18 -COPTS = -Wall $(RPM_OPT_FLAGS)
19 +COPTS = -Wall $(RPM_OPT_FLAGS) -DLIBDIR=\""$(libdir)"\"
22 # Uncomment the next 2 lines to include support for Microsoft's
24 ifneq ($(wildcard /usr/include/crypt.h),)
25 CFLAGS += -DHAVE_CRYPT_H=1
27 -ifneq ($(wildcard /usr/lib/libcrypt.so),)
28 +ifneq ($(wildcard $(libdir)/libcrypt.*),)
32 --- ppp-2.4.2/pppd/plugins/Makefile.linux 2004-03-10 18:40:27.000000000 -0500
33 +++ ppp-2.4.2/pppd/plugins/Makefile.linux 2004-03-10 18:41:20.000000000 -0500
35 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
37 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
38 -LIBDIR = $(DESTDIR)/usr/lib/pppd/$(VERSION)
39 +LIBDIR = $(DESTDIR)/$(libdir)/pppd/$(VERSION)
42 $(INSTALL) -d $(LIBDIR)
43 --- ppp-2.4.2/pppd/pathnames.h 2004-03-10 18:52:15.000000000 -0500
44 +++ ppp-2.4.2/pppd/pathnames.h 2004-03-10 18:52:10.000000000 -0500
49 -#define _PATH_PLUGIN "/usr/lib/pppd/" VERSION
50 +#define _PATH_PLUGIN LIBDIR "/pppd/" VERSION