Changeset 7726 for trunk/configure.ac


Ignore:
Timestamp:
Jan 16, 2009, 9:29:49 PM (13 years ago)
Author:
charles
Message:

(trunk) sync xcode & autoconf idioms for determining if a build is stable, beta, or nightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7662 r7726  
    2020AC_PROG_LIBTOOL
    2121
    22 if test m4_substr(peer_id_prefix,6,1) = "Z"; then
    23   AC_DEFINE(TR_UNSTABLE, 1, [Define to 1 if this is an unstable version of Transmission])
    24   TR_UNSTABLE=yes
    25   enable_debug=yes
     22if test m4_substr(peer_id_prefix,6,1) = "X"; then
     23  AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission])
     24  supported_build=no
     25elif test m4_substr(peer_id_prefix,6,1) = "Z"; then
     26  AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission])
     27  supported_build=no
    2628else
    27   enable_debug=no
    28 fi
    29 AM_CONDITIONAL(TR_UNSTABLE, test "x$TR_UNSTABLE" = "xyes")
     29  AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
     30  supported_build=yes
     31fi
     32AM_CONDITIONAL(TR_UNSTABLE, test "x$supported_build" = "xno")
    3033
    3134OPENSSL_MINIMUM=0.9.4
     
    5053AC_C_INLINE
    5154if test "x$GCC" = "xyes" ; then
    52     CFLAGS="-std=gnu99 -ggdb3 -Wall -Wextra -Wredundant-decls -Wpointer-arith -Wformat-security -W -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Winit-self -Wundef -Wnested-externs -Wmissing-format-attribute"
     55    CFLAGS="-std=gnu99 -ggdb3 -Wall -Wextra -Wredundant-decls -Wpointer-arith -Wformat-security -W -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winit-self -Wundef -Wnested-externs -Wmissing-format-attribute"
    5356    CXXFLAGS="-Wall -Wformat-security -W"
    5457fi
Note: See TracChangeset for help on using the changeset viewer.