~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to m4/exosip.m4

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
])