ObjFW  Check-in [3c65515ada]

Overview
Comment:Fix using select() on Win32, the check was at the wrong place.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3c65515adaa0cc58c05b5054badcf1fe32d97070b1493c4dbc61437073b99885
User & Date: js on 2012-01-01 19:54:32
Other Links: manifest | tags
Context
2012-01-03
20:44
Don't use objc_setUncaughtExceptionHandler with the old Apple runtime. check-in: 138d928621 user: js tags: trunk
2012-01-01
19:54
Fix using select() on Win32, the check was at the wrong place. check-in: 3c65515ada user: js tags: trunk
19:41
Some MinGW versions are missing alloca() in <stdlib.h>. check-in: d871468a3a user: js tags: trunk
Changes

Modified configure.ac from [9db1645873] to [8cb5bd7e2a].

499
500
501
502
503
504
505






506
507
508
509
510
511
512
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518







+
+
+
+
+
+







	AC_DEFINE(HAVE_POLL_H, 1, [Whether we have poll.h])
	AC_SUBST(OFSTREAMOBSERVER_POLL_M, "OFStreamObserver_poll.m")
])
AC_CHECK_HEADERS(sys/select.h, [
	AC_DEFINE(OF_HAVE_SYS_SELECT_H, 1, [Whether we have sys/select.h])
	AC_SUBST(OFSTREAMOBSERVER_SELECT_M, "OFStreamObserver_select.m")
])
case "$host_os" in
	mingw*)
		AC_SUBST(OFSTREAMOBSERVER_SELECT_M,
			"OFStreamObserver_select.m")
		;;
esac

AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_COMPILE([
	#include <stddef.h>
	#ifndef _WIN32
	# include <sys/types.h>
	# include <sys/socket.h>
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
671
672
673
674
675
676
677


678
679
680
681
682
683
684







-
-







])

AS_IF([test x"$cross_compiling" = x"yes"], [
	AC_SUBST(BIN_PREFIX, "$host-")

	case "$host" in
		*-*-mingw*)
			AC_SUBST(OFSTREAMOBSERVER_SELECT_M,
				"OFStreamObserver_select.m")
			AC_CHECK_PROG(WINE, wine, wine)

			AS_IF([test x"$WINE" != x""], [
				AC_SUBST(TESTS, "tests")
				AC_SUBST(TEST_LAUNCHER, "$WINE")
			])
			;;