Added option to force disabling of RTAI support, based on patch from
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 19 Apr 2006 02:07:16 +0000 (02:07 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 19 Apr 2006 02:07:16 +0000 (02:07 +0000)
blg@mast.queensu.ca (Ben Gardiner).

configure.ac

index 04335996c439ae03b2f27302043f3c7943b22fd0..0da9c48ad3cbf6033a11983078d81623e27f6132 100644 (file)
@@ -41,7 +41,14 @@ fi
 AS_LINUX()
 AS_LINUX_MODTOOL()
 
-DS_RTAI([USE_RTAI=yes],[USE_RTAI=no])
+AC_ARG_ENABLE([rtai], [  --disable-rtai        disable use of rtai],
+       [ENABLE_RTAI=$enableval], [ENABLE_RTAI="yes"])
+DS_RTAI([HAVE_RTAI=yes],[HAVE_RTAI=no])
+if test "$HAVE_RTAI" == "yes" -a "$ENABLE_RTAI" == "yes"; then
+       USE_RTAI="yes"
+else
+       USE_RTAI="no"
+fi
 DS_RTLINUX([USE_RTLINUX=yes],[USE_RTLINUX=no])
 AM_CONDITIONAL([CONFIG_COMEDI_RT],
        [test ${USE_RTAI} = "yes" -o ${USE_RTLINUX} = "yes"])