aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-05-12 12:56:46 +0000
committerlloyd <[email protected]>2011-05-12 12:56:46 +0000
commitd75753b365350bd2e330aecdd98abc89f73fca23 (patch)
tree29e312a163060986d3b2b40d2ef6830904f503f1 /configure.py
parent4cf2e6a56d58547d241fb8cc42a95924add97665 (diff)
Modify soname to match Unix conventions at suggestion of Debian
maintainer. Namespace the headers in /usr/local/include/botan-1.9/botan, so multiple versions can be installed in parallel. Down version to 1.9.18 since there are a good number of changes in this release already.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index 26af5d499..18d1f273b 100755
--- a/configure.py
+++ b/configure.py
@@ -48,6 +48,7 @@ class BuildConfigurationInformation(object):
version_major = botan_version.release_major
version_minor = botan_version.release_minor
version_patch = botan_version.release_patch
+ version_so_rev = botan_version.release_so_abi_rev
version_datestamp = botan_version.release_datestamp
@@ -124,6 +125,10 @@ class BuildConfigurationInformation(object):
return 'botan-%d.%d.pc' % (self.version_major,
self.version_minor)
+ def config_shell_script(self):
+ return 'botan-config-%d.%d' % (self.version_major,
+ self.version_minor)
+
def username(self):
return getpass.getuser()
@@ -1016,6 +1021,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
'version_major': build_config.version_major,
'version_minor': build_config.version_minor,
'version_patch': build_config.version_patch,
+ 'so_abi_rev': build_config.version_so_rev,
'version': build_config.version_string,
'distribution_info': options.distribution_info,
@@ -1118,7 +1124,9 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
'so_suffix': osinfo.so_suffix,
'botan_config': prefix_with_build_dir(
- os.path.join(build_config.build_dir, 'botan-config')),
+ os.path.join(build_config.build_dir,
+ build_config.config_shell_script())),
+
'botan_pkgconfig': prefix_with_build_dir(
os.path.join(build_config.build_dir,
build_config.pkg_config_file())),
@@ -1386,7 +1394,7 @@ def setup_build(build_config, options, template_vars):
if options.os != 'windows':
yield (options.build_data, 'botan.pc.in', build_config.pkg_config_file())
- yield (options.build_data, 'botan-config.in', 'botan-config')
+ yield (options.build_data, 'botan-config.in', build_config.config_shell_script())
if options.os == 'windows':
yield (options.build_data, 'innosetup.in', 'botan.iss')