Opened 12 years ago

Closed 12 years ago

#2278 closed Bug (fixed)

configure.ac: remove AC_DEFINEs of TR_*_RELEASE

Reported by: stdisease Owned by: stdisease
Priority: Lowest Milestone: 1.73
Component: Transmission Version: 1.72+
Severity: Minor Keywords:
Cc:

Description

Removes checks and associated AC_DEFINES for TR_STABLE_RELEASE, TR_BETA_RELEASE and TR_NIGHTLY_RELEASE since these are now handled by update-version-h.sh.

This also avoids redefinition warnings when compiling files that include version.h.

Index: configure.ac
===================================================================
--- configure.ac        (revision 8813)
+++ configure.ac        (working copy)
@@ -25,18 +25,12 @@
     CFLAGS="$CFLAGS -g -O3 "
     CXXFLAGS="$CXXFLAGS -g -O3 "
   fi
-  AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
 else
   supported_build=no
   if test "x$GCC" = "xyes" ; then
     CFLAGS="$CFLAGS -g -O0"
     CXXFLAGS="$CXXFLAGS -g -O0"
   fi
-  if test m4_substr(peer_id_prefix,6,1) = "X"; then
-    AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission])
-  else
-    AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission])
-  fi
 fi
 AM_CONDITIONAL(TR_UNSTABLE, test "x$supported_build" = "xno")
 

Attachments (1)

trans-conf-release-defs.patch (794 bytes) - added by stdisease 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by stdisease

comment:1 Changed 12 years ago by livings124

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.