[ping] [RFC] Re: [RFC] Re: RFC: make IcedTea-web to be compatible with RHEL5 libraries
Dr Andrew John Hughes
ahughes at redhat.com
Thu Jul 21 06:21:12 PDT 2011
On 12:08 Thu 21 Jul , Jiri Vanek wrote:
>
> Hi!
>
> This patch is another attempt o make icedtea-web buildable on rhel 5 with older libraries. Before build of plugin itself is started, then testing c++ program is tried to be linked with same options. If this compilation fails, then original IcedTeaNPPlugin.cc is backuped, glibBuildable.patch is applied to IcedTeaNPPlugin.cc and then plugin is linked.
> During clean-plugin original IcedTeaNPPlugin.cc is restored from backup (and when test application is compiled, then this binary is deleted, also backup is delete)
>
> Please, when you will ask me to include this "solution" more to configure (or autotools or anywhere) then I will need a little bit of help.
>
I suggest taking a look at the autoconf manual and function detection:
http://www.gnu.org/software/autoconf/manual/autoconf.html#Library-Functions
Then, rather than patching, I'd add a header file with #ifdefs to handle both cases.
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: F5862A37 (https://keys.indymedia.org/)
Fingerprint = EA30 D855 D50F 90CD F54D 0698 0713 C3ED F586 2A37
More information about the distro-pkg-dev
mailing list