1
AC_INIT(include/ptlib.h)
3
AM_INIT_AUTOMAKE(libpt, ${PWLIB_VER})
5
AC_CONFIG_SUBDIRS(plugins)
7
dnl =======================================================================
11
dnl =======================================================================
25
dnl =======================================================================
29
dnl =======================================================================
31
dnl =======================================================================
35
dnl =======================================================================
38
AC_DEFINE(P_MINGW, 1, [check if we're using mingw])
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")
45
dnl =======================================================================
49
dnl =======================================================================
51
dnl =======================================================================
55
dnl =======================================================================
57
dnl BEGIN unsorted junk
59
dnl =======================================================================
63
dnl PBYTE_ORDER, PBIG_ENDIAN, PLITTLE_ENDIAN (AC_C_BIGENDIAN())
81
dnl default_remconn=no
91
dnl default_configfile
96
dnl ==> there's nice code about this in pwlib's configure.ac
100
dnl P_HAS_ATOMIC_INT / P_NEEDS_GNU_CXX_NAMESPACE
101
dnl select_large_fdset
104
dnl =======================================================================
123
dnl =======================================================================
133
dnl PHAS_TEMPLATES (defined as 1 !!!)
134
dnl SHAREDLIBEXT / P_SHAREDLIBEXT
136
dnl =======================================================================
139
dnl -felide-constructors
141
dnl -Woverloaded-virtual
143
dnl AC_CHECK_SIZEOF(int)
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
150
dnl --enable-openh323
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])
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")
235
dnl END unsorted junk
236
AC_DEFINE_UNQUOTED([PWLIB_VERSION], "${VERSION}")
239
dnl Check for the includes presence
241
dnl Note about libraries for directshow input
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()
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)
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"
258
LIBS="-lldap_r -llber -lldap -lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32 -lregex -lexpat -ldnsapi ${DIRECTX_LIBS}"
264
CXXFLAGS="${CXXFLAGS} ${DIRECTX_INCLUDES}"
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")
281
AC_CONFIG_HEADERS(unused.h)
282
AC_CONFIG_HEADERS(include/ptbuildopts.h)