From b8a61673414b8fac09903e22225fa452b84a80a8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 4 Jan 2009 14:07:07 +0000 Subject: Berlios Patch #2525, courtesy of Diego E. "Flameeyes" Pettenò: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "The AC_CANONICAL_TARGET macro and the $target_os variables are used for the target of compilers and other code-generation tools, and should not be used during cross-compile of generic software. Replace them with AC_CANONICAL_HOST and $host_os instead, as they should have been from the start. For a breakdown of what host, build and target machines are, please see http://blog.flameeyes.eu/s/canonical-target ." svn path=/branches/BRANCH_6-3/; revision=5258 --- NEWS | 5 +++++ configure.ac | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index db7497cd..68572ccd 100644 --- a/NEWS +++ b/NEWS @@ -45,12 +45,17 @@ be removed from a 6.4.0 or newer release.) fetchmail 6.3.10 (not yet released): # BUGFIXES +* Fix misuse of canonical autoconf target as _TARGET when it should have been + _HOST. Report and patch courtesy of Diego E. "Flameeyes" Pettenò. + Details: http://blog.flameeyes.eu/2009/01/01/the-canonical-target * Do not lose PS_MAXFETCH (13) exit status when hitting maxpoll. Reported by Michelle Konzack, Debian Bug#508667. # TRANSLATION UPDATES AND ADDITIONS (ordered by language name): * [it] Italian (Vincenzo Campanella) + + fetchmail 6.3.9 (2008-11-16): # SECURITY AND CRITICAL BUG FIXES: diff --git a/configure.ac b/configure.ac index 88a004f0..96aedeb2 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([fetchmail.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_LIBOBJ_DIR([.]) -AC_CANONICAL_TARGET +AC_CANONICAL_HOST dnl automake options are in Makefile.am AC_PREREQ(2.60) @@ -88,7 +88,7 @@ AC_PROG_MAKE_SET AC_PROG_YACC # Check for OS special cases -case $target_os in +case $host_os in darwin*) AC_MSG_NOTICE(found Darwin - Adding -DBIND_8_COMPAT to CFLAGS) CPPFLAGS="$CPPFLAGS -DBIND_8_COMPAT" @@ -498,7 +498,7 @@ if test "$fm_cv_getaddrinfo" = yes ; then AC_MSG_CHECKING(if your getaddrinfo is async-signal-safe) gai_ts=no dnl we have getaddrinfo() - check if the OS is known to have a async-signal-safe implementation - case $target_os in + case $host_os in darwin9*) gai_ts=yes ;; linux*) gai_ts=yes ;; freebsd5.5|freebsd6*|freebsd7*) gai_ts=yes ;; -- cgit v1.2.3