Changeset 7258


Ignore:
Timestamp:
Dec 3, 2008, 2:44:52 PM (12 years ago)
Author:
charles
Message:

#916: Make native language support (gettext) optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7233 r7258  
    44dnl         "0" for stable, supported releases
    55dnl these should be the only two lines you need to change
    6 m4_define([user_agent_prefix],1.40+)
    7 m4_define([peer_id_prefix],-TR140Z-)
    8 
    9 AC_INIT([transmission],[user_agent_prefix],[http://trac.transmissionbt.com/newticket])
     6m4_define([user_agent_prefix],[1.40+])
     7m4_define([peer_id_prefix],[-TR140Z-])
     8
     9AC_INIT([transmission],
     10        [user_agent_prefix],
     11        [http://trac.transmissionbt.com/newticket])
    1012AC_SUBST(USERAGENT_PREFIX,[user_agent_prefix])
    1113AC_SUBST(PEERID_PREFIX,[peer_id_prefix])
     
    174176fi
    175177
    176 AC_CHECK_HEADERS([libintl.h])
    177 IT_PROG_INTLTOOL([0.23],[no-xml])
    178 GETTEXT_PACKAGE=transmission
    179 AC_SUBST(GETTEXT_PACKAGE)
    180 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
    181 AM_GLIB_GNU_GETTEXT
    182 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
    183 AC_SUBST(transmissionlocaledir)
    184 
     178AC_ARG_ENABLE([nls],
     179              AS_HELP_STRING([--enable-nls],[enable native language support]),,
     180              [enable_nls=yes])
     181
     182use_nls=no
     183if test "x$enable_nls" = "xyes" ; then
     184    use_nls=yes
     185    IT_PROG_INTLTOOL([0.23],[no-xml])
     186    AC_CHECK_HEADERS([libintl.h])
     187    GETTEXT_PACKAGE=transmission
     188    AC_SUBST(GETTEXT_PACKAGE)
     189    AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
     190    AM_GLIB_GNU_GETTEXT
     191    transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
     192    AC_SUBST(transmissionlocaledir)
     193fi
    185194
    186195dnl ----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.