Mercurial > pidgin.yaz
diff configure.ac @ 25646:69d54f84350a
propagate from branch 'im.pidgin.pidgin' (head 9da7555026cd7b8456f95ae153a7852ddbcf6678)
to branch 'im.pidgin.pidgin.vv' (head 3f8b4b5a421935e71b45c7b8260c8bb32a330384)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 13 Apr 2008 17:53:46 +0000 |
parents | a8a26b4d8458 5d863056044f |
children | e1c8ec1259de ff29208e03ef |
line wrap: on
line diff
--- a/configure.ac Sat Mar 22 09:40:38 2008 +0000 +++ b/configure.ac Sun Apr 13 17:53:46 2008 +0000 @@ -46,7 +46,7 @@ m4_define([purple_lt_current], [4]) m4_define([purple_major_version], [2]) m4_define([purple_minor_version], [4]) -m4_define([purple_micro_version], [1]) +m4_define([purple_micro_version], [2]) m4_define([purple_version_suffix], [vv-devel]) m4_define([purple_version], [purple_major_version.purple_minor_version.purple_micro_version]) @@ -55,7 +55,7 @@ m4_define([gnt_lt_current], [4]) m4_define([gnt_major_version], [2]) m4_define([gnt_minor_version], [4]) -m4_define([gnt_micro_version], [1]) +m4_define([gnt_micro_version], [2]) m4_define([gnt_version_suffix], [devel]) m4_define([gnt_version], [gnt_major_version.gnt_minor_version.gnt_micro_version]) @@ -64,6 +64,14 @@ AC_INIT([pidgin], [purple_display_version], [devel@pidgin.im]) +if test `pwd | wc -w` -ne 1; then + AC_MSG_ERROR([ +You are attempting to build in a path that contains spaces. This +will fail. Relocate this source tree to a path that does not contain +spaces and run configure again. +]) +fi + AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) @@ -350,13 +358,13 @@ [compile without GtkSpell automatic spell checking])], enable_gtkspell="$enableval", enable_gtkspell="yes") AC_ARG_ENABLE(gevolution, - [AC_HELP_STRING([--disable-gevolution], - [compile without the Evolution plugin])], - enable_gevolution="$enableval", enable_gevolution="yes") + [AC_HELP_STRING([--enable-gevolution], + [compile with the Evolution plugin])], + enable_gevolution="$enableval", enable_gevolution="no") AC_ARG_ENABLE(cap, - [AC_HELP_STRING([--disable-cap], - [compile without Contact Availability Prediction plugin])], - enable_cap="$enableval", enable_cap="yes") + [AC_HELP_STRING([--enable-cap], + [compile with Contact Availability Prediction plugin])], + enable_cap="$enableval", enable_cap="no") AC_ARG_ENABLE(gestures, [AC_HELP_STRING([--disable-gestures], [compile without the gestures plugin])], @@ -404,11 +412,18 @@ X11_LIBS="$x_libpath_add" X11_CFLAGS="$x_incpath_add" else - with_x=no + AC_MSG_ERROR([ +X11 development headers not found. +Use --without-x if you do not need X11 support. +]) fi ]) AC_SUBST(X11_LIBS) AC_SUBST(X11_CFLAGS) + else + enable_screensaver=no + enable_sm=no + enable_gestures=no fi dnl ####################################################################### @@ -438,9 +453,15 @@ if test "x$enable_screensaver" = "xyes" ; then AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.]) AC_SUBST(XSS_LIBS) + else + AC_MSG_ERROR([ +XScreenSaver extension development headers not found. +Use --disable-screensaver if you do not need XScreenSaver extension support, +this is required for detecting idle time by mouse and keyboard usage. +]) fi else - enable_screensaver=no + AC_MSG_ERROR([X support is required to build with XScreenSaver extensions]) fi fi @@ -461,9 +482,14 @@ if test "x$enable_sm" = "xyes"; then AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) AC_SUBST(SM_LIBS) + else + AC_MSG_ERROR([ +X session management development headers not found. +Use --disable-sm if you do not need session management support. +]) fi else - enable_sm=no + AC_MSG_ERROR([X support is required to build with X session management support]) fi fi @@ -482,8 +508,10 @@ if test "x$enable_startup_notification" = "xyes"; then PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [ AC_MSG_RESULT(no) - enable_startup_notification=no - ]) + AC_MSG_ERROR([ +Startup notification development headers not found. +Use --disable-startup-notification if you do not need it. +])]) if test "x$enable_startup_notification" = "xyes"; then AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) @@ -498,8 +526,10 @@ if test "x$enable_gtkspell" = "xyes" ; then PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [ AC_MSG_RESULT(no) - enable_gtkspell=no - ]) + AC_MSG_ERROR([ +GtkSpell development headers not found. +Use --disable-gtkspell if you do not need it. +])]) if test "x$enable_gtkspell" = "xyes" ; then AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell]) AC_SUBST(GTKSPELL_CFLAGS) @@ -528,6 +558,11 @@ AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) + else + AC_MSG_ERROR([ +Evolution development headers not found. +Use --disable-gevolution if you do not need it. +]) fi fi @@ -537,8 +572,10 @@ if test "x$enable_cap" = "xyes"; then PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[ AC_MSG_RESULT(no) - enable_cap="no" - ]) + AC_MSG_ERROR([ +sqlite3 development headers not found. +Use --disable-cap if you do not need the Contact Availability Prediction plugin. +])]) fi @@ -675,8 +712,10 @@ [], [$GSTREAMER_LIBS]) ], [ AC_MSG_RESULT(no) - enable_gst="no" - ]) + AC_MSG_ERROR([ +GStreamer development headers not found. +Use --disable-gstreamer if you do not need GStreamer (sound) support. +])]) fi dnl ####################################################################### @@ -722,17 +761,30 @@ dnl ####################################################################### dnl # Check for Meanwhile headers (for Sametime) dnl ####################################################################### -PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ - have_meanwhile="yes" -], [ - have_meanwhile="no" -]) +AC_ARG_ENABLE(meanwhile, + [AC_HELP_STRING([--disable-meanwhile], + [compile without meanwhile (required for Sametime support)])], + enable_meanwhile="$enableval", enable_meanwhile="yes") +if test "x$enable_meanwhile" = "xyes"; then + PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ + have_meanwhile="yes" + ], [ + have_meanwhile="no" + AC_MSG_ERROR([ +Meanwhile development headers not found. +Use --disable-meanwhile if you do not need meanwhile (Sametime) support. +])]) +fi AC_SUBST(MEANWHILE_CFLAGS) AC_SUBST(MEANWHILE_LIBS) dnl ####################################################################### dnl # Check for Native Avahi headers (for Bonjour) dnl ####################################################################### +AC_ARG_ENABLE(avahi, + [AC_HELP_STRING([--disable-avahi], + [compile without avahi (required for Bonjour support)])], + enable_avahi="$enableval", enable_avahi="yes") 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"]) 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"]) AVAHI_CFLAGS="" @@ -764,6 +816,12 @@ fi AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) +if test "x$enable_avahi" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then + AC_MSG_ERROR([ +avahi development headers not found. +Use --disable-avahi if you do not need avahi (Bonjour) support. +]) +fi AC_SUBST(AVAHI_CFLAGS) AC_SUBST(AVAHI_LIBS) @@ -1191,13 +1249,15 @@ fi if test "x$enable_dbus" = "xyes" ; then - PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], [ + PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [ AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) enable_dbus=yes ], [ - enable_dbus=no - ]) + AC_MSG_ERROR([ +D-Bus development headers not found. +Use --disable-dbus if you do not need D-Bus support. +])]) dnl Check for libnm_glib; if we don't have it, oh well if test "x$enable_libnm" = "xyes" ; then @@ -1210,8 +1270,10 @@ ], [ AC_MSG_RESULT(no) - enable_libnm=no - ]) + AC_MSG_ERROR([ +NetworkManager development headers not found. +Use --disable-nm if you do not need NetworkManager support. +])]) AC_SUBST(LIBNM_CFLAGS) AC_SUBST(LIBNM_LIBS) fi @@ -1359,7 +1421,10 @@ enable_mono=yes ], [ AC_MSG_RESULT(no) - enable_mono=no + AC_MSG_ERROR([ +Mono development headers not found. +Use --disable-mono if you do not need Mono support. +]) ]) if test x"$enable_mono" = x"yes"; then oldLIBS="$LIBS" @@ -1394,8 +1459,9 @@ if test "$enable_plugins" = no ; then enable_perl=no fi - +looked_for_perl="no" if test "$enable_perl" = yes ; then + looked_for_perl="yes" AC_PATH_PROG(perlpath, perl) AC_MSG_CHECKING(for Perl compile flags) PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` @@ -1522,6 +1588,13 @@ AM_CONDITIONAL(USE_PERL, false) fi +if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno"; then + AC_MSG_ERROR([ +Perl development headers not found. +Use --disable-perl if you do not need Perl scripting support. +]) +fi + dnl ####################################################################### dnl # SSL support dnl # @@ -1531,7 +1604,7 @@ dnl These two are inverses of each other <-- stolen from evolution! AC_ARG_ENABLE(gnutls, - [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support (preferred) [default=yes]], + [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support [default=yes]], [enable_gnutls="$enableval"], [enable_gnutls="yes"]) @@ -1541,13 +1614,14 @@ [enable_nss="yes"]) msg_ssl="None. MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!" - +looked_for_gnutls="no" dnl # dnl # Check for GnuTLS if it's specified. dnl # if test "x$enable_gnutls" != "xno"; then enable_gnutls="no" prefix=`eval echo $prefix` + looked_for_gnutls="yes" AC_ARG_WITH(gnutls-includes, [ --with-gnutls-includes=PREFIX location of GnuTLS includes.], @@ -1631,7 +1705,9 @@ dnl # dnl # Check for NSS if it's specified, or if GnuTLS checks failed. dnl # +looked_for_nss="no" if test "x$enable_nss" != "xno"; then + looked_for_nss="yes" AC_ARG_WITH(nspr-includes, [AC_HELP_STRING([--with-nspr-includes=PREFIX], [specify location of Mozilla nspr4 includes.])], @@ -1911,6 +1987,24 @@ msg_ssl=$msg_nss elif test "x$msg_gnutls" != "x"; then msg_ssl=$msg_gnutls +elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes"; then + AC_MSG_ERROR([ +Neither GnuTLS or NSS SSL development headers found. +Use --disable-nss --disable-gnutls if you do not need SSL support. +MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable! +]) +elif test "x$looked_for_gnutls" = "xyes"; then + AC_MSG_ERROR([ +GnuTLS SSL development headers not found. +Use --disable-gnutls if you do not need SSL support. +MSN, Novell Groupwise and Google Talk will not work without SSL support. +]) +elif test "x$looked_for_nss" = "xyes"; then + AC_MSG_ERROR([ +NSS SSL development headers not found. +Use --disable-nss if you do not need SSL support. +MSN, Novell Groupwise and Google Talk will not work without SSL support. +]) fi dnl ####################################################################### @@ -1944,6 +2038,10 @@ if test "$TCLCONFIG" = "no"; then AC_MSG_RESULT([no]) enable_tcl=no + AC_MSG_ERROR([ +Tcl development headers not found. +Use --disable-tcl if you do not need Tcl scripting support. +]) else . $TCLCONFIG AC_MSG_CHECKING([Tcl version compatability]) @@ -2008,6 +2106,10 @@ if test "$TKCONFIG" = "no"; then AC_MSG_RESULT([no]) enable_tk=no + AC_MSG_ERROR([ +Tk development headers not found. +Use --disable-tk if you do not need Tk scripting support. +]) else . $TKCONFIG eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" @@ -2175,7 +2277,7 @@ dnl # Check for check dnl ####################################################################### PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[ - ifdef([AM_PATH_CHECK], + ifdef([[AM_PATH_CHECK]], [AM_PATH_CHECK(0.8.2,:,:)], [AC_MSG_RESULT([no, testing is disabled])]) ]) @@ -2184,6 +2286,20 @@ AC_SUBST(CHECK_LIBS) dnl ####################################################################### +dnl # Disable pixmap installation +dnl ####################################################################### +AC_ARG_ENABLE(pixmaps-install, AC_HELP_STRING([--disable-pixmaps-install], [disable installation of pixmap files]), enable_pixmaps="$enableval", enable_pixmaps=yes) + +AM_CONDITIONAL(INSTALL_PIXMAPS, test "x$enable_pixmaps" = "xyes") + +dnl ####################################################################### +dnl # Disable installation of translation files +dnl ####################################################################### +AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [disable installation of translation files]), enable_i18n="$enableval", enable_i18n=yes) + +AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes") + +dnl ####################################################################### dnl # Check for Doxygen and dot (part of GraphViz) dnl ####################################################################### AC_ARG_ENABLE(doxygen, @@ -2341,6 +2457,8 @@ echo Build with Cyrus SASL support. : $enable_cyrus_sasl echo Use kerberos 4 with zephyr.... : $kerberos echo Use external libzephyr........ : $zephyr +echo Install pixmaps............... : $enable_pixmaps +echo Install translations.......... : $enable_i18n echo Has you....................... : yes echo echo Use XScreenSaver Extension.... : $enable_screensaver