X-Git-Url: https://git.distorted.org.uk/~mdw/misc/blobdiff_plain/b1492ec0fdc541709d46c693556fbabbe98b2fc8..92f7c0021fcd48f17b0d48880937ded81db0bf89:/configure.ac diff --git a/configure.ac b/configure.ac index dda3d4e..814b686 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,8 @@ AC_CONFIG_SRCDIR([shadowfix.in]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([foreign]) +AC_CANONICAL_HOST + dnl-------------------------------------------------------------------------- dnl C programming environment. @@ -57,6 +59,10 @@ PKG_CHECK_MODULES([catacomb], [catacomb >= 2.1.1], [have_catacomb=yes], [have_catacomb=no]) AM_CONDITIONAL([HAVE_CATACOMB], [test $have_catacomb = yes]) +## Processor type. +case "$host_cpu" in i?86) x86=yes;; *) x86=no;; esac +AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes]) + dnl-------------------------------------------------------------------------- dnl Python, Perl and other scripting languages.