I am trying to upgrade the FreeBSD port of gnucash, but am having a
problem -- the "All the World's Linux" problem.

It seems that guile and guile-config will only be detected if it is in
/usr/bin.  Since 90% of the Unix world puts guile in /usr/local, I think
think the configure.in script needs tweaking.

    bash$ type guile
    guile is /usr/local/bin/guile
    bash$ guile --version
    Guile 1.3
    Copyright (c) 1995, 1996, 1997 Free Software Foundation
    ..snip..
    bash$ type guile-config
    guile-config is /usr/local/bin/guile-config
    bash$ guile-config --version
    guile-config - Guile version 1.3

Below is the difference between having guile in /usr/local/bin and making
a symlink for it into /usr/bin/ :

***************
*** 740,750 ****
  + test x != x
  + test x/usr/bin/guile-config = x
  + /usr/bin/guile-config compile
! ./configure: /usr/bin/guile-config: not found
! + GUILE_INC=
  + /usr/bin/guile-config link
! ./configure: /usr/bin/guile-config: not found
! + GUILELIBS=
  + test x/usr/bin/guile-config != x
  + set dummy guile
  + ac_word=guile
--- 740,748 ----
  + test x != x
  + test x/usr/bin/guile-config = x
  + /usr/bin/guile-config compile
! + GUILE_INC=-I/usr/local/include
  + /usr/bin/guile-config link
! + GUILELIBS=-L/usr/local/lib -lguile -lreadline -ltermcap -lm
  + test x/usr/bin/guile-config != x
  + set dummy guile
  + ac_word=guile


Fine, so I use ``configure --with-guile-config=/usr/local/bin/guile-config''
/usr/local/bin/guile-config is now found fine.  And with a real test,
``configure'' decides /usr/bin/guile exists:
    ..
    checking for guile-config... /usr/local/bin/guile-config^M
    checking for guile... (cached) /usr/bin/guile^M
    updating cache ./config.cache^M
    ..

In addition, the --with-guile-config flag is not being passed to other
sub-configure scripts:
    checking for guile... (cached) /usr/bin/guile^M
    checking for rs... (cached) nope^M
    checking for guile-config... (cached) /usr/bin/guile-config^M
    ./configure: /usr/bin/guile-config: not found^M
    ./configure: /usr/bin/guile-config: not found^M

-- 
-- David    ([EMAIL PROTECTED])
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to