Changeset 521 for trunk/zoo-project/zoo-kernel/configure.ac
- Timestamp:
- Oct 31, 2014, 5:37:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/configure.ac
r520 r521 249 249 # Check headers file 250 250 CPPFLAGS_SAVE="$CPPFLAGS" 251 CPPFLAGS="$X ML2_CPPFLAGS"251 CPPFLAGS="$XSLT_CPPFLAGS" 252 252 AC_CHECK_HEADERS([libxslt/xslt.h libxslt/xsltInternals.h libxslt/transform.h libxslt/xsltutils.h], 253 253 [], [AC_MSG_ERROR([could not find headers include related to libxlst])]) 254 254 255 # Ensure we can link against libxslt256 LIBS_SAVE="$LIBS"257 LIBS="$XSLT_LDFLAGS"258 259 255 AC_SUBST([XSLT_CPPFLAGS]) 260 256 AC_SUBST([XSLT_LDFLAGS]) … … 262 258 263 259 264 265 260 # =========================================================================== 261 # Detect if libgeos is installed 262 # =========================================================================== 263 264 AC_ARG_WITH([geosconfig], 265 [AS_HELP_STRING([--with-geosconfig=FILE], [specify an alternative geos-config file])], 266 [GEOSCONFIG="$withval"], [GEOSCONFIG=""]) 267 268 if test "x$GEOSCONFIG" = "x"; then 269 # GEOSCONFIG was not specified, so search within the current path 270 AC_PATH_PROG([GEOSCONFIG], [geos-config]) 271 272 # If we couldn't find geos-config, display a warning 273 if test "x$GEOSCONFIG" = "x"; then 274 AC_MSG_WARN([could not find geos-config from libgeos within the current path. You may need to try re-running configure with a --with-geosconfig parameter.]) 275 fi 276 else 277 # GEOSCONFIG was specified; display a message to the user 278 if test "x$GEOSCONFIG" = "xyes"; then 279 AC_MSG_WARN([you must specify a parameter to --with-geosconfig, e.g. --with-geosconfig=/path/to/geos-config]) 280 else 281 if test -f $GEOSCONFIG; then 282 AC_MSG_RESULT([Using user-specified geos-config file: $GEOSCONFIG]) 283 else 284 AC_MSG_ERROR([the user-specified geos-config file $GEOSCONFIG does not exist]) 285 fi 286 fi 287 fi 288 289 GEOS_LDFLAGS=`$GEOSCONFIG --libs` 290 GEOS_CPPFLAGS=`$GEOSCONFIG --cflags` 291 292 # Check headers file 293 CPPFLAGS_SAVE="$CPPFLAGS" 294 CPPFLAGS="$GEOS_CPPFLAGS" 295 AC_CHECK_HEADERS([geos_c.h], 296 [], [AC_MSG_WARN([could not find headers include related to libgeos])]) 297 298 AC_SUBST([GEOS_CPPFLAGS]) 299 AC_SUBST([GEOS_LDFLAGS]) 300 301 302 # =========================================================================== 303 # Detect if cgal is installed 304 # =========================================================================== 305 306 AC_ARG_WITH([cgal], 307 [AS_HELP_STRING([--with-cgal=PATH], [specify an alternative location for CGAL setup])], 308 [CGALPATH="$withval"], [CGALPATH="/usr"]) 309 310 311 # Check headers file 312 CPPFLAGS_SAVE="$CPPFLAGS" 313 CPPFLAGS="$CGAL_CPPFLAGS" 314 AC_CHECK_HEADERS([CGAL/Delaunay_triangulation_2.h], 315 [], [AC_MSG_WARN([could not find headers include related to libgeos])]) 316 317 # Extract the linker and include flags 318 CGAL_LDFLAGS="-L$CGALPATH/lib" 319 CGAL_CPPFLAGS="-I$CGALPATH/include" 320 321 322 AC_SUBST([CGAL_CPPFLAGS]) 323 AC_SUBST([CGAL_LDFLAGS]) 266 324 #============================================================================ 267 325 # Detect if mapserver is installed
Note: See TracChangeset
for help on using the changeset viewer.