forked from Mirrors/freeswitch
8ff384d36f
Mon May 14 12:43:07 EDT 2007 martti.mela@nokia.com * su_base_port.c: fixed a double free in su_base_port_start_shared(). Fri May 25 13:56:23 EDT 2007 Pekka.Pessi@nokia.com * soa: added SOATAG_ORDERED_USER(), SOATAG_REUSE_REJECTED(). Allow replacing existing m=lines. Sun May 27 14:52:13 EDT 2007 Pekka.Pessi@nokia.com * msg_parser.c: fixed bug #1726034 Mon May 28 04:57:08 EDT 2007 Pekka.Pessi@nokia.com * test_nth.c: using non-blocking connect in test program, too. Mon May 28 04:58:05 EDT 2007 Pekka.Pessi@nokia.com * su.c: making all sockets non-blocking by default. Mon May 28 04:59:28 EDT 2007 Pekka.Pessi@nokia.com * m4/sac-su.m4: moved contents into sac-s2.m4 Mon May 28 05:32:26 EDT 2007 Pekka.Pessi@nokia.com * RELEASE: updated. Wed May 30 10:37:53 EDT 2007 Pekka.Pessi@nokia.com * m4/sac-su2.m4: added configure option --disable-tag-cast. Added SU_INLINE_TAG_CAST into sofia-sip/su_configure.h{,.in}. Using SU_INLINE_TAG_CAST in sofia-sip/sip_tag.h{,.in} sofia-sip/http_tag.h{,.in} sofia-sip/su_tag.h sofia-sip/su_tag_io.h sofia-sip/auth_module.h sofia-sip/nth_tag.h sofia-sip/nua_tag.h Fri Jun 1 15:11:52 EDT 2007 Pekka.Pessi@nokia.com * tport.c: fixed tport_set_params() with secondary transports Fri Jun 1 15:13:23 EDT 2007 Pekka.Pessi@nokia.com * tport_type_tcp.c: checking for end-of-stream even if su_getmsgsize() promised more data Fri Jun 1 15:15:34 EDT 2007 Pekka.Pessi@nokia.com * tport: added tport_is_clear_to_send(), allow use of tport_pending() without msg The error callback from tport can now be registered even if there is no request pending on transport (e.g., when keeping a transport connection open for inbound messages). Fri Jun 1 15:16:43 EDT 2007 Pekka.Pessi@nokia.com * nta: not retrying after an transport error if application provided the transport Fri Jun 1 15:17:23 EDT 2007 Pekka.Pessi@nokia.com * sip: do not accept empty URIs (<>) in From, To, and other headers expecting name-addr format Fri Jun 1 15:17:43 EDT 2007 Pekka.Pessi@nokia.com * torture_url.c: added test for parsing empty URLs. Fri Jun 1 15:19:27 EDT 2007 Pekka.Pessi@nokia.com * nua/test_proxy.[hc]: use registered connections for outbound with TCP. Added test_proxy_close_tports() used testing recovering from TCP failures. Fri Jun 1 15:20:33 EDT 2007 Pekka.Pessi@nokia.com * test_nua.c: added --print-tags and --tags-a, --tags=b and --tags=c options Added more functions for handling events Fri Jun 1 15:22:08 EDT 2007 Pekka.Pessi@nokia.com * test_nua: fixed some tests depending on delivery of responses in correct order Reordering might happen if some messages are sent over TCP, other over UDP. Fri Jun 1 15:27:55 EDT 2007 Pekka.Pessi@nokia.com * nua_register.c: re-registering in case the TCP connection towards proxy is closed In test_nua, Mr. B is now using TCP with the test proxy. Fri Jun 1 15:35:39 EDT 2007 Pekka.Pessi@nokia.com * nua/test_refer.c: fixed SIP payload checks Fri Jun 1 15:36:08 EDT 2007 Pekka.Pessi@nokia.com * nta_internal.h: added orq_user_tport field Tue Jun 5 06:16:43 EDT 2007 Pekka.Pessi@nokia.com * hide_email.sh: now fixing links, too. Fri Jun 15 05:34:29 EDT 2007 Pekka.Pessi@nokia.com * nua: fixed documentation entries for API functions left out from doxygen Thanks for Jerry Ricahrds for pointing this out. Wed May 23 10:26:26 EDT 2007 Mikhail Zabaluev <mikhail.zabaluev@nokia.com> * Correct documentation for parameter type of NUTAG_WITH_SAVED Mon Jun 18 12:34:58 EDT 2007 Mikhail Zabaluev <mikhail.zabaluev@nokia.com> * Make nua_saved_event_request() and hence NUTAG_WITH_SAVED resilient to a NULL event content git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5413 d0543943-73ff-0310-b7d9-9358b9ac24b2
304 lines
8.4 KiB
Plaintext
304 lines
8.4 KiB
Plaintext
dnl Copyright (C) 2005-2006 Nokia Corporation
|
|
dnl Contact: Pekka Pessi <pekka.pessi@nokia.com>
|
|
dnl Licensed under LGPL. See file COPYING.
|
|
|
|
dnl
|
|
dnl ref: http://www.gnu.org/software/autoconf/manual/autoconf.info.gz
|
|
dnl
|
|
AC_PREREQ(2.57)
|
|
|
|
dnl information on the package
|
|
dnl ---------------------------
|
|
|
|
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
|
|
AC_INIT([sofia-sip], [1.12.6work])
|
|
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
|
|
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.12])
|
|
dnl Includedir specific to this sofia version
|
|
AC_SUBST(include_sofiadir, '${includedir}/sofia-sip-1.12')
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_CUR, [6])
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_REV, [0])
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_AGE, [6])
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_SOVER, [0]) # CUR-AGE
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_GLIB_CUR, [3])
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_GLIB_REV, [0])
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_GLIB_AGE, [0])
|
|
AC_SUBST(LIBVER_SOFIA_SIP_UA_GLIB_SOVER, [3]) # CUR-AGE
|
|
|
|
# dnl calls AC_CANONICAL_ macros that are required by AM_INIT_AUTOMAKE
|
|
SAC_CANONICAL_SYSTEM_CACHE_CHECK
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_GNU_SOURCE
|
|
|
|
### checks for programs
|
|
### -------------------
|
|
AC_LANG([C])
|
|
AC_CHECK_COMPILATION_ENVIRONMENT
|
|
|
|
SAC_TOOL_CC
|
|
AC_PROG_INSTALL
|
|
AC_PROG_CPP
|
|
AC_CHECK_PROG(ETAGS, etags, etags, echo)
|
|
AC_CHECK_TOOL(AR, ar, ar)
|
|
AC_CHECK_TOOL(LD, ld, ld)
|
|
AC_PROG_LIBTOOL
|
|
|
|
SAC_ENABLE_NDEBUG
|
|
SAC_ENABLE_EXPENSIVE_CHECKS
|
|
|
|
dnl Add parameters for aclocal
|
|
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
|
|
|
|
AC_ARG_WITH(doxygen,
|
|
[ --with-doxygen[[=CMD]] use doxygen command CMD [[doxygen]]],[
|
|
case $enable_doxygen in
|
|
yes ) doxygen=doxygen ;;
|
|
no ) doxygen=echo ;;
|
|
esac], doxygen=doxygen)
|
|
|
|
AC_CHECK_PROG([DOXYGEN], [doxygen], [$doxygen], [echo])
|
|
AM_CONDITIONAL([HAVE_DOXYGEN], [test $DOXYGEN != echo])
|
|
|
|
### checks for libraries
|
|
### --------------------
|
|
|
|
SAC_SOFIA_SU
|
|
SAC_OPENSSL
|
|
SAC_TPORT
|
|
|
|
### internal modules
|
|
### ----------------
|
|
AC_DEFINE([HAVE_SOFIA_SIP], 1, [Define to 1 always])
|
|
AC_DEFINE([HAVE_SOFIA_SRESOLV], 1, [Define to 1 if we use DNS library])
|
|
AC_DEFINE([HAVE_SOFIA_SMIME], 0, [Define to 1 if we use S/MIME library])
|
|
|
|
AC_ARG_ENABLE(stun,
|
|
[ --disable-stun disable stun module (enabled)],
|
|
, enable_stun=yes)
|
|
|
|
if test x$enable_stun = xno ; then
|
|
AC_MSG_WARN([** STUN support disabled **])
|
|
elif test x${HAVE_OPENSSL} != x1 ; then
|
|
dnl compile STUN only if OPENSSL is available
|
|
AC_MSG_WARN([** TLS support for STUN disabled as OpenSSL headers and/or libraries were not found **])
|
|
AC_DEFINE([HAVE_SOFIA_STUN], 1, [Define to 1 if we use STUN library])
|
|
else
|
|
AC_DEFINE([HAVE_SOFIA_STUN], 1, [Define to 1 if we use STUN library])
|
|
fi
|
|
AM_CONDITIONAL([HAVE_STUN], [test "x$enable_stun" = xyes])
|
|
|
|
AC_ARG_ENABLE(nth,
|
|
[ --disable-nth disable nth and http modules (enabled)],
|
|
, enable_nth=yes)
|
|
AM_CONDITIONAL([HAVE_NTH], [test "x$enable_nth" = xyes])
|
|
if test x$enable_nth = xyes ; then
|
|
AC_DEFINE([HAVE_SOFIA_NTH], 1, [Define to 1 if we use NTH library])
|
|
fi
|
|
|
|
dnl Disable NTLM support by default
|
|
AC_ARG_ENABLE(ntlm,
|
|
[ --enable-ntlm enable NTLM support [[disabled]]],
|
|
, enable_ntlm=no)
|
|
|
|
if test x$enable_ntlm = xyes ; then
|
|
AC_DEFINE([HAVE_SOFIA_NTLM], 1, [Define to 1 if we use NTLM library])
|
|
fi
|
|
AM_CONDITIONAL([HAVE_NTLM], [test "x$enable_ntlm" = xyes])
|
|
|
|
|
|
AC_DEFINE([HAVE_SRTP], 0, [Define to 1 if we use SRTP])
|
|
AC_DEFINE([HAVE_UPNP], 0, [Define to 1 if we use UPnP])
|
|
|
|
### checks for header files
|
|
### -----------------------
|
|
AC_HEADER_STDC
|
|
|
|
### checks for declarations
|
|
### -----------------------
|
|
|
|
### checks for types
|
|
### ----------------
|
|
|
|
AC_TYPE_SIGNAL
|
|
AC_TYPE_LONGLONG
|
|
|
|
dnl
|
|
dnl Define HAVE_C99_FORMAT to 1 if the formatted IO functions (printf/scanf
|
|
dnl et.al.) support the C99 'size specifiers', namely ll, hh, j, z, t
|
|
dnl (representing long long int, char, intmax_t, size_t, ptrdiff_t). Some C
|
|
dnl compilers supported these specifiers prior to C99 as an extension.
|
|
dnl
|
|
AC_CACHE_CHECK([whether IO functions support C99 size specifiers],
|
|
[ac_cv_c_c99_format],[
|
|
|
|
ac_cv_c_c99_format=yes
|
|
|
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
|
|
[[char buf[64];
|
|
if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5)
|
|
exit(1);
|
|
else if (strcmp(buf, "12345"))
|
|
exit(2);]])],
|
|
[ac_cv_c_c99_format=yes],
|
|
[ac_cv_c_c99_format=no],
|
|
[ac_cv_c_c99_format=yes])
|
|
])
|
|
|
|
if test $ac_cv_c_c99_format = yes; then
|
|
AC_DEFINE([HAVE_C99_FORMAT], [1], [Define to 1 if printf supports C99 size specifiers])dnl
|
|
|
|
AC_DEFINE([LLU], ["%llu"], [Format (%llu) for unsigned long long])dnl
|
|
AC_DEFINE([LLI], ["%lli"], [Format (%lli) for long long])dnl
|
|
AC_DEFINE([LLX], ["%llx"], [Format (%llx) for long long hex])dnl
|
|
AC_DEFINE([MOD_ZD], ["%zd"], [Define printf() modifier for ssize_t])dnl
|
|
AC_DEFINE([MOD_ZU], ["%zu"], [Define printf() modifier for size_t])dnl
|
|
|
|
else
|
|
|
|
AC_CACHE_CHECK([whether IO functions support size specifier for long long],
|
|
[ac_cv_c_ll_format],[
|
|
|
|
ac_cv_c_ll_format=yes
|
|
|
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
|
|
[[char buf[64];
|
|
if (sprintf(buf, "%lld", (long long int)1) != 1)
|
|
exit(1);
|
|
else if (strcmp(buf, "1"))
|
|
exit(2);]])],
|
|
[ac_cv_c_ll_format=yes],
|
|
[ac_cv_c_ll_format=no],
|
|
[ac_cv_c_ll_format=yes])
|
|
])
|
|
|
|
if test $ac_cv_c_ll_format = yes; then
|
|
AC_DEFINE([LLU], ["%llu"], [Format (%llu) for unsigned long long])dnl
|
|
AC_DEFINE([LLI], ["%lli"], [Format (%lli) for long long])dnl
|
|
AC_DEFINE([LLX], ["%llx"], [Format (%llx) for long long hex])dnl
|
|
else
|
|
AC_MSG_ERROR("printf cannot handle 64-bit integers")
|
|
fi
|
|
|
|
AC_CACHE_CHECK([whether IO functions support size specifier for size_t],
|
|
[ac_cv_c_z_format],[
|
|
|
|
ac_cv_c_z_format=yes
|
|
|
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
|
|
[[char buf[64];
|
|
if (sprintf(buf, "%zd", (size_t)1) != 1)
|
|
exit(1);
|
|
else if (strcmp(buf, "1"))
|
|
exit(2);]])],
|
|
[ac_cv_c_z_format=yes],
|
|
[ac_cv_c_z_format=no],
|
|
[ac_cv_c_z_format=yes])
|
|
])
|
|
|
|
if test $ac_cv_c_z_format = yes; then
|
|
AC_DEFINE([MOD_ZD], ["%ld"], [Define printf() modifier for ssize_t])dnl
|
|
AC_DEFINE([MOD_ZU], ["%lu"], [Define printf() modifier for size_t])dnl
|
|
else
|
|
dnl Cross fingers
|
|
AC_MSG_WARN("printf cannot handle size_t, using long instead")
|
|
AC_DEFINE([MOD_ZD], ["%ld"], [Define printf() modifier for ssize_t])dnl
|
|
AC_DEFINE([MOD_ZU], ["%lu"], [Define printf() modifier for size_t])dnl
|
|
fi
|
|
|
|
fi
|
|
|
|
### checks for structures
|
|
### ---------------------
|
|
|
|
### checks for typedefs, structures, and compiler characteristics.
|
|
### --------------------------------------------------------------
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
AC_C_INLINE_DEFINE
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_C_VAR_FUNC
|
|
AC_C_MACRO_FUNCTION
|
|
AC_C_KEYWORD_STRUCT
|
|
|
|
AC_HEADER_TIME
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_SYS_SA_LEN
|
|
|
|
### checks for library functions
|
|
### ----------------------------
|
|
|
|
### checks for system services
|
|
### --------------------------
|
|
|
|
AC_DEV_URANDOM
|
|
|
|
### output
|
|
### ------
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
packages/Makefile
|
|
packages/sofia-sip-ua.pc
|
|
packages/sofia-sip-ua-glib.pc
|
|
libsofia-sip-ua/Makefile
|
|
libsofia-sip-ua/bnf/Makefile
|
|
libsofia-sip-ua/bnf/Doxyfile
|
|
libsofia-sip-ua/docs/Makefile
|
|
libsofia-sip-ua/docs/Doxyfile
|
|
libsofia-sip-ua/docs/Doxyfile.version
|
|
libsofia-sip-ua/docs/sofia-footer.html
|
|
libsofia-sip-ua/features/Doxyfile
|
|
libsofia-sip-ua/features/Makefile
|
|
libsofia-sip-ua/http/Doxyfile
|
|
libsofia-sip-ua/http/Makefile
|
|
libsofia-sip-ua/ipt/Doxyfile
|
|
libsofia-sip-ua/ipt/Makefile
|
|
libsofia-sip-ua/iptsec/Doxyfile
|
|
libsofia-sip-ua/iptsec/Makefile
|
|
libsofia-sip-ua/msg/Doxyfile
|
|
libsofia-sip-ua/msg/Makefile
|
|
libsofia-sip-ua/nea/Doxyfile
|
|
libsofia-sip-ua/nea/Makefile
|
|
libsofia-sip-ua/nta/Doxyfile
|
|
libsofia-sip-ua/nta/Makefile
|
|
libsofia-sip-ua/nth/Doxyfile
|
|
libsofia-sip-ua/nth/Makefile
|
|
libsofia-sip-ua/nua/Doxyfile
|
|
libsofia-sip-ua/nua/Makefile
|
|
libsofia-sip-ua/sdp/Doxyfile
|
|
libsofia-sip-ua/sdp/Makefile
|
|
libsofia-sip-ua/sip/Doxyfile
|
|
libsofia-sip-ua/sip/Makefile
|
|
libsofia-sip-ua/soa/Doxyfile
|
|
libsofia-sip-ua/soa/Makefile
|
|
libsofia-sip-ua/sresolv/Doxyfile
|
|
libsofia-sip-ua/sresolv/Makefile
|
|
libsofia-sip-ua/stun/Doxyfile
|
|
libsofia-sip-ua/stun/Makefile
|
|
libsofia-sip-ua/su/Doxyfile
|
|
libsofia-sip-ua/su/Makefile
|
|
libsofia-sip-ua/tport/Doxyfile
|
|
libsofia-sip-ua/tport/Makefile
|
|
libsofia-sip-ua/url/Doxyfile
|
|
libsofia-sip-ua/url/Makefile
|
|
libsofia-sip-ua/features/sofia-sip/sofia_features.h
|
|
libsofia-sip-ua-glib/Makefile
|
|
libsofia-sip-ua-glib/su-glib/Makefile
|
|
libsofia-sip-ua-glib/su-glib/Doxyfile
|
|
utils/Makefile
|
|
utils/Doxyfile
|
|
win32/Makefile
|
|
win32/config.h
|
|
])
|
|
|
|
AC_CONFIG_COMMANDS([version],,[PACKAGE_VERSION=${PACKAGE_VERSION}])
|
|
AC_CONFIG_FILES([packages/sofia-sip-${PACKAGE_VERSION}.spec:packages/sofia-sip.spec.in])
|
|
|
|
AC_OUTPUT
|