From fc791f3600f811347e1b19f058876f0e262b75ad Mon Sep 17 00:00:00 2001 From: rslopes Date: Fri, 4 Apr 2003 10:32:56 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@817 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- configure | 13 ++++++++++--- misc/Yap.spec | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/configure b/configure index c62addc7e..37e06749b 100755 --- a/configure +++ b/configure @@ -2351,7 +2351,11 @@ fi echo "$as_me:$LINENO: result: $ac_cv_target" >&5 echo "${ECHO_T}$ac_cv_target" >&6 target=$ac_cv_target -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +if test "${tcpu+set}" == set; then + target_cpu=$tcpu +else + target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +fi; target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` @@ -2402,11 +2406,14 @@ then if test "$maxperformance" = "yes" then case "$target_cpu" in + athlon) + CFLAGS="-march=athlon $CFLAGS" + ;; i686*) - CFLAGS="-march=pentiumpro $CFLAGS" + CFLAGS="-march=i686 $CFLAGS" ;; i586*) - CFLAGS="-march=pentium $CFLAGS" + CFLAGS="-march=i586 $CFLAGS" ;; i486*) CFLAGS="-march=i486 $CFLAGS" diff --git a/misc/Yap.spec b/misc/Yap.spec index 6794a6a38..1585af55a 100644 --- a/misc/Yap.spec +++ b/misc/Yap.spec @@ -3,7 +3,7 @@ Summary: Prolog Compiler Version: 4.5.0 Packager: Vitor Santos Costa Release: 1 -Source: http://www.ncc.up.pt/~vsc/Yap/Yap4.3/%{name}-%{version}.tar.gz +Source: http://www.ncc.up.pt/~vsc/Yap/%{name}-%{version}.tar.gz Copyright: Perl Artistic License Provides: yap Requires: readline @@ -25,7 +25,7 @@ rm -rf $RPM_BUILD_ROOT %setup -q %build -./configure --prefix=/usr --enable-coroutining +./configure --prefix=/usr --enable-coroutining --enable-max-performance make %install