Mercurial > pidgin.yaz
comparison configure.ac @ 4424:eb116cc20200
[gaim-migrate @ 4699]
Thanks, Ethan Blanton
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 26 Jan 2003 06:03:59 +0000 |
parents | 3270d3536e12 |
children | bf770f11132b |
comparison
equal
deleted
inserted
replaced
4423:4bb433a7331c | 4424:eb116cc20200 |
---|---|
32 AC_STRUCT_TM | 32 AC_STRUCT_TM |
33 | 33 |
34 dnl Checks for library functions. | 34 dnl Checks for library functions. |
35 AC_TYPE_SIGNAL | 35 AC_TYPE_SIGNAL |
36 AC_FUNC_STRFTIME | 36 AC_FUNC_STRFTIME |
37 AC_CHECK_FUNCS(strdup strstr atexit getaddrinfo) | 37 AC_CHECK_FUNCS(strdup strstr atexit) |
38 dnl Checks for getopt in standard library | 38 dnl Checks for getopt in standard library |
39 AC_CHECK_FUNCS(getopt_long , , | 39 AC_CHECK_FUNCS(getopt_long , , |
40 AC_LIBOBJ(getopt) | 40 AC_LIBOBJ(getopt) |
41 AC_LIBOBJ(getopt1)) | 41 AC_LIBOBJ(getopt1)) |
42 | 42 |
43 | 43 |
44 dnl Check for inet_aton | 44 dnl Check for inet_aton |
45 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , | 45 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , |
46 [AC_ERROR(inet_aton not found)])]) | 46 [AC_ERROR(inet_aton not found)])]) |
47 AC_CHECK_LIB(nsl, gethostent) | |
48 AC_CHECK_FUNC(socket, , | |
49 [AC_CHECK_LIB(socket, socket, , [AC_ERROR([socket not found])])]) | |
50 dnl If all goes well, by this point the previous two checks will have | |
51 dnl pulled in -lsocket and -lnsl if we need them. | |
52 AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE([HAVE_GETADDRINFO], [1], | |
53 [Define to 1 if you have the getaddrinfo function.])], | |
54 [AC_CHECK_LIB(socket, getaddrinfo, | |
55 [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)]) | |
47 | 56 |
48 dnl Check for socklen_t (in Unix98) | 57 dnl Check for socklen_t (in Unix98) |
49 AC_MSG_CHECKING(for socklen_t) | 58 AC_MSG_CHECKING(for socklen_t) |
50 AC_TRY_COMPILE([ | 59 AC_TRY_COMPILE([ |
51 #include <sys/types.h> | 60 #include <sys/types.h> |
342 AC_C_BIGENDIAN | 351 AC_C_BIGENDIAN |
343 | 352 |
344 dnl checks for jabber | 353 dnl checks for jabber |
345 dnl AC_CHECK_SIZEOF(short) | 354 dnl AC_CHECK_SIZEOF(short) |
346 AC_CHECK_FUNCS(snprintf connect) | 355 AC_CHECK_FUNCS(snprintf connect) |
347 AC_CHECK_LIB(socket, socket) | |
348 AC_CHECK_LIB(nsl, gethostent) | |
349 | 356 |
350 dnl checks for zephyr | 357 dnl checks for zephyr |
351 AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.]) | 358 AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.]) |
352 AC_SUBST(KRB4_CFLAGS) | 359 AC_SUBST(KRB4_CFLAGS) |
353 AC_SUBST(KRB4_LDFLAGS) | 360 AC_SUBST(KRB4_LDFLAGS) |