Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 1 | Remove AC_TRY_RUN |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 2 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 3 | It can not be run during cross compile |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 5 | Upstream-Status: Inappropriate [Cross-compile specific] |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | --- a/m4/sasl2.m4 |
| 8 | +++ b/m4/sasl2.m4 |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 9 | @@ -316,28 +316,8 @@ if test "$gssapi" != no; then |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 10 | AC_CACHE_CHECK([for SPNEGO support in GSSAPI libraries],[ac_cv_gssapi_supports_spnego],[ |
| 11 | cmu_save_LIBS="$LIBS" |
| 12 | LIBS="$LIBS $GSSAPIBASE_LIBS" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 13 | - AC_TRY_RUN([ |
| 14 | -#ifdef HAVE_GSSAPI_H |
| 15 | -#include <gssapi.h> |
| 16 | -#else |
| 17 | -#include <gssapi/gssapi.h> |
| 18 | -#endif |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | - |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 20 | -int main(void) |
| 21 | -{ |
| 22 | - gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" }; |
| 23 | - gss_OID_set mech_set; |
| 24 | - OM_uint32 min_stat; |
| 25 | - int have_spnego = 0; |
| 26 | - |
| 27 | - if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) { |
| 28 | - gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego); |
| 29 | - gss_release_oid_set(&min_stat, &mech_set); |
| 30 | - } |
| 31 | - |
| 32 | - return (!have_spnego); // 0 = success, 1 = failure |
| 33 | -} |
| 34 | -],[ac_cv_gssapi_supports_spnego=yes],[ac_cv_gssapi_supports_spnego=no]) |
| 35 | + AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO]) |
| 36 | + AC_MSG_RESULT(yes) |
| 37 | LIBS="$cmu_save_LIBS" |
| 38 | ]) |
| 39 | AS_IF([test "$ac_cv_gssapi_supports_spnego" = yes],[ |