1 AC_MSG_CHECKING(if you are running user mode linux for $host_alias..)
2 if test -e $LINUX/include/asm-um ; then
3 if test X`ls -id $LINUX/include/asm | awk '{print $1}'` = X`ls -id $LINUX/include/asm-um | awk '{print $1}'` ; then
14 AC_MSG_CHECKING(setting make flags system architecture: )
17 AC_MSG_RESULT($host_cpu)
18 KCFLAGS='-g -Wall -pipe -Wno-trigraphs -Wstrict-prototypes -fno-strict-aliasing -fno-common '
19 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 '
23 AC_MSG_RESULT($host_cpu)
24 KCFLAGS='-g -O2 -Wall -Wstrict-prototypes -pipe'
25 KCPPFLAGS='-D__KERNEL__ -DMODULE '
30 AC_MSG_RESULT($host_cpu)
31 KCFLAGS='-g -O2 -Wall -Wstrict-prototypes -pipe'
32 KCPPFLAGS='-D__KERNEL__ -DMODULE '
37 AC_MSG_RESULT($host_cpu)
38 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'
39 KCPPFLAGS='-D__KERNEL__ -DMODULE'
44 AC_MSG_RESULT($host_cpu)
45 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'
46 KCPPFLAGS='-D__KERNEL__'
52 AC_ERROR("Unknown Linux Platform: $host_cpu")
55 AC_MSG_CHECKING(for MODVERSIONS)
56 if egrep -e 'MODVERSIONS.*1' $LINUX/include/linux/autoconf.h >/dev/null 2>&1;
58 MFLAGS="-DMODULE -DMODVERSIONS -include $LINUX/include/linux/modversions.h -DEXPORT_SYMTAB"
65 AC_MSG_CHECKING(for SMP)
66 if egrep -e SMP=y $LINUX/.config >/dev/null 2>&1; then
74 CFLAGS="$KCFLAGS $MFLAGS"
75 ARCHCPPFLAGS="$KCPPFLAGS"