From 15a13967b14c64d8d134ffe59ec8964e75561643 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 22 Dec 2001 20:45:48 +0000 Subject: 2001-12-22 Roland McGrath * configure.in (asm_syntax): Grok "powerpc" value for $host_cpu. Default asm_syntax to $host_cpu if not a known type. Complain about unsupported CPU iff libthreads/$asm_syntax/cthreads.h is missing; make that complaint a warning rather than fatal error. --- configure.in | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 3299af40..730e05e5 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_REVISION([$Id: configure.in,v 1.22 2001/10/12 00:04:58 marcus Exp $]) +AC_REVISION([$Id: configure.in,v 1.23 2001/12/22 20:45:48 roland Exp $]) AC_PREREQ(2.12) dnl Minimum Autoconf version required. AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir. @@ -20,11 +20,22 @@ none) AC_MSG_ERROR([ esac case "$host_cpu" in -i?86) asm_syntax=i386 ;; -*) AC_MSG_ERROR([unsupported CPU type]) ;; +i?86) + asm_syntax=i386 + ;; +powerpc) + asm_syntax=ppc + ;; +*) + asm_syntax="$host_cpu" + ;; esac AC_SUBST(asm_syntax) +test -r "$srcdir/libthreads/$asm_syntax/cthreads.h" || { + AC_MSG_WARN([unsupported CPU type $host_cpu]) +} + AC_ARG_ENABLE(profile, [ --disable-profile do not build profiled libraries and programs]) AC_SUBST(enable_profile) -- cgit v1.2.3