aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Osipov <michael-o@users.sf.net>2014-01-16 17:19:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-16 17:19:54 +0100
commit7e0c2c47abe9c452778a37bf5d1f2653ca1bf96f (patch)
treed98faa184a10557c00a56388a83d8a227af4d0d1
parent7b774482e73ec3cb0a9ab57b967773639e45f0be (diff)
configure: fix gssapi linking on HP-UX
The issue is with HP-UX that is comes with HP flavor of MIT Kerberos. This means that there is no krb5-config and the lib is called libgss.so Bug: http://curl.haxx.se/bug/view.cgi?id=1321
-rw-r--r--configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c46b31b3e..ab9bf0376 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1294,6 +1294,12 @@ if test x"$want_gss" = xyes; then
*-*-darwin*)
LIBS="-lgssapi_krb5 -lresolv $LIBS"
;;
+ *-hp-hpux*)
+ if test "$GSSAPI_ROOT" != "yes"; then
+ LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
+ fi
+ LIBS="-lgss $LIBS"
+ ;;
*)
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
dnl krb5-config doesn't have --libs-only-L or similar, put everything
@@ -1310,7 +1316,14 @@ if test x"$want_gss" = xyes; then
esac
else
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
- LIBS="-lgssapi $LIBS"
+ case $host in
+ *-hp-hpux*)
+ LIBS="-lgss $LIBS"
+ ;;
+ *)
+ LIBS="-lgssapi $LIBS"
+ ;;
+ esac
fi
else
CPPFLAGS="$save_CPPFLAGS"