Forum: Cfengine Help Subject: Re: Successful 3.1.4 build on HP-UX 11.11 Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,21894,21913#msg-21913
You say: > Ran into another hitch in 3.1.5 - a dependency on unsetenv(), which is also > included in the Portability Package. I just changed pub/unsetenv.c where it > said: > > #ifdef __sun > > ... to ... > > #if defined(__sun) || defined(__hpux) > > ... and it seemed to compile okay. That's OK as a private quick fix. But the official autoconf way to do this (a job for the source-code maintainers and developers) is for the main "configure.in" to detect the presence or absence of the particular feature (in this case of "unsetenv") on any operating system, which then sets/unsets its own #define variable. Then the various header and source files (in this case, presumably just "unsetenv.c") say "#ifdef THAT_VAR". This piece of autoconf "good practice" means that this feature should be handled OK on any new system. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine