llvm.org GIT mirror llvm / 1addff9
Add support for determining which languages the llvm-gcc front end supports. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36319 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
2 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
187187 LLVMCC1PLUS := @LLVMCC1PLUS@
188188 LLVMGCC_VERSION := @LLVMGCC_VERSION@
189189 LLVMGCC_MAJVERS := @LLVMGCC_MAJVERS@
190 LLVMGCC_LANGS := @LLVMGCC_LANGS@
190191
191192 # Path to directory where object files should be stored during a build.
192193 # Set OBJ_ROOT to "." if you do not want to use a separate place for
766766
767767 dnl Since we have a sane llvm-gcc, identify it and its sub-tools
768768 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
769 AC_MSG_CHECKING([llvm-gcc component support])
769770 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
770771 AC_SUBST(LLVMCC1,$llvmcc1path)
771772 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
778779 llvmgccmajvers=[`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`]
779780 AC_SUBST(LLVMGCC_VERSION,$llvmgccversion)
780781 AC_SUBST(LLVMGCC_MAJVERS,$llvmgccmajvers)
782 llvmgcclangs=[`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`]
783 AC_SUBST(LLVMGCC_LANGS,$llvmgcclangs)
784 AC_MSG_RESULT([ok])
781785 fi
782786
783787 dnl Propagate the shared library extension that the libltdl checks did to