Commit 744e307e authored by Pekka Pessi's avatar Pekka Pessi

Making a share library instead of DLL.

libsofia_sip_ua is now made a shared library, not dll.
This is because the hairy linking problems we have with dll.

darcs-hash:20051031174911-65a35-e328d8d70965d482d9d1b77dab03d15b073b7b2b.gz
parent 1f93a9cf
/**@file win-config.h
* @brief <config.h> used by Windows.
*
* Copy this as config.h if you are running WIN32 (or run autoconf-all.cmd).
/*
* This file is part of the Sofia-SIP package
*
* Copyright (c) 2000, 2002 Nokia Research Center. All rights reserved.
* Copyright (C) 2005 Nokia Corporation.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* @license
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* The contents of this file are subject to the NOKOS License Version 1.0
* (the "License"); you may not use this file except in compliance with the
* License.
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations under
* the License.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* The Original Software is Sofia IPv6 Multimedia Communications Suite.
*/
/**@file win32/config.h
* @brief <config.h> used by Windows.
*
* Copyright (c) 2000 Nokia and others. All Rights Reserved.
* Copy this as config.h if you are running WIN32 (or run autoconf-all.cmd).
*
* @par Contributor(s):
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Tue Sep 12 19:22:54 2000 ppessi
* $Id: config.h,v 1.1 2005/09/23 14:43:46 ppessi Exp $
*/
/* Define this as 1 if you have AAC */
#define HAVE_AAC 1
/* Define to 1 if you have the <ac.h> header file. */
#define HAVE_AC_H 1
/* Define to 1 if you have the <ad.h> header file. */
#define HAVE_AD_H 1
/* Define this a 1 if you have ALSA 1 library (in ALSA release 0.5) */
#undef HAVE_ALSA
/* Define this a 1 if you have ALSA library (alsa-lib-0.9.1 or newer) */
#undef HAVE_ALSA2
/* Define this as 1 if AMR codec is in use */
#define HAVE_AMR 1
/* Define this as 1 if fixed-point AMR codec is used */
#define HAVE_AMRFIX 1
/* Define this as 1 if AMR generic parts are used */
#define HAVE_AMRGEN 1
/* Define this as 1 if AMR wideband codec is used */
#define HAVE_AMRWB 1
/* Define to 1 if you have the <auth_digest.h> header file. */
#define HAVE_AUTH_DIGEST_H 1
/* Define to 1 if you have the <base64.h> header file. */
#define HAVE_BASE64_H 1
/* Define to 1 if you have the <bnf.h> header file. */
#define HAVE_BNF_H 1
/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM
/* Define to 1 if you have the `clock_getcpuclockid' function. */
#undef HAVE_CLOCK_GETCPUCLOCKID
......@@ -70,26 +41,24 @@
/* Define to 1 if you have the `clock_gettime' function. */
#undef HAVE_CLOCK_GETTIME
/* Define to 1 if you have the <comedia.h> header file. */
#define HAVE_COMEDIA_H 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define this a 1 if you use EAP. */
#undef HAVE_EAP
/* Define to 1 if you have the `epoll' function. */
#undef HAVE_EPOLL
/* Define this as 1 if GSM-EFR codec is in use */
#define HAVE_EFR 1
/* Define this as 1 if you have WIN32 FILETIME type and
GetSystemTimeAsFileTime(). */
#define HAVE_FILETIME 1
/* Define to 1 if you have the `flock' function. */
#undef HAVE_FLOCK
/* Define as 1 if the C compiler supports __func__ */
#undef HAVE_FUNC
#undef HAVE_FUNC
/* Define as 1 if the C compiler supports __FUNCTION__ */
#undef HAVE_FUNCTION
/* Define this as 1 if G.723.1 codec is in use */
#define HAVE_G7231 1
#undef HAVE_FUNCTION
/* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO
......@@ -115,15 +84,15 @@
/* Define this as 1 if you have glib library */
#undef HAVE_GLIB
/* Define to 1 if you have the <hss.h> header file. */
#undef HAVE_HSS_H
/* Define to 1 if you have the <http.h> header file. */
#define HAVE_HTTP_H 1
/* Define this as 1 if you have SIOCGIFCONF */
#undef HAVE_IFCONF
/* Define this as 1 if you have SIOCGIFNUM ioctl */
#undef HAVE_IFNUM
/* Define this as 1 if you have ifr_ifindex in <net/if.h> */
#undef HAVE_IFR_IFINDEX
/* Define this as 1 if you have ifr_index in <net/if.h> */
#undef HAVE_IFR_INDEX
......@@ -133,11 +102,15 @@
/* Define this as 1 if you have inlining compiler */
#define HAVE_INLINE 1
/* Define this as 1 if you have WIN32 INTERFACE_INFO_EX type. */
#define HAVE_INTERFACE_INFO_EX 0
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define as 1 you have <iphlpapi.h> */
#undef HAVE_IPHLPAPI_H
/* Define as 1 you have WIN32 <iphlpapi.h> */
// XXX: vehmanek-win32-fix:
#define HAVE_IPHLPAPI_H 0
/* Define this as 1 if you have IPV6_RECVERR in <netinet/in6.h> */
#undef HAVE_IPV6_RECVERR
......@@ -145,29 +118,23 @@
/* Define this as 1 if you have IP_RECVERR in <netinet/in.h> */
#undef HAVE_IP_RECVERR
/* Define this a 1 if you use JACK. */
#undef HAVE_JACK
/* Define to 1 if you have the <jpip.h> header file. */
#undef HAVE_JPIP_H
/* Define to 1 if you have the `crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO
/* Define to 1 if you have the `c++asn1' library (-lc++asn1). */
#undef HAVE_LIBC__ASN1
/* Define to 1 if you have the `pthread' library (-lpthread). */
#undef HAVE_LIBPTHREAD
/* Define this as 1 if you have sigcomp libs */
#undef HAVE_LIBSIGCOMP
#define HAVE_LIBPTHREAD 1
/* Define to 1 if you have the `ssl' library (-lssl). */
#undef HAVE_LIBSSL
/* Define this a 1 if you want ad_loopback to be used */
#define HAVE_LOOPBACK 1
/* Define this as 1 if you have long long */
#undef HAVE_LONG_LONG
/* Define to 1 if you have the `memccpy' function. */
#undef HAVE_MEMCCPY
/* Define to 1 if you have the `memcspn' function. */
#undef HAVE_MEMCSPN
/* Define to 1 if you have the `memmem' function. */
#undef HAVE_MEMMEM
......@@ -175,57 +142,24 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define this as 1 if you want to have MIKEY enabled */
#undef HAVE_MIKEY
/* Define to 1 if you have the <mma.h> header file. */
#define HAVE_MMA_H 1
/* Define this as 1 if MP4A-LATM codec is in use */
#define HAVE_MP4A_LATM 1
/* Define to 1 if you have the <msg.h> header file. */
#define HAVE_MSG_H 1
/* Define this as 1 if you have MSG_NOSIGNAL flag for send() */
#undef HAVE_MSG_NOSIGNAL
/* Define this as 1 if you have mss includes */
#undef HAVE_MSS
/* Define to 1 if you have the <mss.h> header file. */
#define HAVE_MSS_H 1
/* Define to 1 if you have the <nea.h> header file. */
#define HAVE_NEA_H 1
/* Define to 1 if you have the `memspn' function. */
#undef HAVE_MEMSPN
/* Define to 1 if you have the <netinet/sctp.h> header file. */
#undef HAVE_NETINET_SCTP_H
/* Define to 1 if you have the <netinet/tcp.h> header file. */
#undef HAVE_NETINET_TCP_H
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H
/* Define to 1 if you have the <nta.h> header file. */
#define HAVE_NTA_H 1
/* Define to 1 if you have the <nth.h> header file. */
#define HAVE_NTH_H 1
/* Define to 1 if you have the <ntr.h> header file. */
#define HAVE_NTR_H 1
/* Define this as 1 if you have OpenSSL */
#undef HAVE_OPENSSL
/* Define to 1 if you have the <openssl/tls1.h> header file. */
#undef HAVE_OPENSSL_TLS1_H
/* Define this as a 1 if you have Linux OSS includes. */
#undef HAVE_OSS
/* Define this as 1 if you want to have POC features enabled */
#undef HAVE_POC
/* Define to 1 if you have the `poll' function. */
#undef HAVE_POLL
......@@ -235,145 +169,51 @@
/* Define to 1 if you have the <pthread.h> header file. */
#define HAVE_PTHREAD_H 1
/* Define this as 1 if you have PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP */
#undef HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
/* Define this as 1 if you have pvt includes */
#define HAVE_PVT 0
/* Define to 1 if you have the `random' function. */
/* See later */
#define HAVE_RANDOM 1
/* Define this as 1 if you want to have RTCP enabled */
#define HAVE_RTCP 1
/* Define to 1 if you have the <rtp_frame.h> header file. */
#define HAVE_RTP_FRAME_H 1
/* Define to 1 if you have the <rtsp.h> header file. */
#define HAVE_RTSP_H 1
/* Define this as 1 if you have sa_len in struct sockaddr */
#undef HAVE_SA_LEN
/* Define this a 1 if you have SCTP */
#undef HAVE_SCTP
/* Define this as 1 if you want to have bsf features enabled */
#undef HAVE_SC_CRED_H
/* Define to 1 if you have the <sdp.h> header file. */
#define HAVE_SDP_H 1
/* Define this as 1 if you have sigcomp */
/* Define this as 1 if you have Sofia sigcomp >= 2.5 */
#undef HAVE_SIGCOMP
/* Define to 1 if you have the <sigcomp.h> header file. */
#undef HAVE_SIGCOMP_H
/* Define this as 1 if you have IPv6 structures and constants */
#define HAVE_SIN6 defined(IPPROTO_IPv6)
/* Define to 1 if you have the <sip.h> header file. */
#define HAVE_SIP_H 1
/* PPe: not yet */
#define HAVE_SIN6 0
/* Define this as 1 if you have S/MIME module */
#undef HAVE_SMIME
/* Define to 1 if you have the <smime.h> header file. */
#undef HAVE_SMIME_H
/* Define this as 1 if you have WIN32 WSAIoctl SIO_ADDRESS_LIST_QUERY. */
#define HAVE_SIO_ADDRESS_LIST_QUERY 1
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
/* Define this as 1 if you have ac headers */
#define HAVE_SOFIA_AC 1
/* Define this as 1 if you have ad includes */
#define HAVE_SOFIA_AD 1
/* Define this as 1 if you have bnf includes */
#define HAVE_SOFIA_BNF 1
/* Define this as 1 if you have comedia includes */
#define HAVE_SOFIA_COMEDIA 1
/* Define this as 1 if you have hss includes */
#undef HAVE_SOFIA_HSS
/* Define this as 1 if you have http includes */
#define HAVE_SOFIA_HTTP 1
/* Define this as 1 if you have ipt includes */
#define HAVE_SOFIA_IPT 1
/* Define this as 1 if you have iptsec includes */
#define HAVE_SOFIA_IPTSEC 1
/* Define this as 1 if you have JPIP includes */
#undef HAVE_SOFIA_JPIP
/* Define this as 1 if you have mma includes */
#undef HAVE_SOFIA_MMA
/* Define this as 1 if you have Sofia sigcomp >= 2.5 */
#undef HAVE_SOFIA_SIGCOMP
/* Define this as 1 if you have msg includes */
#define HAVE_SOFIA_MSG 1
/* Define this as 1 if you have mss includes */
#undef HAVE_SOFIA_MSS
/* Define this as 1 if you have nea includes */
#define HAVE_SOFIA_NEA 1
/* Define this as 1 if you have nta includes */
#define HAVE_SOFIA_NTA 1
/* Define this as 1 if you have nth includes */
#define HAVE_SOFIA_NTH 1
/* Define this as 1 if you have ntr includes */
#undef HAVE_SOFIA_NTR
/* Define this as 1 if you have pvt includes */
#undef HAVE_SOFIA_PVT
/* Define this as 1 if you have rtp headers */
#undef HAVE_SOFIA_RTP
/* Define this as 1 if you have rtsp includes */
#undef HAVE_SOFIA_RTSP
/* Define this as 1 if you have sdp headers */
#define HAVE_SOFIA_SDP 1
/* Define this as 1 if you have sip includes */
/* Define as 1 always */
#define HAVE_SOFIA_SIP 1
/* Define this as 1 if you have sresolv */
/* Define as 1 if we use S/MIME library */
#undef HAVE_SOFIA_SMIME
/* Define as 1 if we use DNS library */
#define HAVE_SOFIA_SRESOLV 1
/* Define this as 1 if you have stun */
/* Define as 1 if we use STUN library */
#undef HAVE_SOFIA_STUN
/* Define this as 1 if you have su headers */
/* Define as 1 always */
#define HAVE_SOFIA_SU 1
/* Define this as 1 if you have tport includes */
#define HAVE_SOFIA_TPORT 1
/* Define this as 1 if you have uicc includes */
#undef HAVE_SOFIA_UICC
/* Define this as 1 if you have upnp_wrapper includes */
#undef HAVE_SOFIA_UPNP_WRAPPER
/* Define this as 1 if you have url includes */
#define HAVE_SOFIA_URL 1
/* Define to 1 if you have the <sresolv.h> header file. */
#undef HAVE_SRESOLV_H
/* Define this as 1 if you want to have SRTP enabled */
/* Define as 1 if we use SRTP */
#undef HAVE_SRTP
/* Define to 1 if you have the <stdint.h> header file. */
......@@ -385,15 +225,11 @@
/* Define to 1 if you have the `strcasestr' function. */
#undef HAVE_STRCASESTR
/* Define to 1 if you have the <streaming/ext_include/streaming.h> header
file. */
#undef HAVE_STREAMING_EXT_INCLUDE_STREAMING_H
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
......@@ -401,21 +237,6 @@
/* Define this as 1 if your CC supports C99 struct initialization */
#undef HAVE_STRUCT_KEYWORDS
/* Define to 1 if you have the <stun.h> header file. */
#undef HAVE_STUN_H
/* Define to 1 if you have the <su_alloc_stat.h> header file. */
#define HAVE_SU_ALLOC_STAT_H 1
/* Define to 1 if you have the <su_config.h> header file. */
#define HAVE_SU_CONFIG_H 1
/* Define to 1 if you have the <su_debug.h> header file. */
#define HAVE_SU_DEBUG_H 1
/* Define to 1 if you have the <su.h> header file. */
#define HAVE_SU_H 1
/* Define to 1 if you have the <su_wait.h> header file. */
#define HAVE_SU_WAIT_H 1
......@@ -435,68 +256,52 @@
#undef HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the `tcsetattr' function. */
#undef HAVE_TCSETATTR
/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
/* Define this as 1 if you have TLS */
#undef HAVE_TLS
/* Define to 1 if you have the <tport.h> header file. */
#define HAVE_TPORT_H 1
/* Define this as 1 if you want mss transcoding support */
#undef HAVE_TRANSCODING
/* Define to 1 if you have the <uicc.h> header file. */
#undef HAVE_UICC_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define this as 1 if you have UPNP enabled */
/* Define as 1 if we use UPnP */
#undef HAVE_UPNP
/* Define to 1 if you have the <upnp_wrapper.h> header file. */
#undef HAVE_UPNP_WRAPPER_H
/* Define as 1 you have WIN32 */
#define HAVE_WIN32 1
/* Define to 1 if you have the <url.h> header file. */
#define HAVE_URL_H 1
/* Define as format (%lli) for long long */
#define LLI "%I64i"
/* Define this a 1 if you have Ogg Vorbis. */
#define HAVE_VORBIS 1
/* Define as format (%llu) for unsigned long long */
#define LLU "%I64u"
/* Define this as default library path */
#define IPTEL_LIB_DIR "C:\\iptel\\lib\\"
#define LIBDIR "C:\\iptel\\lib\\"
/* Define as format (%llx) for long long hex */
#define LLX "%I64x"
/* Name of package */
#define PACKAGE "sofia"
#define PACKAGE "sofia-sip"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "sofia-devel@isource.nokia.com"
#define PACKAGE_BUGREPORT "sofia-sip-devel@sf.net"
/* Define to the full name of this package. */
#define PACKAGE_NAME "sofia"
#define PACKAGE_NAME "sofia-sip"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "sofia win32"
#define PACKAGE_STRING "sofia-sip 1.11.2+win32"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#define PACKAGE_VERSION "win32"
#define PACKAGE_VERSION "1.11.2+win32"
/* Define this as 1 if your host is big endian */
#undef RTP_BIG_ENDIAN
/* Define this as 1 if your host is little endian */
#define RTP_LITTLE_ENDIAN 1
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
......@@ -505,7 +310,7 @@
#undef TIME_WITH_SYS_TIME
/* Version number of package */
#define VERSION "1.9.16"
#define VERSION "1.11.2+win32"
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
......@@ -519,11 +324,17 @@
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
#define inline __inline
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#define inline __inline
#endif
/* Define as at least 64-bit int type */
#define longlong __int64
/* Define to `unsigned' if <sys/types.h> does not define. */
/* PPe: defined in stddef.h */
#undef size_t
#define HOSTTYPE "pc-xp-win32"
......@@ -558,37 +369,40 @@
/* Define this as 1 if you have WinSock2 ioctl SIO_ADDRESS_LIST_QUERY */
#define HAVE_SIO_ADDRESS_LIST_QUERY 1
// XXX: vehmanek-win32-fix:
/* Define this as 1 if you have WinSock IPHLPAPI */
#define HAVE_IPHLPAPI_H 0
/* Define this as 1 if you have INTERFACE_INFO ioctl */
#define HAVE_INTERFACE_INFO (1)
#define HAVE_WIN32 (1)
#define longlong __int64
#ifdef LIBSOFIA_SIP_UA_EXPORTS
#define NUA_EXPORTS 1
#define NEA_EXPORTS 1
#define SRESOLV_EXPORTS
#define NTH_EXPORTS 1
#define HTTP_EXPORTS 1
#define IPTSEC_EXPORTS 1
#define SDP_EXPORTS 1
#define NTA_EXPORTS 1
#define TPORT_EXPORTS 1
#define SIP_EXPORTS 1
#define MSG_EXPORTS 1
#define URL_EXPORTS 1
#define BNF_EXPORTS 1
#define SU_EXPORTS 1
#define BNF_DLL __declspec(dllexport)
#define HTTP_DLL __declspec(dllexport)
#define IPT_DLL __declspec(dllexport)
#define AUTH_DLL __declspec(dllexport)
#define MSG_DLL __declspec(dllexport)
#define NEA_DLL __declspec(dllexport)
#define NTA_DLL __declspec(dllexport)
#define NTH_DLL __declspec(dllexport)
#define SDP_DLL __declspec(dllexport)
#define SIP_DLL __declspec(dllexport)
#define SU_DLL __declspec(dllexport)
#define TPORT_DLL __declspec(dllexport)
#define URL_DLL __declspec(dllexport)
#else /* elif defined(_LIB) */
#define BNF_DLL
#define HTTP_DLL
#define IPT_DLL
#define AUTH_DLL
#define MSG_DLL
#define NEA_DLL
#define NTA_DLL
#define NTH_DLL
#define SDP_DLL
#define SIP_DLL
#define SU_DLL
#define TPORT_DLL
#define URL_DLL
#endif
/* Ignore certain warnings */
#ifdef _MSC_VER
#pragma warning( disable : 4204 4244 4018 4514 4706 4761)
#pragma warning( disable : 4090 4204 4244 4018 4514 4706 4761)
#endif
......@@ -2,7 +2,7 @@
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=libsofia_sip_ua - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
......@@ -17,8 +17,8 @@ CFG=libsofia_sip_ua - Win32 Debug
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "libsofia_sip_ua - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "libsofia_sip_ua - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "libsofia_sip_ua - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "libsofia_sip_ua - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE