MKC_CHECK_FUNCLIB(1)
π MKC_CHECK_FUNCLIB π
okay so bestie, welcome to mkc_check_funclib, a page from the MKC_CHECK_FUNCLIB(1) manual β yes that's the whole name, she's iconic like that. basically this little tool detects the presence of a function in a library, and she'll tell you the truth, no cap π«Ά
β¨ SYNOPSIS β¨
mkc_check_funclib <functionname> [libraries...]
mkc_check_funclib -h
like, you give her a function name, optionally followed by some libraries, and she goes to work π§
πΈ DESCRIPTION πΈ
mkc_check_funclib detects the presence of a function in a library by literally compiling and linking a test program. yes, she actually does the thing, she's not just guessing π
as a result, it prints either 1 (true) or 0 (false) to stdout. that's it. that's the whole vibe check. β
π OPTIONS π
-hβ displays the help message. your little "what do i do" button, use her π-dβ deletes the cache and the temporary files. full reset, main character energy π₯-Dβ deletes the cache files only. like-dbut she leaves the temp files alone π
π¦ ENVIRONMENT π¦
CCβ the compiler. by defaultccis used.CPPFLAGS,CFLAGSβ options passed to the compiler, for example-Ifor extra directories that contain header files.LDFLAGSβ options passed to the linker (that's the compiler, set by theCCvariable), for example-L/usr/local/lib.LDADDβ extra libraries, for example-lm.MKC_VERBOSEβ if set to1, verbose messages are output tostderr.MKC_SHOW_CACHEDβ if set to1andMKC_VERBOSEis set to1, cached results are output tostderr.MKC_CACHEDIRβ the directory where temporary and cache files get created. if unset, they're created in the current directory.MKC_NOCACHEβ all results are cached unless theMKC_NOCACHEvariable is set to1. read that twice bestie, it's a double negative and she's serving πMKC_DELETE_TMPFILESβ if set to1, temporary files are removed.
π EXAMPLES π
like, actual receipts, here's how you'd call her:
mkc_check_funclib dlopen dl
mkc_check_funclib dlopen
mkc_check_funclib strlcpy
mkc_check_funclib select socket
see? dlopen with dl, then dlopen all by herself, then strlcpy solo, then select with socket. slay, so versatile π
π AUTHOR π
Aleksey Cheusov <vle@gmx.net> β the icon who made this happen π
okay that's the whole page bestie, go compile something cute β¨ and yeah, this beauty is dated Dec 2, 2023, straight from the MKC_CHECK_FUNCLIB(1) manual β periodt π
π
π¦ where this page comes from
- alpine 3.24: mk-configure-doc 0.40.0-r1 Β· BSD-2-Clause
- arch rolling: mk-configure 0.40.3-1 Β· BSD
- opensuse-leap 16.0: mk-configure 0.39.3-bp160.1.12 Β· BSD-2-Clause AND MIT AND ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms