--- parser3/src/targets/cgi/parser3.C 2001/08/31 15:56:46 1.100 +++ parser3/src/targets/cgi/parser3.C 2001/09/04 15:55:48 1.103 @@ -1,3 +1,4 @@ +//2 /** @file Parser: scripting and CGI main. @@ -5,7 +6,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: parser3.C,v 1.100 2001/08/31 15:56:46 parser Exp $"; +static const char *RCSId="$Id: parser3.C,v 1.103 2001/09/04 15:55:48 parser Exp $"; #include "pa_config_includes.h" @@ -272,13 +273,16 @@ int main(int argc, char *argv[]) { ); // some root-controlled location -#ifdef WIN32 +#ifdef SYSCONFDIR + const char *root_auto_path=SYSCONFDIR; +#else +# ifdef WIN32 // c:\windows static char root_auto_path[MAX_STRING]; GetWindowsDirectory(root_auto_path, MAX_STRING); -#else - // ~nobody todo: figure out a better place - const char *root_auto_path=SAPI::get_env(pool, "HOME"); +# else + #error must be compiled either configure/make or MSVC++ +# endif #endif // beside by binary