7a719ffa79161694a354c8d18a28d33377d87db8 |
|
29-Jul-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
build: Move libini_config 1.1.0 check to libini_config.m4
Move the check for libini_config >= 1.1.0 from samba.m4 to
libini_config.m4 to have them all in one place, simplifying maintenance.
Set boolean variables for every detected version and use one of them in
samba.m4 instead.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a81e80c817808f4bb41d5219b04dbf73c943821e |
|
29-Jul-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
build: Reverse order of libini_config checks
Check for lowest versions of libini_config first, instead of the highest ones
in libini_config.m4. Define HAVE_LIBINI_CONFIG_V* for lower versions when
higher versions are present. Simplify preprocessor branching in sss_ini.c
accordingly.
This prepares libini_config.m4 for addition of a check for one more version of
libini_config.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
93f295496dc6dc0838c09692b6a3a008b35d461b |
|
29-Jul-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
build: Distinguish libini_config version checks
Use separate shell variable name prefixes for checks of separate
libini_config versions, as repeated invocations of PKG_CHECK_MODULES
with the same prefix are not generally supposed to have an effect.
Otherwise only the checks before and including the first one defining
both *_CFLAGS and *_LIBS variables will be done and all that follow will
assume success. This happens on RHEL6.5, where both "pkg-config
--cflags" and "pkg-config --libs" for ini_config produce non-empty
output and successful check for v0.6.1 results in incorrectly successful
check for v1.1.0.
Resolves:
https://fedorahosted.org/sssd/ticket/2388
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |