dnl ---------------------------------------------------------------------------
dnl FIXME: won't works
-dnl AC_DEFINE_DIR(FGIS_CONFIG, "$sysconfdir", [Define this to the location of the global config file])
-AC_SUBST_DIR(FGIS_CONFIG,"$sysconfdir")
-AC_DEFINE_UNQUOTED(FGIS_CONFIG,"$FGIS_CONFIG",[Define this to the location of the global config file])
-AC_SUBST(FGIS_CONFIG,$FGIS_CONFIG)
+dnl AC_DEFINE_DIR(FGIS_CONFDIR, "$sysconfdir", [Define this to the location of the global config file])
+AC_SUBST_DIR(FGIS_CONFDIR,"$sysconfdir")
+AC_DEFINE_UNQUOTED(FGIS_CONFDIR,"$FGIS_CONFDIR",[Define this to the location of the global config file])
+AC_SUBST(FGIS_CONFDIR,$FGIS_CONFDIR)
dnl ---------------------------------------------------------------------------
dnl Handle placement of the engine module (fgis.so)
dnl Handle placement of the fGIS Tcl/Tk modules
dnl ---------------------------------------------------------------------------
-AC_SUBST_DIR(FGIS_SCRIPTS,"$libdir/fgis/tcl")
-AC_SUBST(FGIS_SCRIPTS,$FGIS_SCRIPTS)
+AC_SUBST_DIR(FGIS_SCRIPTDIR,"$libdir/fgis/tcl")
+AC_SUBST(FGIS_SCRIPTDIR,$FGIS_SCRIPTDIR)
dnl ---------------------------------------------------------------------------
dnl Define path for EPPL7 library sources. Temporary hack, the whole this
/******************************************************************************
- * $Id: fgisInit.c,v 1.2 2003-01-02 18:02:52 dron Exp $
+ * $Id: fgisInit.c,v 1.3 2003-01-08 09:50:05 dron Exp $
*
* Project: fGIS core engine
* Purpose: initialization procedure for Fgis package
* defines default (1:1) reclass table
* defines fGIS_HOME variable to directory, containing fgis.rc
* Directories are searched in following order
- * FGIS_CONFIG as defined in Makefile
+ * FGIS_CONFDIR as defined in Makefile
* ~/lib/fgis
* executes fgis.rc
*/
if ((fGIS_HOME=Tcl_GetVar(interp,"fGIS_HOME",TCL_GLOBAL_ONLY))==NULL) {
fGIS_HOME=buffer;
/* Check if compilied in default is valid */
- if (!check_for_rc(interp,fGIS_HOME,FGIS_CONFIG)&&
+ if (!check_for_rc(interp,fGIS_HOME,FGIS_CONFDIR)&&
#ifdef __unix__
!check_for_rc(interp,fGIS_HOME,"/usr/local/lib/fgis")&&
!check_for_rc(interp,fGIS_HOME,"/usr/lib/fgis")&&
Tcl_SetVar(interp,"fGIS_HOME",fGIS_HOME,TCL_GLOBAL_ONLY);
}
- if (Tcl_EvalFile(interp,FGIS_CONFIG "/fgis.rc")!=TCL_OK) {
+ if (Tcl_EvalFile(interp,FGIS_CONFDIR "/fgis.rc")!=TCL_OK) {
Tcl_SetResult(interp,"Error in initialization file",TCL_STATIC);
return TCL_ERROR;
}
install: all install-libraries
install-libraries:
- $(mkinstalldirs) $(FGIS_CONFIG)
+ $(mkinstalldirs) $(FGIS_CONFDIR)
if [ -f fgis.rc ] ; then \
- $(INSTALL_PROGRAM) -m 644 fgis.rc $(FGIS_CONFIG)/fgis.rc ; \
+ $(INSTALL_PROGRAM) -m 644 fgis.rc $(FGIS_CONFDIR)/fgis.rc ; \
else true; fi
done
install-libraries:
- $(mkinstalldirs) $(FGIS_SCRIPTS)
+ $(mkinstalldirs) $(FGIS_SCRIPTDIR)
-for i in $(SCRIPT_LIST) ; do \
if [ -f $$i ] ; then \
- $(INSTALL_PROGRAM) -m 644 $$i $(FGIS_SCRIPTS)/$$i ; \
+ $(INSTALL_PROGRAM) -m 644 $$i $(FGIS_SCRIPTDIR)/$$i ; \
else true; fi ; \
done
$(mkinstalldirs) $(TCL_PACKAGE_PATH)/fgis