On Tuesday, May 28, 2002, at 07:24 PM, Martin Costabel wrote:
> Martin Costabel wrote:
>>
>> Jeremy Erwin wrote:
>> []
>>> I'm using fink supplied versions of automake-1.5, autoconf-2.13.
>>
>> Yes, I just tried this combination, too, and it compiled completely.
>> So,
>> unless someone has a better idea, perhaps you should require *exactly*
>> these versions in BuildDepends (and then hope that nobody removes them
>> in favor of newer versions).
>
> After another test, I can now confirm that autoconf25 does not work
> here. It finds "cc -E" for a preprocessor instead of "cc -E
> -traditional-cpp" and this produces garbage. Actually, I don't know why
> they don't just use "cpp". One could probably patch one or two files to
> use the right thing (src/exec/libdx/local.mk and
> src/exec/dxmods/Makefile).
>
If one has two copies of gcc (as is common with linux-- the kernel
source may not be compatible with gcc-2.95.2) $CC -E is more likely to
produce the correct results. As for autoconf-2.5, I'd look in the
relevant .m4 file to see if there's an error. Here's the autoconf-2.13
version. (/sw/share/autoconf/acspecific.m4)
AC_DEFUN(AC_PROG_CPP,
[AC_MSG_CHECKING(how to run the C preprocessor)
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
AC_CACHE_VAL(ac_cv_prog_CPP,
[ # This must be in double quotes, not single quotes, because CPP may
get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
dnl Use a header file that comes with gcc, so configuring glibc
dnl with a fresh cross-compiler works.
AC_TRY_CPP([#include <assert.h>
Syntax Error], ,
CPP="${CC-cc} -E -traditional-cpp"
AC_TRY_CPP([#include <assert.h>
Syntax Error], ,
CPP="${CC-cc} -nologo -E"
AC_TRY_CPP([#include <assert.h>
Syntax Error], , CPP=/lib/cpp)))
ac_cv_prog_CPP="$CPP"])dnl
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
AC_MSG_RESULT($CPP)
AC_SUBST(CPP)dnl
])
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel