#- does it do something good, actually?
setup_win32(PACKAGE_NAME)
-create_makefile_at_srcdir(PACKAGE_NAME, '.')
+begin
+ create_makefile_at_srcdir(PACKAGE_NAME, File.dirname(__FILE__))
+rescue NoMethodError
+ #- bug in rg2 0.17.0rc1, unfortunately on "stable" ubuntu jaunty
+ create_makefile_at_srcdir(PACKAGE_NAME, 'ext')
+end