~ubuntu-branches/ubuntu/maverick/ekiga/maverick

« back to all changes in this revision

Viewing changes to win32/diff/ptlib_configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Eugen Dedu, Eugen Dedu, Loic Minier
  • Date: 2008-09-27 10:00:00 UTC
  • mfrom: (1.1.8 upstream)
  • mto: (1.4.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20080927100000-l5k5werb6czr5b3h
Tags: 3.0.1-1
[ Eugen Dedu ]
* New version.  (Closes: #500089).
* Add our own changelog file in /usr/share/doc.
* Remove gnomemeeting transitional package.
* Discover new interfaces.  (Closes: #488199).
* Compile with dbus support.  (Closes: #467212).
* Numeric keypad inserts digits at correct position.  (Closes: #440159).
* Use libnotify upon call.  (Closes: #412604).
* Symlink identical GNOME help files, to reduce size.  (Closes: #505536).
* Explicitely build-depends on a few dev packages, even if they were
  pulled out anyway by the other dependencies.

[ Loic Minier ]
* Use clean:: instead of clean: in rules.
* Don't disable Uploaders: generation for control.in -> control generation
  in rules.
* Fix some tabs which were size 4 anyway.
* Generate a PO template during build by calling intltool-update -p in
  install; thanks Ubuntu and Martin Pitt; closes: #505535.
* Also let the -dbg depend on ${misc:Depends}.
* Cleanup rules; in particular, use dpkg-parsechangelog and honor
  distclean/clean failures, remove old clean rules, commented out stuff,
  gtk-only stuff.
* Pass -s to dh_* in binary-arch.
* Use debian/*.links and debian/*.manpages instead of symlink manually or
  passing files to dh_installman.
* Use ftp.gnome.org in copyright.
* Switch to quilt and fix target deps in the process; build-dep on quilt
  instead of dpatch; rename news.dpatch to 00_news.patch and refresh;
  replace 00list with series.
* Install autotools-dev config.guess and .sub after patching.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(include/ptlib.h)
2
 
AC_CANONICAL_TARGET
3
 
AM_INIT_AUTOMAKE(libpt, ${PWLIB_VER})
4
 
 
5
 
AC_CONFIG_SUBDIRS(plugins)
6
 
 
7
 
dnl =======================================================================
8
 
dnl
9
 
dnl basics
10
 
dnl
11
 
dnl =======================================================================
12
 
 
13
 
AC_PROG_CC
14
 
 
15
 
AC_PROG_CXX
16
 
 
17
 
AC_PROG_LIBTOOL
18
 
 
19
 
AC_PROG_YACC
20
 
 
21
 
AC_PROG_INSTALL
22
 
 
23
 
AC_LANG_CPLUSPLUS
24
 
 
25
 
dnl =======================================================================
26
 
dnl
27
 
dnl bare metal
28
 
dnl
29
 
dnl =======================================================================
30
 
 
31
 
dnl =======================================================================
32
 
dnl
33
 
dnl build tools
34
 
dnl
35
 
dnl =======================================================================
36
 
 
37
 
P_MINGW=1
38
 
AC_DEFINE(P_MINGW, 1, [check if we're using mingw])
39
 
 
40
 
AM_CONDITIONAL(COMPILE_MINGW, test x"${P_MINGW}" = "x1")
41
 
AM_CONDITIONAL(COMPILE_LINUX, test x"${P_LINUX}" = "x1")
42
 
AM_CONDITIONAL(COMPILE_MACOSX, test x"${P_MACOSX}" = "x1")
43
 
AM_CONDITIONAL(COMPILE_BEOS, test x"${P_BEOS}" = "x1")
44
 
 
45
 
dnl =======================================================================
46
 
dnl
47
 
dnl features
48
 
dnl
49
 
dnl =======================================================================
50
 
 
51
 
dnl =======================================================================
52
 
dnl
53
 
dnl components
54
 
dnl
55
 
dnl =======================================================================
56
 
 
57
 
dnl BEGIN unsorted junk
58
 
 
59
 
dnl =======================================================================
60
 
dnl CATEGORY I
61
 
dnl
62
 
dnl P_PTHREADS
63
 
dnl PBYTE_ORDER, PBIG_ENDIAN, PLITTLE_ENDIAN (AC_C_BIGENDIAN())
64
 
dnl default_resolver
65
 
dnl default_openldap
66
 
dnl default_openssl
67
 
dnl default_expat
68
 
dnl default_sdl
69
 
dnl default_sasl
70
 
dnl default_plugins
71
 
dnl default_tts
72
 
dnl default_asn
73
 
dnl default_stun
74
 
dnl default_pipechan
75
 
dnl default_dtmf
76
 
dnl default_wavfile
77
 
dnl default_socks
78
 
dnl default_ftp
79
 
dnl default_snmp
80
 
dnl default_telnet
81
 
dnl default_remconn=no
82
 
dnl default_serial
83
 
dnl default_pop3smtp
84
 
dnl default_audio
85
 
dnl default_video
86
 
dnl default_http
87
 
dnl default_httpsvc
88
 
dnl default_soap
89
 
dnl default_xmlrpc
90
 
dnl default_jabber
91
 
dnl default_configfile
92
 
dnl default_alsa
93
 
dnl default_oss
94
 
dnl default_ipv6
95
 
dnl default_qos
96
 
dnl ==> there's nice code about this in pwlib's configure.ac
97
 
dnl P_HAS_RECVMSG
98
 
dnl recvmsg
99
 
dnl P_HAS_STL_STREAMS
100
 
dnl P_HAS_ATOMIC_INT / P_NEEDS_GNU_CXX_NAMESPACE
101
 
dnl select_large_fdset
102
 
dnl upad128_t
103
 
dnl
104
 
dnl =======================================================================
105
 
dnl CATEGORY II
106
 
dnl
107
 
dnl PWLIBDIR
108
 
dnl PWINSTDIR
109
 
dnl INSTALLPREFIX
110
 
dnl LIBDIR
111
 
dnl MAJOR_VERSION
112
 
dnl MINOR_VERSION
113
 
dnl BUILD_NUMBER
114
 
dnl PWLIB_VERSION
115
 
dnl STDCCFLAGS
116
 
dnl SHAREDLIBEXT
117
 
dnl ENDLDLIBS
118
 
dnl TARGETDIR
119
 
dnl MACHTYPE
120
 
dnl PHAS_TEMPLATES
121
 
dnl gcc_version
122
 
dnl
123
 
dnl =======================================================================
124
 
dnl CATEGORY III
125
 
dnl
126
 
dnl need_pragma
127
 
dnl NEEDS_PTHREADS
128
 
dnl OSTYPE
129
 
dnl OS_TAG
130
 
dnl OSRELEASE
131
 
dnl P_64BIT
132
 
dnl LIB64
133
 
dnl PHAS_TEMPLATES (defined as 1 !!!)
134
 
dnl SHAREDLIBEXT / P_SHAREDLIBEXT
135
 
dnl
136
 
dnl =======================================================================
137
 
dnl CATEGORY IV
138
 
dnl
139
 
dnl -felide-constructors
140
 
dnl -Wreorder
141
 
dnl -Woverloaded-virtual
142
 
dnl DEFAULT_RTTI
143
 
dnl AC_CHECK_SIZEOF(int)
144
 
dnl PNO_LONG_DOUBLE
145
 
dnl check for flex or lex?!
146
 
dnl check for ar/gar !?
147
 
dnl check for bison and not yacc ?!
148
 
dnl P_HAS_POSIX_READDIR_R
149
 
dnl --enable-minsize
150
 
dnl --enable-openh323
151
 
dnl
152
 
 
153
 
HAS_OPENLDAP=1
154
 
HAS_REGEX=1
155
 
HAS_TTS=1
156
 
HAS_ASN=1
157
 
HAS_STUN=1
158
 
HAS_PIPECHAN=1
159
 
HAS_DTMF=1
160
 
HAS_EXPAT=1
161
 
HAS_WAVFILE=1
162
 
HAS_SOCKS=1
163
 
HAS_FTP=1
164
 
HAS_SNMP=1
165
 
HAS_TELNET=1
166
 
HAS_SERIAL=1
167
 
HAS_POP3SMTP=1
168
 
HAS_HTTP=1
169
 
HAS_HTTPSVC=1
170
 
HAS_CONFIG_FILE=1
171
 
HAS_PLUGINS=1
172
 
HAS_VIDEO_CAPTURE=1
173
 
HAS_AUDIO=1
174
 
HAS_VIDEO=1
175
 
HAS_DNS=1
176
 
HAS_RESOLVER=1
177
 
P_DNS=1
178
 
P_HTTP=1
179
 
P_HTTPSVC=1
180
 
P_CONFIG_FILE=1
181
 
P_LDAP=1
182
 
P_VIDEO=1
183
 
P_AUDIO=1
184
 
PHAS_TEMPLATES=1
185
 
P_DIRECTSHOW=1
186
 
 
187
 
AC_DEFINE([HAS_PLUGINS], 1, [check if plugins' support should be in])
188
 
AC_DEFINE([HAS_VIDEO_CAPTURE], 1, [check if video input support should be in])
189
 
AC_DEFINE([HAS_AUDIO], 1, [check if audio support should be in])
190
 
AC_DEFINE([HAS_VIDEO], 1, [check if video support should be in])
191
 
AC_DEFINE([HAS_EXPAT], 1, [check if expat support should be in])
192
 
AC_DEFINE([P_HTTP], 1, [check if http support should be in])
193
 
AC_DEFINE([P_HTTPSVC], 1, [check if http svc support should be in])
194
 
AC_DEFINE([P_CONFIG_FILE], 1, [check if config file support should be in])
195
 
AC_DEFINE([P_DNS], 1, [check if dns support is in])
196
 
AC_DEFINE([P_LDAP], 1, [check if ldap support is in])
197
 
AC_DEFINE([P_VIDEO], 1, [check if video support is in])
198
 
AC_DEFINE([P_AUDIO], 1, [check if audio support is in])
199
 
AC_DEFINE([PHAS_TEMPLATES], 1, [check if templates are supported])
200
 
AC_DEFINE([P_DIRECTSHOW], 1, [check if directshow capture is to be compiled in])
201
 
 
202
 
AM_CONDITIONAL(COMPILE_SASL2, test "${HAS_SASL2}" = "1")
203
 
AM_CONDITIONAL(COMPILE_OPENLDAP, test "${HAS_OPENLDAP}" = "1")
204
 
AM_CONDITIONAL(COMPILE_OPENSSL, test "${HAS_OPENSSL}" = "1")
205
 
AM_CONDITIONAL(COMPILE_SDL, test "${HAS_SDL}" = "1")
206
 
AM_CONDITIONAL(COMPILE_VIDEO, test "${HAS_VIDEO}" = "1")
207
 
AM_CONDITIONAL(COMPILE_SHM_VIDEO_DEVICES, test "${USE_SHM_VIDEO_DEVICES}" = "1")
208
 
AM_CONDITIONAL(COMPILE_PLUGINS, test "${HAS_PLUGINS}" = "1")
209
 
AM_CONDITIONAL(COMPILE_AUDIO, test "${HAS_AUDIO}" = "1")
210
 
AM_CONDITIONAL(COMPILE_ALSA, test "${HAS_ALSA}" = "1")
211
 
AM_CONDITIONAL(COMPILE_EXPAT, test "${HAS_EXPAT}" = "1")
212
 
AM_CONDITIONAL(COMPILE_XMLRPC, test "${HAS_XMLRPC}" = "1")
213
 
AM_CONDITIONAL(COMPILE_SOAP, test "${HAS_SOAP}" = "1")
214
 
AM_CONDITIONAL(COMPILE_VXML, test "${HAS_VXML}" = "1")
215
 
AM_CONDITIONAL(COMPILE_RESOLVER, test "${HAS_RESOLVER}" = "1")
216
 
AM_CONDITIONAL(COMPILE_TTS, test "${HAS_TTS}" = "1")
217
 
AM_CONDITIONAL(COMPILE_ASN, test "${HAS_ASN}" = "1")
218
 
AM_CONDITIONAL(COMPILE_SNMP, test "${HAS_SNMP}" = "1")
219
 
AM_CONDITIONAL(COMPILE_FTP, test "${HAS_FTP}" = "1")
220
 
AM_CONDITIONAL(COMPILE_TELNET, test "${HAS_TELNET}" = "1")
221
 
AM_CONDITIONAL(COMPILE_STUN, test "${HAS_STUN}" = "1")
222
 
AM_CONDITIONAL(COMPILE_DNS, test "${HAS_DNS}" = "1")
223
 
AM_CONDITIONAL(COMPILE_SOCKS, test "${HAS_SOCKS}" = "1")
224
 
AM_CONDITIONAL(COMPILE_PIPECHAN, test "${HAS_PIPECHAN}" = "1")
225
 
AM_CONDITIONAL(COMPILE_REMCONN, test "${HAS_REMCONN}" = "1")
226
 
AM_CONDITIONAL(COMPILE_WAVFILE, test "${HAS_WAVFILE}" = "1")
227
 
AM_CONDITIONAL(COMPILE_DTMF, test "${HAS_DTMF}" = "1")
228
 
AM_CONDITIONAL(COMPILE_SERIAL, test "${HAS_SERIAL}" = "1")
229
 
AM_CONDITIONAL(COMPILE_POP3SMTP, test "${HAS_POP3SMTP}" = "1")
230
 
AM_CONDITIONAL(COMPILE_HTTP, test "${HAS_HTTP}" = "1")
231
 
AM_CONDITIONAL(COMPILE_HTTPSVC, test "${HAS_HTTPSVC}" = "1")
232
 
AM_CONDITIONAL(COMPILE_CONFIG_FILE, test "${HAS_CONFIG_FILE}" = "1")
233
 
AM_CONDITIONAL(COMPILE_REGEX, test "${HAS_REGEX}" = "1")
234
 
 
235
 
dnl END unsorted junk
236
 
AC_DEFINE_UNQUOTED([PWLIB_VERSION], "${VERSION}")
237
 
 
238
 
 
239
 
dnl Check for the includes presence
240
 
dnl
241
 
dnl Note about libraries for directshow input
242
 
dnl
243
 
dnl oleaut32 is needed by SysStringLen()
244
 
dnl ole32 is needed by CoInitialize(), CoCreateInstance(), ...
245
 
dnl uuid is needed by IID_IPropertyBag(), GUID_NULL
246
 
dnl quartz is needed by AMGetErrorTextA()
247
 
dnl
248
 
DIRECTX_INCLUDES=
249
 
DIRECTX_LIBS=
250
 
AC_ARG_WITH(directx-dir, [  --with-directx-dir=PFX   Location of DirectX], with_directx_dir="$withval", with_directx_dir=".")
251
 
AC_MSG_CHECKING(for DirectX includes in ${with_directx_dir}/include)
252
 
AC_MSG_RESULT()
253
 
if test -d ${with_directx_dir}/include; then
254
 
    DIRECTX_INCLUDES="-I${with_directx_dir}/include"
255
 
    DIRECTX_LIBS="-ldsound -ldxerr9 -ldxguid -lstrmiids -lole32 -luuid -loleaut32 -lquartz"
256
 
fi
257
 
 
258
 
LIBS="-lldap_r -llber -lldap -lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32 -lregex -lexpat -ldnsapi ${DIRECTX_LIBS}"
259
 
 
260
 
 
261
 
 
262
 
AC_SUBST(LIBS)
263
 
 
264
 
CXXFLAGS="${CXXFLAGS} ${DIRECTX_INCLUDES}"
265
 
AC_SUBST(CXXFLAGS)
266
 
 
267
 
PWLIBDIR=`pwd`
268
 
AC_SUBST(PWLIBDIR)
269
 
 
270
 
dnl ########################################################################
271
 
dnl extract the PWLIB version
272
 
MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
273
 
MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
274
 
BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
275
 
PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
276
 
AC_DEFINE_UNQUOTED(PWLIB_MAJOR,   ${MAJOR_VERSION})
277
 
AC_DEFINE_UNQUOTED(PWLIB_MINOR,   ${MINOR_VERSION})
278
 
AC_DEFINE_UNQUOTED(PWLIB_BUILD,   ${BUILD_NUMBER})
279
 
dnl AC_DEFINE_UNQUOTED(PWLIB_VERSION, "$PWLIB_VERSION")
280
 
 
281
 
AC_CONFIG_HEADERS(unused.h)
282
 
AC_CONFIG_HEADERS(include/ptbuildopts.h)
283
 
AC_OUTPUT(pwlib.pc)
284
 
 
285
 
AC_OUTPUT(Makefile)