| @@ -1,91 +1,73 @@ | | | @@ -1,91 +1,73 @@ |
1 | $NetBSD: patch-configure,v 1.7 2014/08/21 04:51:08 dbj Exp $ | | 1 | $NetBSD: patch-configure,v 1.8 2015/05/28 05:30:51 wiz Exp $ |
2 | | | 2 | |
3 | --- configure.orig 2014-07-08 09:44:12.000000000 +0000 | | 3 | --- configure.orig 2015-05-20 09:29:21.000000000 +0000 |
4 | +++ configure | | 4 | +++ configure |
5 | @@ -4703,7 +4703,7 @@ else | | 5 | @@ -4709,7 +4709,7 @@ else |
6 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | | 6 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
7 | since some C++ compilers masquerading as C compilers | | 7 | since some C++ compilers masquerading as C compilers |
8 | incorrectly reject 9223372036854775807. */ | | 8 | incorrectly reject 9223372036854775807. */ |
9 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | | 9 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
10 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | | 10 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
11 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | | 11 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
12 | && LARGE_OFF_T % 2147483647 == 1) | | 12 | && LARGE_OFF_T % 2147483647 == 1) |
13 | ? 1 : -1]; | | 13 | ? 1 : -1]; |
14 | @@ -4749,7 +4749,7 @@ else | | 14 | @@ -4755,7 +4755,7 @@ else |
15 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | | 15 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
16 | since some C++ compilers masquerading as C compilers | | 16 | since some C++ compilers masquerading as C compilers |
17 | incorrectly reject 9223372036854775807. */ | | 17 | incorrectly reject 9223372036854775807. */ |
18 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | | 18 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
19 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | | 19 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
20 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | | 20 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
21 | && LARGE_OFF_T % 2147483647 == 1) | | 21 | && LARGE_OFF_T % 2147483647 == 1) |
22 | ? 1 : -1]; | | 22 | ? 1 : -1]; |
23 | @@ -4773,7 +4773,7 @@ rm -f core conftest.err conftest.$ac_obj | | 23 | @@ -4779,7 +4779,7 @@ rm -f core conftest.err conftest.$ac_obj |
24 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | | 24 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
25 | since some C++ compilers masquerading as C compilers | | 25 | since some C++ compilers masquerading as C compilers |
26 | incorrectly reject 9223372036854775807. */ | | 26 | incorrectly reject 9223372036854775807. */ |
27 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | | 27 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
28 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | | 28 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
29 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | | 29 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
30 | && LARGE_OFF_T % 2147483647 == 1) | | 30 | && LARGE_OFF_T % 2147483647 == 1) |
31 | ? 1 : -1]; | | 31 | ? 1 : -1]; |
32 | @@ -4818,7 +4818,7 @@ else | | 32 | @@ -4824,7 +4824,7 @@ else |
33 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | | 33 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
34 | since some C++ compilers masquerading as C compilers | | 34 | since some C++ compilers masquerading as C compilers |
35 | incorrectly reject 9223372036854775807. */ | | 35 | incorrectly reject 9223372036854775807. */ |
36 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | | 36 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
37 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | | 37 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
38 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | | 38 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
39 | && LARGE_OFF_T % 2147483647 == 1) | | 39 | && LARGE_OFF_T % 2147483647 == 1) |
40 | ? 1 : -1]; | | 40 | ? 1 : -1]; |
41 | @@ -4842,7 +4842,7 @@ rm -f core conftest.err conftest.$ac_obj | | 41 | @@ -4848,7 +4848,7 @@ rm -f core conftest.err conftest.$ac_obj |
42 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | | 42 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
43 | since some C++ compilers masquerading as C compilers | | 43 | since some C++ compilers masquerading as C compilers |
44 | incorrectly reject 9223372036854775807. */ | | 44 | incorrectly reject 9223372036854775807. */ |
45 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) | | 45 | -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
46 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | | 46 | +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
47 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | | 47 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
48 | && LARGE_OFF_T % 2147483647 == 1) | | 48 | && LARGE_OFF_T % 2147483647 == 1) |
49 | ? 1 : -1]; | | 49 | ? 1 : -1]; |
50 | @@ -4909,7 +4909,7 @@ rm -f core conftest.err conftest.$ac_obj | | 50 | @@ -17318,10 +17318,13 @@ int |
51 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
52 | /* end confdefs.h. */ | | | |
53 | | | | |
54 | -#if !(defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 3) | | | |
55 | +#if !(defined(__clang__) && __clang_major__ >= 3 && (__clang_major__ > 3 || __clang_minor__ >= 3)) | | | |
56 | #error Not a supported Clang compiler | | | |
57 | #endif | | | |
58 | | | | |
59 | @@ -4967,7 +4967,7 @@ rm -f core conftest.err conftest.$ac_obj | | | |
60 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
61 | /* end confdefs.h. */ | | | |
62 | | | | |
63 | -#if !(defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 3) | | | |
64 | +#if !(defined(__clang__) && __clang_major__ >= 3 && (__clang_major__ > 3 || __clang_minor__ >= 3)) | | | |
65 | #error Not a supported Clang++ compiler | | | |
66 | #endif | | | |
67 | | | | |
68 | @@ -17312,10 +17312,13 @@ int | | | |
69 | main () | | 51 | main () |
70 | { | | 52 | { |
71 | unsigned int major, minor, micro; | | 53 | unsigned int major, minor, micro; |
72 | + char *tmp_version; | | 54 | + char *tmp_version; |
73 | | | 55 | |
74 | fclose (fopen ("conf.glibtest", "w")); | | 56 | fclose (fopen ("conf.glibtest", "w")); |
75 | | | 57 | |
76 | - if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { | | 58 | - if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { |
77 | + /* HP/UX 9 (%@#!) writes to sscanf strings */ | | 59 | + /* HP/UX 9 (%@#!) writes to sscanf strings */ |
78 | + tmp_version = g_strdup("$min_glib_version"); | | 60 | + tmp_version = g_strdup("$min_glib_version"); |
79 | + if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { | | 61 | + if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { |
80 | printf("%s, bad version string\n", "$min_glib_version"); | | 62 | printf("%s, bad version string\n", "$min_glib_version"); |
81 | exit(1); | | 63 | exit(1); |
82 | } | | 64 | } |
83 | @@ -21110,7 +21113,7 @@ fi | | 65 | @@ -21217,7 +21220,7 @@ fi |
84 | | | 66 | |
85 | | | 67 | |
86 | # On some Linux/Unix platforms, shm_* may only be available if linking against librt | | 68 | # On some Linux/Unix platforms, shm_* may only be available if linking against librt |
87 | - if test "$os_win32" = "no"; then | | 69 | - if test "$os_win32" = "no"; then |
88 | + if test "$os_win32" = "no" && test "$os_openbsd" = "no" && test "$os_netbsd" = "no"; then | | 70 | + if test "$os_win32" = "no" && test "$os_openbsd" = "no" && test "$os_netbsd" = "no"; then |
89 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 | | 71 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
90 | $as_echo_n "checking for library containing shm_open... " >&6; } | | 72 | $as_echo_n "checking for library containing shm_open... " >&6; } |
91 | if ${ac_cv_search_shm_open+:} false; then : | | 73 | if ${ac_cv_search_shm_open+:} false; then : |