Re: AC_CHECK_PROGS and java compiler options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello John,

* John Calcote wrote on Fri, Aug 21, 2009 at 02:44:03AM CEST:
> I'm wondering about best practices for checking for programs like
> the javac compiler. For instance, I currently have a line in my
> project's configure.ac file that looks like this:
> 
> AC_CHECK_PROGS([JAVAC], ["gcj -C -ftarget=1.4 -fsource=1.4" "guavac
> -target 1.4 -source 1.4" "jikes -target 1.4 -source 1.4" "javac
> -target 1.4 -source 1.4"])

Why are you doing this?  AC_CHECK_PROGS will cut off the arguments when
searching for the program anyway, it don't try to run the program.

The semantics of AC_CHECK_PROGS are purely done so that one can pass in
variables to AC_CHECK_PROGS that are also used likewise elsewhere; but
for the tests done by this macro, they are not relevant.

Hope that helps.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux