Changeset b46fb9 in git for factory/configure.in


Ignore:
Timestamp:
Jul 7, 2009, 1:11:08 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6ca8b083892b98cc2f6836da7504ab9d4272cf90
Parents:
54ed6df8d8f33c1423cacc5e38b8a47e3185c072
Message:
*hannes: use C for arithmetic shift test


git-svn-id: file:///usr/local/Singular/svn/trunk@11952 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/configure.in

    r54ed6d rb46fb9  
    11dnl # emacs edit mode for this file is -*- sh -*-
    2 dnl # $Id: configure.in,v 1.49 2008-08-20 12:52:32 Singular Exp $
     2dnl # $Id: configure.in,v 1.50 2009-07-07 11:11:08 Singular Exp $
    33
    44dnl #
     
    1313# - initialisation.
    1414#
    15 AC_REVISION($Id: configure.in,v 1.49 2008-08-20 12:52:32 Singular Exp $)
     15AC_REVISION($Id: configure.in,v 1.50 2009-07-07 11:11:08 Singular Exp $)
    1616AC_INIT(canonicalform.cc)
    1717AC_CONFIG_HEADER(config.h)
     
    247247fi
    248248
     249# arithmetic shift
     250AC_MSG_CHECKING(whether your compiler does arithmetic shifts)
     251AC_CACHE_VAL(ac_cv_shift,
     252  [ LDFLAGS="-L$explicit_libdir $LDFLAGS"
     253        AC_TRY_RUN(
     254      [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
     255      ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ])
     256if test "x$ac_cv_shift" = xyes; then   
     257  AC_MSG_RESULT(yes)
     258else
     259  AC_MSG_RESULT(no)
     260fi
     261
    249262#
    250263# - check for header files.
     
    310323
    311324# font-lock-trick: '
    312 
    313 # arithmetic shift
    314 AC_MSG_CHECKING(whether your compiler does arithmetic shifts)
    315 AC_CACHE_VAL(ac_cv_shift,
    316   [ LDFLAGS="-L$explicit_libdir $LDFLAGS"
    317         AC_TRY_RUN(
    318       [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
    319       ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ])
    320 if test "x$ac_cv_shift" = xyes; then   
    321   AC_MSG_RESULT(yes)
    322 else
    323   AC_MSG_RESULT(no)
    324 fi
    325325
    326326#
Note: See TracChangeset for help on using the changeset viewer.