The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Ruby extconf.rb compatilibity with autoconf

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Rudi Cilibrasi

Posts: 25
Nickname: cilibrar
Registered: Aug, 2004

Rudi Cilibrasi is a longtime programmer and machine-learning researcher who loves Ruby
Ruby extconf.rb compatilibity with autoconf Posted: Sep 8, 2004 10:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Rudi Cilibrasi.
Original Post: Ruby extconf.rb compatilibity with autoconf
Feed Title: Esoteric Ruby Blog
Feed URL: http://cilibrar.com/~cilibrar/erblog.cgi/index.rss
Feed Description: A weblog made to explore some Ruby ideas in great detail and try to work out ideal solutions to real problems.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Rudi Cilibrasi
Latest Posts From Esoteric Ruby Blog

Advertisement

I have made a software packagae, complearn-0.6.2.tar.gz ,
that uses autoconf and automake to manage system configuration. One of the standard options is:

./configure --prefix=$HOME/wherever/placetoinstall

In many autoconf or automake enabled software packages written in C (such as GNU / FSF utilities) this creates subdirectories like

$HOME/wherever/placetoinstall/bin for executables
$HOME/wherever/placetoinstall/lib for libraries
$HOME/wherever/placetoinstall/man for manual_pages

and so on for many common naming conventions.

Unfortunately I cannot understand how to correctly pass this option on to ruby mkmf:

ruby extconf.rb
make

I have seen that there is an option to make using
a DESTDIR variable such as:

make DESTDIR=$HOME/wherever/placetoinstall

but then this creates deep directory structure

$HOME/wherever/placetoinstall/usr/local/lib/site_ruby/1.8/CompLearnLib

and to me it seems that the /usr/local portion of the above path structure is redundant. Is there a way to remove it in the ruby mkmf extconf.rb structure? The best I can come up with so far is to use an mv and then an rm command to correct things, and this seems somewhat complicated and error-prone.

Is there a better solution to this problem?

Read: Ruby extconf.rb compatilibity with autoconf

Topic: Implementing Python Decorators in Ruby (Part II) Previous Topic   Next Topic Topic: Is Ruby Readable?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use