From 9bb51d767e7a3a76e1c5c82d8fc3537865b29d95 Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Mon, 10 Mar 2008 09:56:49 +0000 Subject: (try to) use LIBS for libraries (-l) and LDFLAGS for paths (-L) in the gssapi check. Cleans up curl-config --libs output when REQUIRE_LIB_DEPS=no --- configure.ac | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index b3f9a229b..6c532c889 100644 --- a/configure.ac +++ b/configure.ac @@ -1010,18 +1010,23 @@ if test x"$want_gss" = xyes; then if test -n "$gnu_gss"; then curl_gss_msg="enabled (GNU GSS)" - LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgss" + LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" + LIBS="$LIBS -lgss" elif test -z "$GSSAPI_LIB_DIR"; then if test -f "$GSSAPI_ROOT/bin/krb5-config"; then - gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` - LDFLAGS="$LDFLAGS $gss_ldflags" + dnl krb5-config doesn't have --libs-only-L or similar, put everything + dnl into LIBS + gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` + LIBS="$LIBS $gss_libs" elif test "$GSSAPI_ROOT" != "yes"; then - LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi" + LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" + LIBS="$LIBS -lgssapi" else - LDFLAGS="$LDFLAGS -lgssapi" + LIBS="$LIBS -lgssapi" fi else - LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgssapi" + LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" + LIBS="$LIBS -lgssapi" fi else CPPFLAGS="$save_CPPFLAGS" -- cgit v1.2.3