Here's a more complete patch to add out-of-the-box support for Haiku (http://haiku-os.org/).
It improves on the previous patch (ID 3564815) by
- Disabling checks intended for multi-user systems (as Haiku is presently single-user)
- Adding additional library-related settings to remove the need for a custom "LDFLAGS" parameter to configure
- Grouping all custom configuration settings together in a "Haiku specific" section, following the pattern for Solaris, OS/2 and AmigaOS
- Allowing Privoxy to be built with gcc 2.95, desirable as part of Haiku's backwards-compatibility with BeOS---this involved moving a few variable declarations up to the start of functions in filters.c and loadcfg.c
With this patch applied, to configure Privoxy for building on Haiku this simpler command can be used:
./configure --prefix=`finddir B_COMMON_DIRECTORY` \ --sbindir=`finddir B_COMMON_BIN_DIRECTORY` \ --sysconfdir=`finddir B_COMMON_ETC_DIRECTORY`/privoxy \ --localstatedir=`finddir B_COMMON_VAR_DIRECTORY` \ --datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` \ --infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \ --mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
Build on Haiku (gcc2/gcc4) without error
Thanks again for the patches.
The configure.in part has been committed as-is, the variable declaration changes have been slightly modified:
http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/loadcfg.c?r1=1.130&r2=1.131
http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/filters.c?r1=1.172&r2=1.173
Please let me know if my modifications make gcc 2.95 unhappy again.
Thanks, Fabian. I've tested the latest code from CVS and it works fine on Haiku with both gcc 2.95 and gcc 4.
Great. Thanks for the confirmation, Simon.