From: Pekka Riikonen Date: Wed, 20 Sep 2006 17:18:06 +0000 (+0000) Subject: Processor checks. X-Git-Tag: silc.client.1.1.beta1~263 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=92eba1b52782a056e2a09a398e1799e239771dc7 Processor checks. --- diff --git a/configure.ad b/configure.ad index f88c59c7..a4a9d403 100644 --- a/configure.ad +++ b/configure.ad @@ -3,7 +3,7 @@ # # Author: Pekka Riikonen # -# Copyright (C) 2000 - 2005 Pekka Riikonen +# Copyright (C) 2000 - 2006 Pekka Riikonen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -44,6 +44,25 @@ case "$target" in ;; esac +# Get CPU +case "$host_cpu" in + i386) + AC_DEFINE([SILC_I386], [], [SILC_I386]) + ;; + i?86) + AC_DEFINE([SILC_I486], [], [SILC_I486]) + ;; + x86_64) + AC_DEFINE([SILC_X86_64], [], [SILC_X86_64]) + ;; + powerpc*) + AC_DEFINE([SILC_POWERPC], [], [SILC_POWERPC]) + ;; + ia64) + AC_DEFINE([SILC_IA64], [], [SILC_IA64]) + ;; +esac + # Control compiler optimizations CFLAGS=`echo $CFLAGS | sed 's/-O[ 0123456789s]*//g'`