source: git/ntl/configure @ 78af57

spielwiese
Last change on this file since 78af57 was b3b060b, checked in by Hans Schönemann <hannes@…>, 14 years ago
fix DOCDIR of NTL 5.5.2 git-svn-id: file:///usr/local/Singular/svn/trunk@12412 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 1.8 KB
Line 
1#!/bin/sh
2# version $Id$
3
4while [ $# -ne 0 ]; do
5   case $1 in
6     --prefix=*)
7         prefix=`echo $1 | sed 's/--prefix=//'` ;
8         ;;
9     --prefix)
10         shift;
11         prefix="$1";
12         ;;
13     --libdir=*)
14         libdir=`echo $1 | sed 's/--libdir=//'` ;
15         ;;
16     --libdir)
17         shift;
18         libdir="$1";
19         ;;
20     --includedir=*)
21         includedir=`echo $1 | sed 's/--includedir=//'` ;
22         ;;
23     --includedir)
24         shift;
25         includedir="$1";
26         ;;
27     *)
28         : ignore all other options
29         ;;
30  esac;
31  shift;
32done
33
34if test -r ../config.cache; then
35  . ../config.cache
36fi
37
38if test set${ac_cv_singuname} = set; then
39  :
40else
41  ac_cv_singuname="unknown"
42  if test -r "../singuname.sh"; then
43    if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
44      ac_cv_singuname=`/bin/sh ../singuname.sh`
45    fi
46  fi
47fi
48
49if test "x$SING_CC" = x
50then
51  SING_CC=gcc
52fi
53
54if test "x$SING_CXX" = x
55then
56  SING_CXX=g++
57fi
58
59if test "x$CFLAGS" = x
60then
61  CFLAGS="-O2 -fomit-frame-pointer"
62fi
63
64if test "x$CXXFLAGS" = x
65then
66  if test x$ac_cv_cxx_have_exception = xyes
67  then
68    CXXFLAGS="-O2 -fomit-frame-pointer -fno-rtti -fno-exceptions"
69  else
70    CXXFLAGS="-O2 -fomit-frame-pointer -fno-rtti"
71  fi
72fi
73
74if test x$ac_cv_header_iostream = xyes
75then
76  NTL_STD_CXX=on
77else
78  NTL_STD_CXX=off
79fi
80
81CFLAGS="$CPPFLAGS $CFLAGS"
82CXXFLAGS="$CPPFLAGS $CXXFLAGS"
83DOCDIR=`pwd`/../doc
84echo "#!/bin/sh" >config.status
85echo "cd src" >>config.status
86echo ./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=$NTL_STD_CXX DOCDIR=\"$DOCDIR\" >>config.status
87echo "cd .." >>config.status
88
89chmod +rx config.status
90
91. ./config.status
Note: See TracBrowser for help on using the repository browser.