On Tue, Mar 31, 1998 at 10:36:49AM -0700, Kevin P. Fleming wrote:
> the Makefiles... I've got RedHat 4.2 on my primary firewall/mail
> machine, and I'm not keen on upgrading for quite a while, especially
> with all the patches that have been released for RH5.0/glibc-2.0
> already. Is is possible for Exim's configure script to tell the
> difference between a libc5 and a libc6/glibc2 system automagically?
I've just had a play with this.
I haven't tested this properly, as I don't have access to a libc5 system
(well, I do, but I'd have to go online at daytime rates to access them; the
only system I've got at home is libc6). I suggest adding the following near
the bottom of scripts/os-type.
------
# In the case of Linux we need to distinguish which libc is used
# This is more cautious than it needs to be. In practice libc5 will always
# be a symlink, and libc6 will always be a linker control file, but it's
# easy enough to do a better check, and check the symlink destination or the
# control file contents and make sure.
case "$os" in
Linux) if [ -L /usr/lib/libc.so ];
if [ x"$(file /usr/lib/libc.so | grep "libc.so.5")"x != xx ]; then
os=Linux-libc5
fi
else
if grep -q libc.so.5 /usr/lib/libc.so; then
os=Linux-libc5
fi
fi
;;
esac
------
Then the existing {Makefile,os.h}-Linux should be copied to -Linux-libc5,
and Makefile-Linux should be edited as
------
--- Makefile-Linux-libc5 Wed Apr 1 10:22:04 1998
+++ Makefile-Linux Wed Apr 1 10:37:38 1998
@@ -2,7 +2,12 @@
BASENAME_COMMAND=look_for_it
-DBMLIB = -lndbm
+DBMLIB = -ldb
+
+USE_DB = 1
+
+LIBS = -lnsl
+LIBRESOLV = -lresolv
X11=/usr/X11R6
XINCLUDE=-I$(X11)/include
------
(I'd suggest that Berkely db should be the default on libc6 systems, as it
comes with libc6)
--
*** Exim information can be found at
http://www.exim.org/ ***