Date: Thu, 15 May 2003 14:38:06 +0200 To: Claude Marche Cc: lablgtk at kaba.or.jp Subject: Re: Pb detection of BINDIR in make configure Message-ID: <20030515123806.GA711 at iliana> References: <16067.33308.356580.296677 at mailhost.lri.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16067.33308.356580.296677 at mailhost.lri.fr> From: Sven Luther On Thu, May 15, 2003 at 02:03:40PM +0200, Claude Marche wrote: > > > I'm using ocaml 3.06 debian package, ocaml binaries are in /usr/bin Just a quick question, why don't you use the debian lablgtk or lablgtk2 packages ? Or else, if you need to build your own, you could just modify the package and rebuild it for you. If you need instructions on how to do this, just ask me privately. > and library is in /usr/lib/ocaml/3.06. The detection of BINDIR in the > main Makefile does not work for me: > > BINDIR = $$\(DESTDIR\)`$(GETLIBDIR) \ > | sed -e 's|/lib/[^/]*$$|/bin|' -e 's|/lib$$|/bin|'` > > because [^/]* do not match ocaml/3.06 > I suggest to replace that line by > > BINDIR = $$\(DESTDIR\)`$(GETLIBDIR) \ > | sed -e 's|/lib/.*$$|/bin|' -e 's|/lib$$|/bin|'` Yes, i had the same problem, which i solved with the following patch : --- lablgtk2-0.beta.20030423.orig/Makefile +++ lablgtk2-0.beta.20030423/Makefile @@ -13,8 +13,9 @@ CAMLMKLIB = ocamlmklib CAMLP4O = camlp4o # Default installation directories -BINDIR = $$\(DESTDIR\)`$(GETLIBDIR) \ - | sed -e 's|/lib/[^/]*$$|/bin|' -e 's|/lib$$|/bin|'` +#BINDIR = $$\(DESTDIR\)`$(GETLIBDIR) \ +# | sed -e 's|/lib/[^/]*$$|/bin|' -e 's|/lib$$|/bin|'` +BINDIR = $$\(DESTDIR\)/usr/bin INSTALLDIR = $$\(DESTDIR\)$(LIBDIR)/lablgtk2 DLLDIR = $$\(DESTDIR\)$(LIBDIR)/stublibs Not elegant, but it does work. Anyway, in most cases, you can't infer the BINDIR from the LIBDIR, since there is no guarantee that the user has not moved the one or the other somewhere else. Friendly, Sven Luther