⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 GIS系统支持库Geospatial Data Abstraction Library代码.GDAL is a translator library for raster geospatial dat
💻 IN
字号:
dnl Disable configure caching ... it causes lots of hassles.define([AC_CACHE_LOAD], )define([AC_CACHE_SAVE], )dnl Process this file with autoconf to produce a configure script.AC_INIT(Makefile.in)dnl We require autoconf 2.52+ for libtool support on cygwin/mingw hostsAC_PREREQ(2.52)dnl Checks for programs.AC_PROG_CCAC_PROG_CXXAC_PROG_RANLIBAC_LD_SHAREDAC_COMPILER_PICAC_COMPILER_WFLAGSdnl ---------------------------------------------------------------------------dnl Find GDALdnl ---------------------------------------------------------------------------AC_ARG_WITH(gdal,[  --with-gdal[=PATH]        GDAL (PATH is path to gdal-config)],,)if test "$with_gdal" = "yes" -o "$with_gdal" = "" ; then  if test "`basename xx/$with_gdal`" = "gdal-config" ; then    GDAL_CONFIG="$with_gdal"  fi  if test -z "$GDAL_CONFIG" ; then    AC_PATH_PROG(GDAL_CONFIG, gdal-config, no)  fi  if test "$GDAL_CONFIG" = "no" ; then    AC_MSG_ERROR([couldn't find gdal-config])  fielif test -n "$with_gdal" -a "$with_gdal" != "no" ; then  GDAL_CONFIG=$with_gdal  if test -f "$GDAL_CONFIG" -a -x "$GDAL_CONFIG" ; then    AC_MSG_RESULT([user supplied gdal-config ($GDAL_CONFIG)])  else    AC_MSG_ERROR(['$GDAL_CONFIG' is not an executable.  Make sure you use --with-gdal=/path/to/gdal-config])  fielse  AC_MSG_ERROR([gdal required to build GDAL GRASS 5.7 driver])fiLIBS="`$GDAL_CONFIG --libs` $LIBS"GDAL_INC=`$GDAL_CONFIG --cflags`AC_SUBST(GDAL_INC,    $GDAL_INC)dnl ---------------------------------------------------------------------------dnl Where to put driver?dnl ---------------------------------------------------------------------------AC_ARG_WITH(autoload,[  --with-autoload[=DIR]      Directory for autoload drivers],,)if test "$with_autoload" != "" ; then  AUTOLOAD_DIR=$with_autoloadelse  if $GDAL_CONFIG --autoload > /dev/null 2>&1 ; then    AUTOLOAD_DIR=`$GDAL_CONFIG --autoload`  else    AUTOLOAD_DIR=`$GDAL_CONFIG --prefix`/lib  fifiAC_MSG_RESULT(using $AUTOLOAD_DIR as GDAL shared library autoload directory)AC_SUBST(AUTOLOAD_DIR,$AUTOLOAD_DIR)dnl ---------------------------------------------------------------------------dnl Find GRASS 5.7dnl ---------------------------------------------------------------------------GRASS_SETTING=noGRASS_INCLUDE=export GRASS_INCLUDE GRASS_SETTINGAC_ARG_WITH(grass,[  --with-grass[=ARG]        Include GRASS support (ARG=GRASS install tree dir)],,)if test "$with_grass" = "no" ; then  AC_MSG_ERROR([grass required for this driver, please install GRASS 5.7 and rebuild])fiif test "$with_grass" != "yes" ; then  AC_CHECK_LIB(grass_gis,G_asprintf,GRASS_SETTING=grass57+,GRASS_SETTING=no,-L$with_grass/lib -lgrass_datetime)     if test "$GRASS_SETTING" = "grass57+" ; then       LIBS="-L$with_grass/lib -lgrass_I -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS"    GRASS_INCLUDE="-I$with_grass/include"  else    AC_MSG_ERROR([--with-grass=$with_grass requested, but libraries not found!])  fifiAC_SUBST(GRASS_INCLUDE,$GRASS_INCLUDE)dnl ---------------------------------------------------------------------------rm -f conftest*AC_OUTPUT(Makefile)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -