Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify configure check for fmin #168

Merged
merged 1 commit into from Sep 29, 2020
Merged

Simplify configure check for fmin #168

merged 1 commit into from Sep 29, 2020

Conversation

jer-gentoo
Copy link
Contributor

AC_TRY_LINK is deprecated and users are encouraged to replace it with
AC_LINK_IFELSE. However, AC_SEARCH_LIBS uses AC_LINK_IFELSE internally
and does exactly what we need here: test whether an fmin symbol is
already resolved or if libm will resolve it, neatly avoiding autoconf
caching and AC_TRY_LINK/AC_LINK_IFELSE pitfalls. So just use that.

AC_TRY_LINK is deprecated and users are encouraged to replace it with
AC_LINK_IFELSE. However, AC_SEARCH_LIBS uses AC_LINK_IFELSE internally
and does exactly what we need here: test whether an `fmin` symbol is
already resolved or if libm will resolve it, neatly avoiding autoconf
caching and AC_TRY_LINK/AC_LINK_IFELSE pitfalls. So just use that.
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Aug 13, 2020
libimobiledevice/libplist#168

Package-Manager: Portage-3.0.2, Repoman-2.3.23
Bug: https://bugs.gentoo.org/736866
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
@Pro-pra
Copy link

Pro-pra commented Sep 28, 2020

Yes, its work

@nikias nikias merged commit 00bc6da into libimobiledevice:master Sep 29, 2020
@jer-gentoo jer-gentoo deleted the fmin-again branch September 29, 2020 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants