All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH [nfs-utils]] do not fail sqlite check when cross-compiling
@ 2013-04-13 20:04 Mike Frysinger
  2013-04-13 20:04 ` [PATCH [nfs-utils]] ignore more generated files Mike Frysinger
  2013-04-22 17:19 ` [PATCH [nfs-utils]] do not fail sqlite check when cross-compiling Steve Dickson
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Frysinger @ 2013-04-13 20:04 UTC (permalink / raw)
  To: linux-nfs

If we're cross-compiling, we can't do a runtime test of sqlite,
so just assume that the user has a good enough version rather
than falling over.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 configure.ac | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3d7ab0a..a594a7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -274,9 +274,14 @@ if test "$enable_nfsv4" = yes; then
 	AC_CHECK_HEADERS([libgen.h sys/inotify.h], ,
 		AC_MSG_ERROR([Cannot find header needed for nfsdcltrack]))
 
-  	if test "$libsqlite3_cv_is_recent" != "yes" ; then
-		AC_MSG_ERROR([nfsdcltrack requires sqlite-devel])
-	fi
+    case $libsqlite3_cv_is_recent in
+    yes) ;;
+    unknown)
+      dnl do not fail when cross-compiling
+      AC_MSG_WARN([assuming sqlite is at least v3.3]) ;;
+    *)
+      AC_MSG_ERROR([nfsdcltrack requires sqlite-devel]) ;;
+    esac
   fi
 
 else
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-22 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 20:04 [PATCH [nfs-utils]] do not fail sqlite check when cross-compiling Mike Frysinger
2013-04-13 20:04 ` [PATCH [nfs-utils]] ignore more generated files Mike Frysinger
2013-04-22 17:19   ` Steve Dickson
2013-04-22 17:19 ` [PATCH [nfs-utils]] do not fail sqlite check when cross-compiling Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.