From e0791352124317682105e341b3ab11aadb6a9414 Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Mon, 19 May 2008 18:35:05 +0100 Subject: check for the rt library and fdatasync so we link against that when needed --- ext/sqlite3_api/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/sqlite3_api/extconf.rb b/ext/sqlite3_api/extconf.rb index 67006f6..b6c9bd6 100644 --- a/ext/sqlite3_api/extconf.rb +++ b/ext/sqlite3_api/extconf.rb @@ -4,10 +4,13 @@ SWIG_WRAP = "sqlite3_api_wrap.c" dir_config( "sqlite3", "/usr/local" ) +have_library( "rt", "fdatasync" ) + if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" ) if !File.exists?( SWIG_WRAP ) || with_config( "swig", false ) puts "creating #{SWIG_WRAP}" system "swig -ruby sqlite3_api.i" or raise "could not build wrapper via swig (perhaps swig is not installed?)" end + create_makefile( "sqlite3_api" ) end -- cgit