Changeset 1bc850 in git for factory/configure


Ignore:
Timestamp:
Jul 8, 2009, 12:35:10 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6c359fedc4e4c176b05276f1ca51b65294a14b31
Parents:
4d10648d5056326751bd51ace1aada9cd81a993f
Message:
*hannes: arithmetic shifts


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

Legend:

Unmodified
Added
Removed
  • factory/configure

    r4d1064 r1bc850  
    17401740
    17411741# arithmetic shift
    1742 echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6
    1743 echo "configure:1744: checking whether your compiler does arithmetic shifts" >&5
    1744 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    1745   echo $ac_n "(cached) $ac_c" 1>&6
    1746 else
    1747    LDFLAGS="-L$explicit_libdir $LDFLAGS"
    1748         if test "$cross_compiling" = yes; then
    1749   ac_cv_shift=yes
    1750 else
    1751   cat > conftest.$ac_ext <<EOF
    1752 #line 1753 "configure"
    1753 #include "confdefs.h"
    1754  int main() { if (-2 >> 1 == -1) return(0); else return(1); }
    1755 EOF
    1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1757 then
    1758   ac_cv_shift=yes
    1759 else
    1760   echo "configure: failed program was:" >&5
    1761   cat conftest.$ac_ext >&5
    1762   rm -fr conftest*
    1763   ac_cv_shift=no
    1764 fi
    1765 rm -fr conftest*
    1766 fi
    1767  
    1768 fi
    1769 
    1770 if test "x$ac_cv_shift" = xyes; then   
    1771   echo "$ac_t""yes" 1>&6
    1772 else
    1773   echo "$ac_t""no" 1>&6
    1774 fi
     1742#AC_MSG_CHECKING(whether your compiler does arithmetic shifts)
     1743#AC_CACHE_VAL(ac_cv_shift,
     1744#  [ LDFLAGS="-L$explicit_libdir $LDFLAGS"
     1745#       AC_TRY_RUN(
     1746#      [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
     1747#      ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ])
     1748#if test "x$ac_cv_shift" = xyes; then   
     1749#  AC_MSG_RESULT(yes)
     1750#else
     1751#  AC_MSG_RESULT(no)
     1752#fi
    17751753
    17761754#
     
    17901768ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17911769echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1792 echo "configure:1793: checking for $ac_hdr" >&5
     1770echo "configure:1771: checking for $ac_hdr" >&5
    17931771if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17941772  echo $ac_n "(cached) $ac_c" 1>&6
    17951773else
    17961774  cat > conftest.$ac_ext <<EOF
    1797 #line 1798 "configure"
     1775#line 1776 "configure"
    17981776#include "confdefs.h"
    17991777#include <$ac_hdr>
    18001778EOF
    18011779ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1780{ (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18031781ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18041782if test -z "$ac_err"; then
     
    18311809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18321810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1833 echo "configure:1834: checking for $ac_hdr" >&5
     1811echo "configure:1812: checking for $ac_hdr" >&5
    18341812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18351813  echo $ac_n "(cached) $ac_c" 1>&6
    18361814else
    18371815  cat > conftest.$ac_ext <<EOF
    1838 #line 1839 "configure"
     1816#line 1817 "configure"
    18391817#include "confdefs.h"
    18401818#include <$ac_hdr>
    18411819EOF
    18421820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1821{ (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18441822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18451823if test -z "$ac_err"; then
     
    18791857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18801858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1881 echo "configure:1882: checking for $ac_hdr" >&5
     1859echo "configure:1860: checking for $ac_hdr" >&5
    18821860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18831861  echo $ac_n "(cached) $ac_c" 1>&6
    18841862else
    18851863  cat > conftest.$ac_ext <<EOF
    1886 #line 1887 "configure"
     1864#line 1865 "configure"
    18871865#include "confdefs.h"
    18881866#include <$ac_hdr>
    18891867EOF
    18901868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1869{ (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18921870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18931871if test -z "$ac_err"; then
     
    19201898ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19211899echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1922 echo "configure:1923: checking for $ac_hdr" >&5
     1900echo "configure:1901: checking for $ac_hdr" >&5
    19231901if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19241902  echo $ac_n "(cached) $ac_c" 1>&6
    19251903else
    19261904  cat > conftest.$ac_ext <<EOF
    1927 #line 1928 "configure"
     1905#line 1906 "configure"
    19281906#include "confdefs.h"
    19291907#include <$ac_hdr>
    19301908EOF
    19311909ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1910{ (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19331911ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19341912if test -z "$ac_err"; then
     
    19621940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19631941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1964 echo "configure:1965: checking for $ac_hdr" >&5
     1942echo "configure:1943: checking for $ac_hdr" >&5
    19651943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19661944  echo $ac_n "(cached) $ac_c" 1>&6
    19671945else
    19681946  cat > conftest.$ac_ext <<EOF
    1969 #line 1970 "configure"
     1947#line 1948 "configure"
    19701948#include "confdefs.h"
    19711949#include <$ac_hdr>
    19721950EOF
    19731951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1974 { (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1952{ (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19751953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19761954if test -z "$ac_err"; then
     
    20021980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20031981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for $ac_hdr" >&5
     1982echo "configure:1983: checking for $ac_hdr" >&5
    20051983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20061984  echo $ac_n "(cached) $ac_c" 1>&6
    20071985else
    20081986  cat > conftest.$ac_ext <<EOF
    2009 #line 2010 "configure"
     1987#line 1988 "configure"
    20101988#include "confdefs.h"
    20111989#include <$ac_hdr>
    20121990EOF
    20131991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2014 { (eval echo configure:2015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1992{ (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20151993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20161994if test -z "$ac_err"; then
     
    20462024ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20472025echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2048 echo "configure:2049: checking for $ac_hdr" >&5
     2026echo "configure:2027: checking for $ac_hdr" >&5
    20492027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20502028  echo $ac_n "(cached) $ac_c" 1>&6
    20512029else
    20522030  cat > conftest.$ac_ext <<EOF
    2053 #line 2054 "configure"
     2031#line 2032 "configure"
    20542032#include "confdefs.h"
    20552033#include <$ac_hdr>
    20562034EOF
    20572035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2058 { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2036{ (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20592037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20602038if test -z "$ac_err"; then
     
    20922070ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20932071echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2094 echo "configure:2095: checking for $ac_hdr" >&5
     2072echo "configure:2073: checking for $ac_hdr" >&5
    20952073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20962074  echo $ac_n "(cached) $ac_c" 1>&6
    20972075else
    20982076  cat > conftest.$ac_ext <<EOF
    2099 #line 2100 "configure"
     2077#line 2078 "configure"
    21002078#include "confdefs.h"
    21012079#include <$ac_hdr>
    21022080EOF
    21032081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2104 { (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2082{ (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21052083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21062084if test -z "$ac_err"; then
     
    21362114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    21372115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2138 echo "configure:2139: checking for $ac_hdr" >&5
     2116echo "configure:2117: checking for $ac_hdr" >&5
    21392117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    21402118  echo $ac_n "(cached) $ac_c" 1>&6
    21412119else
    21422120  cat > conftest.$ac_ext <<EOF
    2143 #line 2144 "configure"
     2121#line 2122 "configure"
    21442122#include "confdefs.h"
    21452123#include <$ac_hdr>
    21462124EOF
    21472125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2126{ (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21492127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21502128if test -z "$ac_err"; then
     
    22632241# check whether CXX accepts -fno-rtti
    22642242echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
    2265 echo "configure:2266: checking whether gcc accepts -fno-rtti" >&5
     2243echo "configure:2244: checking whether gcc accepts -fno-rtti" >&5
    22662244tmp_flags=${CXXFLAGS}
    22672245CXXFLAGS="${CXXFLAGS} -fno-rtti"
     
    22702248else
    22712249  cat > conftest.$ac_ext <<EOF
    2272 #line 2273 "configure"
     2250#line 2251 "configure"
    22732251#include "confdefs.h"
    22742252
     
    22772255; return 0; }
    22782256EOF
    2279 if { (eval echo configure:2280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2257if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22802258  rm -rf conftest*
    22812259  ac_cv_cxx_have_rtti=yes
     
    22972275
    22982276echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6
    2299 echo "configure:2300: checking whether gcc accepts -fno-exceptions" >&5
     2277echo "configure:2278: checking whether gcc accepts -fno-exceptions" >&5
    23002278tmp_flags=${CXXFLAGS}
    23012279CXXFLAGS="${CXXFLAGS} -fno-exceptions"
     
    23042282else
    23052283  cat > conftest.$ac_ext <<EOF
    2306 #line 2307 "configure"
     2284#line 2285 "configure"
    23072285#include "confdefs.h"
    23082286
     
    23112289; return 0; }
    23122290EOF
    2313 if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2291if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23142292  rm -rf conftest*
    23152293  ac_cv_cxx_have_exceptions=yes
     
    23622340
    23632341# arithmetic shift
    2364 if test "x$ac_cv_shift" = xyes; then   
    2365   cat >> confdefs.h <<\EOF
    2366 #define HAS_ARITHMETIC_SHIFT 1
    2367 EOF
    2368 
    2369 fi
     2342#if test "x$ac_cv_shift" = xyes; then   
     2343#  AC_DEFINE(HAS_ARITHMETIC_SHIFT)
     2344#fi
    23702345
    23712346# gmp-stuff.  we must not set these flags before the tests
     
    23792354
    23802355echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6
    2381 echo "configure:2382: checking whether to use omalloc" >&5
     2356echo "configure:2357: checking whether to use omalloc" >&5
    23822357
    23832358if test "$with_omalloc" = yes; then
Note: See TracChangeset for help on using the changeset viewer.