]> 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>
Tue, 20 Jul 2021 09:25:00 +0000 (11:25 +0200)
commit33eec71c1a94f28c899237e838aeafae679dcccb
treeb50f22b736bd0032f98b427e64b3df00c6733d4d
parentcff7e7d84b8e4769133868920cb27a16565ac92e
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