linux-nfs.vger.kernel.org archive mirror
 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

* [PATCH [nfs-utils]] ignore more generated files
  2013-04-13 20:04 [PATCH [nfs-utils]] do not fail sqlite check when cross-compiling Mike Frysinger
@ 2013-04-13 20:04 ` 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
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2013-04-13 20:04 UTC (permalink / raw)
  To: linux-nfs

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 .gitignore | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 39853d9..5164637 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@ aclocal.m4
 autom4te.cache
 compile
 config.guess
-config.log
 config.sub
 configure
 depcomp
@@ -20,6 +19,8 @@ aclocal/ltversion.m4
 aclocal/lt~obsolete.m4
 # files generated by configure
 confdefs.h
+config.cache
+config.log
 config.status
 conftest
 conftest.c
@@ -34,6 +35,7 @@ support/include/stamp-h1
 *.o
 .libs
 lib*.a
+test-driver
 tools/rpcgen/rpcgen
 tools/rpcdebug/rpcdebug
 utils/blkmapd/blkmapd
-- 
1.8.1.2


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

* Re: [PATCH [nfs-utils]] do not fail sqlite check when cross-compiling
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2013-04-22 17:19 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: linux-nfs



On 13/04/13 16:04, Mike Frysinger wrote:
> 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>
Committed...

steved.

> ---
>  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
> 

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

* Re: [PATCH [nfs-utils]] ignore more generated files
  2013-04-13 20:04 ` [PATCH [nfs-utils]] ignore more generated files Mike Frysinger
@ 2013-04-22 17:19   ` Steve Dickson
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2013-04-22 17:19 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: linux-nfs



On 13/04/13 16:04, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Committed...

steved.

> ---
>  .gitignore | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 39853d9..5164637 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -3,7 +3,6 @@ aclocal.m4
>  autom4te.cache
>  compile
>  config.guess
> -config.log
>  config.sub
>  configure
>  depcomp
> @@ -20,6 +19,8 @@ aclocal/ltversion.m4
>  aclocal/lt~obsolete.m4
>  # files generated by configure
>  confdefs.h
> +config.cache
> +config.log
>  config.status
>  conftest
>  conftest.c
> @@ -34,6 +35,7 @@ support/include/stamp-h1
>  *.o
>  .libs
>  lib*.a
> +test-driver
>  tools/rpcgen/rpcgen
>  tools/rpcdebug/rpcdebug
>  utils/blkmapd/blkmapd
> 

^ permalink raw reply	[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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).