Dear sir,

> This is a GNU problem, not LPRng.

    Well, sorry, I don't think so, :p although I did misunderstood the
problem in the previous mail.
    I have looked into the configure, configure.in, acinclude.m4 and
aclocal.m4 in the LPRng 3.8.4 package again.  The problem arises from a
macro named "WITH_LINKER" in configure.in and acinclude.m4.  I can't
figure out where WITH_LINKER came from.  I have checked the libtool you
are using (1.3.4), the automake and autoconf macros, the google, and
found nothing.  This might be something from the long old past.
    However, I do have found 2 macros called "AC_PROG_LD" and
"AC_PROG_LD_GNU" in libtool, which would be good replacements for the
broken "WITH_LINKER" to check the linker correctly.
    I have the following suggestion:  Remove the broken acinclude.m4
and aclocal.m4.  Alter configure.in and Makefile.in (as suggested in the
automake manual and FHS 2.2) as follows:

imacat@rinse /tmp/LPRng-3.8.4 % diff configure.in configure.in-old
24,25c24,33
< AC_PROG_CC dnl
< AC_PROG_LD dnl
---
> WITH_CC dnl
> WITH_CCOPTS dnl
> WITH_LINKER dnl
> WITH_LDOPTS dnl
> WITH_CPPOPTS dnl
> if test -z "$LOCALEDIR" ; then
>     LOCALEDIR='${prefix}/share/locale'
> fi;
> WITH_LOCALEDIR dnl
> export LOCALEDIR

imacat@rinse /tmp/LPRng-3.8.4 % diff Makefile.in Makefile.in-old
38,39d37
< # for the data files
< datadir=@datadir@
51c49
< LOCALEDIR=$(datadir)/locale
---
> LOCALEDIR=@LOCALEDIR@

    Then, rerun libtoolize, aclocal and autoconf to regenerate
aclocal.m4 and configure.
    This do work fine on my redhat 7.1, linux 2.4.17, autoconf 2.52,
libtool 1.4, gcc 3.0.3, ld (binutils) 2.11.90.0.8.

> On Sun, 30 Dec 2001, [BIG5] �̺��� wrote:
> >     I would like to report a bug that, the autoconf configuration script
> > that is used in LPRng 3.8.4 failed to detect my GNU ld.
> >     I believe the problem resides at aclocal.m4, line 49.  While --with-
> linker
> > and --with-gnu-ld were not set, it didn't try to look for the real ld
> > program but assumed ld is gcc by LD=$CC.  Then, of course, it will
> > failed to discover that the ld is really GNU ld because "gcc -v" will
> > not shown either "GNU" or "with BFD".

--
Best regards,
imacat ^_*'
[EMAIL PROTECTED]
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug

Attachment: msg03219/pgp00000.pgp
Description: PGP signature

Reply via email to