1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
From upstream fossil repo, extracted via git, dropping configure.ac for amalgamation
From: sandro <sandro>
Date: Sat, 21 Jan 2012 16:53:28 +0000
Subject: [PATCH] fixing the ./configure script: --enable-geocallbacks=no is
the new default and fixing some flaws for
--enable-freexl=no
---
configure | 20 ++++++++++----------
configure.ac | 20 ++++++++++----------
src/shapefiles/shapefiles.c | 2 ++
4 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/configure b/configure
index e8cf620..917bfca 100755
--- a/configure
+++ b/configure
@@ -1410,7 +1410,7 @@ Optional Features:
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-mathsql enables SQL math functions [default=yes]
- --enable-geocallbacks enables geometry callbacks [default=yes]
+ --enable-geocallbacks enables geometry callbacks [default=no]
--enable-proj enables PROJ.4 inclusion [default=yes]
--enable-geos enables GEOS inclusion [default=yes]
--enable-geosadvanced enables GEOS advanced features [default=yes]
@@ -16980,7 +16980,7 @@ ac_config_files="$ac_config_files Makefile src/Makefile src/headers/Makefile src
if test "${enable_mathsql+set}" = set; then :
enableval=$enable_mathsql;
else
- mathsql=yes
+ enable_mathsql=yes
fi
if test x"$enable_mathsql" != "xno"; then
@@ -16998,10 +16998,10 @@ fi
if test "${enable_geocallbacks+set}" = set; then :
enableval=$enable_geocallbacks;
else
- geocallbacks=yes
+ enable_geocallbacks=no
fi
-if test x"$enable_geocallbacks" != "xno"; then
+if test x"$enable_geocallbacks" == "xyes"; then
OMIT_GEOCALLBACKS_FLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_rtree_geometry_callback in -lsqlite3" >&5
$as_echo_n "checking for sqlite3_rtree_geometry_callback in -lsqlite3... " >&6; }
@@ -17063,7 +17063,7 @@ fi
if test "${enable_proj+set}" = set; then :
enableval=$enable_proj;
else
- proj=yes
+ enable_proj=yes
fi
if test x"$enable_proj" != "xno"; then
@@ -17153,7 +17153,7 @@ fi
if test "${enable_geos+set}" = set; then :
enableval=$enable_geos;
else
- geos=yes
+ enable_geos=yes
fi
if test x"$enable_geos" != "xno"; then
@@ -17237,7 +17237,7 @@ fi
if test "${enable_geosadvanced+set}" = set; then :
enableval=$enable_geosadvanced;
else
- geosadvanced=yes
+ enable_geosadvanced=yes
fi
if test x"$enable_geosadvanced" != "xno"; then
@@ -17316,7 +17316,7 @@ fi
if test "${enable_iconv+set}" = set; then :
enableval=$enable_iconv;
else
- geos=yes
+ enable_iconv=yes
fi
if test x"$enable_iconv" != "xno"; then
@@ -17579,7 +17579,7 @@ fi
if test "${enable_freexl+set}" = set; then :
enableval=$enable_freexl;
else
- proj=yes
+ enable_freexl=yes
fi
if test x"$enable_freexl" != "xno"; then
@@ -17669,7 +17669,7 @@ fi
if test "${enable_epsg+set}" = set; then :
enableval=$enable_epsg;
else
- epsg=yes
+ enable_epsg=yes
fi
if test x"$enable_epsg" != "xno"; then
diff --git a/configure.ac b/configure.ac
index 216cc9f..69cb6c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,7 +79,7 @@ AC_CONFIG_FILES([Makefile \
#
AC_ARG_ENABLE(mathsql, [AS_HELP_STRING(
[--enable-mathsql], [enables SQL math functions [default=yes]])],
- [], [mathsql=yes])
+ [], [enable_mathsql=yes])
if test x"$enable_mathsql" != "xno"; then
OMIT_MATHSQL_FLAGS=
else
@@ -92,9 +92,9 @@ AC_SUBST(OMIT_MATHSQL_FLAGS)
# --enable-geocallbacks
#
AC_ARG_ENABLE(geocallbacks, [AS_HELP_STRING(
- [--enable-geocallbacks], [enables geometry callbacks [default=yes]])],
- [], [geocallbacks=yes])
-if test x"$enable_geocallbacks" != "xno"; then
+ [--enable-geocallbacks], [enables geometry callbacks [default=no]])],
+ [], [enable_geocallbacks=no])
+if test x"$enable_geocallbacks" == "xyes"; then
OMIT_GEOCALLBACKS_FLAGS=
AC_CHECK_LIB(sqlite3,sqlite3_rtree_geometry_callback,,AC_MSG_ERROR([obsolete 'libsqlite3' (< v.3.7.3). please retry specifying: --disable-geocallbacks]),-lm)
else
@@ -108,7 +108,7 @@ AC_SUBST(OMIT_GEOCALLBACKS_FLAGS)
#
AC_ARG_ENABLE(proj, [AS_HELP_STRING(
[--enable-proj], [enables PROJ.4 inclusion [default=yes]])],
- [], [proj=yes])
+ [], [enable_proj=yes])
if test x"$enable_proj" != "xno"; then
OMIT_PROJ_FLAGS=
AC_CHECK_HEADERS(proj_api.h,, [AC_MSG_ERROR([cannot find proj_api.h, bailing out])])
@@ -124,7 +124,7 @@ AC_SUBST(OMIT_PROJ_FLAGS)
#
AC_ARG_ENABLE(geos, [AS_HELP_STRING(
[--enable-geos], [enables GEOS inclusion [default=yes]])],
- [], [geos=yes])
+ [], [enable_geos=yes])
if test x"$enable_geos" != "xno"; then
OMIT_GEOS_FLAGS=
AC_CHECK_HEADERS(geos_c.h,, [AC_MSG_ERROR([cannot find geos_c.h, bailing out])])
@@ -134,7 +134,7 @@ if test x"$enable_geos" != "xno"; then
#
AC_ARG_ENABLE(geosadvanced, [AS_HELP_STRING(
[--enable-geosadvanced], [enables GEOS advanced features [default=yes]])],
- [], [geosadvanced=yes])
+ [], [enable_geosadvanced=yes])
if test x"$enable_geosadvanced" != "xno"; then
GEOSADVANCED_FLAGS=-DGEOS_ADVANCED
AC_SEARCH_LIBS(GEOSCoveredBy,geos_c,,AC_MSG_ERROR([obsolete 'libgeos_c' (< v.3.3.0). please retry specifying: --disable-geosadvanced.]),-lm -lgeos)
@@ -152,7 +152,7 @@ AC_SUBST(OMIT_GEOS_FLAGS)
#
AC_ARG_ENABLE(iconv, [AS_HELP_STRING(
[--enable-iconv], [enables ICONV inclusion [default=yes]])],
- [], [geos=yes])
+ [], [enable_iconv=yes])
if test x"$enable_iconv" != "xno"; then
OMIT_ICONV_FLAGS=
AC_CHECK_HEADERS(iconv.h,, [AC_MSG_ERROR([cannot find iconv.h, bailing out])])
@@ -172,7 +172,7 @@ AC_SUBST(OMIT_ICONV_FLAGS)
#
AC_ARG_ENABLE(freexl, [AS_HELP_STRING(
[--enable-freexl], [enables FreeXL inclusion [default=yes]])],
- [], [proj=yes])
+ [], [enable_freexl=yes])
if test x"$enable_freexl" != "xno"; then
OMIT_FREEXL_FLAGS=
AC_CHECK_HEADERS(freexl.h,, [AC_MSG_ERROR([cannot find freexl.h, bailing out])])
@@ -188,7 +188,7 @@ AC_SUBST(OMIT_FREEXL_FLAGS)
#
AC_ARG_ENABLE(epsg, [AS_HELP_STRING(
[--enable-epsg], [enables full EPSG dataset support [default=yes]])],
- [], [epsg=yes])
+ [], [enable_epsg=yes])
if test x"$enable_epsg" != "xno"; then
OMIT_EPSG_FLAGS=
else
diff --git a/src/shapefiles/shapefiles.c b/src/shapefiles/shapefiles.c
index 4bf5fd0..09e3cd3 100644
--- a/src/shapefiles/shapefiles.c
+++ b/src/shapefiles/shapefiles.c
@@ -62,7 +62,9 @@ the terms of any one of the MPL, the GPL or the LGPL.
#include <spatialite/gaiageo.h>
#include <spatialite.h>
+#ifndef OMIT_FREEXL
#include <freexl.h>
+#endif
#if defined(_WIN32) && !defined(__MINGW32__)
#define strcasecmp _stricmp
--
1.7.9.1
|