Mercurial > hg > xemacs-beta
comparison configure.in @ 846:7b263c3f9ec9
[xemacs-hg @ 2002-05-16 15:24:20 by stephent]
ppc nocombreloc fix <878z6krubv.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Thu, 16 May 2002 15:24:21 +0000 |
parents | 4ead1e0842f0 |
children | 5b3cf2203477 |
comparison
equal
deleted
inserted
replaced
845:77624ff6e2da | 846:7b263c3f9ec9 |
---|---|
2013 ;; | 2013 ;; |
2014 esac | 2014 esac |
2015 AC_MSG_RESULT(no) | 2015 AC_MSG_RESULT(no) |
2016 fi | 2016 fi |
2017 | 2017 |
2018 dnl GNU ld now defaults to combreloc, which screws up unexec, but not pdump. | |
2019 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf | |
2020 dnl a usage message, that's often good enough. Please report it, though. | |
2021 dnl #### Should make this Solaris-friendly. | |
2022 dnl Link with -z nocombreloc for now. | |
2023 if test "$pdump" != "yes"; then | |
2024 AC_MSG_CHECKING(for \"-z nocombreloc\" linker flag) | |
2025 case "`ld --help 2>&1`" in | |
2026 *-z\ nocombreloc* ) AC_MSG_RESULT(yes) | |
2027 XE_PREPEND(-z nocombreloc, ld_switch_site) ;; | |
2028 *) AC_MSG_RESULT(no) ;; | |
2029 esac | |
2030 fi | |
2031 | |
2032 | |
2018 dnl Inform compiler that certain flags are meant for the linker | 2033 dnl Inform compiler that certain flags are meant for the linker |
2019 dnl XE_PROTECT_LINKER_FLAGS(shell_var) | 2034 dnl XE_PROTECT_LINKER_FLAGS(shell_var) |
2020 define([XE_PROTECT_LINKER_FLAGS], [ | 2035 define([XE_PROTECT_LINKER_FLAGS], [ |
2021 if test "$GCC" = "yes"; then | 2036 if test "$GCC" = "yes"; then |
2022 set x $[$1]; shift; [$1]="" | 2037 set x $[$1]; shift; [$1]="" |
2030 shift | 2045 shift |
2031 done | 2046 done |
2032 fi])dnl | 2047 fi])dnl |
2033 XE_PROTECT_LINKER_FLAGS(ld_switch_system) | 2048 XE_PROTECT_LINKER_FLAGS(ld_switch_system) |
2034 XE_PROTECT_LINKER_FLAGS(ld_switch_machine) | 2049 XE_PROTECT_LINKER_FLAGS(ld_switch_machine) |
2050 XE_PROTECT_LINKER_FLAGS(ld_switch_site) | |
2035 XE_PROTECT_LINKER_FLAGS(LDFLAGS) | 2051 XE_PROTECT_LINKER_FLAGS(LDFLAGS) |
2036 XE_PROTECT_LINKER_FLAGS(ld_call_shared) | 2052 XE_PROTECT_LINKER_FLAGS(ld_call_shared) |
2037 | 2053 |
2038 dnl Add s&m-determined objects (including unexec) to link line | 2054 dnl Add s&m-determined objects (including unexec) to link line |
2039 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) | 2055 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) |
2542 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) | 2558 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) |
2543 XE_PREPEND(-z ignore, ld_switch_site) ;; | 2559 XE_PREPEND(-z ignore, ld_switch_site) ;; |
2544 *) AC_MSG_RESULT(no) ;; | 2560 *) AC_MSG_RESULT(no) ;; |
2545 esac | 2561 esac |
2546 fi | 2562 fi |
2547 fi | |
2548 | |
2549 dnl GNU ld now defaults to combreloc, which screws up unexec, but not pdump. | |
2550 dnl Note that it's OK if the GNU style long option causes non-GNU ld to barf | |
2551 dnl a usage message, that's often good enough. Please report it, though. | |
2552 dnl #### Should make this Solaris-friendly. | |
2553 dnl Link with -z nocombreloc for now. | |
2554 if test "$pdump" != "yes"; then | |
2555 AC_MSG_CHECKING(for \"-z nocombreloc\" linker flag) | |
2556 case "`ld --help 2>&1`" in | |
2557 *-z\ nocombreloc* ) AC_MSG_RESULT(yes) | |
2558 XE_PREPEND(-z nocombreloc, ld_switch_site) ;; | |
2559 *) AC_MSG_RESULT(no) ;; | |
2560 esac | |
2561 fi | 2563 fi |
2562 | 2564 |
2563 dnl ---------------------- | 2565 dnl ---------------------- |
2564 dnl Choose a window system | 2566 dnl Choose a window system |
2565 dnl ---------------------- | 2567 dnl ---------------------- |