diff options
author | Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> | 2015-05-29 19:23:00 +0300 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-31 19:24:41 +0200 |
commit | fd3b0d8235322ada8f3b9b83b30ce57242ebf6cd (patch) | |
tree | 3023c76bc1e3a6d49cbdd6ce1d04087e8d5319cd /src | |
parent | 9d453f1e8b28983b363b44c49b7cd701a994fd97 (diff) | |
download | sssd-fd3b0d8235322ada8f3b9b83b30ce57242ebf6cd.tar.gz sssd-fd3b0d8235322ada8f3b9b83b30ce57242ebf6cd.tar.xz sssd-fd3b0d8235322ada8f3b9b83b30ce57242ebf6cd.zip |
BUILD: Fix variable substitution in cwrap.m4
Add another dollar sign to have variable name substituted by m4 in
"cwrap.m4" further substituted with its value by shell in "configure".
Before, this:
[ test x$2 = xyes]
would produce this in "configure" for uid_wrapper test:
test xHAVE_UID_WRAPPER = xyes
which is always false.
Now the changed code:
[ test x$$2 = xyes]
Would produce this in "configure" instead:
test x$HAVE_UID_WRAPPER = xyes
which will properly process the test result.
This fixes uid_wrapper and nss_wrapper detection, which were considered
missing otherwise, resulting in cwrap tests not running.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/external/cwrap.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/external/cwrap.m4 b/src/external/cwrap.m4 index b03d1ef00..b8489cc76 100644 --- a/src/external/cwrap.m4 +++ b/src/external/cwrap.m4 @@ -16,7 +16,7 @@ AC_DEFUN([AM_CHECK_WRAPPER], AC_MSG_WARN([cwrap library $1 not found, some tests will not run]) ]) - AM_CONDITIONAL($2, [ test x$2 = xyes]) + AM_CONDITIONAL($2, [ test x$$2 = xyes]) ]) AC_DEFUN([AM_CHECK_UID_WRAPPER], |