| @@ -1,124 +1,133 @@ | | | @@ -1,124 +1,133 @@ |
1 | $NetBSD: patch-configure,v 1.11 2013/11/24 14:17:19 taca Exp $ | | 1 | $NetBSD: patch-configure,v 1.12 2015/04/03 08:59:08 jperkin Exp $ |
2 | | | 2 | |
3 | * Adding Interix and MirBSD support. | | 3 | * Adding Interix and MirBSD support. |
4 | * Ignore doxygen. | | 4 | * Ignore doxygen. |
5 | | | 5 | |
6 | --- configure.orig 2013-11-22 04:24:15.000000000 +0000 | | 6 | --- configure.orig 2014-11-13 13:42:20.000000000 +0000 |
7 | +++ configure | | 7 | +++ configure |
8 | @@ -10741,6 +10741,9 @@ esac | | 8 | @@ -4666,7 +4666,7 @@ esac |
| | | 9 | else |
| | | 10 | if test x"$target_alias" = x; then |
| | | 11 | case "$target_os" in #( |
| | | 12 | - darwin*) : |
| | | 13 | + notdarwin*) : |
| | | 14 | |
| | | 15 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5 |
| | | 16 | $as_echo_n "checking for real target cpu... " >&6; } |
| | | 17 | @@ -10900,6 +10900,9 @@ esac |
9 | superux*) : | | 18 | superux*) : |
10 | ac_cv_func_setitimer=no | | 19 | ac_cv_func_setitimer=no |
11 | ;; #( | | 20 | ;; #( |
12 | + interix*) : | | 21 | + interix*) : |
13 | + LIBS="-lm $LIBS" | | 22 | + LIBS="-lm $LIBS" |
14 | + ac_cv_func_getpgrp_void=yes ;; #( | | 23 | + ac_cv_func_getpgrp_void=yes ;; #( |
15 | *) : | | 24 | *) : |
16 | LIBS="-lm $LIBS" ;; | | 25 | LIBS="-lm $LIBS" ;; |
17 | esac | | 26 | esac |
18 | @@ -11344,7 +11347,13 @@ for ac_header in limits.h sys/file.h sys | | 27 | @@ -11503,7 +11506,13 @@ for ac_header in limits.h sys/file.h sys |
19 | net/socket.h sys/socket.h process.h atomic.h | | 28 | net/socket.h sys/socket.h process.h atomic.h |
20 | do : | | 29 | do : |
21 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | | 30 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
22 | -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | | 31 | -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
23 | +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | | 32 | +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
24 | +#include <sys/types.h> | | 33 | +#include <sys/types.h> |
25 | +#ifdef HAVE_SYS_TIME_H | | 34 | +#ifdef HAVE_SYS_TIME_H |
26 | +#include <sys/time.h> | | 35 | +#include <sys/time.h> |
27 | +#endif | | 36 | +#endif |
28 | + | | 37 | + |
29 | +" | | 38 | +" |
30 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | | 39 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
31 | cat >>confdefs.h <<_ACEOF | | 40 | cat >>confdefs.h <<_ACEOF |
32 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | 41 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
33 | @@ -12089,6 +12098,9 @@ fi | | 42 | @@ -12248,6 +12257,9 @@ fi |
34 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#ifdef HAVE_TIME_H | | 43 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#ifdef HAVE_TIME_H |
35 | #include <time.h> | | 44 | #include <time.h> |
36 | #endif | | 45 | #endif |
37 | +#ifdef HAVE_SYS_TIME_H | | 46 | +#ifdef HAVE_SYS_TIME_H |
38 | +# include <sys/time.h> | | 47 | +# include <sys/time.h> |
39 | +#endif | | 48 | +#endif |
40 | " | | 49 | " |
41 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | | 50 | if test "x$ac_cv_type_struct_timespec" = xyes; then : |
42 | | | 51 | |
43 | @@ -13880,6 +13892,8 @@ else | | 52 | @@ -14039,6 +14051,8 @@ else |
44 | # ifdef _MSC_VER | | 53 | # ifdef _MSC_VER |
45 | # include <malloc.h> | | 54 | # include <malloc.h> |
46 | # define alloca _alloca | | 55 | # define alloca _alloca |
47 | +# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) | | 56 | +# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) |
48 | +# include <stdlib.h> | | 57 | +# include <stdlib.h> |
49 | # else | | 58 | # else |
50 | # ifdef HAVE_ALLOCA_H | | 59 | # ifdef HAVE_ALLOCA_H |
51 | # include <alloca.h> | | 60 | # include <alloca.h> |
52 | @@ -15832,7 +15846,7 @@ done | | 61 | @@ -15991,7 +16005,7 @@ done |
53 | MAINLIBS="-pthread $MAINLIBS" ;; #( | | 62 | MAINLIBS="-pthread $MAINLIBS" ;; #( |
54 | *) : | | 63 | *) : |
55 | case "$target_os" in #( | | 64 | case "$target_os" in #( |
56 | - openbsd*) : | | 65 | - openbsd*) : |
57 | + openbsd*|mirbsd*) : | | 66 | + openbsd*|mirbsd*) : |
58 | LIBS="-pthread $LIBS" ;; #( | | 67 | LIBS="-pthread $LIBS" ;; #( |
59 | *) : | | 68 | *) : |
60 | LIBS="-l$pthread_lib $LIBS" ;; | | 69 | LIBS="-l$pthread_lib $LIBS" ;; |
61 | @@ -16282,7 +16296,9 @@ esac ;; #( | | 70 | @@ -16441,7 +16455,9 @@ esac ;; #( |
62 | interix*) : | | 71 | interix*) : |
63 | : ${LDSHARED='$(CC) -shared'} | | 72 | : ${LDSHARED='$(CC) -shared'} |
64 | XLDFLAGS="$XLDFLAGS -Wl,-E" | | 73 | XLDFLAGS="$XLDFLAGS -Wl,-E" |
65 | + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' | | 74 | + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' |
66 | LIBPATHFLAG=" -L%1\$-s" | | 75 | LIBPATHFLAG=" -L%1\$-s" |
67 | + RPATHFLAG=' -Wl,-R%1$-s' | | 76 | + RPATHFLAG=' -Wl,-R%1$-s' |
68 | rb_cv_dlopen=yes ;; #( | | 77 | rb_cv_dlopen=yes ;; #( |
69 | freebsd*|dragonfly*) : | | 78 | freebsd*|dragonfly*) : |
70 | | | 79 | |
71 | @@ -16294,7 +16310,7 @@ esac ;; #( | | 80 | @@ -16453,7 +16469,7 @@ esac ;; #( |
72 | test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable" | | 81 | test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable" |
73 | fi | | 82 | fi |
74 | rb_cv_dlopen=yes ;; #( | | 83 | rb_cv_dlopen=yes ;; #( |
75 | - openbsd*) : | | 84 | - openbsd*) : |
76 | + openbsd*|mirbsd*) : | | 85 | + openbsd*|mirbsd*) : |
77 | : ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'} | | 86 | : ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'} |
78 | if test "$rb_cv_binary_elf" = yes; then | | 87 | if test "$rb_cv_binary_elf" = yes; then |
79 | LDFLAGS="$LDFLAGS -Wl,-E" | | 88 | LDFLAGS="$LDFLAGS -Wl,-E" |
80 | @@ -16825,7 +16841,7 @@ _ACEOF | | 89 | @@ -16984,7 +17000,7 @@ _ACEOF |
81 | freebsd*|dragonfly*) : | | 90 | freebsd*|dragonfly*) : |
82 | | | 91 | |
83 | SOLIBS='$(LIBS)' | | 92 | SOLIBS='$(LIBS)' |
84 | - LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' | | 93 | - LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' |
85 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)$(TEENY)' | | 94 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)$(TEENY)' |
86 | if test "$rb_cv_binary_elf" != "yes" ; then | | 95 | if test "$rb_cv_binary_elf" != "yes" ; then |
87 | LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" | | 96 | LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" |
88 | LIBRUBY_ALIASES='' | | 97 | LIBRUBY_ALIASES='' |
89 | @@ -16842,7 +16858,7 @@ _ACEOF | | 98 | @@ -17001,7 +17017,7 @@ _ACEOF |
90 | LIBRUBY_ALIASES="" | | 99 | LIBRUBY_ALIASES="" |
91 | fi | | 100 | fi |
92 | ;; #( | | 101 | ;; #( |
93 | - openbsd*) : | | 102 | - openbsd*) : |
94 | + openbsd*|mirbsd*) : | | 103 | + openbsd*|mirbsd*) : |
95 | | | 104 | |
96 | SOLIBS='$(LIBS)' | | 105 | SOLIBS='$(LIBS)' |
97 | LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` | | 106 | LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` |
98 | @@ -16903,7 +16919,12 @@ esac | | 107 | @@ -17062,7 +17078,12 @@ esac |
99 | ;; #( | | 108 | ;; #( |
100 | interix*) : | | 109 | interix*) : |
101 | | | 110 | |
102 | - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' | | 111 | - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' |
103 | + SOLIBS='$(LIBS)' | | 112 | + SOLIBS='$(LIBS)' |
104 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' | | 113 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' |
105 | + # link explicitly to 0x48000000 | | 114 | + # link explicitly to 0x48000000 |
106 | + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' | | 115 | + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' |
107 | + LIBRUBYARG_SHARED='-Wl,-R -Wl,${libdir} -L${libdir} -L. -l$(RUBY_SO_NAME)' | | 116 | + LIBRUBYARG_SHARED='-Wl,-R -Wl,${libdir} -L${libdir} -L. -l$(RUBY_SO_NAME)' |
108 | + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' | | 117 | + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' |
109 | ;; #( | | 118 | ;; #( |
110 | *) : | | 119 | *) : |
111 | ;; | | 120 | ;; |
112 | @@ -16966,11 +16987,7 @@ if test "$install_doc" != no; then | | 121 | @@ -17125,11 +17146,7 @@ if test "$install_doc" != no; then |
113 | else | | 122 | else |
114 | RDOCTARGET="nodoc" | | 123 | RDOCTARGET="nodoc" |
115 | fi | | 124 | fi |
116 | - if test "$install_capi" != no -a -n "$DOXYGEN"; then | | 125 | - if test "$install_capi" != no -a -n "$DOXYGEN"; then |
117 | - CAPITARGET="capi" | | 126 | - CAPITARGET="capi" |
118 | - else | | 127 | - else |
119 | - CAPITARGET="nodoc" | | 128 | - CAPITARGET="nodoc" |
120 | - fi | | 129 | - fi |
121 | + CAPITARGET="nodoc" | | 130 | + CAPITARGET="nodoc" |
122 | else | | 131 | else |
123 | RDOCTARGET="nodoc" | | 132 | RDOCTARGET="nodoc" |
124 | CAPITARGET="nodoc" | | 133 | CAPITARGET="nodoc" |