2012/10/4 Christopher Schultz <ch...@christopherschultz.net>:
>
> On 10/4/12 3:03 PM, Christopher Schultz wrote:
>> I'm trying to build tcnative-trunk and I'm having trouble
>> specifying where my Java headers are:
>>
>> $ ./buildconf --with-apr=../../apr-1.4.6
>
> *sigh*
>
> Turns out that setting $JAVA_HOME works.
>
> It would be great to be able to specify it on the 'configure' command
> line, like like --with-apr and --with-ssl.
>
> My configure-fu is not strong. Can someone add this to tcnative-trunk?
>

Just reading, I see the following in configure.in:

a) Includes
sinclude(build/apr_common.m4)
sinclude(build/tcnative.m4)
sinclude(build/find_apr.m4)

b) The following macros is called
TCN_FIND_JDK

The TCN_ (Tomcat Native) macro should come from "build/tcnative.m4".

Looking into "build/tcnative.m4" I see an inconsistency. It does not
define "TCN_FIND_JDK", but "TCN_FIND_JAVA":

[quote]
AC_DEFUN([TCN_FIND_JAVA],[
  AC_ARG_WITH(java,[  --with-java-home=DIR     Specify the location of
your JDK installation],[
[/quote]

So I think that if one does s/TCN_FIND_JDK/TCN_FIND_JAVA/ in
"configure.in" then the "--with-java-home" will start working.

The native/BUILDING file could mention the  "--with-java-home" switch.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to