Update to ARC 4.1.0
[gp-arc-client-c.git] / ext / extconf.rb
1 require 'mkmf'
2
3 dirs = <<-EODIRS
4 /usr/include/c++/4.7/bits
5 /usr/local/include/libxml2 
6 /usr/local/include/giomm-2.4 
7 /usr/local/lib/giomm-2.4/include 
8 /usr/local/include/glibmm-2.4 
9 /usr/local/lib/glibmm-2.4/include 
10 /usr/local/include/glib-2.0 
11 /usr/local/lib/glib-2.0/include 
12 /usr/local/include 
13 /usr/local/include/sigc++-2.0 
14 /usr/local/lib/sigc++-2.0/include
15 /usr/include
16 EODIRS
17
18 dirs.split.each do |dir|
19   $INCFLAGS << " " << "-I#{dir}"
20   $INCFLAGS << " " << "-I#{dir.gsub('/usr/local', '/usr')}"
21 end
22
23
24 ["/usr/local", "/usr/lib"].each do |prefix|
25
26   find_header "libxml/xmlmemory.h", "#{prefix}/include/libxml2"
27   find_header "sigc++/slot.h", "#{prefix}/include/sigc++-2.0"
28   find_header "sigc++/slot.h", "#{prefix}/lib/sigc++-2.0/include"
29 end
30
31 #for debug info
32 $CFLAGS << '-g'
33
34 #$LIBS << ' -larcclient -larccommon -larcdata2 -larcloader -larcmessage -lglibmm-2.4 -lsigc-2.0'
35 $LIBS << ' -larccompute -larccommon -larcdata -larcloader -larcmessage -lglibmm-2.4 -lsigc-2.0'
36
37 create_makefile("arc_client_c")
38