Non-existence of _POSIX_VDISABLE is now non-fatal
authorshort <>
Sun, 16 Dec 2001 20:31:54 +0000 (20:31 +0000)
committershort <>
Sun, 16 Dec 2001 20:31:54 +0000 (20:31 +0000)
 - not supported by uClinux, bugreport courtesy of James Pruett

acconfig.h
configure.in

index a366e48..c86d900 100644 (file)
 #undef HAVE_CRTSCTS
 #undef CRTSCTS
 
 #undef HAVE_CRTSCTS
 #undef CRTSCTS
 
+/* _POSIX_VDISABLE define, may be missing. */
+#undef HAVE__POSIX_VDISABLE
+#undef _POSIX_VDISABLE
+
 /* FD_SETSIZE define, may be missing. */
 #undef HAVE_FD_SETSIZE
 
 /* FD_SETSIZE define, may be missing. */
 #undef HAVE_FD_SETSIZE
 
index fc3b103..f4f8f57 100644 (file)
@@ -151,6 +151,18 @@ AC_TRY_COMPILE([
        fi
        ])
 
        fi
        ])
 
+AC_MSG_CHECKING([for _POSIX_VDISABLE])
+AC_TRY_COMPILE([
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif], [_POSIX_VDISABLE;],
+       AC_DEFINE(HAVE__POSIX_VDISABLE)    AC_MSG_RESULT(yes),[
+       AC_DEFINE(_POSIX_VDISABLE, ['\0']) AC_MSG_RESULT(no)
+       ])
+
 AC_MSG_CHECKING([for FD_SETSIZE])
 AC_TRY_COMPILE([
 #ifdef HAVE_SYS_TIME_H
 AC_MSG_CHECKING([for FD_SETSIZE])
 AC_TRY_COMPILE([
 #ifdef HAVE_SYS_TIME_H