From: Ben Pfaff <blp@gnu.org>
Date: Tue, 6 Nov 2007 05:49:04 +0000 (+0000)
Subject: No need for check for off_t or for the size of float or long double
X-Git-Tag: v0.6.0~200
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ad5fe55e454b8ccb271a710e2c4b1b53c57fc8c;p=pspp-builds.git

No need for check for off_t or for the size of float or long double
any longer, as we don't use the results anymore.  Also, no need to put
#include <locale.h> into config.h any longer, as this was only needed
for --with-included-gettext, which we have not supported for some
time.
---

diff --git a/ChangeLog b/ChangeLog
index 696c526d..1c6fee02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-11-05  Ben Pfaff  <blp@gnu.org>
+
+	* configure.ac: No need for check for off_t or for the size of
+	float or long double any longer, as we don't use the results
+	anymore.  Also, no need to put #include <locale.h> into config.h
+	any longer, as this was only needed for --with-included-gettext,
+	which we have not supported for some time.
+
 2007-11-03  Ben Pfaff  <blp@gnu.org>
 
 	Allow output files to overwrite input files (bug #21280).
diff --git a/configure.ac b/configure.ac
index 6dae49b0..5b8e1a93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,11 +84,7 @@ gl_INIT
 
 AC_C_INLINE
 
-dnl  Dont use AC_TYPE_OFF_T --- it doesnt generate the HAVE_TYPE macro
-AC_CHECK_TYPES(off_t) 
-AC_CHECK_SIZEOF(float)
 AC_CHECK_SIZEOF(double)
-AC_CHECK_SIZEOF(long double)
 
 AC_C_BIGENDIAN
 
@@ -96,9 +92,6 @@ AC_CHECK_FUNCS([__setfpucw fork execl execlp isinf isnan finite getpid feholdexc
 
 AC_PROG_LN_S
 
-dnl This is needed otherwise --with-included-gettext fails
-AH_BOTTOM([#include <locale.h>])
-
 AC_ARG_ENABLE(
   debug, 
   [AS_HELP_STRING([--enable-debug], 
diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c
index ba083fff..c214fb55 100644
--- a/src/libpspp/i18n.c
+++ b/src/libpspp/i18n.c
@@ -17,6 +17,7 @@
 #include <config.h>
 #include <xalloc.h>
 #include <assert.h>
+#include <locale.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>