aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.py44
-rw-r--r--src/build-data/cc/gcc.txt2
-rw-r--r--src/build-data/cc/icc.txt2
-rw-r--r--src/cert/cvc/info.txt2
-rw-r--r--src/math/gfpmath/info.txt4
5 files changed, 7 insertions, 47 deletions
diff --git a/configure.py b/configure.py
index 5e2e4004d..d48396c8a 100755
--- a/configure.py
+++ b/configure.py
@@ -174,10 +174,6 @@ def process_command_line(args):
default=False, action='store_true',
help='enable Boost.Python wrapper')
- build_group.add_option('--with-tr1-implementation', metavar='WHICH',
- dest='with_tr1', default=None,
- help='enable TR1 (options: none, system, boost)')
-
build_group.add_option('--with-build-dir',
metavar='DIR', default='',
help='setup the build in DIR')
@@ -368,7 +364,6 @@ class ModuleInfo(object):
{ 'load_on': 'auto',
'define': None,
'modset': None,
- 'uses_tr1': 'false',
'need_isa': None,
'note': '',
'mp_bits': 0 })
@@ -399,11 +394,6 @@ class ModuleInfo(object):
self.mp_bits = int(self.mp_bits)
- if self.uses_tr1 == 'yes':
- self.uses_tr1 = True
- else:
- self.uses_tr1 = False
-
def compatible_cpu(self, archinfo, options):
arch_name = archinfo.basename
@@ -423,9 +413,7 @@ class ModuleInfo(object):
def compatible_os(self, os):
return self.os == [] or os in self.os
- def compatible_compiler(self, cc, with_tr1):
- if self.uses_tr1 and with_tr1 not in ['boost', 'system']:
- return False
+ def compatible_compiler(self, cc):
return self.cc == [] or cc in self.cc
def dependencies(self):
@@ -538,8 +526,7 @@ class CompilerInfo(object):
'dll_import_flags': '',
'dll_export_flags': '',
'ar_command': None,
- 'makefile_style': '',
- 'compiler_has_tr1': False,
+ 'makefile_style': ''
})
self.so_link_flags = force_to_dict(self.so_link_flags)
@@ -617,19 +604,8 @@ class CompilerInfo(object):
"""
Return defines for build.h
"""
- def defines(self, with_tr1):
-
- def tr1_macro():
- if with_tr1:
- if with_tr1 == 'boost':
- return ['USE_BOOST_TR1']
- elif with_tr1 == 'system':
- return ['USE_STD_TR1']
- elif self.compiler_has_tr1:
- return ['USE_STD_TR1']
- return []
-
- return ['BUILD_COMPILER_IS_' + self.macro_name] + tr1_macro()
+ def defines(self):
+ return ['BUILD_COMPILER_IS_' + self.macro_name]
class OsInfo(object):
def __init__(self, infofile):
@@ -843,8 +819,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
'target_os_defines': make_cpp_macros(osinfo.defines()),
- 'target_compiler_defines': make_cpp_macros(
- cc.defines(options.with_tr1)),
+ 'target_compiler_defines': make_cpp_macros(cc.defines()),
'target_cpu_defines': make_cpp_macros(arch.defines(options)),
@@ -920,8 +895,7 @@ def choose_modules_to_use(modules, archinfo, options):
cannot_use_because(modname, 'CPU incompatible')
elif not module.compatible_os(options.os):
cannot_use_because(modname, 'OS incompatible')
- elif not module.compatible_compiler(options.compiler,
- options.with_tr1):
+ elif not module.compatible_compiler(options.compiler):
cannot_use_because(modname, 'compiler incompatible')
else:
@@ -1220,12 +1194,6 @@ def main(argv = None):
logging.info('Setting -fpermissive to work around gcc bug')
options.extra_flags = ' -fpermissive'
- if options.with_tr1 == None:
- if ccinfo[options.compiler].compiler_has_tr1:
- options.with_tr1 = 'system'
- else:
- options.with_tr1 = 'none'
-
modules_to_use = choose_modules_to_use(modules,
archinfo[options.arch],
options)
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index 82c1a983d..d1b76edec 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -2,8 +2,6 @@ macro_name "GCC"
binary_name "g++-4.5-20091112"
-compiler_has_tr1 yes
-
compile_option "-c "
output_to_option "-o "
add_include_dir_option "-I"
diff --git a/src/build-data/cc/icc.txt b/src/build-data/cc/icc.txt
index b5cad542c..7187cae56 100644
--- a/src/build-data/cc/icc.txt
+++ b/src/build-data/cc/icc.txt
@@ -2,8 +2,6 @@ macro_name "INTEL"
binary_name "icpc"
-compiler_has_tr1 yes
-
compile_option "-c "
output_to_option "-o "
add_include_dir_option "-I"
diff --git a/src/cert/cvc/info.txt b/src/cert/cvc/info.txt
index bdd496614..ff7e04c07 100644
--- a/src/cert/cvc/info.txt
+++ b/src/cert/cvc/info.txt
@@ -1,7 +1,5 @@
define CARD_VERIFIABLE_CERTIFICATES
-uses_tr1 yes
-
load_on auto
<add>
diff --git a/src/math/gfpmath/info.txt b/src/math/gfpmath/info.txt
index abbdb0a47..e1bf892c7 100644
--- a/src/math/gfpmath/info.txt
+++ b/src/math/gfpmath/info.txt
@@ -1,9 +1,7 @@
-uses_tr1 yes
+define BIGINT_GFP
load_on auto
-define BIGINT_GFP
-
<add>
curve_gfp.cpp
curve_gfp.h