From ef047d839a8f6d2e8109a67d0fe6503135ea7ab5 Mon Sep 17 00:00:00 2001 From: Marc Horowitz Date: Fri, 26 Jul 1996 19:15:48 +0000 Subject: [PATCH] * aclocal.m4 (LIBS): include -lgen if compile() is present and -lkrb5 is used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8839 dc483132-0cff-0310-8789-dd5450dbe970 --- src/aclocal.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 7877c585d..5c510cf5f 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -777,6 +777,18 @@ dnl dnl This rule generates library lists for programs. dnl define(KRB5_LIBRARIES,[ +dnl +dnl under solaris, if we use compile() and step(), we need -lgen +save_LIBS="$LIBS" +LIBS=-lgen +dnl this will fail if there's no compile/step in -lgen, or if there's +dnl no -lgen. This is fine. +AC_CHECK_FUNCS(compile step) +[if test "$ac_cv_func_compile" = yes ; then + LIBS="$save_LIBS -lgen" +else + LIBS="$save_LIBS" +fi] dnl this is ugly, but it wouldn't be necessary if krb5 didn't abuse dnl configure so badly SRVDEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmsrv_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $kdb4_deplib $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a" -- 2.26.2