diff options
author | Jeff Layton <jlayton@samba.org> | 2010-04-04 09:51:31 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2010-04-04 09:51:31 -0400 |
commit | 0c287aa5ce5def56d901716e58943f3e9825e3a3 (patch) | |
tree | 9a5f5fe059a31ce41e6449a679fc29830215a8e3 /configure.ac | |
parent | 16c29a1920e48e7480595edd0ae96094d6e220c8 (diff) | |
download | cifs-utils-0c287aa5ce5def56d901716e58943f3e9825e3a3.tar.gz cifs-utils-0c287aa5ce5def56d901716e58943f3e9825e3a3.tar.bz2 cifs-utils-0c287aa5ce5def56d901716e58943f3e9825e3a3.zip |
autotools: don't link mount.cifs against krb5 library
mount.cifs is being linked against the krb5 library. Fix it so that
that doesn't happen.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b621750..a64113a 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,10 @@ if test $enable_cifsupcall != "no"; then ]) fi if test $enable_cifsupcall != "no"; then - AC_CHECK_LIB([krb5], [krb5_init_context]) + AC_CHECK_LIB([krb5], [krb5_init_context], + [ KRB5_LDADD='-lkrb5' ], + AC_MSG_ERROR([no functioning krb5 library found!])) + AC_SUBST(KRB5_LDADD) fi # Checks for typedefs, structures, and compiler characteristics. @@ -97,6 +100,10 @@ AC_FUNC_STRNLEN # check for required functions AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop memset realpath setenv strchr strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol strtoul uname], , [AC_MSG_ERROR([necessary functions(s) not found])]) +# ugly, but I'm not sure how to check for functions in a library that's not in $LIBS +cu_saved_libs=$LIBS +LIBS="$LIBS $KRB5_LDADD" + # determine whether we can use MIT's new 'krb5_auth_con_getsendsubkey' to extract the signing key if test $enable_cifsupcall != "no"; then AC_CHECK_FUNCS([krb5_auth_con_getsendsubkey]) @@ -107,6 +114,8 @@ if test $enable_cifsupcall != "no"; then AC_CHECK_FUNCS([krb5_principal_get_realm krb5_free_unparsed_name]) fi +LIBS=$cu_saved_libs + AM_CONDITIONAL(CONFIG_CIFSUPCALL, [test "$enable_cifsupcall" != "no"]) AC_LIBCAP |