From: <qua...@us...> - 2009-03-23 16:42:30
|
Revision: 187 http://rmol.svn.sourceforge.net/rmol/?rev=187&view=rev Author: quannaus Date: 2009-03-23 16:42:24 +0000 (Mon, 23 Mar 2009) Log Message: ----------- [Dev] Fixed the rmol-config(.in) script, so that it works when the prefix is not standard (/usr). Modified Paths: -------------- trunk/rmol/AUTHORS trunk/rmol/rmol-config.in Modified: trunk/rmol/AUTHORS =================================================================== --- trunk/rmol/AUTHORS 2009-03-23 11:15:17 UTC (rev 186) +++ trunk/rmol/AUTHORS 2009-03-23 16:42:24 UTC (rev 187) @@ -1 +1,3 @@ -Denis Arnaud <den...@m4...> +Denis Arnaud <denis dot arnaud_rmol at m4x dot org> +Anh Quan Nguyen <aquannguyen at gmail dot com> +Patrick Grandjean <ptgrd at yahoo dot com> Modified: trunk/rmol/rmol-config.in =================================================================== --- trunk/rmol/rmol-config.in 2009-03-23 11:15:17 UTC (rev 186) +++ trunk/rmol/rmol-config.in 2009-03-23 16:42:24 UTC (rev 187) @@ -1,6 +1,7 @@ #!/bin/sh prefix=@prefix@ +exec_prefix=${prefix} libdir=@libdir@ includedir=@includedir@ @@ -51,11 +52,19 @@ ;; --cflags) - echo -I${includedir} + if [ "${prefix}" != "/usr" ]; then + echo -I${includedir} + else + echo + fi ;; --libs) - echo -l@PACKAGE@ + if [ "${prefix}" != "/usr" ]; then + echo -L${libdir} -l@PACKAGE@ + else + echo -l@PACKAGE@ + fi ;; *) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |