echo "With aio"
fi
+
AC_ARG_WITH(dl,
AC_HELP_STRING([--with-dl],[Use dynamic linking]))
if test "$with_dl" = "yes"; then
;;
esac
done
+
+dnl Check for librt
+dnl We use AIO in the coss store
+if test "$with_aio" = "yes"; then
+ dnl On some systems POSIX AIO functions are in libaio
+ AC_CHECK_LIB(rt, aio_read,
+ [DISK_LIBS="$DISK_LIBS -lrt"],
+ AC_CHECK_LIB(aio, aio_read,[DISK_LIBS="$DISK_LIBS -laio"])
+ )
+fi
+
AC_SUBST(DISK_MODULES)
AC_SUBST(DISK_LIBS)
AC_SUBST(DISK_PROGRAMS)
AC_CHECK_LIB(pthread, main)
fi
-dnl Check for librt
-dnl We use AIO in the coss store
-if test "$with_aio" = "yes"; then
- dnl On some systems POSIX AIO functions are in libaio
- AC_CHECK_LIB(rt, aio_read,,AC_CHECK_LIB(aio, aio_read))
-fi
-
dnl -lintl is needed on SCO version 3.2v4.2 for strftime()
dnl Robert Side <rside@aiinc.bc.ca>
dnl Mon, 18 Jan 1999 17:48:00 GMT
DiskIO/AIO/AIODiskFile.h \
DiskIO/AIO/AIODiskIOStrategy.cc \
DiskIO/AIO/AIODiskIOStrategy.h \
- DiskIO/AIO/AIODiskIOModule.h
+ DiskIO/AIO/AIODiskIOModule.cc \
+ DiskIO/AIO/AIODiskIOModule.h
libBlocking_a_SOURCES = \
DiskIO/Blocking/BlockingFile.cc \
tests/testDiskIO.cc \
tests/testDiskIO.h \
tests/testMain.cc \
- tests/stub_cache_manager.cc
+ tests/stub_cache_manager.cc \
+ tests/stub_CommIO.cc
tests_testDiskIO_LDADD= \
+ @DISK_LIBS@ \
$(SWAP_TEST_LDADD) \
- libsquid.la \
- @SSLLIB@
+ SquidConfig.o
tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
tests_testDiskIO_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
+ @DISK_LIBS@ \
$(SWAP_TEST_DS) \
@SQUID_CPPUNIT_LA@
--- /dev/null
+#include "squid.h"
+#include "CommIO.h"
+
+void
+CommIO::ResetNotifications()
+{
+ fatal("Not Implemented");
+}
+
+void
+CommIO::Initialise()
+{
+ fatal("Not Implemented");
+}
+
+void
+CommIO::NotifyIOClose()
+{
+ fatal("Not Implemented");
+}
+
+void
+CommIO::NULLFDHandler(int, void *)
+{
+ fatal("Not Implemented");
+}
+
+void
+CommIO::FlushPipe()
+{
+ fatal("Not Implemented");
+}
/* all test code runs synchronously at the moment */
}
+void
+comm_quick_poll_required()
+{
+ /* for tests ... ignore */
+}
+
int
ignoreErrno(int ierrno)
{
return -1;
}
+int
+commSetNonBlocking(int fd)
+{
+ fatal ("Not implemented");
+ return COMM_ERROR;
+}
+
int
commUnsetNonBlocking(int fd)
{