From 348fcabd90429befe1899eae27b35508a063151f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 29 May 1999 17:20:51 +0200 Subject: [PATCH] Fixed some bugs in the GNU ld detection. Rev: src/configure.in:1.293 --- src/configure.in | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/configure.in b/src/configure.in index becbf17267..d6ac27bbc0 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.292 1999/05/29 14:44:36 grubba Exp $") +AC_REVISION("$Id: configure.in,v 1.293 1999/05/29 15:20:51 grubba Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -189,24 +189,6 @@ AC_MINIX ############################################################################# -# Some sanity checks. - -if test "$GCC" = "yes" -a "`uname -sp`" = "SunOS sparc"; then - # Solaris/sparc: - # Check that gnu ld isn't used. - # It's usually hidden in $prefix/sparc-sun-solaris2.?/bin/. - gcc_ld_path="`$CC -v 2>&1 | sed -e '1,1s/[^\/]*\(\/.*\/\)[^\/]*$/\1/p;d' | sed -e '/lib\/gcc-lib\//s/lib\/gcc-lib\///;s/\/[0-9]*\.[0-9]*\.[0-9]*\/$/\/bin/'`" - if test "x$gcc_ld_path" = "x"; then :; else - if "$gcc_ld_path/ld" -v 2>&1 | grep -i GNU >/dev/null; then - AC_MSG_WARN([GNU ld found on Solaris sparc system ($gcc_ld_path/ld).]) - AC_MSG_WARN([This may cause the dynamic module support to fail.]) - else :; fi - fi - unset gcc_ld_path -else :; fi - -############################################################################# - # We need some special hacks when running slowaris AC_PATH_PROG(uname_prog,uname,no) AC_MSG_CHECKING(operating system) @@ -267,6 +249,26 @@ AC_SUBST(LD) ############################################################################# +# Some sanity checks. + +if test "$GCC" = "yes" -a "$pike_cv_sys_os" = "Solaris" -a "`uname -p`" = "sparc"; then + # Solaris/sparc: + # Check that gnu ld isn't used. + # It's usually hidden in $prefix/sparc-sun-solaris2.?/bin/. + # NOTE: M4 uses [] as quotes. + gcc_ld_path="`$CC -v 2>&1 | sed -e '1,1s/[[^\/]]*\(\/.*\/\)[[^\/]]*$/\1/p;d' | sed -e '/lib\/gcc-lib\//s/lib\/gcc-lib\///;s/\/[[0-9]]*\.[[0-9]]*\.[[0-9]]*\/$/\/bin/'`" + if test "x$gcc_ld_path" = "x"; then :; else + if "$gcc_ld_path/ld" -v 2>&1 | grep -i GNU >/dev/null; then + AC_MSG_WARN([GNU ld found on Solaris sparc system ($gcc_ld_path/ld).]) + AC_MSG_WARN([This may cause the dynamic module support to fail.]) + else :; fi + fi + unset gcc_ld_path + +else :; fi + +############################################################################# + AC_ARG_WITH(dynamic_modules, [ --without-dynamic-modules link modules statically],[],[with_dynamic_modules=yes]) -- GitLab