Add check for libsocket and libnsl (sigh). krb5_init_ctx drags in
authorTheodore Tso <tytso@mit.edu>
Sat, 11 Feb 1995 00:04:58 +0000 (00:04 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 11 Feb 1995 00:04:58 +0000 (00:04 +0000)
cryptoconf.c, which drags in enough of the crypto library that
socket() gets called.  We should to fix this eventually to make klist
smaller, but the fix will be subtle.   Sigh....

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4942 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/klist/ChangeLog
src/clients/klist/Makefile.in
src/clients/klist/configure.in

index 14135d24fe887c4795b6a138970b0630461333fe..3fde40fc0ec9bdf742ab8337e5707efa0b8d666e 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 10 18:44:44 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * Makefile.in (ISODELIB): Remove ISODE cruft.  Use $(LIBS) so that
+               libsocket can be pulled in if necessary.
+
+       * configure.in: Add check for libsocket and libnsl (sigh).
+               krb5_init_ctx drags in cryptoconf.c, which drags in enough
+               of the crypto library that socket() gets called.  We should
+               to fix this eventually to make klist smaller, but the fix
+               will be subtle.
+
 Thu Feb 09 17:43:47 1995  Chris Provenzano (proven@mit.edu)
 
        * klist.c Added -e option to print out encryption types.
index 93f7df91eb5c32a61a9456864287adbe2dee512e..796a31fd259498cfd6b3ea11de7e5e238ab464f7 100644 (file)
@@ -1,7 +1,6 @@
 CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
 LDFLAGS = -g
 
-ISODELIB=@ISODELIB@
 COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
 
 all::
@@ -10,7 +9,7 @@ KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
 DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
 
 klist: klist.o $(DEPKLIB)
-       $(CC) $(CFLAGS) -o klist klist.o $(KLIB)
+       $(CC) $(CFLAGS) -o klist klist.o $(KLIB) $(LIBS)
 
 klist.o:       $(srcdir)/klist.c
 
index 608b04565f0d117613b10e10abedf3d3e351401e..f7a963b3fab5d0eec4f14036cfabd699b1cb2148 100644 (file)
@@ -4,6 +4,7 @@ AC_SET_BUILDTOP
 AC_PROG_INSTALL
 CONFIG_RULES
 KRB_INCLUDE
-ISODE_INCLUDE
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 WITH_KRB5ROOT
 V5_AC_OUTPUT_MAKEFILE