Changeset 8cce43 in git


Ignore:
Timestamp:
Jul 16, 2004, 12:19:30 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
84365806d96fff739ae07ed5d5221a623a8f6a3c
Parents:
aa3877a80444c13ab889cf103a8a2fb8e9bb607c
Message:
*hannes: arithm. shifts test for gcc 3


git-svn-id: file:///usr/local/Singular/svn/trunk@7270 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure

    raa3877a r8cce43  
    31443144#line 3145 "configure"
    31453145#include "confdefs.h"
    3146 #include <stdlib.h>
    3147  int main() { if ((-2 >> 1) == -1) exit(0); else exit(1); }
     3146 int main() { if (-2 >> 1 == -1) return(0); else return(1); }
    31483147EOF
    31493148if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  • Singular/configure.in

    raa3877a r8cce43  
    400400AC_MSG_CHECKING(whether your machine has correct arithmetic shifts)
    401401AC_CACHE_VAL(ac_cv_shift, AC_TRY_RUN(
    402   [ #include <stdlib.h>
    403 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } ],
     402  [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
    404403   ac_cv_shift=yes,
    405404   ac_cv_shift=no,
Note: See TracChangeset for help on using the changeset viewer.