From 96a9075a6b6a85c93540b7e94c719e496823674d Mon Sep 17 00:00:00 2001 From: dron Date: Wed, 8 Jan 2003 09:50:05 +0000 Subject: [PATCH] *** empty log message *** --- configure.ac | 12 ++++++------ dll/fgisInit.c | 8 ++++---- etc/Makefile.am | 4 ++-- tcl/Makefile.am | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 5c556ee..d980cb1 100644 --- a/configure.ac +++ b/configure.ac @@ -48,10 +48,10 @@ dnl Handle global configuration file placement 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) @@ -64,8 +64,8 @@ dnl --------------------------------------------------------------------------- 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 diff --git a/dll/fgisInit.c b/dll/fgisInit.c index 23e4a8e..299b6d8 100644 --- a/dll/fgisInit.c +++ b/dll/fgisInit.c @@ -1,5 +1,5 @@ /****************************************************************************** - * $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 @@ -47,7 +47,7 @@ int check_for_rc(Tcl_Interp *interp,char *home,char *path); * 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 */ @@ -107,7 +107,7 @@ EXPORT(int, Fgis_Init)(Tcl_Interp *interp) 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")&& @@ -125,7 +125,7 @@ EXPORT(int, Fgis_Init)(Tcl_Interp *interp) 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; } diff --git a/etc/Makefile.am b/etc/Makefile.am index a64fe4c..3c5ada8 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -22,8 +22,8 @@ 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 diff --git a/tcl/Makefile.am b/tcl/Makefile.am index 2c1a730..816f409 100644 --- a/tcl/Makefile.am +++ b/tcl/Makefile.am @@ -33,10 +33,10 @@ install-binaries: 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 -- 2.39.5