cmowforth-cups 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/extconf.rb +12 -8
- metadata +1 -1
data/ext/extconf.rb
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
|
1
|
+
if `which cups-config`.empty?
|
2
|
+
warn("Couldn't find cups-config. Do you have libcups installed?")
|
3
|
+
else
|
4
|
+
require "mkmf"
|
5
|
+
|
6
|
+
cups_cflags = `cups-config --cflags`.chomp
|
7
|
+
cups_libs = `cups-config --libs`.chomp
|
2
8
|
|
3
|
-
cups_cflags
|
4
|
-
cups_libs
|
5
|
-
|
6
|
-
|
7
|
-
with_ldflags(cups_libs) {
|
8
|
-
create_makefile("cups")
|
9
|
+
with_cflags(cups_cflags) {
|
10
|
+
with_ldflags(cups_libs) {
|
11
|
+
create_makefile("cups")
|
12
|
+
}
|
9
13
|
}
|
10
|
-
|
14
|
+
end
|