blob: 8bd487ca4605802317b10dac718611b9a4d308da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- extconf.rb.orig Thu Mar 23 08:09:27 2000
+++ extconf.rb Thu Dec 7 00:34:39 2000
@@ -1,17 +1,8 @@
require "mkmf"
-$CFLAGS="-I"+ENV['HOME']+"/include -I/usr/include/slang -I/usr/include -I/usr/local/include/slang-ja -I/usr/local/include/slang -I/usr/local/include"
-$LDFLAGS="-L"+ENV['HOME']+"/lib -L/usr/lib -L/usr/local/lib"
+dir_config("slang")
if have_header("slang.h")
- if have_library("slang", "SLsmg_refresh")
- $LDFLAGS += " -lslang"
- else
- exit
- end
-# for f in ["kanji_pos", "IsKcode"]
-# have_func(f)
-# end
termcap = true
for mid in %w(lib share share/lib local/lib)
if FileTest.directory? "/usr/#{mid}/terminfo"
@@ -22,5 +13,13 @@
if termcap
$libs += " -ltermcap "
end
+ if have_library("slang", "SLsmg_refresh")
+ $LDFLAGS += " -lslang"
+ else
+ exit
+ end
+# for f in ["kanji_pos", "IsKcode"]
+# have_func(f)
+# end
create_makefile("slanglib")
end
|