1- $NetBSD: patch-configure,v 1.1 2016/11/16 13:13:44 fhajny Exp $
1+ $NetBSD: patch-configure,v 1.2 2026/01/06 16:06:16 ryoon Exp $
22
33* Improve compatibility
4+ * Define return type for functions to fix GCC 14.
45
56--- configure.orig 2011-03-31 19:08:36.000000000 +0000
67+++ configure
7- @@ -3234,7 +3234,7 @@ fi
8+ @@ -1617,6 +1617,7 @@ cat > conftest.$ac_ext << EOF
9+ #line 1618 "configure"
10+ #include "confdefs.h"
11+
12+ +int
13+ main(){return(0);}
14+ EOF
15+ if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16+ @@ -2262,6 +2263,7 @@ cat > conftest.$ac_ext << EOF
17+ #line 2263 "configure"
18+ #include "confdefs.h"
19+
20+ +int
21+ main(){return(0);}
22+ EOF
23+ if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24+ @@ -3234,7 +3236,7 @@ fi
825
926 echo "$ac_t""$ac_cv_have_std__Throw" 1>&6
1027
@@ -13,7 +30,16 @@ $NetBSD: patch-configure,v 1.1 2016/11/16 13:13:44 fhajny Exp $
1330 echo $ac_n "checking for |class __declspec(dllimport) exception| bug""... $ac_c" 1>&6
1431 echo "configure:3240: checking for |class __declspec(dllimport) exception| bug" >&5
1532 if eval "test \"`echo '$''{'ac_cv_have_dllimport_exception_bug'+set}'`\" = set"; then
16- @@ -8093,6 +8093,12 @@ EOF
33+ @@ -3471,7 +3473,7 @@ set dummy $CC; ac_cc="`echo $2 |
34+ if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
35+ echo $ac_n "(cached) $ac_c" 1>&6
36+ else
37+ - echo 'foo(){}' > conftest.c
38+ + echo 'int foo(){}' > conftest.c
39+ # Make sure it works both with $CC and with simple cc.
40+ # We do the test twice because some compilers refuse to overwrite an
41+ # existing .o file with -o, though they will create one.
42+ @@ -8093,6 +8095,12 @@ EOF
1743 EOF
1844
1945 ;;
@@ -26,3 +52,19 @@ $NetBSD: patch-configure,v 1.1 2016/11/16 13:13:44 fhajny Exp $
2652 *-gnu*)
2753 cat >> confdefs.h <<\EOF
2854 #define AVMPLUS_UNIX 1
55+ @@ -11047,6 +11055,7 @@ else
56+ #line 11048 "configure"
57+ #include "confdefs.h"
58+
59+ +int
60+ main()
61+ {
62+ char c0 = 0x40, c1 = 0x80, c2 = 0x81;
63+ @@ -13592,6 +13601,7 @@ else
64+ #line 13593 "configure"
65+ #include "confdefs.h"
66+ #include <stdio.h>
67+ +int
68+ main()
69+ {
70+ FILE *f=fopen("conftestval", "w");
0 commit comments