ObjFW  Check-in [55766d6c14]

Overview
Comment:Add -lsocket to LIBS if libsocket has socket(). Solaris needs this.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 55766d6c14c6b60e722cced2415ce865709b19b6b9778df7f2287f28e1e8b8ec
User & Date: js on 2009-06-03 18:23:31
Other Links: manifest | tags
Context
2009-06-03
18:29
Check for install in configure. check-in: 87aca87242 user: js tags: trunk
18:23
Add -lsocket to LIBS if libsocket has socket(). Solaris needs this. check-in: 55766d6c14 user: js tags: trunk
18:21
No need to add LIB_LDFLAGS to LDFLAGS, the buildsys handles this. check-in: ab934c0805 user: js tags: trunk
Changes

Modified configure.ac from [8f985e5de6] to [76e1fc01b9].

90
91
92
93
94
95
96

97
98
99
100
101
102
103
			CPPLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
			LIBS="$LIBS $PTHREAD_LIBS"
			], [
			AC_MSG_ERROR(No pthreads or other supported threads!)])
		;;
esac


AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32")

AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_COMPILE([
	#include <stddef.h>
	#ifndef _WIN32
	#include <sys/types.h>







>







90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
			CPPLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
			LIBS="$LIBS $PTHREAD_LIBS"
			], [
			AC_MSG_ERROR(No pthreads or other supported threads!)])
		;;
esac

AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32")

AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_COMPILE([
	#include <stddef.h>
	#ifndef _WIN32
	#include <sys/types.h>