annotate src/mingw-cfitsio-1-fixes.patch @ 3568:f44dd0186692

allow native unixy builds of openblas to work on 64-bit systems
author John W. Eaton <jwe@octave.org>
date Wed, 19 Mar 2014 12:38:42 -0400
parents 23a5b6df3061
children 26e3a441d573
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3182
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 diff -ur cfitsio.orig/configure cfitsio/configure
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 --- cfitsio.orig/configure 2013-07-27 18:39:53 -0400
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
3 +++ cfitsio/configure 2013-07-27 19:01:46 -0400
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
4 @@ -1960,7 +1960,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
5 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
6 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
7 as_fn_error $? "failed to load site script $ac_site_file
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
8 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11 done
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 @@ -2101,7 +2101,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14 $as_echo "$ac_cv_build" >&6; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 case $ac_cv_build in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 *-*-*) ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
17 -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18 +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20 build=$ac_cv_build
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 ac_save_IFS=$IFS; IFS='-'
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22 @@ -2134,7 +2134,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 $as_echo "$ac_cv_host" >&6; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24 case $ac_cv_host in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 *-*-*) ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
27 +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
28 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
29 host=$ac_cv_host
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
30 ac_save_IFS=$IFS; IFS='-'
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
31 @@ -2167,7 +2167,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
32 $as_echo "$ac_cv_target" >&6; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
33 case $ac_cv_target in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
34 *-*-*) ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
35 -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
36 +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
37 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
38 target=$ac_cv_target
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
39 ac_save_IFS=$IFS; IFS='-'
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
40 @@ -2337,7 +2337,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
41 EXT="dec"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
42 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
43 *)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
44 - echo "cfitsio: == Don't know what do do with $host"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
45 + echo "cfitsio: == X Don't know what do do with $host"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
46 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
47 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
48
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
49 @@ -2691,7 +2691,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
50 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
51 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
52 as_fn_error $? "no acceptable C compiler found in \$PATH
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
53 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
54 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
55
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
56 # Provide some information about the compiler.
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
57 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
58 @@ -2806,7 +2806,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
59 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
60 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
61 as_fn_error 77 "C compiler cannot create executables
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
62 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
63 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
64 else
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
65 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
66 $as_echo "yes" >&6; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
67 @@ -2849,7 +2849,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
68 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
69 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
70 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
71 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
72 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
73 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
74 rm -f conftest conftest$ac_cv_exeext
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
75 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
76 @@ -2908,7 +2908,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
77 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
78 as_fn_error $? "cannot run C compiled programs.
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
79 If you meant to cross compile, use \`--host'.
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
80 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
81 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
82 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
83 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
84 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
85 @@ -2960,7 +2960,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
86 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
87 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
88 as_fn_error $? "cannot compute suffix of object files: cannot compile
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
89 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
90 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
91 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
92 rm -f conftest.$ac_cv_objext conftest.$ac_ext
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
93 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
94 @@ -3529,7 +3529,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
95 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
96 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
97 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
98 -See \`config.log' for more details" "$LINENO" 5; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
99 +See \`config.log' for more details" "$LINENO" 5 ; }
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
100 fi
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
101
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
102 ac_ext=c
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
103 @@ -3968,6 +3968,8 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
104 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
105
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
106 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
107 + *mingw*)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
108 + ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
109 *solaris*)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
110 if test "x$CFORTRANFLAGS" = x ; then
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
111 CFORTRANFLAGS="-Dsolaris"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
112 @@ -4081,6 +4083,10 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
113 CFITSIO_SHLIB_SONAME=""
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
114 lhea_shlib_cflags=
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
115 case $EXT in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
116 + mingw32)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
117 + SHLIB_LD="$CC -shared"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
118 + SHLIB_SUFFIX=".dll"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
119 + ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
120 cygwin)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
121 SHLIB_LD="$CC -shared"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
122 SHLIB_SUFFIX=".dll"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
123 @@ -5255,7 +5261,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
124 case $ac_config_target in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
125 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
126
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
127 - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
128 + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
129 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
130 done
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
131
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
132 @@ -5463,7 +5469,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
133 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
134 case $ac_mode$ac_tag in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
135 :[FHL]*:*);;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
136 - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
137 + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
138 :[FH]-) ac_tag=-:-;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
140 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
141 @@ -5491,7 +5497,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
142 [\\/$]*) false;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
144 esac ||
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
145 - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
146 + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
147 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
148 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
149 as_fn_append ac_file_inputs " '$ac_f'"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
150 @@ -5518,7 +5524,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
151
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
152 case $ac_tag in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
153 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
154 - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
155 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
156 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
157 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
158 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
159 @@ -6425,7 +6431,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
160 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
161 "cfitsio.pc") CONFIG_FILES="$CONFIG_FILES cfitsio.pc" ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
162
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
163 - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
164 + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
165 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
166 done
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
167
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
168 @@ -6633,7 +6639,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
169 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
170 case $ac_mode$ac_tag in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
171 :[FHL]*:*);;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
172 - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
173 + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
174 :[FH]-) ac_tag=-:-;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
176 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
177 @@ -6661,7 +6667,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
178 [\\/$]*) false;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
179 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
180 esac ||
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
181 - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
182 + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
183 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
185 as_fn_append ac_file_inputs " '$ac_f'"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
186 @@ -6688,7 +6694,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
187
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
188 case $ac_tag in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
189 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
190 - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
191 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
192 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
193 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
194 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
195 diff -ur cfitsio.orig/configure.in cfitsio/configure.in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
196 --- cfitsio.orig/configure.in 2013-07-27 18:39:53 -0400
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
197 +++ cfitsio/configure.in 2013-07-27 19:01:32 -0400
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
198 @@ -141,7 +141,7 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
199 EXT="dec"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
200 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
201 *)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
202 - echo "cfitsio: == Don't know what do do with $host"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
203 + echo "cfitsio: == X Don't know what do do with $host"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
204 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
205 esac
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
206
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
207 @@ -286,6 +286,8 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
208 AC_DEFINE(_LARGEFILE_SOURCE)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
209 AC_DEFINE(_FILE_OFFSET_BITS,64)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
210 ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
211 + *mingw*)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
212 + ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
213 *solaris*)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
214 if test "x$CFORTRANFLAGS" = x ; then
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
215 CFORTRANFLAGS="-Dsolaris"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
216 @@ -352,6 +354,10 @@
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
217 CFITSIO_SHLIB_SONAME=""
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
218 lhea_shlib_cflags=
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
219 case $EXT in
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
220 + mingw32)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
221 + SHLIB_LD="$CC -shared"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
222 + SHLIB_SUFFIX=".dll"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
223 + ;;
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
224 cygwin)
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
225 SHLIB_LD="$CC -shared"
23a5b6df3061 Update cfitsio for mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
226 SHLIB_SUFFIX=".dll"