File: cross-build.patch

package info (click to toggle)
apache2 2.4.66-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 59,500 kB
  • sloc: ansic: 212,331; python: 13,830; perl: 11,307; sh: 7,258; php: 1,320; javascript: 1,314; awk: 749; makefile: 715; lex: 374; yacc: 161; xml: 2
file content (30 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
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
subject: cross build patch
author: Helmut Grohne <helmut@subdivi.de>

forwarded: no

Index: apache2-2.4.66/acinclude.m4
===================================================================
--- apache2-2.4.66.orig/acinclude.m4
+++ apache2-2.4.66/acinclude.m4
@@ -721,16 +721,9 @@ dnl Checks if the size of a void pointer
 dnl integer type.
 dnl
 AC_DEFUN([APACHE_CHECK_VOID_PTR_LEN], [
-
-AC_CACHE_CHECK([for void pointer length], [ap_cv_void_ptr_lt_long],
-[AC_TRY_RUN([
-int main(void)
-{
-    return sizeof(void *) < sizeof(long); 
-}], [ap_cv_void_ptr_lt_long=no], [ap_cv_void_ptr_lt_long=yes], 
-    [ap_cv_void_ptr_lt_long=yes])])
-
-if test "$ap_cv_void_ptr_lt_long" = "yes"; then
+AC_CHECK_SIZEOF([void *])
+AC_CHECK_SIZEOF([long])
+if test "$ac_cv_sizeof_void_p" -lt "$ac_cv_sizeof_long"; then
     AC_MSG_ERROR([Size of "void *" is less than size of "long"])
 fi
 ])