[PD-dev] [bug] FreeBSD configure fails
Hans-Christoph Steiner
hans at eds.org
Wed May 31 17:53:13 CEST 2006
Let's keep this on the list since it might be of general interest:
On May 31, 2006, at 5:46 PM, mal content wrote:
> Hello.
>
> On 31/05/06, Hans-Christoph Steiner <hans at eds.org> wrote:
>>
>> If you want this bug to be remembered, submit a bug report.
>
> I wanted to do that, but I couldn't work out where to submit a
> report.
http://puredata.org/dev/bugtracker
Or find it in the nav bar on the left "developers -> bug tracker"
>> As for configure, its not so bad for most things, but it can be
>> strange. Mostly, its just like writing a shell script. I would be
>> easy to make it test for both tcl84 and tcl8.4, for example. If you
>> actually read the pd/src/configure.in, I think you'll be able to make
>> the change quite easiler.
>>
>
> I had a look in configure.in first of all, and I saw the lines:
>
> if test $foundit == "no";
> then
> AC_CHECK_HEADER(tcl.h,foundit=yes,)
> fi
> if test $foundit == "no";
> then
> AC_CHECK_HEADER(tcl8.7/tcl.h,
> GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.7";foundit=yes,)
> fi
> if test $foundit == "no";
> then
> AC_CHECK_HEADER(tcl8.6/tcl.h,
> GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.6";foundit=yes,)
> fi
> if test $foundit == "no";
> then
> AC_CHECK_HEADER(tcl8.5/tcl.h,
> GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.5";foundit=yes,)
> fi
> ...
>
> Now, I could add another check for tcl in /usr/local (about 30 lines).
> It's not pretty, but it'd work.
Just add it to the bottom, its already not pretty, so no real harm done.
>
> The problem is that the same check doesn't occur for the library:
>
> AC_CHECK_LIB(tcl8.7, main,,
> AC_CHECK_LIB(tcl8.6, main,,
> AC_CHECK_LIB(tcl8.5, main,,
> AC_CHECK_LIB(tcl8.4, main,,
> AC_CHECK_LIB(tcl8.3, main,,
> AC_CHECK_LIB(tcl8.2, main,,
>
> How do I instruct AC_CHECK_LIB to check /usr/local as well?
This is already in one of the Pd-extended patches (packages/patches/
mingw_fixes-0.39-2.patch) and I think its been incorporated into
Miller's CVS code. It should check in /usr/local automatically
since /usr/local is generally part of the standard path. But on GNU/
Linux, Tcl/Tk is generally installed into /usr/bin.
.hc
________________________________________________________________________
____
Using ReBirth is like trying to play an 808 with a long stick.
-David Zicarelli
More information about the Pd-dev
mailing list