about summary refs log tree commit diff
path: root/sysdeps/m68k/preconfigure
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@embecosm.com>2022-05-13 17:07:23 +0100
committerMaciej W. Rozycki <macro@embecosm.com>2022-05-13 17:07:23 +0100
commitfe7dd93db3a5ea9246cf32dc713995e78fcaffb9 (patch)
tree4e709fe674c6e2be4acb50d2f26d32de109d6207 /sysdeps/m68k/preconfigure
parent7c20479d082eb85ac1179df0411ef3e4a0634298 (diff)
downloadglibc-fe7dd93db3a5ea9246cf32dc713995e78fcaffb9.tar.gz
glibc-fe7dd93db3a5ea9246cf32dc713995e78fcaffb9.tar.xz
glibc-fe7dd93db3a5ea9246cf32dc713995e78fcaffb9.zip
m68k: Use an autoconf template to produce `preconfigure'
Switch to using AC_MSG_ERROR rather than `echo' and `exit' directly for
error handling.  Owing to the lack of any kind of error annotation it
makes it difficult to spot the message in the flood in a parallel build
and neither it is logged in `config.log'.
Diffstat (limited to 'sysdeps/m68k/preconfigure')
-rw-r--r--sysdeps/m68k/preconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/m68k/preconfigure b/sysdeps/m68k/preconfigure
index 1028dac080..b1c4d11091 100644
--- a/sysdeps/m68k/preconfigure
+++ b/sysdeps/m68k/preconfigure
@@ -1,3 +1,6 @@
+# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
+# Local preconfigure fragment for sysdeps/m68k
+
 # This fragment canonicalizes the machine names for m68k variants.
 
 case "$machine" in
@@ -10,8 +13,7 @@ m68k)		variant=`(echo "#ifdef __mcoldfire__"
 			 $CC $CFLAGS $CPPFLAGS -E - |
 			 grep '^[a-z]'`
 		if test -z "$variant"; then
-		  echo >&2 "Cannot determine m68k processor variant"
-		  exit 1
+		  as_fn_error 1 "Cannot determine m68k processor variant" "$LINENO" 5
 		fi
 		base_machine=m68k machine=m68k/$variant
 		if test "$variant" = "coldfire"; then