summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index a35be75142..749e7a5c7c 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1084,8 +1084,12 @@ SRC
# If +fw+ is a pair of the framework name and its header file name
# that header file is checked, instead of the normally used header
# file which is named same as the framework.
- def have_framework((fw, header), &b)
- header ||= "#{fw}.h"
+ def have_framework(fw, &b)
+ if Array === fw
+ fw, header = *fw
+ else
+ header = "#{fw}.h"
+ end
checking_for fw do
src = cpp_include("#{fw}/#{header}") << "\n" "int main(void){return 0;}"
opt = " -framework #{fw}"