]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build-sys: Update configure.ac
authorAlex Xu <351006+Hello71@users.noreply.github.com>
Wed, 16 Jun 2021 13:58:25 +0000 (13:58 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Jun 2021 11:59:35 +0000 (13:59 +0200)
commit637cc045ee464909c261d6fa16c71ed15cd455e3
treee30ff660238a209d10e70cf9be2dc733baa4b564
parent9dbae34c3da7667319df2191b4b0fee6552dd0e3
build-sys: Update configure.ac

1. the test incorrectly used AC_COMPILE_IFELSE instead of
   AC_LINK_IFELSE, defeating the purpose of checking -lcrypt.
2. the test did not properly restore LIBS, causing later checks to all
   fail if libcrypt wasn't found.
3. HAVE_LIBCRYPT only controls whether to use -lcrypt, it is not
   needed or used in any source files.

[kzak@redhat.com: - improve commit message
                  - use UL_{SET,RESTORE}_FLAGS() rather than directly
    modify $LIBS]

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac