Index: configure.ac =================================================================== --- configure.ac.orig +++ configure.ac @@ -95,14 +95,14 @@ AC_SUBST(KRB5_BINDIR) AC_CHECK_LIB(resolv,main) KRB5_CFLAGS=`$KRB5_CONFIG --cflags krb5` KRB5_LIBS=`$KRB5_CONFIG --libs krb5` -KRB5_LDFLAGS="`$KRB5_CONFIG --libs | sed s,'-l[[^ ]]*',,g`" -LIBS="$LIBS `$KRB5_CONFIG --libs | sed s,'-l[[^ ]]*',,g`" +KRB5_LDFLAGS="`$KRB5_CONFIG --libs`" +LIBS="$LIBS `$KRB5_CONFIG --libs`" LDFLAGS="$LDFLAGS $KRB5_LDFLAGS" if test x$krb4 != xno ; then KRB4_CFLAGS=`$KRB4_CONFIG --cflags krb4` KRB4_LIBS=`$KRB4_CONFIG --libs krb4` - KRB4_LDFLAGS="`$KRB4_CONFIG --libs | sed s,'-l[[^ ]]*',,g`" - LIBS="$LIBS `$KRB4_CONFIG --libs | sed s,'-l[[^ ]]*',,g`" + KRB4_LDFLAGS="`$KRB4_CONFIG --libs`" + LIBS="$LIBS `$KRB4_CONFIG --libs`" LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" fi