1 AC_MSG_CHECKING(if you are running linux 2.5...)
2 if test -e $LINUX/include/linux/namei.h ; then
9 AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
11 AC_MSG_CHECKING(if you are running user mode linux for $host_alias..)
12 if test -e $LINUX/include/asm-um ; then
13 if test X`ls -id $LINUX/include/asm | awk '{print $1}'` = X`ls -id $LINUX/include/asm-um | awk '{print $1}'` ; then
24 AC_MSG_CHECKING(setting make flags system architecture: )
27 AC_MSG_RESULT($host_cpu)
28 KCFLAGS='-g -Wall -pipe -Wno-trigraphs -Wstrict-prototypes -fno-strict-aliasing -fno-common '
29 KCPPFLAGS='-D__KERNEL__ -U__i386__ -Ui386 -DUM_FASTCALL -D__arch_um__ -DSUBARCH="i386" -DNESTING=0 -D_LARGEFILE64_SOURCE -Derrno=kernel_errno -DPATCHLEVEL=4 -DMODULE -I$(LINUX)/arch/um/include '
33 AC_MSG_RESULT($host_cpu)
34 KCFLAGS='-g -O2 -Wall -Wstrict-prototypes -pipe'
35 KCPPFLAGS='-D__KERNEL__ -DMODULE '
40 AC_MSG_RESULT($host_cpu)
41 KCFLAGS='-g -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6'
42 KCPPFLAGS='-D__KERNEL__ -DMODULE '
47 AC_MSG_RESULT($host_cpu)
48 KCFLAGS='-g -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6'
49 KCPPFLAGS='-D__KERNEL__ -DMODULE '
54 AC_MSG_RESULT($host_cpu)
55 KCFLAGS='-g -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev5'
56 KCPPFLAGS='-D__KERNEL__ -DMODULE '
61 AC_MSG_RESULT($host_cpu)
62 KCFLAGS='-Wall -Wstrict-prototypes -Wno-trigraphs -g -O2 -fno-strict-aliasing -fno-common -pipe -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32 -mb-step'
63 KCPPFLAGS='-D__KERNEL__ -DMODULE'
68 AC_MSG_RESULT($host_cpu)
69 KCFLAGS='-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare -Wa,--undeclared-regs'
70 KCPPFLAGS='-D__KERNEL__'
76 AC_MSG_RESULT($host_cpu)
77 KCFLAGS='-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring'
78 KCPPFLAGS='-D__KERNEL__'
79 MOD_LINK=elf32ppclinux
83 AC_ERROR("Unknown Linux Platform: $host_cpu")
87 AC_MSG_CHECKING(for MODVERSIONS)
88 if egrep -e 'MODVERSIONS.*1' $LINUX/include/linux/autoconf.h >/dev/null 2>&1;
90 MFLAGS="-DMODULE -DMODVERSIONS -include $LINUX/include/linux/modversions.h -DEXPORT_SYMTAB"
97 AC_MSG_CHECKING(for SMP)
98 if egrep -e SMP=y $LINUX/.config >/dev/null 2>&1; then
106 CFLAGS="$KCFLAGS $MFLAGS"
107 ARCHCPPFLAGS="$KCPPFLAGS"