aboutsummaryrefslogtreecommitdiff
path: root/ext/ivy/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ivy/extconf.rb')
-rw-r--r--ext/ivy/extconf.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/ext/ivy/extconf.rb b/ext/ivy/extconf.rb
new file mode 100644
index 0000000..d4e045b
--- /dev/null
+++ b/ext/ivy/extconf.rb
@@ -0,0 +1,30 @@
+#!/usr/bin/ruby -w
+# See the LICENSE file for copyright and distribution information
+
+require "mkmf"
+
+#$LIBPATH.push(Config::CONFIG['libdir'])
+
+def crash( )
+ printf(<<EOL)
+extconf failure: need libivy (see http://www.tls.cena.fr/products/ivy/index.html)
+
+ Install the library or try one of the following options to extconf.rb:
+
+ --with-ivy-dir=/path/to/libivy
+ --with-ivy-lib=/path/to/libivy/lib
+ --with-ivy-include=/path/to/libivy/include
+EOL
+
+ exit 1
+end
+
+
+dir_config( "ivy" )
+have_library( 'ivy', 'IvyInit' ) || crash( )
+have_header( 'ivy.h' ) || crash( )
+
+$CFLAGS = '-DMEMWATCH -g -Wall ' + $CFLAGS
+
+create_header()
+create_makefile("ivy")