Changeset 13517 for trunk/configure.ac


Ignore:
Timestamp:
Sep 22, 2012, 10:23:04 PM (9 years ago)
Author:
jordan
Message:

fix warnings generated by autoreconf -Wall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r13516 r13517  
    77m4_define([peer_id_prefix],[-TR261Z-])
    88
    9 AC_INIT([transmission],
    10         [user_agent_prefix],
    11         [http://trac.transmissionbt.com/newticket])
     9AC_INIT([transmission],[user_agent_prefix],[http://trac.transmissionbt.com/newticket])
    1210AC_SUBST(USERAGENT_PREFIX,[user_agent_prefix])
    1311AC_SUBST(PEERID_PREFIX,[peer_id_prefix])
     
    2018AC_CONFIG_SRCDIR(libtransmission/transmission.h)
    2119AM_INIT_AUTOMAKE([1.9 tar-pax])
    22 AC_PROG_LIBTOOL
     20LT_INIT
    2321
    2422if test m4_substr(peer_id_prefix,6,1) = "0"; then
     
    239237LIBS="-lminiupnpc"
    240238# See if the OS has its miniupnp 1.5 installed
    241 AC_TRY_LINK([
     239AC_LINK_IFELSE([AC_LANG_PROGRAM([[
    242240    #include <stdlib.h>
    243241    #include <miniupnpc/miniupnpc.h>
    244242    #include <miniupnpc/upnpcommands.h>
    245 ],[
     243]], [[
    246244    struct UPNPDev * devlist;
    247245    struct UPNPUrls    urls;
     
    255253    UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
    256254                        portStr, "TCP", intClient, intPort );
    257 ],[
     255]])],[
    258256AC_DEFINE(HAVE_MINIUPNP_15, 1, [Define to 1 if you have miniupnpc version 1.5])
    259 upnp_version="1.5"])
     257upnp_version="1.5"],[])
    260258
    261259# See if the OS has its miniupnp 1.6 installed
    262 AC_TRY_LINK([
     260AC_LINK_IFELSE([AC_LANG_PROGRAM([[
    263261    #include <stdlib.h>
    264262    #include <errno.h>
    265263    #include <miniupnpc/miniupnpc.h>
    266264    #include <miniupnpc/upnpcommands.h>
    267 ],[
     265]], [[
    268266    struct UPNPDev * devlist;
    269267    struct UPNPUrls    urls;
     
    277275    UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
    278276                        portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
    279 ],[
     277]])],[
    280278AC_DEFINE(HAVE_MINIUPNP_16, 1, [Define to 1 if you have miniupnpc version 1.6])
    281 upnp_version="1.6"])
     279upnp_version="1.6"],[])
    282280
    283281# ... and the results of our tests
     
    343341                 [have_gtk=yes],
    344342                 [have_gtk=no])
    345 AC_ARG_WITH([gtk], AC_HELP_STRING([--with-gtk],[with Gtk]),
     343AC_ARG_WITH([gtk], AS_HELP_STRING([--with-gtk],[with Gtk]),
    346344            [with_gtk=$withval],
    347345            [with_gtk=$have_gtk])
Note: See TracChangeset for help on using the changeset viewer.