-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby-1.8.7-autoconf-2.59.patch
37 lines (35 loc) · 1.73 KB
/
ruby-1.8.7-autoconf-2.59.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff -uNr -uNr ruby-1.8.7-p334.orig/configure.in ruby-1.8.7-p334/configure.in
--- ruby-1.8.7-p334.orig/configure.in 2011-02-18 11:37:47.000000000 +0100
+++ ruby-1.8.7-p334/configure.in 2011-04-26 18:26:17.290158691 +0200
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT()
-AC_PREREQ(2.60)
+AC_PREREQ(2.59)
AC_DEFUN([RUBY_MINGW32],
[case "$host_os" in
@@ -553,14 +553,15 @@
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])
typedef $1 t; int s = sizeof(t) == 42;])],
[rb_cv_type_$1=yes],
- [AS_CASE([m4_bmatch([$2], [^[1-9][0-9]*$], $2, [$ac_cv_sizeof_]AS_TR_SH($2))],
- ["1"], [ rb_cv_type_$1="m4_if([$3], [], [signed ], [$3 ])char"],
- ["$ac_cv_sizeof_short"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])short"],
- ["$ac_cv_sizeof_int"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])int"],
- ["$ac_cv_sizeof_long"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long"],
- ["$ac_cv_sizeof_long_long"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long long"],
- ["$ac_cv_sizeof___int64"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])__int64"],
- [ rb_cv_type_$1=no])])])
+ [case $2 in
+ "1") rb_cv_type_int8_t="signed char" ;;
+ "$ac_cv_sizeof_short") rb_cv_type_int8_t="short" ;;
+ "$ac_cv_sizeof_int") rb_cv_type_int8_t="int" ;;
+ "$ac_cv_sizeof_long") rb_cv_type_int8_t="long" ;;
+ "$ac_cv_sizeof_long_long") rb_cv_type_int8_t="long long" ;;
+ "$ac_cv_sizeof___int64") rb_cv_type_int8_t="__int64" ;;
+ *) rb_cv_type_int8_t=no ;;
+ esac])])
if test "${rb_cv_type_$1}" != no; then
AC_DEFINE([HAVE_]AS_TR_CPP($1), 1)
if test "${rb_cv_type_$1}" = yes; then
Binary files ruby-1.8.7-p334.orig/.configure.in.swp and ruby-1.8.7-p334/.configure.in.swp differ