dnl dnl GeoMOOSE AutoConf file dnl AC_INIT(Makefile.in) VERSION=2.0.1 # prefix = installation prefix AC_PREFIX_DEFAULT('/opt/geomoose2') test "$prefix" = NONE && prefix=/opt/geomoose2 dnl The temp directory TEMPDIR='/tmp/www/' AC_ARG_WITH(temp-directory,[ --with-temp-directory=DIR Temporary directory for script output (/tmp/www/)], [TEMPDIR="$withval"]) dnl Default URL URLPATH='/geomoose2/' AC_ARG_WITH(url-path,[ --with-url-path=DIR URL Path, the root web directory for the application (/geomoose2/)], [URLPATH="$withval"]) dnl Default Projection PROJECTION='EPSG:26915' AC_ARG_WITH(projection, [ --with-projection=SRS SRS string defining the map's projection (default EPSG:26915)], [PROJECTION="$withval"]) dnl where the mapfiles at? MAPFILE_ROOT="${prefix}/maps/" AC_ARG_WITH(mapfile-root, [ --with-mapfile-root=PATH Path to the mapfiles root (default PREFIX/maps/)], [MAPFILE_ROOT="$withval"]) dnl url to mapserver MAPSERVER_URL="/cgi-bin/mapserv" AC_ARG_WITH(mapserver-url, [ --with-mapserver-url=URL URL to mapserver (default /cgi-bin/mapserv)], [MAPSERVER_URL="$withval"] ) dnl server name SERVER_NAME="localhost" AC_ARG_WITH(server-name, [ --with-server-name=SERVERNAME Self referential name of the server (defaults to localhost)], [SERVERNAME="$withval"] ) dnl check for MS4W settings IS_MS4W="no" AC_ARG_WITH(ms4w-defaults, [ --with-ms4w-defaults=yes/no When set to yes all settings are set for the MS4W installation defaults (defaults to "no")], [ IS_MS4W="$withval"] ) #test "$prefix" = NONE && prefix=/opt/geomoose2 test "$IS_MS4W" = "yes" && prefix=/ms4w/apps/geomoose2/ test "$IS_MS4W" = "yes" && TEMPDIR=/ms4w/tmp/ms_tmp/ test "$IS_MS4W" = "yes" && URLPATH=/geomoose2/ test "$IS_MS4W" = "yes" && MAPFILE_ROOT=/ms4w/apps/geomoose2/maps/ test "$IS_MS4W" = "yes" && MAPSERVER_URL=/cgi-bin/mapserv.exe dnl export the infos AC_SUBST(TEMPDIR) AC_SUBST(URLPATH) AC_SUBST(PROJECTION) AC_SUBST(MAPFILE_ROOT) AC_SUBST(MAPSERVER_URL) AC_SUBST(SERVER_NAME) AC_SUBST(VERSION) AC_OUTPUT([ Makefile conf/mapbook.xml conf/settings.ini geomoose2_httpd.conf maps/temp_directory.map ]) ## location of main config files #CONFDIR='/etc' #AC_ARG_WITH(confdir, [ --with-confdir=DIR Sympa main configuration files in DIR (default /etc)], [CONFDIR="$withval"]) #AC_SUBST(CONFDIR)