[Pvfs2-cvs] commit by pcarns in pvfs2-1: configure

CVS commit program cvs at parl.clemson.edu
Sat Feb 16 17:06:48 EST 2008


Update of /projects/cvsroot/pvfs2-1
In directory parlweb1:/tmp/cvs-serv27117

Modified Files:
	configure 
Log Message:
make configure detect ARCH environment variable and adjust include paths to
match what the kernel module will get at build time 


Index: configure
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/configure,v
diff -p -u -r1.379 -r1.380
--- configure	15 Feb 2008 19:17:20 -0000	1.379
+++ configure	16 Feb 2008 22:06:45 -0000	1.380
@@ -8061,6 +8061,9 @@ if test -n "$lk_src" ; then
 
 	CFLAGS="$USR_CFLAGS $NOSTDINCFLAGS -I$lk_src/include -I$lk_src/include/asm/mach-default -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty)  -DKBUILD_MODNAME=KBUILD_STR(empty) -imacros $lk_src/include/linux/autoconf.h"
 
+                	if test -n "${ARCH}" ; then
+		CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include"
+	fi
 
 	{ echo "$as_me:$LINENO: checking for i_size_write in kernel" >&5
 echo $ECHO_N "checking for i_size_write in kernel... $ECHO_C" >&6; }
@@ -16970,7 +16973,7 @@ if test "$ac_res" != no; then
   ac_cv_func_getmntent=yes
 
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_GETMNTENT
+#define HAVE_GETMNTENT 1
 _ACEOF
 
 else



More information about the Pvfs2-cvs mailing list