summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-03-18 03:03:10 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-03-18 03:03:10 (GMT)
commit499d3654a86a55ce7b727a31b6fea8e1ddb04508 (patch)
tree41e06956ae3e9f79590ee8e9f18fff629d91a2ed
parentb3bf4484260aa4da3e2a978a5a04ee95d972ede9 (diff)
parentd887d1f365595c05c0598225f8b893693fecd57c (diff)
downloadcpython-499d3654a86a55ce7b727a31b6fea8e1ddb04508.zip
cpython-499d3654a86a55ce7b727a31b6fea8e1ddb04508.tar.gz
cpython-499d3654a86a55ce7b727a31b6fea8e1ddb04508.tar.bz2
Issue #17603: Merge configure.ac fix from 3.5
-rw-r--r--Misc/NEWS3
-rwxr-xr-xconfigure10
-rw-r--r--configure.ac2
-rw-r--r--pyconfig.h.in4
4 files changed, 4 insertions, 15 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index adfa04b..78423dd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -846,6 +846,9 @@ Tests
Build
-----
+- Issue #17603: Avoid error about nonexistant fileblocks.o file by using a
+ lower-level check for st_blocks in struct stat.
+
- Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by
Bjoern Thiel.
diff --git a/configure b/configure
index 970f909..7bef2d3 100755
--- a/configure
+++ b/configure
@@ -12869,19 +12869,9 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
-$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
-
-else
- case " $LIBOBJS " in
- *" fileblocks.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
- ;;
-esac
-
fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
$as_echo_n "checking for time.h that defines altzone... " >&6; }
if ${ac_cv_header_time_altzone+:} false; then :
diff --git a/configure.ac b/configure.ac
index 1be558e..98e9703 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3727,7 +3727,7 @@ AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_CHECK_MEMBERS([struct stat.st_flags])
AC_CHECK_MEMBERS([struct stat.st_gen])
AC_CHECK_MEMBERS([struct stat.st_birthtime])
-AC_STRUCT_ST_BLOCKS
+AC_CHECK_MEMBERS([struct stat.st_blocks])
AC_MSG_CHECKING(for time.h that defines altzone)
AC_CACHE_VAL(ac_cv_header_time_altzone,[
diff --git a/pyconfig.h.in b/pyconfig.h.in
index b0cafb3..e017d4e 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -934,10 +934,6 @@
/* Define to 1 if `tm_zone' is a member of `struct tm'. */
#undef HAVE_STRUCT_TM_TM_ZONE
-/* Define to 1 if your `struct stat' has `st_blocks'. Deprecated, use
- `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */
-#undef HAVE_ST_BLOCKS
-
/* Define if you have the 'symlink' function. */
#undef HAVE_SYMLINK