Ticket #2553: tor2webmode.diff

File tor2webmode.diff, 932 bytes (added by hellais, 7 years ago)

tor2web mode configure patch

  • configure.in

    diff --git a/configure.in b/configure.in
    index 64d9d6d..e894a47 100644
    a b AC_ARG_ENABLE(gcc-hardening, 
    130130    LDFLAGS="$LDFLAGS -pie"
    131131fi])
    132132
     133
    133134dnl Linker hardening options
    134135dnl Currently these options are ELF specific - you can't use this with MacOSX
    135136AC_ARG_ENABLE(linker-hardening,
    if test "$enable_local_appdata" = "yes"; then 
    145146            [Defined if we default to host local appdata paths on Windows])
    146147fi
    147148
     149# Tor2web mode flag
     150AC_ARG_ENABLE(tor2webmode,
     151     AS_HELP_STRING(--enable-tor2webmode, support tor2web non-anonymous mode),
     152[if test x$enableval = xyes; then
     153    CFLAGS="$CFLAGS -D ENABLE_TOR2WEB_MODE=1"
     154fi])
     155
    148156AC_ARG_ENABLE(bufferevents,
    149157     AS_HELP_STRING(--enable-bufferevents, use Libevent's buffered IO.))
    150158
     159
    151160dnl check for the correct "ar" when cross-compiling
    152161AN_MAKEVAR([AR], [AC_PROG_AR])
    153162AN_PROGRAM([ar], [AC_PROG_AR])