From: Iain Barnett Date: 2011-03-25T14:55:07+09:00 Subject: mkmf have_func usage Hi, I'm wondering if I'm using the have_func from lib mkmf correctly, as I can't seem to get a `true` out of it? require "mkmf" have_func( "iconv_open", "/Library/Frameworks/Libiconv.framework/Headers") checking for iconv_open() in /Library/Frameworks/Libiconv.framework/Headers... no => false have_func( "iconv_open", "/Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h") checking for iconv_open() in /Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h... no => false but if I open up the iconv.h file from above I can quite clearly see iconv_open is defined (even though I know not C) #ifndef LIBICONV_PLUG #define iconv_open libiconv_open #endif Any push in the right direction will be much appreciated. Iain