llvm.org GIT mirror llvm / 673612e
Add support for Canadian Cross builds where the host executables are not runnable on the build machine. There are a few bits that need built for the build environment (TableGen). This patch builds those bits, and the associated libraries, for the build environment as well as the (usual) host environment. Thanks to Eric C. and Devang P. for pre-commit review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56975 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 10 years ago
5 changed file(s) with 237 addition(s) and 49 deletion(s). Raw diff Collapse all Expand all
2323 EXTRA_DIST := test llvm.spec include win32 Xcode
2424
2525 include $(LEVEL)/Makefile.config
26
27 # When cross-compiling, there are some things (tablegen) that need to
28 # be build for the build system.
29 ifeq ($(LLVM_CROSS_COMPILING),1)
30 BUILD_TARGET_DIRS := lib/System lib/Support utils
31 endif
2632
2733 # llvm-gcc4 doesn't need runtime libs. llvm-gcc4 is the only supported one.
2834 # FIXME: Remove runtime entirely once we have an understanding of where
100100 # Executable file extension for build platform (mainly for
101101 # tablegen call if we're cross-compiling).
102102 BUILD_EXEEXT=@BUILD_EXEEXT@
103
104 # Compilers for the build platflorm (mainly for tablegen
105 # call if we're cross-compiling).
106 BUILD_CC=@BUILD_CC@
107 BUILD_CXX=@BUILD_CXX@
103108
104109 # Target triple (cpu-vendor-os) for which we should generate code
105110 TARGET_TRIPLE=@target@
301301 #--------------------------------------------------------------------
302302 # Directory locations
303303 #--------------------------------------------------------------------
304 ObjDir := $(PROJ_OBJ_DIR)/$(BuildMode)
305 LibDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib
306 ToolDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/bin
307 ExmplDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/examples
308 LLVMLibDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/lib
309 LLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/bin
310 LLVMExmplDir:= $(LLVM_OBJ_ROOT)/$(BuildMode)/examples
304 TargetMode :=
305 ifeq ($(LLVM_CROSS_COMPILING),1)
306 ifeq ($(BUILD_COMPONENT),1)
307 TargetMode := Build
308 else
309 TargetMode := Host
310 endif
311 BuildLLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/Build/bin
312 endif
313
314 ObjRootDir := $(PROJ_OBJ_DIR)/$(BuildMode)
315 ObjDir := $(ObjRootDir)/$(TargetMode)
316 LibDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/$(TargetMode)/lib
317 ToolDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/$(TargetMode)/bin
318 ExmplDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/$(TargetMode)/examples
319 LLVMLibDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/$(TargetMode)/lib
320 LLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/$(TargetMode)/bin
321 LLVMExmplDir:= $(LLVM_OBJ_ROOT)/$(BuildMode)/$(TargetMode)/examples
311322 CFERuntimeLibDir := $(LLVMGCCDIR)/lib
312323
313324 #--------------------------------------------------------------------
323334 endif
324335 ifndef TBLGEN
325336 ifeq ($(LLVM_CROSS_COMPILING),1)
326 TBLGEN := $(LLVMToolDir)/tblgen$(BUILD_EXEEXT)
337 TBLGEN := $(BuildLLVMToolDir)/tblgen$(EXEEXT)
327338 else
328339 TBLGEN := $(LLVMToolDir)/tblgen$(EXEEXT)
329340 endif
467478 $(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \
468479 $(CPP.BaseFlags)
469480
470 Compile.C = $(CC) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts) -c
481 ifeq ($(BUILD_COMPONENT), 1)
482 Compile.C = $(BUILD_CC) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts) -c
483 Compile.CXX = $(BUILD_CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) -c
484 Preprocess.CXX= $(BUILD_CXX) $(CPP.Flags) $(CompileCommonOpts) $(CXX.Flags) -E
485 Link = $(BUILD_CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) \
486 $(LD.Flags) $(Strip)
487 Relink = $(BUILD_CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) \
488 $(Relink.Flags)
489 else
490 Compile.C = $(CC) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts) -c
491 Compile.CXX = $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) -c
492 Preprocess.CXX= $(CXX) $(CPP.Flags) $(CompileCommonOpts) $(CXX.Flags) -E
493 Link = $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) \
494 $(LD.Flags) $(Strip)
495 Relink = $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) \
496 $(Relink.Flags)
497 endif
498
471499 LTCompile.C = $(LIBTOOL) $(LibTool.Flags) --mode=compile $(Compile.C)
472500 BCCompile.C = $(LLVMGCCWITHPATH) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts)
473501 Preprocess.C = $(CC) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts) -E
474502
475 Compile.CXX = $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) -c
476503 LTCompile.CXX = $(LIBTOOL) $(LibTool.Flags) --mode=compile $(Compile.CXX)
477504 BCCompile.CXX = $(LLVMGXXWITHPATH) $(CPP.Flags) $(CXX.Flags) \
478505 $(CompileCommonOpts)
479506
480 Preprocess.CXX= $(CXX) $(CPP.Flags) $(CompileCommonOpts) $(CXX.Flags) -E
481 Link = $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) \
482 $(LD.Flags) $(Strip)
483507 LTLink = $(LIBTOOL) $(LibTool.Flags) --mode=link $(Link)
484 Relink = $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) \
485 $(Relink.Flags)
486508 LTRelink = $(LIBTOOL) $(LibTool.Flags) --mode=link $(Relink)
487509 LTInstall = $(LIBTOOL) $(LibTool.Flags) --mode=install $(INSTALL) \
488510 $(Install.Flags)
559581 SubDirs += $(DIRS)
560582
561583 ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
584 ifdef BUILD_TARGET_DIRS
585 $(RecursiveTargets)::
586 $(Verb) for dir in $(BUILD_TARGET_DIRS); do \
587 if [ ! -f $$dir/Makefile ]; then \
588 $(MKDIR) $$dir; \
589 $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
590 fi; \
591 ($(MAKE) -C $$dir $@ BUILD_COMPONENT=1 NO_INSTALL=1 ) || exit 1; \
592 done
593 endif
562594 $(RecursiveTargets)::
563595 $(Verb) for dir in $(DIRS); do \
564596 if [ ! -f $$dir/Makefile ]; then \
568600 ($(MAKE) -C $$dir $@ ) || exit 1; \
569601 done
570602 else
603 ifdef BUILD_TARGET_DIRS
604 $(RecursiveTargets)::
605 $(Verb) for dir in $(BUILD_TARGET_DIRS); do \
606 ($(MAKE) -C $$dir $@ BUILD_COMPONENT=1 NO_INSTALL=1 ) || exit 1; \
607 done
608 endif
571609 $(RecursiveTargets)::
572610 $(Verb) for dir in $(DIRS); do \
573611 ($(MAKE) -C $$dir $@ ) || exit 1; \
14501488 # very conservative approach ensuring that empty variables do not cause
14511489 # errors or disastrous removal.
14521490 clean-local::
1453 ifneq ($(strip $(ObjDir)),)
1454 -$(Verb) $(RM) -rf $(ObjDir)
1491 ifneq ($(strip $(ObjRootDir)),)
1492 -$(Verb) $(RM) -rf $(ObjRootDir)
14551493 endif
14561494 -$(Verb) $(RM) -f core core.[0-9][0-9]* *.o *.d *~ *.flc
14571495 ifneq ($(strip $(SHLIBEXT)),) # Extra paranoia - make real sure SHLIBEXT is set
241241 if test "$cross_compiling" = yes; then
242242 AC_SUBST(LLVM_CROSS_COMPILING, [1])
243243 AC_BUILD_EXEEXT
244 ac_build_prefix=${build_alias}-
245 AC_CHECK_PROG(BUILD_CXX, ${ac_build_prefix}g++, ${ac_build_prefix}g++)
246 if test -z "$BUILD_CXX"; then
247 AC_CHECK_PROG(BUILD_CXX, g++, g++)
248 if test -z "$BUILD_CXX"; then
249 AC_CHECK_PROG(BUILD_CXX, c++, c++, , , /usr/ucb/c++)
250 fi
251 fi
244252 else
245253 AC_SUBST(LLVM_CROSS_COMPILING, [0])
246254 fi
826826 LLVM_CROSS_COMPILING
827827 BUILD_CC
828828 BUILD_EXEEXT
829 BUILD_CXX
829830 CVSBUILD
830831 ENABLE_OPTIMIZED
831832 DISABLE_ASSERTIONS
45644565 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
45654566 ac_build_exeext=$BUILD_EXEEXT
45664567
4568 ac_build_prefix=${build_alias}-
4569 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4570 set dummy ${ac_build_prefix}g++; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test -n "$BUILD_CXX"; then
4577 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4597 if test -n "$BUILD_CXX"; then
4598 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4599 echo "${ECHO_T}$BUILD_CXX" >&6; }
4600 else
4601 { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4603 fi
4604
4605
4606 if test -z "$BUILD_CXX"; then
4607 # Extract the first word of "g++", so it can be a program name with args.
4608 set dummy g++; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$BUILD_CXX"; then
4615 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_BUILD_CXX="g++"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4635 if test -n "$BUILD_CXX"; then
4636 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4637 echo "${ECHO_T}$BUILD_CXX" >&6; }
4638 else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4641 fi
4642
4643
4644 if test -z "$BUILD_CXX"; then
4645 # Extract the first word of "c++", so it can be a program name with args.
4646 set dummy c++; ac_word=$2
4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 if test -n "$BUILD_CXX"; then
4653 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4654 else
4655 ac_prog_rejected=no
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4664 ac_prog_rejected=yes
4665 continue
4666 fi
4667 ac_cv_prog_BUILD_CXX="c++"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 if test $ac_prog_rejected = yes; then
4676 # We found a bogon in the path, so make sure we never use it.
4677 set dummy $ac_cv_prog_BUILD_CXX
4678 shift
4679 if test $# != 0; then
4680 # We chose a different compiler from the bogus one.
4681 # However, it has the same basename, so the bogon will be chosen
4682 # first if we set BUILD_CXX to just the basename; use the full file name.
4683 shift
4684 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4685 fi
4686 fi
4687 fi
4688 fi
4689 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4690 if test -n "$BUILD_CXX"; then
4691 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4692 echo "${ECHO_T}$BUILD_CXX" >&6; }
4693 else
4694 { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4696 fi
4697
4698
4699 fi
4700 fi
45674701 else
45684702 LLVM_CROSS_COMPILING=0
45694703
88679001 fi
88689002
88699003
8870
8871
8872 if test x"${enable_ltdl_install-no}" != xno; then
9004 if test x"${enable_ltdl_install-no}" != xno; then
88739005 INSTALL_LTDL_TRUE=
88749006 INSTALL_LTDL_FALSE='#'
88759007 else
88779009 INSTALL_LTDL_FALSE=
88789010 fi
88799011
8880
8881
8882 if test x"${enable_ltdl_convenience-no}" != xno; then
9012 if test x"${enable_ltdl_convenience-no}" != xno; then
88839013 CONVENIENCE_LTDL_TRUE=
88849014 CONVENIENCE_LTDL_FALSE='#'
88859015 else
1064610776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1064710777 lt_status=$lt_dlunknown
1064810778 cat > conftest.$ac_ext <
10649 #line 10650 "configure"
10779 #line 10780 "configure"
1065010780 #include "confdefs.h"
1065110781
1065210782 #if HAVE_DLFCN_H
1279012920 ;;
1279112921 *-*-irix6*)
1279212922 # Find out which ABI we are using.
12793 echo '#line 12794 "configure"' > conftest.$ac_ext
12923 echo '#line 12924 "configure"' > conftest.$ac_ext
1279412924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1279512925 (eval $ac_compile) 2>&5
1279612926 ac_status=$?
1450814638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1450914639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1451014640 -e 's:$: $lt_compiler_flag:'`
14511 (eval echo "\"\$as_me:14512: $lt_compile\"" >&5)
14641 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
1451214642 (eval "$lt_compile" 2>conftest.err)
1451314643 ac_status=$?
1451414644 cat conftest.err >&5
14515 echo "$as_me:14516: \$? = $ac_status" >&5
14645 echo "$as_me:14646: \$? = $ac_status" >&5
1451614646 if (exit $ac_status) && test -s "$ac_outfile"; then
1451714647 # The compiler can only warn and ignore the option if not recognized
1451814648 # So say no if there are warnings other than the usual output.
1477614906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1477714907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1477814908 -e 's:$: $lt_compiler_flag:'`
14779 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
14909 (eval echo "\"\$as_me:14910: $lt_compile\"" >&5)
1478014910 (eval "$lt_compile" 2>conftest.err)
1478114911 ac_status=$?
1478214912 cat conftest.err >&5
14783 echo "$as_me:14784: \$? = $ac_status" >&5
14913 echo "$as_me:14914: \$? = $ac_status" >&5
1478414914 if (exit $ac_status) && test -s "$ac_outfile"; then
1478514915 # The compiler can only warn and ignore the option if not recognized
1478614916 # So say no if there are warnings other than the usual output.
1488015010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1488115011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1488215012 -e 's:$: $lt_compiler_flag:'`
14883 (eval echo "\"\$as_me:14884: $lt_compile\"" >&5)
15013 (eval echo "\"\$as_me:15014: $lt_compile\"" >&5)
1488415014 (eval "$lt_compile" 2>out/conftest.err)
1488515015 ac_status=$?
1488615016 cat out/conftest.err >&5
14887 echo "$as_me:14888: \$? = $ac_status" >&5
15017 echo "$as_me:15018: \$? = $ac_status" >&5
1488815018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1488915019 then
1489015020 # The compiler can only warn and ignore the option if not recognized
1733217462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1733317463 lt_status=$lt_dlunknown
1733417464 cat > conftest.$ac_ext <
17335 #line 17336 "configure"
17465 #line 17466 "configure"
1733617466 #include "confdefs.h"
1733717467
1733817468 #if HAVE_DLFCN_H
1743217562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1743317563 lt_status=$lt_dlunknown
1743417564 cat > conftest.$ac_ext <
17435 #line 17436 "configure"
17565 #line 17566 "configure"
1743617566 #include "confdefs.h"
1743717567
1743817568 #if HAVE_DLFCN_H
1980019930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1980119931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1980219932 -e 's:$: $lt_compiler_flag:'`
19803 (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
19933 (eval echo "\"\$as_me:19934: $lt_compile\"" >&5)
1980419934 (eval "$lt_compile" 2>conftest.err)
1980519935 ac_status=$?
1980619936 cat conftest.err >&5
19807 echo "$as_me:19808: \$? = $ac_status" >&5
19937 echo "$as_me:19938: \$? = $ac_status" >&5
1980819938 if (exit $ac_status) && test -s "$ac_outfile"; then
1980919939 # The compiler can only warn and ignore the option if not recognized
1981019940 # So say no if there are warnings other than the usual output.
1990420034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1990520035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1990620036 -e 's:$: $lt_compiler_flag:'`
19907 (eval echo "\"\$as_me:19908: $lt_compile\"" >&5)
20037 (eval echo "\"\$as_me:20038: $lt_compile\"" >&5)
1990820038 (eval "$lt_compile" 2>out/conftest.err)
1990920039 ac_status=$?
1991020040 cat out/conftest.err >&5
19911 echo "$as_me:19912: \$? = $ac_status" >&5
20041 echo "$as_me:20042: \$? = $ac_status" >&5
1991220042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1991320043 then
1991420044 # The compiler can only warn and ignore the option if not recognized
2147421604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2147521605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2147621606 -e 's:$: $lt_compiler_flag:'`
21477 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
21607 (eval echo "\"\$as_me:21608: $lt_compile\"" >&5)
2147821608 (eval "$lt_compile" 2>conftest.err)
2147921609 ac_status=$?
2148021610 cat conftest.err >&5
21481 echo "$as_me:21482: \$? = $ac_status" >&5
21611 echo "$as_me:21612: \$? = $ac_status" >&5
2148221612 if (exit $ac_status) && test -s "$ac_outfile"; then
2148321613 # The compiler can only warn and ignore the option if not recognized
2148421614 # So say no if there are warnings other than the usual output.
2157821708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2157921709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2158021710 -e 's:$: $lt_compiler_flag:'`
21581 (eval echo "\"\$as_me:21582: $lt_compile\"" >&5)
21711 (eval echo "\"\$as_me:21712: $lt_compile\"" >&5)
2158221712 (eval "$lt_compile" 2>out/conftest.err)
2158321713 ac_status=$?
2158421714 cat out/conftest.err >&5
21585 echo "$as_me:21586: \$? = $ac_status" >&5
21715 echo "$as_me:21716: \$? = $ac_status" >&5
2158621716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2158721717 then
2158821718 # The compiler can only warn and ignore the option if not recognized
2381323943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2381423944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2381523945 -e 's:$: $lt_compiler_flag:'`
23816 (eval echo "\"\$as_me:23817: $lt_compile\"" >&5)
23946 (eval echo "\"\$as_me:23947: $lt_compile\"" >&5)
2381723947 (eval "$lt_compile" 2>conftest.err)
2381823948 ac_status=$?
2381923949 cat conftest.err >&5
23820 echo "$as_me:23821: \$? = $ac_status" >&5
23950 echo "$as_me:23951: \$? = $ac_status" >&5
2382123951 if (exit $ac_status) && test -s "$ac_outfile"; then
2382223952 # The compiler can only warn and ignore the option if not recognized
2382323953 # So say no if there are warnings other than the usual output.
2408124211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2408224212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2408324213 -e 's:$: $lt_compiler_flag:'`
24084 (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
24214 (eval echo "\"\$as_me:24215: $lt_compile\"" >&5)
2408524215 (eval "$lt_compile" 2>conftest.err)
2408624216 ac_status=$?
2408724217 cat conftest.err >&5
24088 echo "$as_me:24089: \$? = $ac_status" >&5
24218 echo "$as_me:24219: \$? = $ac_status" >&5
2408924219 if (exit $ac_status) && test -s "$ac_outfile"; then
2409024220 # The compiler can only warn and ignore the option if not recognized
2409124221 # So say no if there are warnings other than the usual output.
2418524315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2418624316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2418724317 -e 's:$: $lt_compiler_flag:'`
24188 (eval echo "\"\$as_me:24189: $lt_compile\"" >&5)
24318 (eval echo "\"\$as_me:24319: $lt_compile\"" >&5)
2418924319 (eval "$lt_compile" 2>out/conftest.err)
2419024320 ac_status=$?
2419124321 cat out/conftest.err >&5
24192 echo "$as_me:24193: \$? = $ac_status" >&5
24322 echo "$as_me:24323: \$? = $ac_status" >&5
2419324323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2419424324 then
2419524325 # The compiler can only warn and ignore the option if not recognized
3513735267 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
3513835268 BUILD_CC!$BUILD_CC$ac_delim
3513935269 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35270 BUILD_CXX!$BUILD_CXX$ac_delim
3514035271 CVSBUILD!$CVSBUILD$ac_delim
3514135272 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
3514235273 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
3516235293 YFLAGS!$YFLAGS$ac_delim
3516335294 BISON!$BISON$ac_delim
3516435295 NM!$NM$ac_delim
35165 ifGNUmake!$ifGNUmake$ac_delim
3516635296 _ACEOF
3516735297
3516835298 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
3520435334 ac_delim='%!_!# '
3520535335 for ac_last_try in false false false false false :; do
3520635336 cat >conf$$subs.sed <<_ACEOF
35337 ifGNUmake!$ifGNUmake$ac_delim
3520735338 LN_S!$LN_S$ac_delim
3520835339 CMP!$CMP$ac_delim
3520935340 CP!$CP$ac_delim
3528435415 LTLIBOBJS!$LTLIBOBJS$ac_delim
3528535416 _ACEOF
3528635417
35287 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
35418 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
3528835419 break
3528935420 elif $ac_last_try; then
3529035421 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5