comparison configure @ 110468:8ceac426a2d7

merge trunk
author Kenichi Handa <handa@m17n.org>
date Tue, 21 Sep 2010 20:45:10 +0900
parents 45304f108596
children 52590453d4f9
comparison
equal deleted inserted replaced
110384:8d0ea2f29215 110468:8ceac426a2d7
597 ac_subst_vars='LTLIBOBJS 597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT 598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT 599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT 600 MOUSE_SUPPORT
601 LIB_GCC 601 LIB_GCC
602 LINKER 602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS 603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ 604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ 605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ 606 CYGWIN_OBJ
607 RALLOC_OBJ 607 RALLOC_OBJ
14701 fi 14701 fi
14702 14702
14703 14703
14704 14704
14705 14705
14706 LINKER= 14706 LD_FIRSTFLAG=
14707 ORDINARY_LINK= 14707 ORDINARY_LINK=
14708 case "$opsys" in 14708 case "$opsys" in
14709 ## gnu: GNU needs its own crt0. 14709 ## gnu: GNU needs its own crt0.
14710 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; 14710 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14711 14711
14712 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the 14712 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14713 ## library search parth, i.e. it won't search /usr/lib for libc and 14713 ## library search parth, i.e. it won't search /usr/lib for libc and
14714 ## friends. Using -nostartfiles instead avoids this problem, and 14714 ## friends. Using -nostartfiles instead avoids this problem, and
14715 ## will also work on earlier NetBSD releases. 14715 ## will also work on earlier NetBSD releases.
14716 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;; 14716 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14717 14717
14718 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says 14718 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14719 ## MkLinux/LinuxPPC needs this. 14719 ## MkLinux/LinuxPPC needs this.
14720 ## ibms390x only supports opsys = gnu-linux so it can be added here. 14720 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14721 gnu-*) 14721 gnu-*)
14722 case "$machine" in 14722 case "$machine" in
14723 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;; 14723 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14724 esac 14724 esac
14725 ;; 14725 ;;
14726 esac 14726 esac
14727 14727
14728 14728
14729 if test "x$ORDINARY_LINK" = "xyes"; then 14729 if test "x$ORDINARY_LINK" = "xyes"; then
14730 14730
14731 LINKER="\$(CC)" 14731 LD_FIRSTFLAG=""
14732 14732
14733 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h 14733 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14734 14734
14735 14735
14736 ## The system files defining neither ORDINARY_LINK nor LINKER are: 14736 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14737 ## freebsd, gnu-* not on macppc|ibms390x. 14737 ## freebsd, gnu-* not on macppc|ibms390x.
14738 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then 14738 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14739 14739
14740 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure 14740 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14741 ## places that are difficult to figure out at make time. Fortunately, 14741 ## places that are difficult to figure out at make time. Fortunately,
14742 ## these same versions allow you to pass arbitrary flags on to the 14742 ## these same versions allow you to pass arbitrary flags on to the
14743 ## linker, so there is no reason not to use it as a linker. 14743 ## linker, so there is no reason not to use it as a linker.
14744 ## 14744 ##
14745 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from 14745 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14746 ## searching for libraries in its internal directories, so we have to 14746 ## searching for libraries in its internal directories, so we have to
14747 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). 14747 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14748 LINKER="\$(CC) -nostdlib" 14748 LD_FIRSTFLAG="-nostdlib"
14749 fi 14749 fi
14750 14750
14751 test "x$LINKER" = "x" && LINKER=ld
14752 ## FIXME? What setting of EDIT_LDFLAGS should this have? 14751 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14753 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" 14752 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14754 14753
14755 14754
14756 14755
14757 14756
14758 ## FIXME? The logic here is not precisely the same as that above. 14757 ## FIXME? The logic here is not precisely the same as that above.
14759 ## There is no check here for a pre-defined LINKER. 14758 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14760 ## Should we only be setting LIB_GCC if LD ~ -nostdlib? 14759 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14761 LIB_GCC= 14760 LIB_GCC=
14762 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then 14761 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14763 14762
14764 case "$opsys" in 14763 case "$opsys" in