Skip to content

Commit

Permalink
use '=' instead of '==' for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 24, 2017
1 parent 24418c8 commit efd5c4c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions src/modules/rlm_krb5/configure.ac
Expand Up @@ -44,7 +44,7 @@ if test x$with_[]modname != xno; then

dnl # AWK originally from from https://github.com/hpc/lustre
krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }')
awk '{split($(4),v,"."); if (v@<:@"3"@:>@ = "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }')
AC_MSG_RESULT([${krb5_version_raw} ($krb5_version)])

AC_MSG_CHECKING([krb5-config reported vendor])
Expand Down Expand Up @@ -95,7 +95,7 @@ if test x$with_[]modname != xno; then
dnl # Only the heimdal version of the library has this function
dnl #
FR_SMART_CHECK_LIB(krb5, krb5_verify_user_opt)
if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" == xyes; then
if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
krb5_api_type='heimdal'
else
krb5_api_type='mit'
Expand All @@ -118,13 +118,13 @@ if test x$with_[]modname != xno; then
dnl # Check how to free things returned by krb5_get_error_message
dnl #
AC_CHECK_FUNCS([krb5_get_error_message krb5_free_error_string krb5_free_error_message])
if test "x$ac_cv_func_krb5_get_error_message" == xyes; then
if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
fi
if test "x$ac_cv_func_krb5_free_error_message" == xyes; then
if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
fi
if test "x$ac_cv_func_krb5_free_error_string" == xyes; then
if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
fi

Expand All @@ -135,15 +135,15 @@ if test x$with_[]modname != xno; then
krb5threadsafe=

FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" == xyes; then
if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])],
[krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])])
fi
else
krb5threadsafe=""
fi

if test "$krb5_api_type" == "mit"; then
if test "$krb5_api_type" = "mit"; then
dnl #
dnl # This lives in different places depending on the distro
dnl #
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_ldap/configure
Expand Up @@ -3385,7 +3385,7 @@ smart_prefix=
$as_echo "#define WITH_SASL 1" >>confdefs.h
SASL=sasl.c
fi
fi
fi
targetname=rlm_ldap
Expand Down
4 changes: 2 additions & 2 deletions src/modules/rlm_perl/configure.ac
Expand Up @@ -76,7 +76,7 @@ if test x$with_[]modname != xno; then
[LINKS="yes"], [LINKS="no"])

AC_MSG_RESULT($LINKS)
if test "x$LINKS" == "xno"; then
if test "x$LINKS" = "xno"; then
fail="$fail libperl.so"
targetname=
fi
Expand All @@ -90,7 +90,7 @@ if test x$with_[]modname != xno; then
[LINKS="yes"], [LINKS="no"])

AC_MSG_RESULT($LINKS)
if test "x$LINKS" == "xno"; then
if test "x$LINKS" = "xno"; then
fail="$fail libperl.so"
targetname=
fi
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_yubikey/configure
Expand Up @@ -3704,7 +3704,7 @@ if test "x$smart_lib" != "x"; then
SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
fi
if test "x$ac_cv_lib_ykclient_ykclient_request" == "xyes"; then
if test "x$ac_cv_lib_ykclient_ykclient_request" = "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libykclient missing ykclient_request_process. A later version of libykclient is required." >&5
$as_echo "$as_me: WARNING: libykclient missing ykclient_request_process. A later version of libykclient is required." >&2;}
else
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_yubikey/configure.ac
Expand Up @@ -163,7 +163,7 @@ if test x$with_[]modname != xno; then
if test "x$ac_cv_lib_ykclient_ykclient_request_process" != "xyes"; then
have_ykclient="no"
FR_SMART_CHECK_LIB([ykclient], [ykclient_request])
if test "x$ac_cv_lib_ykclient_ykclient_request" == "xyes"; then
if test "x$ac_cv_lib_ykclient_ykclient_request" = "xyes"; then
AC_MSG_WARN([libykclient missing ykclient_request_process. A later version of libykclient is required.])
else
AC_MSG_WARN([ykclient libraries not found. Use --with-ykclient-lib-dir=<path>.])
Expand Down

0 comments on commit efd5c4c

Please sign in to comment.