Mercurial > pidgin.yaz
comparison m4/exosip.m4 @ 12023:80faf1ca5280
[gaim-migrate @ 14316]
boo
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 09 Nov 2005 07:58:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
12022:9d562dde0a3a | 12023:80faf1ca5280 |
---|---|
1 AC_DEFUN([LP_SETUP_EXOSIP],[ | |
2 AC_REQUIRE([AC_CANONICAL_HOST]) | |
3 AC_REQUIRE([LP_CHECK_OSIP2]) | |
4 | |
5 dnl eXosip embeded stuff | |
6 EXOSIP_CFLAGS="$OSIP_CFLAGS -DHAVE_PTHREAD -DOSIP_MT -DENABLE_TRACE -DNEW_TIMER -DSM -DMSN_SUPPORT -DUSE_TMP_BUFFER" | |
7 EXOSIP_LIBS="$OSIP_LIBS" | |
8 AC_CHECK_HEADERS(semaphore.h) | |
9 AC_CHECK_HEADERS(sys/sem.h) | |
10 case $target in | |
11 linux*) | |
12 EXOSIP_CFLAGS="$EXOSIP_CFLAGS -pedantic" | |
13 ;; | |
14 irix*) | |
15 ;; | |
16 hpux* | hp-ux*) | |
17 ;; | |
18 aix*) | |
19 ;; | |
20 osf*) | |
21 AC_CHECK_LIB(rt,sem_open,[EXOSIP_LIBS="$EXOSIP_LIBS -lrt"]) | |
22 ;; | |
23 sunos*) | |
24 ;; | |
25 darwin*) | |
26 EXOSIP_CFLAGS="$EXOSIP_CFLAGS -pedantic" | |
27 ;; | |
28 *) | |
29 ;; | |
30 esac | |
31 | |
32 AC_CHECK_LIB(posix4,sem_open,[EXOSIP_LIBS="$EXOSIP_LIBS -lposix4 -mt"]) | |
33 AC_CHECK_LIB(nsl,nis_add,[EXOSIP_LIBS="$EXOSIP_LIBS -lnsl"]) | |
34 AC_CHECK_LIB(socket,sendto,[EXOSIP_LIBS="$EXOSIP_LIBS -lsocket"]) | |
35 AC_CHECK_LIB(rt,clock_gettime,[EXOSIP_LIBS="$EXOSIP_LIBS -lrt"]) | |
36 dnl Checks for header files. | |
37 AC_HEADER_STDC | |
38 AC_CHECK_HEADERS(ctype.h) | |
39 AC_CHECK_HEADERS(string.h) | |
40 AC_CHECK_HEADERS(strings.h) | |
41 AC_CHECK_HEADERS(stdio.h) | |
42 AC_CHECK_HEADERS(stdlib.h) | |
43 AC_CHECK_HEADERS(unistd.h) | |
44 AC_CHECK_HEADERS(stdarg.h) | |
45 AC_CHECK_HEADERS(varargs.h) | |
46 AC_CHECK_HEADERS(sys/time.h) | |
47 AC_CHECK_HEADERS(assert.h) | |
48 AC_CHECK_HEADERS(signal.h) | |
49 AC_CHECK_HEADERS(sys/signal.h) | |
50 AC_CHECK_HEADERS(malloc.h) | |
51 AC_CHECK_HEADERS(sys/select.h) | |
52 AC_CHECK_HEADERS(sys/types.h) | |
53 AC_CHECK_HEADERS(fcntl.h) | |
54 | |
55 AC_SUBST(EXOSIP_CFLAGS) | |
56 AC_SUBST(EXOSIP_LIBS) | |
57 ]) |