Mercurial > pidgin
comparison configure.ac @ 29299:7925bb7f2aa7
propagate from branch 'im.pidgin.pidgin' (head 92e101e3698042e7600729bc09dec9e28f81de8f)
to branch 'im.pidgin.cpw.attention_ui' (head 563c35d20efcc234a74567ebb88c059d10ce1e09)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Mon, 24 Aug 2009 19:23:56 +0000 |
parents | b9e28b2a119b |
children | f57303baf42b 299ef6fd1a23 1ca2df744414 |
comparison
equal
deleted
inserted
replaced
29298:fb99a0067812 | 29299:7925bb7f2aa7 |
---|---|
44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes. | 44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes. |
45 # | 45 # |
46 m4_define([purple_lt_current], [6]) | 46 m4_define([purple_lt_current], [6]) |
47 m4_define([purple_major_version], [2]) | 47 m4_define([purple_major_version], [2]) |
48 m4_define([purple_minor_version], [6]) | 48 m4_define([purple_minor_version], [6]) |
49 m4_define([purple_micro_version], [0]) | 49 m4_define([purple_micro_version], [2]) |
50 m4_define([purple_version_suffix], [devel]) | 50 m4_define([purple_version_suffix], [devel]) |
51 m4_define([purple_version], | 51 m4_define([purple_version], |
52 [purple_major_version.purple_minor_version.purple_micro_version]) | 52 [purple_major_version.purple_minor_version.purple_micro_version]) |
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) | 53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) |
54 | 54 |
55 m4_define([gnt_lt_current], [6]) | 55 m4_define([gnt_lt_current], [6]) |
56 m4_define([gnt_major_version], [2]) | 56 m4_define([gnt_major_version], [2]) |
57 m4_define([gnt_minor_version], [6]) | 57 m4_define([gnt_minor_version], [6]) |
58 m4_define([gnt_micro_version], [0]) | 58 m4_define([gnt_micro_version], [2]) |
59 m4_define([gnt_version_suffix], [devel]) | 59 m4_define([gnt_version_suffix], [devel]) |
60 m4_define([gnt_version], | 60 m4_define([gnt_version], |
61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) | 61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) |
62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) | 62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) |
63 | 63 |
310 ) | 310 ) |
311 | 311 |
312 dnl ####################################################################### | 312 dnl ####################################################################### |
313 dnl # Check for GLib 2.0 (required) | 313 dnl # Check for GLib 2.0 (required) |
314 dnl ####################################################################### | 314 dnl ####################################################################### |
315 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ | 315 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.4.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ |
316 AC_MSG_RESULT(no) | 316 AC_MSG_RESULT(no) |
317 AC_MSG_ERROR([ | 317 AC_MSG_ERROR([ |
318 | 318 |
319 You must have the GLib 2.0 development headers installed to build. | 319 You must have GLib 2.4.0 or newer development headers installed to build. |
320 | 320 |
321 If you have these installed already you may need to install pkg-config so | 321 If you have these installed already you may need to install pkg-config so |
322 I can find them. | 322 I can find them. |
323 ])]) | 323 ])]) |
324 AC_SUBST(GLIB_CFLAGS) | 324 AC_SUBST(GLIB_CFLAGS) |
397 else | 397 else |
398 x_incpath_add="-I$x_includes" | 398 x_incpath_add="-I$x_includes" |
399 fi | 399 fi |
400 | 400 |
401 if test "x$enable_gtkui" = "xyes" ; then | 401 if test "x$enable_gtkui" = "xyes" ; then |
402 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.0.0], , [ | 402 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.4.0], , [ |
403 AC_MSG_RESULT(no) | 403 AC_MSG_RESULT(no) |
404 AC_MSG_ERROR([ | 404 AC_MSG_ERROR([ |
405 | 405 |
406 You must have the GTK+ 2.0 development headers installed to compile Pidgin. | 406 You must have GTK+ 2.4.0 or newer development headers installed to compile |
407 If you want to build only Finch then specify --disable-gtkui when running configure. | 407 Pidgin. If you want to build only Finch then specify --disable-gtkui when |
408 running configure. | |
408 ])]) | 409 ])]) |
409 | 410 |
410 AC_SUBST(GTK_CFLAGS) | 411 AC_SUBST(GTK_CFLAGS) |
411 AC_SUBST(GTK_LIBS) | 412 AC_SUBST(GTK_LIBS) |
412 | 413 |
629 AC_ARG_WITH(ncurses-headers, [AC_HELP_STRING([--with-ncurses-headers=DIR], | 630 AC_ARG_WITH(ncurses-headers, [AC_HELP_STRING([--with-ncurses-headers=DIR], |
630 [compile finch against the ncurses includes in DIR])], | 631 [compile finch against the ncurses includes in DIR])], |
631 [ac_ncurses_includes="$withval"], [ac_ncurses_includes=""]) | 632 [ac_ncurses_includes="$withval"], [ac_ncurses_includes=""]) |
632 if test "x$enable_consoleui" = "xyes"; then | 633 if test "x$enable_consoleui" = "xyes"; then |
633 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_consoleui=no]) | 634 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_consoleui=no]) |
634 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], [enable_consoleui=no]) | 635 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], |
636 [enable_consoleui=no], [$GNT_LIBS]) | |
635 | 637 |
636 if test "x$enable_consoleui" = "xyes"; then | 638 if test "x$enable_consoleui" = "xyes"; then |
637 dnl # Some distros put the headers in ncursesw/, some don't | 639 dnl # Some distros put the headers in ncursesw/, some don't |
638 found_ncurses_h=no | 640 found_ncurses_h=no |
639 for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include | 641 for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include |
672 fi | 674 fi |
673 else | 675 else |
674 # ncursesw was not found. Look for plain old ncurses | 676 # ncursesw was not found. Look for plain old ncurses |
675 enable_consoleui=yes | 677 enable_consoleui=yes |
676 AC_CHECK_LIB(ncurses, initscr, [GNT_LIBS="-lncurses"], [enable_consoleui=no]) | 678 AC_CHECK_LIB(ncurses, initscr, [GNT_LIBS="-lncurses"], [enable_consoleui=no]) |
677 AC_CHECK_LIB(panel, update_panels, [GNT_LIBS="$GNT_LIBS -lpanel"], [enable_consoleui=no]) | 679 AC_CHECK_LIB(panel, update_panels, [GNT_LIBS="$GNT_LIBS -lpanel"], |
680 [enable_consoleui=no], [$GNT_LIBS]) | |
678 AC_DEFINE(NO_WIDECHAR, 1, [Define to 1 if you don't have wide-character support.]) | 681 AC_DEFINE(NO_WIDECHAR, 1, [Define to 1 if you don't have wide-character support.]) |
679 if test x"$ac_ncurses_includes" != "x"; then | 682 if test x"$ac_ncurses_includes" != "x"; then |
680 GNT_CFLAGS="-I$ac_ncurses_includes" | 683 GNT_CFLAGS="-I$ac_ncurses_includes" |
681 else | 684 else |
682 if test x"$NCURSES_HEADERS" != "x"; then | 685 if test x"$NCURSES_HEADERS" != "x"; then |
790 dnl ####################################################################### | 793 dnl ####################################################################### |
791 dnl # Check for Voice and Video support | 794 dnl # Check for Voice and Video support |
792 dnl ####################################################################### | 795 dnl ####################################################################### |
793 AC_ARG_ENABLE(vv, | 796 AC_ARG_ENABLE(vv, |
794 [AC_HELP_STRING([--disable-vv], [compile without voice and video support])], | 797 [AC_HELP_STRING([--disable-vv], [compile without voice and video support])], |
795 [enable_vv="$enableval" force_vv=$enableval], [enable_vv="yes" force_vv=no]) | 798 enable_vv="$enableval", enable_vv="yes") |
796 if test "x$enable_vv" != "xno"; then | 799 if test "x$enable_vv" != "xno"; then |
797 if test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno"; then | 800 if test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno"; then |
798 AC_DEFINE(USE_VV, 1, [Use voice and video]) | 801 AC_DEFINE(USE_VV, 1, [Use voice and video]) |
799 else | 802 else |
800 enable_vv="no" | 803 enable_vv="no" |
801 if test "x$force_vv" = "xyes"; then | 804 if test "x$force_deps" = "xyes"; then |
802 AC_MSG_ERROR([ | 805 AC_MSG_ERROR([ |
803 Dependencies for voice/video were not met. | 806 Dependencies for voice/video were not met. |
804 Install the necessary gstreamer and farsight packages first. | 807 Install the necessary gstreamer and farsight packages first. |
805 Or use --disable-vv if you do not need voice/video support. | 808 Or use --disable-vv if you do not need voice/video support. |
806 ]) | 809 ]) |
807 fi | 810 fi |
808 fi | 811 fi |
809 fi | 812 fi |
813 AM_CONDITIONAL(USE_VV, test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno") | |
810 | 814 |
811 AC_ARG_ENABLE(idn, | 815 AC_ARG_ENABLE(idn, |
812 [AC_HELP_STRING([--disable-idn], [compile without IDN support])], | 816 [AC_HELP_STRING([--disable-idn], [compile without IDN support])], |
813 [enable_idn="$enableval" force_idn=$enableval], [enable_idn="yes" force_idn=no]) | 817 [enable_idn="$enableval" force_idn=$enableval], [enable_idn="yes" force_idn=no]) |
814 if test "x$enable_idn" != "xno"; then | 818 if test "x$enable_idn" != "xno"; then |
854 dnl ####################################################################### | 858 dnl ####################################################################### |
855 AC_ARG_ENABLE(avahi, | 859 AC_ARG_ENABLE(avahi, |
856 [AC_HELP_STRING([--disable-avahi], | 860 [AC_HELP_STRING([--disable-avahi], |
857 [compile without avahi (required for Bonjour support)])], | 861 [compile without avahi (required for Bonjour support)])], |
858 enable_avahi="$enableval", enable_avahi="yes") | 862 enable_avahi="$enableval", enable_avahi="yes") |
859 AC_ARG_WITH(avahi-client-includes, [AC_HELP_STRING([--with-avahi-client-includes=DIR], [compile the Bonjour plugin against the Avahi Client includes in DIR])], [ac_avahi_client_includes="$withval"], [ac_avahi_client_includes="no"]) | 863 |
860 AC_ARG_WITH(avahi-client-libs, [AC_HELP_STRING([--with-avahi-client-libs=DIR], [compile the Bonjour plugin against the Avahi Client libs in DIR])], [ac_avahi_client_libs="$withval"], [ac_avahi_client_libs="no"]) | 864 if test "x$enable_avahi" = "xyes"; then |
861 AVAHI_CFLAGS="" | 865 AC_ARG_WITH(avahi-client-includes, [AC_HELP_STRING([--with-avahi-client-includes=DIR], [compile the Bonjour plugin against the Avahi Client includes in DIR])], [ac_avahi_client_includes="$withval"], [ac_avahi_client_includes="no"]) |
862 AVAHI_LIBS="" | 866 AC_ARG_WITH(avahi-client-libs, [AC_HELP_STRING([--with-avahi-client-libs=DIR], [compile the Bonjour plugin against the Avahi Client libs in DIR])], [ac_avahi_client_libs="$withval"], [ac_avahi_client_libs="no"]) |
863 | 867 AVAHI_CFLAGS="" |
864 dnl Attempt to autodetect Avahi | 868 AVAHI_LIBS="" |
865 PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [ | 869 |
866 avahiincludes="yes" | 870 dnl Attempt to autodetect Avahi |
867 avahilibs="yes" | 871 PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [ |
868 ], [ | 872 avahiincludes="yes" |
869 avahiincludes="no" | 873 avahilibs="yes" |
870 avahilibs="no" | 874 ], [ |
871 ]) | 875 avahiincludes="no" |
872 | 876 avahilibs="no" |
873 dnl Override AVAHI_CFLAGS if the user specified an include dir | 877 ]) |
874 if test "$ac_avahi_client_includes" != "no"; then | 878 |
875 AVAHI_CFLAGS="-I$ac_avahi_client_includes" | 879 dnl Override AVAHI_CFLAGS if the user specified an include dir |
876 fi | 880 if test "$ac_avahi_client_includes" != "no"; then |
877 CPPFLAGS_save="$CPPFLAGS" | 881 AVAHI_CFLAGS="-I$ac_avahi_client_includes" |
878 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS" | 882 fi |
879 AC_CHECK_HEADER(avahi-client/client.h, [avahiincludes=yes], [avahiincludes=no]) | 883 CPPFLAGS_save="$CPPFLAGS" |
880 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS" | 884 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS" |
881 AC_CHECK_HEADER(avahi-glib/glib-malloc.h, [avahiincludes=yes], [avahiincludes=no]) | 885 AC_CHECK_HEADER(avahi-client/client.h, [avahiincludes=yes], [avahiincludes=no]) |
882 CPPFLAGS="$CPPFLAGS_save" | 886 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS" |
883 | 887 AC_CHECK_HEADER(avahi-glib/glib-malloc.h, [avahiincludes=yes], [avahiincludes=no]) |
884 dnl Override AVAHI_LIBS if the user specified a libs dir | 888 CPPFLAGS="$CPPFLAGS_save" |
885 if test "$ac_avahi_client_libs" != "no"; then | 889 |
886 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib " | 890 dnl Override AVAHI_LIBS if the user specified a libs dir |
887 fi | 891 if test "$ac_avahi_client_libs" != "no"; then |
888 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) | 892 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib " |
893 fi | |
894 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) | |
895 fi | |
889 | 896 |
890 if test "x$enable_avahi" = "xyes" -a "x$force_deps" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then | 897 if test "x$enable_avahi" = "xyes" -a "x$force_deps" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then |
891 AC_MSG_ERROR([ | 898 AC_MSG_ERROR([ |
892 avahi development headers not found. | 899 avahi development headers not found. |
893 Use --disable-avahi if you do not need avahi (Bonjour) support. | 900 Use --disable-avahi if you do not need avahi (Bonjour) support. |