xfs/linux/Makefile.in

Assar Westerlund assar at sics.se
Sun Dec 5 11:34:50 CET 1999


Dave Morrison <dave at bnl.gov> writes:
> Perhaps the include statement in the macro should be done in term of
> KERNEL_CFLAGS instead of SYS, but if so, that's an easy change to make.
> Or, maybe it should be handled in some other way altogether. Thanks!

Yes, I think using KERNEL_CFLAGS is the right thing there (or at least
consistent with the other autoconf tests).  And there is a macro
AC_TRY_COMPILE_KERNEL that we can just use for this.  I have applied
the patch included below.  Thanks for your patch.

/assar



Index: have-linux-kernel-type.m4
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/cf/have-linux-kernel-type.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -u -w -r1.1 -r1.2
--- have-linux-kernel-type.m4	1999/05/15 22:45:27	1.1
+++ have-linux-kernel-type.m4	1999/12/05 10:33:09	1.2
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: have-linux-kernel-type.m4,v 1.1 1999/05/15 22:45:27 assar Exp $
+dnl $Id: have-linux-kernel-type.m4,v 1.2 1999/12/05 10:33:09 assar Exp $
 dnl
 dnl Check for types in the Linux kernel
 dnl
@@ -9,12 +9,11 @@
 cv=`echo "$1" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 AC_MSG_CHECKING(for $i in the linux kernel)
 AC_CACHE_VAL(ac_cv_linux_kernel_type_$cv,
-AC_TRY_COMPILE([
+AC_TRY_COMPILE_KERNEL([
 #define __KERNEL__
 #include <linux/types.h>
 ],
-$1 x;
-,
+[$1 x;],
 eval "ac_cv_linux_kernel_type_$cv=yes",
 eval "ac_cv_linux_kernel_type_$cv=no"))dnl
 AC_MSG_RESULT(`eval echo \\$ac_cv_linux_kernel_type_$cv`)





More information about the Arla-drinkers mailing list