\
/usr/Motif1.2/include \
/usr/dt/include \
- \
+ /usr/include/Xm \
+ \
/usr/X11R6/include \
/usr/X11R5/include \
/usr/X11R4/include \
dnl check for vprintf/vsprintf() which are GNU extensions
AC_FUNC_VPRINTF
dnl check for vsnprintf() which is another GNU extension
-AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF))
+AC_CHECK_FUNCS(vsnprintf)
+
+dnl check for usleep() and nanosleep() which is better in MT programs
+AC_CHECK_FUNCS(nanosleep,
+ AC_DEFINE(HAVE_NANOSLEEP),
+ [AC_CHECK_LIB(posix4, nanosleep, AC_DEFINE(HAVE_NANOSLEEP))])
+AC_CHECK_FUNCS(usleep)
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
DEFAULT_wxUSE_INTL=1
DEFAULT_wxUSE_CONFIG=1
DEFAULT_wxUSE_STREAMS=1
+DEFAULT_wxUSE_SOCKETS=1
DEFAULT_wxUSE_SERIAL=1
DEFAULT_wxUSE_DYNLIB_CLASS=1
**--with-serial use class serialization,
wxUSE_SERIAL)
+AC_OVERRIDES(sockets,sockets,
+**--with-sockets use wxSocket etc classes,
+wxUSE_SOCKETS)
+
dnl ----------------------------------------------------------------
dnl user options for PostScript
dnl ----------------------------------------------------------------
AC_DEFINE_UNQUOTED(wxUSE_STREAMS,$wxUSE_STREAMS)
fi
+if test "$wxUSE_SOCKETS" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_SOCKETS,$wxUSE_SOCKETS)
+fi
+
if test "$wxUSE_SERIAL" = 1 ; then
AC_DEFINE_UNQUOTED(wxUSE_SERIAL,$wxUSE_SERIAL)
fi