You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/04/07 04:45:12 UTC
cvs commit: apache-2.0/src configure.in acinclude.m4
trawick 00/04/06 19:45:12
Modified: src/ap ap_base64.c
src configure.in acinclude.m4
Log:
Recognize an EBCDIC platform during configuration and turn on
CHARSET_EBCDIC.
Revision Changes Path
1.6 +1 -1 apache-2.0/src/ap/ap_base64.c
Index: ap_base64.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/ap/ap_base64.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ap_base64.c 2000/03/31 07:02:31 1.5
+++ ap_base64.c 2000/04/07 02:45:11 1.6
@@ -67,10 +67,10 @@
#include "ap.h"
+#include "ap_config.h"
#ifdef CHARSET_EBCDIC
#include "ebcdic.h"
#endif /* CHARSET_EBCDIC */
-#include "ap_config.h"
/* aaaack but it's fast and const should make it shared text page. */
static const unsigned char pr2six[256] =
1.30 +2 -0 apache-2.0/src/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apache-2.0/src/configure.in,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- configure.in 2000/04/06 02:02:39 1.29
+++ configure.in 2000/04/07 02:45:11 1.30
@@ -96,6 +96,8 @@
APACHE_INADDR_NONE
+APACHE_EBCDIC
+
REENTRANCY_FLAGS
AC_FUNC_SELECT_ARGTYPES
1.21 +17 -0 apache-2.0/src/acinclude.m4
Index: acinclude.m4
===================================================================
RCS file: /home/cvs/apache-2.0/src/acinclude.m4,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- acinclude.m4 2000/02/18 02:12:16 1.20
+++ acinclude.m4 2000/04/07 02:45:11 1.21
@@ -195,6 +195,23 @@
fi
])
+AC_DEFUN(APACHE_EBCDIC,[
+ AC_CACHE_CHECK([whether system uses EBCDIC],ac_cv_ebcdic,[
+ AC_TRY_RUN( [
+int main(void) {
+ return (unsigned char)'A' != (unsigned char)0xC1;
+}
+],[
+ ac_cv_ebcdic="yes"
+],[
+ ac_cv_ebcdic="no"
+],[
+ ac_cv_ebcdic="no"
+])])
+ if test "$ac_cv_ebcdic" = "yes"; then
+ AC_DEFINE(CHARSET_EBCDIC,, [Define if system uses EBCDIC])
+ fi
+])
dnl APACHE_MODPATH_INIT(modpath)
AC_DEFUN(APACHE_MODPATH_INIT,[