1
AC_INIT([ekiga],[4.0.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga])
5
AC_CONFIG_MACRO_DIR([m4])
6
AC_CONFIG_SRCDIR(src/ekiga.cpp)
7
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz tar-ustar])
9
AM_MAINTAINER_MODE([enable])
10
AC_CONFIG_HEADERS([config.h])
12
dnl use "make V=1" if you want to see the long awful lines
13
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
17
dnl ###########################################################################
19
dnl ###########################################################################
23
BUILD_TYPE=ReleaseCode
26
PTLIB_REC_VERSION="2.10.10"
27
OPAL_REC_VERSION="3.10.10"
29
AC_DEFINE_UNQUOTED(MAJOR_VERSION, $MAJOR_VERSION,[fix])
30
AC_DEFINE_UNQUOTED(MINOR_VERSION, $MINOR_VERSION,[fix])
31
AC_DEFINE_UNQUOTED(BUILD_TYPE, $BUILD_TYPE,[fix])
32
AC_DEFINE_UNQUOTED(BUILD_NUMBER, $BUILD_NUMBER,[fix])
34
dnl ###########################################################################
35
dnl Disable / Enable Main Ekiga Components
36
dnl ###########################################################################
40
LT_INIT([dlopen disable-static])
44
AC_SEARCH_LIBS([strerror],[cposix])
47
dnl Enable compiler warnings
48
if test ".$ac_cv_c_compiler_gnu" = .yes; then
49
CFLAGS="$CFLAGS -Wall -Wextra -Winit-self -Wswitch-default -Wswitch-enum -Wstrict-aliasing=2 -Wfloat-equal -Wshadow"
50
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Winit-self -Wswitch-default -Wswitch-enum -Wstrict-aliasing=2 -Wfloat-equal -Wshadow"
53
dnl Check the library path
57
# Test if the compiler is 64bit
58
echo 'int i;' > conftest.$ac_ext
59
ekiga_cv_cc_64bit_output=no
61
if AC_TRY_EVAL(ac_compile); then
62
case `/usr/bin/file conftest.$ac_objext` in
64
ekiga_cv_cc_64bit_output=yes
72
case $host_cpu:$ekiga_cv_cc_64bit_output in
74
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
83
dnl Check the OS type (more types can be added)
84
AC_MSG_CHECKING(whether OS type is supported)
93
linux-gnulp | linux-gnu | linux-gnueabi* | linux | Linux)
101
FreeBSD* | freebsd* | kfreebsd* | NetBSD* | netbsd* )
102
gm_platform="freebsd"
111
CFLAGS="$CFLAGS -Wl,--enable-auto-import"
112
CXXFLAGS="$CXXFLAGS -Wl,--enable-auto-import"
117
AC_MSG_ERROR([Only Linux, Hurd, FreeBSD, NetBSD, Solaris and Mac OS X are supported. Please contact the author to know how you can add more OS types.])
122
AM_CONDITIONAL(WIN32, test "x${win32}" = "x1")
124
dnl Check the byte order
125
AC_MSG_CHECKING(Byte order)
127
AC_ARG_WITH([endianess],
128
[AS_HELP_STRING([--with-endianess=big|little],[endianess of target system])],
129
[byte_order="$withval endian"],
130
[AC_C_BIGENDIAN([byte_order="big endian"], [byte_order="little endian"], [])])
132
if test "x$byte_order" = "xbig endian"; then
133
AC_DEFINE(WORDS_BIGENDIAN,1,[Big Endian Architecture])
135
if test "x$byte_order" = "xlittle endian"; then
136
AC_DEFINE(WORDS_LITTLEENDIAN,1,[Little Endian Architecture])
138
AC_MSG_ERROR([Unable to detect endianess of target system - please specify])
142
AC_MSG_RESULT([$byte_order])
145
dnl ###############################
146
dnl Mandatory intltool support
147
dnl ###############################
148
IT_PROG_INTLTOOL([0.35.0])
151
dnl ###############################
152
dnl Mandatory GTK+ support
153
dnl ###############################
154
# on Windows the icons are manually copied in the installer
155
if test "x${gm_platform}" = "xmingw" ; then
156
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.20.0])
158
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0])
160
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0])
161
AC_ARG_ENABLE([gtk-debug],
162
[AS_HELP_STRING([--enable-gtk-debug],[enable GTK+ debug flags (default is disabled)])],
163
[if test "x$enableval" = "xyes"; then
164
GTK_CFLAGS="$GTK_CFLAGS -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
165
GLIB_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
169
AC_SUBST(GLIB_CFLAGS)
173
dnl ###############################
174
dnl Mandatory BOOST support
175
dnl ###############################
176
AX_BOOST_BASE([1.34])
179
if test "x${ax_cv_boost_signals}" == "xno"; then
180
AC_MSG_ERROR([You need the boost signals library to compile Ekiga])
183
BOOST_LIBS="${BOOST_SIGNALS_LIB}"
187
dnl ###############################
188
dnl Mandatory libXML support
189
dnl ###############################
190
PKG_CHECK_MODULES([XML], [libxml-2.0])
195
dnl ###############################
197
dnl ###############################
200
if test "x${gm_platform}" != "xmingw" ; then
201
AC_ARG_ENABLE(gconf, AS_HELP_STRING([--enable-gconf],[enable GConf support (default is enabled)]),
202
[if test "x$enableval" = "xyes"; then
204
fi],enable_gconf=yes)
206
if test "x$enable_gconf" = "xyes"; then
207
PKG_CHECK_MODULES([GCONF], [gconf-2.0 >= 2.6.0], [found_gconf=yes])
209
AC_SUBST(GCONF_CFLAGS)
212
AC_DEFINE(HAVE_GCONF,1,[GConf support])
214
AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
217
AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
220
AM_CONDITIONAL(HAVE_GCONF, test "x$found_gconf" = "xyes")
223
dnl ###############################
224
dnl Evolution-data-server support
225
dnl ###############################
228
if test "x${gm_platform}" != "xmingw" ; then
229
AC_ARG_ENABLE(eds, AS_HELP_STRING([--enable-eds],[enable evolution-data-server addressbook support (default is enabled)]),
230
[if test "x$enableval" = "xyes"; then
234
if test "x$enable_eds" = "xyes"; then
235
PKG_CHECK_MODULES([EDS], [libebook-1.2], [found_eds=yes])
239
AC_DEFINE(HAVE_EDS,1,[EDS support])
243
AM_CONDITIONAL(HAVE_EDS, test "x$found_eds" = "xyes")
246
dnl ###############################
248
dnl ###############################
251
if test "x${gm_platform}" != "xmingw" ; then
252
AC_ARG_ENABLE(notify, AS_HELP_STRING([--enable-notify],[enable libnotify support (default is enabled)]),
253
[if test "x$enableval" = "xyes"; then
255
fi],enable_notify=yes)
257
if test "x$enable_notify" = "xyes"; then
258
PKG_CHECK_MODULES([NOTIFY], [libnotify], [found_notify=yes], foo=bar)
259
if test "x$found_notify" = "xyes"; then
260
AC_SUBST(NOTIFY_CFLAGS)
261
AC_SUBST(NOTIFY_LIBS)
263
AC_DEFINE(HAVE_NOTIFY,1,[NOTIFY support])
268
AM_CONDITIONAL(HAVE_NOTIFY, test "x$found_notify" = "xyes")
271
dnl ###############################
273
dnl ###############################
276
AC_ARG_ENABLE(ldap, AS_HELP_STRING([--enable-ldap],[enable LDAP addressbook support (default is enabled)]),
277
[if test "x$enableval" = "xyes"; then
281
if test "x$enable_ldap" = "xyes"; then
283
AC_ARG_WITH(ldap-dir, AS_HELP_STRING([--with-ldap-dir=PFX],[location of LDAP]), with_ldap_dir="$withval", with_ldap_dir="/usr")
285
dnl Check for the includes presence
286
AC_MSG_CHECKING(for LDAP includes in ${with_ldap_dir}/include/)
290
if test -f ${with_ldap_dir}/include/ldap.h; then
291
LDAP_CFLAGS="-I${with_ldap_dir}/include"
293
AC_MSG_ERROR([You need the LDAP headers to compile Ekiga with LDAP support])
296
dnl Checking for the library presence
298
LIBS="${LIBS} -L${with_ldap_dir}/${libname}/ -llber"
299
AC_CHECK_LIB(ldap, main, ldap_libs="yes", ldap_libs="no")
302
if test "x${ldap_libs}" != "xno"; then
303
LDAP_LIBS="-llber -lldap"
304
if test "x${with_ldap_dir}" != "x/usr"; then
305
LDAP_LIBS="-L${with_ldap_dir}/${libname} $LDAP_LIBS"
308
AC_MSG_ERROR([You need the LDAP library to compile Ekiga with LDAP support])
311
dnl Checking for libsasl2
312
AC_ARG_WITH(libsasl2-dir, AS_HELP_STRING([--with-libsasl2-dir=PFX],[location of LIBSASL2]), with_libsasl2_dir="$withval", with_libsasl2_dir="/usr")
314
dnl Check for the libsasl2 includes presence
315
AC_MSG_CHECKING(for LIBSASL2 includes in ${with_libsasl2_dir}/include/)
318
if test -f ${with_libsasl2_dir}/include/sasl/sasl.h; then
319
LDAP_CFLAGS="${LDAP_CFLAGS} -I${with_libsasl2_dir}/include"
321
AC_MSG_ERROR([You need the SASL2 library to compile Ekiga])
323
LDAP_LIBS="$LDAP_LIBS -lsasl2"
325
dnl Checking for libresolv
326
if test ${gm_platform} = "linux" ; then
327
AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([You need the libresolv library to compile Ekiga]), -lresolv)
328
LDAP_LIBS="${LDAP_LIBS} -lresolv"
331
AC_SUBST(LDAP_CFLAGS)
334
AC_DEFINE(HAVE_LDAP,1,[LDAP support])
337
AM_CONDITIONAL(HAVE_LDAP, test "x$found_ldap" = "xyes")
342
dnl ###############################
343
dnl Checks for MMX support
344
dnl ###############################
345
AC_MSG_CHECKING(for x86 platform)
347
i386|i486|i586|i686|i786|k6|k7)
348
AC_ARG_ENABLE(mmx, AS_HELP_STRING([--enable-mmx],[enable MMX acceleration (default is enabled)]), [if test "x$enableval" = "xyes"; then
352
fi], use_x86_asm=yes)
357
AC_MSG_RESULT($use_x86_asm)
360
if test "x$use_x86_asm" = "xyes"; then
364
AC_MSG_CHECKING(compiler support for MMX)
365
cp $srcdir/lib/pixops/scale_line_22_33_mmx.S conftest.S
366
if AC_TRY_EVAL(ac_compile); then
373
if test "x$use_mmx_asm" = "xyes"; then
374
AC_DEFINE([USE_MMX], 1, [MMX Support])
381
AM_CONDITIONAL(USE_MMX, test "x$use_mmx_asm" = "xyes")
385
dnl ###############################
386
dnl Checks for Shared Memory extension
387
dnl ###############################
390
if test "x${gm_platform}" = "xlinux" ; then
391
AC_ARG_ENABLE(shm, AS_HELP_STRING([--enable-shm],[enable SHM support (default is enabled)]),
392
[if test "x$enableval" = "xyes"; then
395
if test "x$enable_shm" = "xyes"; then
396
AC_CHECK_LIB(Xext, XShmAttach, with_shm="yes", with_shm="no")
397
if test "x${with_shm}" != "xno"; then
399
AC_DEFINE(HAVE_SHM,1,[SHM Support])
405
AM_CONDITIONAL(HAVE_SHM, test "x$SHM" = "xenabled")
407
dnl ###############################
408
dnl Checks for Xv extension
409
dnl ###############################
411
AC_ARG_ENABLE(xv, AS_HELP_STRING([--disable-xv],[enable XVideo hardware acceleration (default is enabled)]),
412
[if test "x$enableval" = "xyes"; then
415
if test "x${gm_platform}" != "xmingw" -a "x$enable_xv" = "xyes"; then
416
PKG_CHECK_MODULES([XV], [xv],
417
[AC_DEFINE(HAVE_XV,1,[XVideo support])
424
AM_CONDITIONAL(HAVE_XV, test "x$XV" = "xenabled")
427
dnl ###########################################################################
428
dnl Checks for DX extension
429
dnl ###########################################################################
432
if test "x${gm_platform}" = "xmingw" ; then
433
AC_ARG_WITH(directx-dir, AS_HELP_STRING([--with-directx-dir=PFX],[location of DirectDraw]), with_directx_dir="$withval", with_directx_dir=".")
435
dnl Check for the includes presence
436
AC_MSG_CHECKING(for DirectX includes in ${with_directx_dir})
438
if test -d ${with_directx_dir}; then
439
DX_CFLAGS="-I${with_directx_dir}"
440
DX_LIBS="$EKIGA_LIBS -lddraw"
444
AC_DEFINE(HAVE_DX,1,[DirectDraw support])
446
AC_MSG_ERROR([Unable to locate DirectX header files; --with-directx-dir is obligatory])
450
AM_CONDITIONAL(HAVE_DX, test "x$DX" = "xenabled")
453
dnl ###############################
455
dnl ###############################
457
DBUS_SERVICE="disabled"
459
if test "x${gm_platform}" != "xmingw" ; then
460
AC_ARG_ENABLE(dbus, AS_HELP_STRING([--enable-dbus],[enable DBUS support (default is enabled)]),
461
[if test "x$enableval" = "xyes"; then
464
AC_ARG_ENABLE(dbus-service, AS_HELP_STRING([--enable-dbus-service],[enable DBUS service installation (default is enabled)]),
465
[if test "x$enableval" = "xyes"; then
466
enable_dbus_service=yes
467
fi],enable_dbus_service=yes)
469
if test "x$enable_dbus" = "xyes"; then
470
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.36 dbus-glib-1 >= 0.36], [found_dbus=yes])
471
AC_SUBST(DBUS_CFLAGS)
474
AC_DEFINE(HAVE_DBUS,1,[DBUS support])
476
if test "x$found_dbus" = "xyes" -a "x$enable_dbus_service" = "xyes"; then
477
DBUS_SERVICE="enabled"
482
AM_CONDITIONAL(HAVE_DBUS, test "x$found_dbus" = "xyes")
483
AM_CONDITIONAL(INSTALL_DBUS_SERVICE, test "x$DBUS_SERVICE" = "xenabled")
486
dnl ###############################
488
dnl These are only necessary until HAL has a decent V4L support...
489
dnl ###############################
494
VIDEO4LINUX="disabled"
495
if test "x${win32}" != "x1"; then
496
AC_CHECK_HEADER(libv4l1-videodev.h, V4L="enabled")
497
AC_CHECK_HEADER(linux/videodev2.h, V4L2="enabled")
498
AC_CHECK_HEADER(linux/videodev.h, OLDV4L="enabled")
500
if test "x${V4L}" != "xdisabled" -a "x${V4L2}" != "xdisabled"; then
501
AC_DEFINE(HAVE_V4L,1,[V4L support])
502
VIDEO4LINUX="enabled"
504
if test "x${OLDV4L}" != "xdisabled"; then
505
AC_DEFINE(HAVE_V4L,1,[V4L support])
506
AC_DEFINE(HAVE_OLD_V4L,1,[V4L is old style])
507
VIDEO4LINUX="enabled"
511
AM_CONDITIONAL(HAVE_V4L, test "x${VIDEO4LINUX}" = "xenabled")
513
dnl ###############################
514
dnl Avahi / mDNS Support
515
dnl ###############################
518
if test "x${gm_platform}" != "xmingw" ; then
519
AC_ARG_ENABLE(avahi, AS_HELP_STRING([--enable-avahi],[enable mDNS support (default is disabled)]),
520
[if test "x$enableval" = "xyes"; then
524
if test "x$enable_avahi" = "xyes"; then
525
PKG_CHECK_MODULES([AVAHI], [avahi-client >= 0.6 avahi-glib >= 0.6], [found_avahi=yes])
526
AC_SUBST(AVAHI_CFLAGS)
529
AC_DEFINE(HAVE_AVAHI,1,[Avahi support])
533
AM_CONDITIONAL(HAVE_AVAHI, test "x$found_avahi" = "xyes")
536
dnl ###############################
537
dnl GStreamer Support
538
dnl ###############################
541
AC_ARG_ENABLE(gstreamer, AS_HELP_STRING([--enable-gstreamer],[enable experimental GStreamer support (default is disabled)]),
542
[if test "x$enableval" = "xyes"; then
546
if test "x$enable_gstreamer" = "xyes"; then
548
PKG_CHECK_MODULES([GSTREAMER], [gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10])
550
if test "x$found_gstreamer" = "xno"; then
551
AC_MSG_ERROR([Could not find GStreamer libraries])
553
GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstapp-0.10"
554
AC_SUBST(GSTREAMER_CFLAGS)
555
AC_SUBST(GSTREAMER_LIBS)
557
AC_DEFINE(HAVE_GSTREAMER,1,[GStreamer support])
560
AM_CONDITIONAL(HAVE_GSTREAMER, test "x$found_gstreamer" = "xyes")
563
dnl ###############################
565
dnl ###############################
568
AC_ARG_ENABLE(kde, AS_HELP_STRING([--enable-kde],[enable experimental KDE support (default is disabled)]),
569
[if test "x$enableval" = "xyes"; then
573
if test "x$enable_kde" = "xyes"; then
575
PKG_CHECK_MODULES(KDE, [QtCore], [found_kde=yes], [found_kde=no])
577
CPPFLAGS_save="$CPPFLAGS"
579
CPPFLAGS="$CPPFLAGS $KDE_CFLAGS"
580
LIBS="$LIBS $KDE_LIBS"
581
AC_CHECK_HEADER(kapplication.h,,found_kde=no)
582
CPPFLAGS="$CPPFLAGS_save"
584
if test "x$found_kde" = "xno"; then
585
AC_MSG_ERROR([Could not find KDE headers])
589
CPPFLAGS="$CPPFLAGS $KDE_CFLAGS"
590
LIBS="$LIBS $KDE_LIBS"
591
AC_CHECK_LIB(kdeui,ki18n,found_kde=no)
592
CPPFLAGS="$CPPFLAGS_save"
594
if test "x$found_kde" = "xno"; then
595
AC_MSG_ERROR([Could not find KDE libraries])
598
KDE_LIBS="$KDE_LIBS -lkdeui"
603
AC_DEFINE(HAVE_KDE,1,[KDE support])
606
AM_CONDITIONAL(HAVE_KDE, test "x$found_kde" = "xyes")
608
dnl ###############################
609
dnl KAddressBook support
610
dnl ###############################
613
AC_ARG_ENABLE(kab, AS_HELP_STRING([--enable-kab],[enable experimental KAddressBook support (default is disabled)]),
614
[if test "x$enableval" = "xyes"; then
618
if test "x$enable_kab" = "xyes"; then
620
if test "x$found_kde" != "xyes"; then
621
AC_MSG_ERROR([No kab without kde: --enable-kde])
624
KAB_CFLAGS="-I/usr/include/qt4"
625
KAB_LIBS="-lQtCore -lkabc"
626
CPPFLAGS_save="$CPPFLAGS"
628
CPPFLAGS="$CPPFLAGS $KAB_CFLAGS"
629
LIBS="$LIBS $KAB_LIBS"
630
AC_CHECK_HEADER(kabc/addressee.h,,found_kab=no)
631
CPPFLAGS="$CPPFLAGS_save"
633
if test "x$found_kab" = "xno"; then
634
AC_MSG_ERROR([We need this header!])
639
AC_DEFINE(HAVE_KAB,1,[KAddressBook support])
642
AM_CONDITIONAL(HAVE_KAB, test "x$found_kab" = "xyes")
644
dnl ###############################
646
dnl ###############################
649
AC_ARG_ENABLE(xcap, AS_HELP_STRING([--enable-xcap],[enable experimental XCAP support (default is disabled)]),
650
[if test "x$enableval" = "xyes"; then
654
if test "x$enable_xcap" = "xyes"; then
655
PKG_CHECK_MODULES([SOUP], [libsoup-2.4])
658
AC_SUBST(SOUP_CFLAGS)
660
AC_DEFINE(HAVE_XCAP,1,[XCAP support])
663
AM_CONDITIONAL(HAVE_XCAP, test "x$found_xcap" = "xyes")
665
dnl ###############################
666
dnl LOUDMOUTH support
667
dnl ###############################
670
AC_ARG_ENABLE(loudmouth, AS_HELP_STRING([--enable-loudmouth],[enable experimental Loudmouth support (default is disabled)]),
671
[if test "x$enableval" = "xyes"; then
675
if test "x$enable_loudmouth" = "xyes"; then
676
PKG_CHECK_MODULES([LOUDMOUTH], [loudmouth-1.0])
679
AC_SUBST(LOUDMOUTH_CFLAGS)
680
AC_SUBST(LOUDMOUTH_LIBS)
681
AC_DEFINE(HAVE_LOUDMOUTH,1,[Loudmouth support])
684
AM_CONDITIONAL(HAVE_LOUDMOUTH, test "x$found_loudmouth" = "xyes")
687
dnl ###############################
689
dnl ###############################
690
# GDU is disabled for Windows; help is generated separately manually in Makefile
691
GNOME_DOC_INIT(,,[GDI=no])
692
if test "x${gm_platform}" != "xmingw" ; then
694
AC_ARG_ENABLE(gdu, AS_HELP_STRING([--enable-gdu],[enable GNOME-Doc-Utils support, i.e. help file generation (default is enabled)]),
695
[if test "x$enableval" = "xyes"; then
698
if test "x$enable_gdu" = "xyes"; then
699
AC_PATH_PROG(SK_CONFIG,scrollkeeper-config,no)
700
if test "x$SK_CONFIG" != "xno" -a "x$GDI" != "xno"; then
702
AC_DEFINE(HAVE_GNOME_DOC_UTILS,1,[GNOME-Doc-Utils support])
707
AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "x${enable_gdu}" = "xyes")
710
dnl ###########################################################################
711
dnl PTLib + OPAL Headers and Libraries
712
dnl ###########################################################################
713
PKG_CHECK_MODULES([PTLIB], [ptlib >= ${PTLIB_REC_VERSION}])
714
PKG_CHECK_MODULES([OPAL], [opal >= ${OPAL_REC_VERSION}])
716
# expat is mandatory for presence (at least)
717
AC_MSG_CHECKING(for PTLIB support for expat)
718
PTLIB_EXPAT=`$PKG_CONFIG ptlib --variable=PTLIB_EXPAT`
719
AC_MSG_RESULT($PTLIB_EXPAT)
720
if test "x$PTLIB_EXPAT" != "xyes"; then
721
AC_MSG_ERROR([You need ptlib expat support to compile ekiga])
725
AC_ARG_ENABLE([opal-debug],
726
[AS_HELP_STRING([--enable-opal-debug],[link to debug versions of opal and ptlib (opal_d and ptlib_d) (default is disabled)])],
727
[if test "x$enableval" = "xyes"; then
731
AC_ARG_ENABLE([static-libs],
732
[AS_HELP_STRING([--enable-static-libs],[link to opal and ptlib static libraries (default is disabled)])],
733
[if test "x$enableval" = "xyes"; then
738
if test "x$SUFFIX" != x; then
739
OPAL_LIBS=`$PKG_CONFIG opal --define-variable=suffix=$SUFFIX --libs`
740
PTLIB_LIBS=`$PKG_CONFIG ptlib --define-variable=suffix=$SUFFIX --libs`
743
AC_SUBST(PTLIB_CFLAGS)
745
AC_SUBST(OPAL_CFLAGS)
748
# check for H.323 support
749
AC_ARG_ENABLE(h323, AS_HELP_STRING([--enable-h323],[enable H.323 support (default same as opal)]),
750
enable_h323=$enableval)
751
if test x$enable_h323 != xno; then
752
dnl The =1 checks are here only for backward compatibility
753
H323=`$PKG_CONFIG --variable=h323 opal`
754
if test "x$H323" = "x1"; then
757
H323=`$PKG_CONFIG --variable=OPAL_H323 opal`
760
if test "x$H323" = "xyes"; then
761
AC_DEFINE(HAVE_H323,1,[H323 support])
763
if test x$enable_h323 = xyes; then
764
AC_MSG_ERROR([To enable H.323 support you need to re-install opal with H.323 support])
771
AM_CONDITIONAL(HAVE_H323, test "x${H323}" = "xyes")
773
# check for mandatory SIP support in opal
774
SIP=`$PKG_CONFIG --variable=sip opal`
775
if test "x$SIP" = "x1"; then
778
SIP=`$PKG_CONFIG --variable=OPAL_SIP opal`
781
if test "x$SIP" != "xyes"; then
782
AC_MSG_ERROR([You have to compile opal with SIP support. SIP support is mandatory.])
786
dnl ###############################
788
dnl ###############################
790
AC_ARG_ENABLE([debug],
791
[AS_HELP_STRING([--enable-debug],[compile with debug support (default is disabled)])],
792
[if test "x$enableval" = "xyes"; then
793
CPPFLAGS="-DDEBUG $CPPFLAGS"
796
AM_CONDITIONAL(DEBUG, test "x$has_debug" = "xyes")
799
dnl #########################################################################
800
dnl Support for internationalization
801
dnl ########################################################################
802
GETTEXT_PACKAGE=AC_PACKAGE_NAME
803
AC_SUBST(GETTEXT_PACKAGE) # needed by gettext in po directory
804
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[fix])
808
dnl ###########################################################################
809
dnl Data and configuration directories for the system
810
dnl ###########################################################################
811
gnomedatadir=`eval "echo ${datadir}"`
812
gnomeconfdir=`eval "echo ${sysconfdir}"`
813
AC_SUBST(gnomedatadir)
814
AC_SUBST(gnomeconfdir)
816
# on Windows, data_dir is obtained at run-time, since it depends on
817
# the installation directory, so do not define it (to avoids bugs)
818
if test "x${gm_platform}" != "xmingw" ; then
819
if test "x${prefix}" = "xNONE"; then
820
AC_DEFINE_UNQUOTED(DATA_DIR, "${ac_default_prefix}/${DATADIRNAME}",[fix])
822
AC_DEFINE_UNQUOTED(DATA_DIR, "${prefix}/${DATADIRNAME}",[fix])
826
dnl ###########################################################################
828
dnl ###########################################################################
832
# libtool really installs in ../bin, so we have to add the dummy!
833
# and we have to set PLUGIN_DIR to that directory
834
bindir='${exec_prefix}'
835
stacklibdir='${exec_prefix}'
836
plugindir='${exec_prefix}/plugins'
840
versioned_libdir='${libdir}/AC_PACKAGE_NAME/AC_PACKAGE_VERSION'
841
stacklibdir=${versioned_libdir}
842
plugindir=${versioned_libdir}/plugins
843
PLUGIN_DIR='${plugindir}'
847
PLUGINS_LIBTOOL_FLAGS="-no-undefined -avoid-version -module"
848
STACKLIB_LDFLAGS='-shared -module -no-undefined -avoid-version'
851
AC_SUBST(stacklibdir)
853
AC_SUBST(PLUGINS_LIBTOOL_FLAGS)
855
AC_SUBST(STACKLIB_LDFLAGS)
857
dnl ###########################################################################
858
dnl Output the different Makefiles
859
dnl ###########################################################################
860
AC_CONFIG_FILES([Makefile
862
src/ekiga-config-tool
873
plugins/avahi/Makefile
874
plugins/evolution/Makefile
875
plugins/gstreamer/Makefile
878
plugins/ldap/Makefile
879
plugins/libnotify/Makefile
880
plugins/loudmouth/Makefile
881
plugins/resource-list/Makefile
882
plugins/xcap/Makefile
886
dnl ###########################################################################
888
dnl ###########################################################################
891
echo "================ Final configuration ==================="
892
echo " Installing into prefix : $prefix"
894
if test "x${gm_platform}" != "xmingw" ; then
895
echo " GDU support : $GDU"
896
echo " GConf support : $GCONF"
897
echo " Evolution-Data-Server support : $EDS"
898
echo " NOTIFY support : $NOTIFY"
900
echo " LDAP support : $LDAP"
901
if test "x${gm_platform}" != "xmingw" ; then
903
echo " Video4Linux support : $VIDEO4LINUX"
906
echo " XVideo support : $XV"
907
echo " Shared Memory support : $SHM"
908
if test "x${gm_platform}" = "xmingw" ; then
909
echo " DirectX support : $DX"
912
echo " H.323 support : $H323"
914
if test "x${gm_platform}" != "xmingw" ; then
915
echo " DBUS support : $DBUS"
916
echo " DBUS service support : $DBUS_SERVICE"
917
echo " mDNS/DNS-SD support : $AVAHI"
920
echo "The following features are experimental -- you've been warned:"
921
echo " GStreamer support : $GSTREAMER"
922
echo " KAddressBook support : $KAB"
923
echo " KDE support : $KDE"
924
echo " XCAP support : $XCAP"
925
echo " Loudmouth support : $LOUDMOUTH"
927
echo " OS Type : $target_os"
928
echo " Machine Type : $target_cpu"
929
echo " Byte Order : $byte_order"
931
echo " If all settings are OK, type make and make install "
932
echo "========================================================"