1*75fd0b74Schristos# _LT_LANG_GCJ_CONFIG([TAG]) 2*75fd0b74Schristos# -------------------------- 3*75fd0b74Schristos# Ensure that the configuration variables for the GNU Java Compiler compiler 4*75fd0b74Schristos# are suitably defined. These variables are subsequently used by _LT_CONFIG 5*75fd0b74Schristos# to write the compiler configuration to `libtool'. Locally modified to 6*75fd0b74Schristos# run its tests on C programs, because we cannot link Java programs until 7*75fd0b74Schristos# we have finished building libjava. 8*75fd0b74SchristosAC_DEFUN([_LT_LANG_GCJ_CONFIG], 9*75fd0b74Schristos[AC_REQUIRE([LT_PROG_GCJ])dnl 10*75fd0b74SchristosAC_LANG_SAVE 11*75fd0b74Schristos 12*75fd0b74Schristos# Source file extension for Java test sources. 13*75fd0b74Schristosac_ext=c 14*75fd0b74Schristos 15*75fd0b74Schristos# Object file extension for compiled Java test sources. 16*75fd0b74Schristosobjext=o 17*75fd0b74Schristos_LT_TAGVAR(objext, $1)=$objext 18*75fd0b74Schristos 19*75fd0b74Schristos# Code to be used in simple compile tests 20*75fd0b74Schristoslt_simple_compile_test_code="int some_variable = 0;" 21*75fd0b74Schristos 22*75fd0b74Schristos# Code to be used in simple link tests 23*75fd0b74Schristoslt_simple_link_test_code='int main(){return(0);}' 24*75fd0b74Schristos 25*75fd0b74Schristos# ltmain only uses $CC for tagged configurations so make sure $CC is set. 26*75fd0b74Schristos_LT_TAG_COMPILER 27*75fd0b74Schristos 28*75fd0b74Schristos# save warnings/boilerplate of simple test code 29*75fd0b74Schristos_LT_COMPILER_BOILERPLATE 30*75fd0b74Schristos_LT_LINKER_BOILERPLATE 31*75fd0b74Schristos 32*75fd0b74Schristos# Allow CC to be a program name with arguments. 33*75fd0b74SchristosGCC=yes 34*75fd0b74Schristoscompiler=$CC 35*75fd0b74Schristos_LT_TAGVAR(compiler, $1)=$CC 36*75fd0b74Schristos_LT_CC_BASENAME([$compiler]) 37*75fd0b74Schristos 38*75fd0b74Schristos# GCJ did not exist at the time GCC didn't implicitly link libc in. 39*75fd0b74Schristos_LT_TAGVAR(archive_cmds_need_lc, $1)=no 40*75fd0b74Schristos 41*75fd0b74Schristos_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 42*75fd0b74Schristos 43*75fd0b74Schristos## CAVEAT EMPTOR: 44*75fd0b74Schristos## There is no encapsulation within the following macros, do not change 45*75fd0b74Schristos## the running order or otherwise move them around unless you know exactly 46*75fd0b74Schristos## what you are doing... 47*75fd0b74Schristosif test -n "$compiler"; then 48*75fd0b74Schristos _LT_COMPILER_NO_RTTI($1) 49*75fd0b74Schristos _LT_COMPILER_PIC($1) 50*75fd0b74Schristos _LT_COMPILER_C_O($1) 51*75fd0b74Schristos _LT_COMPILER_FILE_LOCKS($1) 52*75fd0b74Schristos _LT_LINKER_SHLIBS($1) 53*75fd0b74Schristos _LT_LINKER_HARDCODE_LIBPATH($1) 54*75fd0b74Schristos 55*75fd0b74Schristos _LT_CONFIG($1) 56*75fd0b74Schristosfi 57*75fd0b74Schristos 58*75fd0b74Schristos_LT_TAGVAR(compiler, $1)=${GCJ-gcj} 59*75fd0b74SchristosAC_LANG_RESTORE 60*75fd0b74Schristos])# _LT_LANG_GCJ_CONFIG 61