Changeset 7033 for trunk/configure.ac


Ignore:
Timestamp:
Nov 4, 2008, 2:09:51 AM (13 years ago)
Author:
charles
Message:

simplify the configure script a little

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r6925 r7033  
    1 AC_PREREQ(2.54)
    2 
    3 m4_define([tr_version_major], [1])
    4 m4_define([tr_version_minor], [34])
    5 m4_define([tr_version_suffix], [+])
    6 m4_define([tr_version], [tr_version_major.tr_version_minor])
    7 
    8 AC_INIT([Transmission], [tr_version], [http://trac.transmissionbt.com/newticket], [transmission])
     1dnl convention: -TR MAJOR MINOR MAINT STATUS - (each a single char)
     2dnl STATUS: "X" for prerelease test builds,
     3dnl         "Z" for unsupported trunk builds,
     4dnl         "0" for stable, supported releases
     5dnl these should be the only two lines you need to change
     6USERAGENT_PREFIX="1.40b1"
     7PEERID_PREFIX="-TR140X-"
     8
     9AC_INIT([transmission],[$USERAGENT_PREFIX],[http://trac.transmissionbt.com/newticket])
     10AC_SUBST(USERAGENT_PREFIX,[$USERAGENT_PREFIX])
     11AC_SUBST(PEERID_PREFIX,[$PEERID_PREFIX])
     12
    913AC_CONFIG_MACRO_DIR([m4])
    10 
    11 TR_VERSION_MAJOR=tr_version_major
    12 TR_VERSION_MINOR=tr_version_minor
    13 TR_VERSION_SUFFIX=tr_version_suffix
    14 TR_VERSION=tr_version
    15 
    16 dnl Someone still needs to hook this up to the system above
    17 PEERID_PREFIX="-TR134Z-"
    18 
    19 USERAGENT_PREFIX=$TR_VERSION$TR_VERSION_SUFFIX
    20 
    21 AC_SUBST(PEERID_PREFIX,[$PEERID_PREFIX])
    22 AC_SUBST(USERAGENT_PREFIX,[$USERAGENT_PREFIX])
    2314
    2415dnl AM_CONFIG_HEADER(config.h)
     
    2718AC_PROG_LIBTOOL
    2819
    29 if test "x$TR_VERSION_SUFFIX" = "x+"; then
    30   AC_DEFINE(TR_UNSTABLE, 1,
    31             [Define to 1 if this is an unstable version of Transmission])
     20if test "x${PEERID_PREFIX: -2:1}" = "xZ"; then
     21  AC_DEFINE(TR_UNSTABLE, 1, [Define to 1 if this is an unstable version of Transmission])
    3222  TR_UNSTABLE=yes
    3323fi
Note: See TracChangeset for help on using the changeset viewer.