Skip to content

Commit 7fc8468

Browse files
authored
pnetcdf debug: Patch file for configure
[skip ci]
1 parent 94f6fe7 commit 7fc8468

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
--- configure.orig 2025-07-31 15:25:30
2+
+++ configure 2025-12-02 14:56:33
3+
@@ -39791,10 +39791,11 @@
4+
end
5+
EOF
6+
ac_cv_ctype_fortran=no
7+
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT1_T\" is " >&5
8+
-printf %s "checking if Fortran \"$NF_INT1_T\" is ... " >&6; }
9+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 555 if Fortran \"$NF_INT1_T\" is \n" >&5
10+
+printf %s "checking 666 if Fortran \"$NF_INT1_T\" is ... \n" >&6; }
11+
for ctype in "signed char" short int long; do
12+
- cat >conftest.c <<EOF
13+
+ printf %s " check ctype = $ctype \n" >&6
14+
+ cat >conftest.c <<EOF
15+
int $FCALLSCSUB($ctype values[4])
16+
{
17+
return(values[1] != -2 || values[2] != -3);
18+
@@ -39802,26 +39803,34 @@
19+
EOF
20+
doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c'
21+
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
22+
+ printf %s " eval compile -c conftest.c\n" >&6
23+
(eval $doit) 2>&5
24+
ac_status=$?
25+
+ printf %s " ac_status = $ac_status \n" >&6
26+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27+
test $ac_status = 0; }; then
28+
doit='$FC ${FFLAGS} -c conftestf.f'
29+
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
30+
+ printf %s " eval compile -c conftestf.f\n" >&6
31+
(eval $doit) 2>&5
32+
ac_status=$?
33+
+ printf %s " ac_status = $ac_status \n" >&6
34+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35+
test $ac_status = 0; }; then
36+
doit='$FC -o conftest ${FFLAGS} ${FLDFLAGS} conftestf.o conftest.o ${LDFLAGS} ${LIBS}'
37+
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
38+
+ printf %s " eval link ./conftest using \$FC \n" >&6
39+
(eval $doit) 2>&5
40+
ac_status=$?
41+
+ printf %s " ac_status = $ac_status \n" >&6
42+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43+
test $ac_status = 0; }; then
44+
doit=./conftest
45+
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
46+
+ printf %s " eval ./conftest\n" >&6
47+
(eval $doit) 2>&5
48+
ac_status=$?
49+
+ printf %s " ac_status = $ac_status \n" >&6
50+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51+
test $ac_status = 0; }; then
52+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$ctype\" in C" >&5

0 commit comments

Comments
 (0)