From: Mike Frysinger Date: Fri, 19 Apr 2013 17:21:47 +0000 (-0400) Subject: configure.ac: do not fail sqlite check when cross-compiling X-Git-Tag: debian/1%1.2.8-1~11^2^2~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=61b21276f19a8791464ebf8620b3a40839652259;p=nfs-utils.git configure.ac: do not fail sqlite check when cross-compiling 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 Signed-off-by: Steve Dickson --- 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