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

Question: Should we AC_CHECK_LIB the "prefix", "libname" or "linkname"? #1207

Open
jimklimov opened this issue Oct 11, 2019 · 2 comments
Open

Comments

@jimklimov
Copy link
Member

Stumbled upon this line while sanitizing some project that has dashes and underscores mixed up in the name :

AC_CHECK_LIB([$(use.prefix)], [$(use.test:)],

        AC_CHECK_LIB([$(use.prefix)], [$(use.test:)],
            [
                was_$(use.project:c)_check_lib_detected=yes
                PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE -l$(use.linkname)"
.       if optional
                AC_DEFINE(HAVE_$(USE.AM_LIB_MACRO), 1, [The optional $(use.libname) library is to be used (as -l$(use.linkname))])
            ],
            [])

I do not know (yet) if it causes any problems, but the discrepancy raised a flag for me so recording here ;-)

@bluca
Copy link
Member

bluca commented Oct 11, 2019

probably the linkname

@jimklimov jimklimov changed the title Question: Should we AC_CHECK_LIB the "libname" or "linkname"? Question: Should we AC_CHECK_LIB the "prefix", "libname" or "linkname"? Oct 11, 2019
@stephan57160
Copy link
Contributor

stephan57160 commented Dec 5, 2022

Similar issues with Android, in different places.

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

No branches or pull requests

3 participants