diff aclocal.m4 @ 2651:3580ae2ce979

[xemacs-hg @ 2005-03-11 11:18:44 by malcolmp] Upgrade from autoconf 2.13 to autoconf 2.59.
author malcolmp
date Fri, 11 Mar 2005 11:20:34 +0000
parents 9402c85dcf6f
children b145b32294ff
line wrap: on
line diff
--- a/aclocal.m4	Fri Mar 11 08:42:36 2005 +0000
+++ b/aclocal.m4	Fri Mar 11 11:20:34 2005 +0000
@@ -39,8 +39,8 @@
 dll_post=
 dll_ldo="-o"
 ld_dynamic_link_flags=
-xehost=$canonical
-xealias=$internal_configuration
+xehost=$ac_cv_build
+xealias=$ac_cv_build_alias
 
 AC_CHECKING([how to build dynamic libraries for ${xehost}])
 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
@@ -49,11 +49,9 @@
 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 esac
 
-changequote(<<, >>)dnl
-xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-changequote([, ])dnl
+xehost_cpu=`echo $xehost | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`
+xehost_vendor=`echo $xehost | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
+xehost_os=`echo $xehost | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
 
 case "$xehost_os" in
 aix3*)
@@ -71,7 +69,7 @@
 if test "$GCC" = "yes"; then
   XEGCC=yes
 else
-  AC_MSG_CHECKING(checking whether we are using GNU C)
+  AC_MSG_CHECKING([whether we are using GNU C])
   AC_EGREP_CPP(yes,[
 #ifdef __GNUC__
   yes;
@@ -80,7 +78,7 @@
   AC_MSG_RESULT([${XEGCC}])
 fi
 
-AC_MSG_CHECKING(how to produce PIC code)
+AC_MSG_CHECKING([how to produce PIC code])
 wl=
 
 can_build_shared=yes
@@ -245,7 +243,7 @@
 cc_produces_so=no
 xldf=
 xcldf=
-AC_MSG_CHECKING(if C compiler can produce shared libraries)
+AC_MSG_CHECKING([if C compiler can produce shared libraries])
 if test "$XEGCC" = yes -o "$__ICC" = yes; then
   case "$xehost_os" in
     *darwin*)
@@ -318,7 +316,7 @@
   ac_prog=ld
   if test "$XEGCC" = yes; then
     # Check if gcc -print-prog-name=ld gives a path.
-    AC_MSG_CHECKING(for ld used by GCC)
+    AC_MSG_CHECKING([for ld used by GCC])
     ac_prog=`($CC -print-prog-name=ld) 2>&5`
     case "$ac_prog" in
     # Accept absolute paths.
@@ -343,7 +341,7 @@
       ;;
     esac
   else
-    AC_MSG_CHECKING(for GNU ld)
+    AC_MSG_CHECKING([for GNU ld])
   fi
 
   if test -z "$LTLD"; then
@@ -383,7 +381,7 @@
 ld_dynamic_link_flags=
 
 # Check to see if it really is or isn't GNU ld.
-AC_MSG_CHECKING(if the linker is GNU ld)
+AC_MSG_CHECKING([if the linker is GNU ld])
 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   xe_gnu_ld=yes
@@ -418,7 +416,7 @@
 else
   # OK - only NOW do we futz about with ld.
   # See if the linker supports building shared libraries.
-  AC_MSG_CHECKING(whether the linker supports shared libraries)
+  AC_MSG_CHECKING([whether the linker supports shared libraries])
   dll_ld=$CC
   dll_ldflags=$LDFLAGS
   ld_shlibs=yes