ObjFW  Check-in [094c6ad5f4]

Overview
Comment:Fix check for asprintf.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 094c6ad5f4452fb2a1d8e57c40caf67b0c94bb44c8784982c9db184ee327e1d9
User & Date: js on 2008-12-14 02:03:01
Other Links: manifest | tags
Context
2008-12-14
02:12
This is more safe. check-in: 7ddd9e5d35 user: js tags: trunk
02:03
Fix check for asprintf. check-in: 094c6ad5f4 user: js tags: trunk
02:01
Define functions unavailable on win32 and nop them there. check-in: 61bbbc20ff user: js tags: trunk
Changes

Modified configure.ac from [6bc92d283b] to [a943ad1b03].

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
AC_CHECK_LIB(objc, sel_getName, [
	have_sel_getName="yes"
	AC_DEFINE(HAVE_SEL_GETNAME, 1, [Whether we have sel_getName])])
test x"$have_sel_get_name" != x"yes" -a x"$have_sel_getName" != x"yes" && \
	AC_ERROR(You need either sel_get_name or sel_getName in libobjc!)

AC_CHECK_FUNC(asprintf, [
	AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")
	AC_SUBST(ASPRINTF, "asprintf.c")])

AC_MSG_CHECKING(whether we have IPv6 support)
AC_TRY_RUN([
	#include <stdlib.h>
	#include <string.h>








|







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
AC_CHECK_LIB(objc, sel_getName, [
	have_sel_getName="yes"
	AC_DEFINE(HAVE_SEL_GETNAME, 1, [Whether we have sel_getName])])
test x"$have_sel_get_name" != x"yes" -a x"$have_sel_getName" != x"yes" && \
	AC_ERROR(You need either sel_get_name or sel_getName in libobjc!)

AC_CHECK_FUNC(asprintf, [
	AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")], [
	AC_SUBST(ASPRINTF, "asprintf.c")])

AC_MSG_CHECKING(whether we have IPv6 support)
AC_TRY_RUN([
	#include <stdlib.h>
	#include <string.h>