libotlmagic을 autotools로 빌드 된 프로젝트에 링크해야합니다. LIBS+="-lmagic"
autotools로 라이브러리를 링크하는 적절한 방법
configure.ac
에 그러나 나는 더 적절한 방법이 불행하게도이 작동하지 않습니다, Makefile.am에서 configure.ac
및 LDADD = @[email protected]
에 PKG_CHECK_MODULES
매크로를 사용하는 것입니다 달성 할 수 있다고 생각 :
내 현재의 솔루션입니다. 여기
내가 ./configure
configure: error: Package requirements (magic) were not met:
No package 'magic' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
나는이 PKG-설정에서 libmagic의 부재 함께 할 수있는 뭔가가 생각 어떤 아이디어에서 얻고 무엇인가?