From: Marcelo E. M. <mar...@bi...> - 2001-07-02 14:05:53
|
Hi Sven, > :) Finally! As you can see from the above, configure.in already adds > -I$srcdir/src/X86 to CPPFLAGS. I don't think I expressed myself correctly. My problem is this (solution/pseudo patch at the end, if you want to skip all this). I do: $ mkdir build/software $ cd build/software $ ../../configure configure says MMX and whatever are not supported and disables that. AFAICS it's because of this: AC_DEFUN(MESA_SYS_AS_FEATURE, [ AC_CACHE_CHECK(whether the assembler supports $1, mesa_cv_sys_as_$1, MESA_TRY_ASSEMBLE([#include "src/X86/assyntax.h"], $2, mesa_cv_sys_as_$1=yes, mesa_cv_sys_as_$1=no)) ]) note the test program wants to include "src/X86/assyntax.h". For this to work, the command line has to read: $ cc [...] -I../.. [...] In config.log I find: configure:7290: gcc -c -g -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive -optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functio ns=2 -D_REENTRANT -DPTHREADS -I../../src/X86 conftest.S >&5 conftest.S:1: src/X86/assyntax.h: No such file or directory Note it's using -I../../src/X86 MESA_TRY_ASSEMBLE looks like this: AC_DEFUN(MESA_TRY_ASSEMBLE, [ cat > conftest.S <<EOF $1 $2 EOF save_ac_ext="$ac_ext" ac_ext=S if AC_TRY_EVAL(ac_compile); then $3; else $4; fi ac_ext="$save_ac_ext" rm -f conftest.S ]) In the top configure.in file it reads: dnl Necessary for assembler sources save_ac_ext="$ac_ext" save_CPPFLAGS="$CPPFLAGS" ac_ext=S CPPFLAGS="$CPPFLAGS -I$srcdir/src/X86" what I need there is an extra "-I$srcdir" like this: -CPPFLAGS="$CPPFLAGS -I$srcdir/src/X86" +CPPFLAGS="$CPPFLAGS -I$srcdir/src/X86 -I$srcdir" TIA, -- Marcelo |