source: git/ntl/configure @ f45ec2

spielwiese
Last change on this file since f45ec2 was f45ec2, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: ac_cv_cxx_have_exception git-svn-id: file:///usr/local/Singular/svn/trunk@7966 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 1.3 KB
Line 
1#!/bin/sh
2for i in $*
3do
4  case $i in
5  --prefix=*) prefix=`echo $i|sed 's/--prefix=//'` ;;
6  --libdir=*) libdir=`echo $i|sed 's/--libdir=//'` ;;
7  --includedir=*) includedir=`echo $i|sed 's/--includedir=//'` ;;
8  esac
9done
10
11if test -r ../config.cache; then
12  . ../config.cache
13fi
14
15if test set${ac_cv_singuname} = set; then
16  :
17else
18  ac_cv_singuname="unknown"
19  if test -r "../singuname.sh"; then
20    if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
21      ac_cv_singuname=`/bin/sh ../singuname.sh`
22    fi
23  fi
24fi
25
26if test x$SING_CC = x
27then
28  SING_CC=gcc
29fi
30
31if test x$SING_CXX = x
32then
33  SING_CXX=g++
34fi
35
36if test x$CFLAGS = x
37then
38  CFLAGS="-O3 -fomit-frame-pointer"
39fi
40
41if test x$CXXFLAGS = x
42then
43  if test ac_cv_cxx_have_exception = yes
44  then
45    CXXFLAGS="-O3 -fomit-frame-pointer -fno-rtti -fno-exceptions"
46  else
47    CXXFLAGS="-O3 -fomit-frame-pointer -fno-rtti"
48  fi
49fi
50CFLAGS="$CPPFLAGS $CFLAGS"
51CXXFLAGS="$CPPFLAGS $CXXFLAGS"
52echo "#!/bin/sh" >config.status
53echo "cd src" >>config.status
54echo ./configure CC=\"$SING_CC\" CXX=\"$SING_CXX\" LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname} CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" NTL_STD_CXX=off >>config.status
55echo "cd .." >>config.status
56
57chmod +rx config.status
58
59. ./config.status
60
Note: See TracBrowser for help on using the repository browser.