annotate src/of-netcdf-1-cross-fixes.patch @ 3901:5f92c505c86a

of-netcdf: update patch for native compile * src/of-netcdf-1-cross-fixes.patch: update
author John Donoghue <john.donoghue@ieee.org>
date Mon, 13 Apr 2015 21:36:27 -0400
parents abf9c5216a21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
1 diff -ur netcdf.orig/src/configure netcdf/src/configure
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
2 --- netcdf.orig/src/configure 2015-04-13 21:29:33.000000000 -0400
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
3 +++ netcdf/src/configure 2015-04-13 21:31:02.000000000 -0400
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
4 @@ -601,6 +601,7 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
5 mpath
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
6 subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
7 ver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
8 +OCTAVE_CONFIG
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
9 MKOCTFILE
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
10 OBJEXT
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
11 EXEEXT
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
12 @@ -2610,6 +2611,46 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
13 test -z "$MKOCTFILE" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no mkoctfile found on path" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
14 $as_echo "$as_me: WARNING: no mkoctfile found on path" >&2;}
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
15
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
16 +# Extract the first word of "octave-config", so it can be a program name with args.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
17 +set dummy octave-config; ac_word=$2
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
18 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
19 +$as_echo_n "checking for $ac_word... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
20 +if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
21 + $as_echo_n "(cached) " >&6
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
22 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
23 + if test -n "$OCTAVE_CONFIG"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
24 + ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
25 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
26 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
27 +for as_dir in $PATH
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
28 +do
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
29 + IFS=$as_save_IFS
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
30 + test -z "$as_dir" && as_dir=.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
31 + for ac_exec_ext in '' $ac_executable_extensions; do
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
32 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
33 + ac_cv_prog_OCTAVE_CONFIG="octave-config"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
34 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
35 + break 2
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
36 + fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
37 +done
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
38 + done
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
39 +IFS=$as_save_IFS
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
40 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
41 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
42 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
43 +OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
44 +if test -n "$OCTAVE_CONFIG"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
45 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
46 +$as_echo "$OCTAVE_CONFIG" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
47 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
48 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
49 +$as_echo "no" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
50 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
51 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
52 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
53 +test -z "$OCTAVE_CONFIG" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no octave-config found on path" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
54 +$as_echo "$as_me: WARNING: no octave-config found on path" >&2;}
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
55 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
56
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
57
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
58
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
59 @@ -2796,6 +2837,8 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
60
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
61
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
62
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
63 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
64 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
65 # Extract the first word of "octave", so it can be a program name with args.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
66 set dummy octave; ac_word=$2
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
67 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
68 @@ -2833,25 +2876,25 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
69 fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
70
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
71
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
72 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in Octave" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
73 -$as_echo_n "checking for OCTAVE_VERSION in Octave... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
74 -OCTAVE_VERSION=`echo "disp(OCTAVE_VERSION)" | $OCTAVE -qf`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
75 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VERSION in octave-config" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
76 +$as_echo_n "checking for VERSION in octave-config... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
77 +OCTAVE_VERSION=`$OCTAVE_CONFIG -p VERSION`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
78 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
79 $as_echo "$OCTAVE_VERSION" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
80
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
81
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
82
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
83 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave_config_info('canonical_host_type') in Octave" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
84 -$as_echo_n "checking for octave_config_info('canonical_host_type') in Octave... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
85 -canonical_host_type=`echo "disp(octave_config_info('canonical_host_type'))" | $OCTAVE -qf`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
86 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CANONICAL_HOST_TYPE in octave-config" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
87 +$as_echo_n "checking for CANONICAL_HOST_TYPE in octave-config... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
88 +canonical_host_type=`$OCTAVE_CONFIG -p CANONICAL_HOST_TYPE`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
89 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $canonical_host_type" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
90 $as_echo "$canonical_host_type" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
91
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
92
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
93
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
94 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave_config_info('SHLEXT') in Octave" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
95 -$as_echo_n "checking for octave_config_info('SHLEXT') in Octave... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
96 -SHLEXT=`echo "disp(octave_config_info('SHLEXT'))" | $OCTAVE -qf`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
97 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHLEXT in octave-config" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
98 +$as_echo_n "checking for SHLEXT in octave-config... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
99 +SHLEXT=`$OCTAVE_CONFIG -p SHLEXT`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLEXT" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
101 $as_echo "$SHLEXT" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
102
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
103 @@ -3020,8 +3063,9 @@
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
104 esac
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
105
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
106
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
107 -# Extract the first word of "nc-config", so it can be a program name with args.
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
108 -set dummy nc-config; ac_word=$2
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
109 +if test -n "$ac_tool_prefix"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
110 + # Extract the first word of "${ac_tool_prefix}nc-config", so it can be a program name with args.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
111 +set dummy ${ac_tool_prefix}nc-config; ac_word=$2
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
113 $as_echo_n "checking for $ac_word... " >&6; }
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
114 if ${ac_cv_prog_NC_CONFIG+:} false; then :
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
115 @@ -3037,7 +3081,7 @@
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
116 test -z "$as_dir" && as_dir=.
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
117 for ac_exec_ext in '' $ac_executable_extensions; do
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
119 - ac_cv_prog_NC_CONFIG="nc-config"
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
120 + ac_cv_prog_NC_CONFIG="${ac_tool_prefix}nc-config"
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
122 break 2
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
123 fi
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
124 @@ -3057,12 +3101,66 @@
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
125 fi
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
126
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
127
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
128 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
129 +if test -z "$ac_cv_prog_NC_CONFIG"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
130 + ac_ct_NC_CONFIG=$NC_CONFIG
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
131 + # Extract the first word of "nc-config", so it can be a program name with args.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
132 +set dummy nc-config; ac_word=$2
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
133 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
134 +$as_echo_n "checking for $ac_word... " >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
135 +if ${ac_cv_prog_ac_ct_NC_CONFIG+:} false; then :
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
136 + $as_echo_n "(cached) " >&6
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
137 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
138 + if test -n "$ac_ct_NC_CONFIG"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
139 + ac_cv_prog_ac_ct_NC_CONFIG="$ac_ct_NC_CONFIG" # Let the user override the test.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
140 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
141 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
142 +for as_dir in $PATH
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
143 +do
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
144 + IFS=$as_save_IFS
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
145 + test -z "$as_dir" && as_dir=.
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
146 + for ac_exec_ext in '' $ac_executable_extensions; do
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
147 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
148 + ac_cv_prog_ac_ct_NC_CONFIG="nc-config"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
149 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
150 + break 2
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
151 + fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
152 +done
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
153 + done
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
154 +IFS=$as_save_IFS
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
155 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
156 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
157 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
158 +ac_ct_NC_CONFIG=$ac_cv_prog_ac_ct_NC_CONFIG
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
159 +if test -n "$ac_ct_NC_CONFIG"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
160 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NC_CONFIG" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
161 +$as_echo "$ac_ct_NC_CONFIG" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
162 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
163 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
164 +$as_echo "no" >&6; }
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
165 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
166 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
167 + if test "x$ac_ct_NC_CONFIG" = x; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
168 + NC_CONFIG="nc-config"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
169 + else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
170 + case $cross_compiling:$ac_tool_warned in
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
171 +yes:)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
172 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
173 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
174 +ac_tool_warned=yes ;;
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
175 +esac
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
176 + NC_CONFIG=$ac_ct_NC_CONFIG
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
177 + fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
178 +else
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
179 + NC_CONFIG="$ac_cv_prog_NC_CONFIG"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
180 +fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
181 +
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
182 if test -z "$NC_CONFIG"; then
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
183 as_fn_error 1 "nc-config not found" "$LINENO" 5;
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
184 fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
185
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
186 -NETCDF_LIBS="$NETCDF_LIBS `nc-config --libs`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
187 -NETCDF_CFLAGS="$NETCDF_CFLAGS `nc-config --cflags`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
188 +NETCDF_LIBS="$NETCDF_LIBS `$NC_CONFIG --libs`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
189 +NETCDF_CFLAGS="$NETCDF_CFLAGS `$NC_CONFIG --cflags`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
190
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
191
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
192 CONFIGURE_OUTPUTS="Makeconf"
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
193 @@ -3082,8 +3180,9 @@
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
194 headers: $includedir
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
195
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
196 octave-forge is configured with
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
197 - octave: $OCTAVE (version $OCTAVE_VERSION)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
198 - mkoctfile: $MKOCTFILE for Octave $subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
199 + octave: $OCTAVE (version $OCTAVE_VERSION)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
200 + mkoctfile: $MKOCTFILE for Octave $subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
201 + octave-config: $OCTAVE_CONFIG for Octave $subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
202 netCDF compiler flags: $NETCDF_CFLAGS
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
203 netCDF libraries: $NETCDF_LIBS"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
204 ac_config_files="$ac_config_files $CONFIGURE_OUTPUTS"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
205 diff -ur netcdf.orig/src/configure.base netcdf/src/configure.base
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
206 --- netcdf.orig/src/configure.base 2015-04-13 21:29:33.000000000 -0400
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
207 +++ netcdf/src/configure.base 2015-04-13 21:30:41.000000000 -0400
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
208 @@ -50,6 +50,9 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
209 AC_CHECK_PROG(MKOCTFILE,mkoctfile,mkoctfile)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
210 test -z "$MKOCTFILE" && AC_MSG_WARN([no mkoctfile found on path])
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
211
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
212 +AC_CHECK_PROG(OCTAVE_CONFIG,octave-config,octave-config)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
213 +test -z "$OCTAVE_CONFIG" && AC_MSG_WARN([no octave-config found on path])
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
214 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
215 AC_SUBST(ver)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
216 AC_SUBST(subver)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
217 AC_SUBST(mpath)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
218 @@ -252,6 +255,13 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
219 AC_SUBST($2)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
220 ])
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
221
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
222 +AC_DEFUN(OCTAVE_CONFIG_EVAL,
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
223 +[AC_MSG_CHECKING([for $1 in octave-config])
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
224 +$2=`$OCTAVE_CONFIG -p $1`
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
225 +AC_MSG_RESULT($$2)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
226 +AC_SUBST($2)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
227 +])
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
228 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
229 dnl Check status of an octave variable
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
230 dnl
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
231 dnl OCTAVE_CHECK_EXIST(variable,action_if_true,action_if_false)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
232 @@ -269,13 +279,13 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
233
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
234 dnl should check that $(OCTAVE) --version matches $(MKOCTFILE) --version
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
235 AC_CHECK_PROG(OCTAVE,octave,octave)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
236 -OCTAVE_EVAL(OCTAVE_VERSION,OCTAVE_VERSION)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
237 +OCTAVE_CONFIG_EVAL(VERSION,OCTAVE_VERSION)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
238
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
239 dnl grab canonical host type so we can write system specific install stuff
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
240 -OCTAVE_EVAL(octave_config_info('canonical_host_type'),canonical_host_type)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
241 +OCTAVE_CONFIG_EVAL(CANONICAL_HOST_TYPE,canonical_host_type)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
242
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
243 dnl grab SHLEXT from octave config
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
244 -OCTAVE_EVAL(octave_config_info('SHLEXT'),SHLEXT)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
245 +OCTAVE_CONFIG_EVAL(SHLEXT,SHLEXT)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
246
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
247 AC_PROG_LN_S
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
248
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
249 @@ -310,13 +320,14 @@
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
250
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
251 dnl checking for nc-config
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
252
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
253 -AC_CHECK_PROG(NC_CONFIG, nc-config, nc-config)
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
254 +dnl AC_CHECK_PROG(NC_CONFIG, nc-config, nc-config)
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
255 +AC_CHECK_TOOL(NC_CONFIG, nc-config, nc-config)
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
256 if test -z "$NC_CONFIG"; then
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
257 AC_MSG_ERROR([nc-config not found], 1);
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
258 fi
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
259
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
260 -NETCDF_LIBS="$NETCDF_LIBS `nc-config --libs`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
261 -NETCDF_CFLAGS="$NETCDF_CFLAGS `nc-config --cflags`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
262 +NETCDF_LIBS="$NETCDF_LIBS `$NC_CONFIG --libs`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
263 +NETCDF_CFLAGS="$NETCDF_CFLAGS `$NC_CONFIG --cflags`"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
264
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
265
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
266 CONFIGURE_OUTPUTS="Makeconf"
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
267 @@ -336,7 +347,8 @@
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
268 headers: $includedir
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
269
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
270 octave-forge is configured with
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
271 - octave: $OCTAVE (version $OCTAVE_VERSION)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
272 - mkoctfile: $MKOCTFILE for Octave $subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
273 + octave: $OCTAVE (version $OCTAVE_VERSION)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
274 + mkoctfile: $MKOCTFILE for Octave $subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
275 + octave-config: $OCTAVE_CONFIG for Octave $subver
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
276 netCDF compiler flags: $NETCDF_CFLAGS
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
277 netCDF libraries: $NETCDF_LIBS"
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
278 diff -ur netcdf.orig/src/Makeconf.in netcdf/src/Makeconf.in
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
279 --- netcdf.orig/src/Makeconf.in 2015-04-13 21:29:33.000000000 -0400
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
280 +++ netcdf/src/Makeconf.in 2015-04-13 21:29:55.000000000 -0400
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
281 @@ -53,6 +53,8 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
282 OCTAVE_VERSION = @OCTAVE_VERSION@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
283 MKOCTFILE = @MKOCTFILE@ -DHAVE_OCTAVE_$(ver) -v
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
284 SHLEXT = @SHLEXT@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
285 +NC_CONFIG = @NC_CONFIG@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
286 +OCTAVE_CONFIG = @OCTAVE_CONFIG@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
287
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
288 %.o: %.c ; $(MKOCTFILE) -c $<
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
289 %.o: %.f ; $(MKOCTFILE) -c $<
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
290 diff -ur netcdf.orig/src/Makefile netcdf/src/Makefile
3901
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
291 --- netcdf.orig/src/Makefile 2015-04-13 21:29:33.000000000 -0400
5f92c505c86a of-netcdf: update patch for native compile
John Donoghue <john.donoghue@ieee.org>
parents: 3898
diff changeset
292 +++ netcdf/src/Makefile 2015-04-13 21:29:55.000000000 -0400
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
293 @@ -1,10 +1,13 @@
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
294 -LIBS=$(shell nc-config --libs)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
295 -AWK=awk
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
296 -MKOCTFILE=mkoctfile
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
297 -OCTAVE=octave
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
298 -NCHEADER=$(shell nc-config --includedir)/netcdf.h
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
299 +sinclude Makeconf
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
300 +
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
301 +AWK ?= awk
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
302 +MKOCTFILE ?= mkoctfile
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
303 +OCTAVE ?= octave
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
304 +NC_CONFIG ?= nc-config
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
305 +NCHEADER=$(shell $(NC_CONFIG) --includedir)/netcdf.h
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
306 SRC=__netcdf__.cc
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
307 -CFLAGS=$(shell nc-config --cflags)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
308 +CFLAGS=$(shell $(NC_CONFIG) --cflags)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
309 +LIBS=$(shell $(NC_CONFIG) --libs)
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
310
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
311 all: __netcdf__.oct
abf9c5216a21 allow compile fo of-netcdf
John D
parents:
diff changeset
312