mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Test for EBCDIC platform
This commit is contained in:
parent
efabab1a34
commit
06e504d32a
2 changed files with 22 additions and 0 deletions
19
acinclude.m4
19
acinclude.m4
|
@ -604,3 +604,22 @@ AC_DEFUN(PHP_DECLARED_TIMEZONE,[
|
|||
AC_DEFINE(HAVE_DECLARED_TIMEZONE, 1, [Whether system headers declare timezone])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN(PHP_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
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue