Remove Alpha architecture detection

This architecture doesn't exist and is not supported since a very long
time, so stop testing for it and defining __ALPHA__ which was never used
anyhow.
This commit is contained in:
Vadim Zeitlin 2023-01-26 17:30:11 +01:00
parent 15e556e027
commit e5380e739b
7 changed files with 1 additions and 43 deletions

View file

@ -79,7 +79,6 @@
#cmakedefine __VMS__ 1
#cmakedefine __IA64__ 1
#cmakedefine __ALPHA__ 1
/* NanoX (with wxX11) */
#cmakedefine01 wxUSE_NANOX

18
configure vendored
View file

@ -3854,22 +3854,10 @@ case "${host}" in
USE_LINUX=1
$as_echo "#define __LINUX__ 1" >>confdefs.h
TMP=`uname -m`
if test "x$TMP" = "xalpha"; then
USE_ALPHA=1
$as_echo "#define __ALPHA__ 1" >>confdefs.h
fi
DEFAULT_DEFAULT_wxUSE_GTK=1
;;
*-*-gnu* | *-*-k*bsd*-gnu )
USE_GNU=1
TMP=`uname -m`
if test "x$TMP" = "xalpha"; then
USE_ALPHA=1
$as_echo "#define __ALPHA__ 1" >>confdefs.h
fi
DEFAULT_DEFAULT_wxUSE_GTK=1
;;
*-*-irix5* | *-*-irix6* )
@ -3943,20 +3931,14 @@ case "${host}" in
CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
;;
*-*-osf* )
USE_ALPHA=1
USE_OSF=1
$as_echo "#define __ALPHA__ 1" >>confdefs.h
$as_echo "#define __OSF__ 1" >>confdefs.h
DEFAULT_DEFAULT_wxUSE_GTK=1
NEEDS_D_REENTRANT_FOR_R_FUNCS=1
;;
*-*-dgux5* )
USE_ALPHA=1
USE_SVR4=1
$as_echo "#define __ALPHA__ 1" >>confdefs.h
$as_echo "#define __SVR4__ 1" >>confdefs.h
DEFAULT_DEFAULT_wxUSE_GTK=1

View file

@ -158,20 +158,10 @@ case "${host}" in
*-*-linux* )
USE_LINUX=1
AC_DEFINE(__LINUX__)
TMP=`uname -m`
if test "x$TMP" = "xalpha"; then
USE_ALPHA=1
AC_DEFINE(__ALPHA__)
fi
DEFAULT_DEFAULT_wxUSE_GTK=1
;;
*-*-gnu* | *-*-k*bsd*-gnu )
USE_GNU=1
TMP=`uname -m`
if test "x$TMP" = "xalpha"; then
USE_ALPHA=1
AC_DEFINE(__ALPHA__)
fi
DEFAULT_DEFAULT_wxUSE_GTK=1
;;
*-*-irix5* | *-*-irix6* )
@ -232,17 +222,13 @@ case "${host}" in
CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
;;
*-*-osf* )
USE_ALPHA=1
USE_OSF=1
AC_DEFINE(__ALPHA__)
AC_DEFINE(__OSF__)
DEFAULT_DEFAULT_wxUSE_GTK=1
NEEDS_D_REENTRANT_FOR_R_FUNCS=1
;;
*-*-dgux5* )
USE_ALPHA=1
USE_SVR4=1
AC_DEFINE(__ALPHA__)
AC_DEFINE(__SVR4__)
DEFAULT_DEFAULT_wxUSE_GTK=1
;;

View file

@ -107,7 +107,7 @@ Note that not all of these symbols are always defined, it depends on the
compiler used.
@beginDefList
@itemdef{\__ALPHA__, DEC Alpha architecture}
@itemdef{\__ALPHA__, DEC Alpha architecture (not supported any longer)}
@itemdef{\__INTEL__, Intel i386 or compatible}
@itemdef{\__IA64__, Intel 64 bit architecture}
@itemdef{\__POWERPC__, Motorola Power PC (not supported any longer)}

View file

@ -183,13 +183,6 @@
#endif
#endif /* ia64 */
#if defined(_M_ALPHA) || defined(__AXP__)
#ifndef __ALPHA__
#define __ALPHA__
#endif
#endif /* alpha */
/*
Always define wxUSE_UNICODE as 1 for compatibility.

View file

@ -82,7 +82,6 @@
#undef __VMS__
#undef __IA64__
#undef __ALPHA__
/* NanoX (with wxX11) */
#define wxUSE_NANOX 0

View file

@ -123,7 +123,6 @@ typedef pid_t GPid;
#define __VMS__
#undef __IA64__
#define __ALPHA__
/* NanoX (with wxX11) */
#define wxUSE_NANOX 0