Opened 11 years ago

Closed 11 years ago

#2323 closed Enhancement (fixed)

autoconf patch to build transmission on cygwin

Reported by: charles Owned by: charles
Priority: Normal Milestone: 1.74
Component: Transmission Version: 1.73
Severity: Normal Keywords:
Cc:

Description

As reported by tbucked, and revised by rb07, in the forums

http://forum.transmissionbt.com/viewtopic.php?f=3&t=8353&start=0

Change History (3)

comment:1 Changed 11 years ago by charles

diff -NaurX /home/rberber/diff-excludes.txt transmission-1.73-orig/configure.ac transmission-1.73/configure.ac
--- transmission-1.73-orig/configure.ac   2009-07-17 20:21:12.000000000 -0500
+++ transmission-1.73/configure.ac   2009-08-05 12:07:42.000000000 -0500
@@ -75,11 +75,15 @@
AC_HEADER_STDC
AC_HEADER_TIME

-AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename strcasecmp localtime_r posix_fallocate memmem])
+AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename strcasecmp localtime_r posix_fallocate memmem strtold])
AC_PROG_INSTALL
AC_PROG_MAKE_SET
ACX_PTHREAD

+if test "x$ac_cv_func_strtold" != "xyes" ; then
+    CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
+fi
+
AC_SEARCH_LIBS(cos, [m])
AC_SEARCH_LIBS([socket], [socket net])
AC_SEARCH_LIBS([gethostbyname], [nsl bind])
@@ -335,7 +339,7 @@
have_msw="no"
case $host_os in

-   *cygwin|*mingw32*)
+   *mingw32*)
      have_msw="yes"
      CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
      CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
diff -NaurX /home/rberber/diff-excludes.txt transmission-1.73-orig/third-party/miniupnp/updateminiupnpcstrings.sh transmission-1.73/third-party/miniupnp/updateminiupnpcstrings.sh
--- transmission-1.73-orig/third-party/miniupnp/updateminiupnpcstrings.sh   2009-07-17 20:21:07.000000000 -0500
+++ transmission-1.73/third-party/miniupnp/updateminiupnpcstrings.sh   2009-08-05 12:23:47.156250000 -0500
@@ -28,8 +28,8 @@

echo "Detected OS [$OS_NAME] version [$OS_VERSION]"

-EXPR="s/OS_STRING \".*\"/OS_STRING \"${OS_NAME}\/${OS_VERSION}\"/"
-#echo $EXPR
+EXPR="s:OS_STRING \".*\":OS_STRING \"${OS_NAME}\/${OS_VERSION}\":"
+echo $EXPR
#echo "Backing up $OUTPUT_FILE to $OUTPUT_FILE.bak."
#cp $OUTPUT_FILE $OUTPUT_FILE.bak
test -f ${TEMPLATE_FILE}

comment:2 Changed 11 years ago by charles

  • Owner set to charles
  • Status changed from new to assigned

fixed in trunk by r8887 for 1.74 or 1.80, whichever comes first

comment:3 Changed 11 years ago by charles

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