[Bug 1764] Palisade driver doesn't build on Linux. (cleanup)
bk: 4d1e4b17l7SX1nl1lHKjhB6cSt4GKQ
---
+* [Bug 1764] Palisade driver doesn't build on Linux
* Create and use scripts/check--help when generating .texi files.
* Update bk triggers for the bk-5 release.
* Update genCommitLog for the bk-5 release.
fi
AC_MSG_RESULT([$ntp_ok])
+# Requires modem control
AC_MSG_CHECKING([for Palisade clock])
AC_ARG_ENABLE(
[PALISADE],
[s Palisade clock]
)],
[ntp_ok=$enableval],
- [
- case "$ac_cv_header_termios_h" in
- yes)
- ntp_ok=$ntp_eac
- ;;
- *) ntp_ok=no
- ;;
- esac
- ]
+ [AC_EGREP_CPP(
+ [yes],
+ [
+ #include <termios.h>
+ #ifdef HAVE_SYS_IOCTL_H
+ # include <sys/ioctl.h>
+ #endif
+
+ #ifdef TIOCMBIS
+ yes
+ #endif
+ ],
+ [ntp_ok=$ntp_eac],
+ [ntp_ok=no]
+ )]
)
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
#define refclock_shm refclock_none
#endif
-#if defined(CLOCK_PALISADE) && defined(TIOCMSET)
+#ifdef CLOCK_PALISADE
extern struct refclock refclock_palisade;
#else
#define refclock_palisade refclock_none
#if defined(REFCLOCK) && defined(CLOCK_PALISADE)
-#include <termios.h>
-
-# ifdef TIOCMSET
-
#ifdef SYS_WINNT
extern int async_write(int, const void *, unsigned int);
#undef write
bp[3];
}
-# endif /* TIOCMSET */
#else /* REFCLOCK && CLOCK_PALISADE*/
int refclock_palisade_c_notempty;
#endif