@@ -27,6 +27,8 @@ project('postgresql',
2727 ]
2828)
2929
30+ # IvorySQL version
31+ ivorysql_version = ' 5.0'
3032
3133
3234###############################################################
@@ -152,6 +154,8 @@ cdata.set_quoted('PG_MAJORVERSION', pg_version_major.to_string())
152154cdata.set(' PG_MAJORVERSION_NUM' , pg_version_major)
153155cdata.set(' PG_MINORVERSION_NUM' , pg_version_minor)
154156cdata.set(' PG_VERSION_NUM' , pg_version_num)
157+
158+ cdata.set(' PACKAGE_IVORYSQL_VERSION' , ivorysql_version)
155159# PG_VERSION_STR is built later, it depends on compiler test results
156160cdata.set_quoted(' CONFIGURE_ARGS' , '' )
157161
@@ -487,7 +491,7 @@ pkg = 'postgresql'
487491
488492dir_prefix = get_option (' prefix' )
489493
490- dir_prefix_contains_pg = (dir_prefix.contains(' pgsql' ) or dir_prefix.contains(' postgres' ))
494+ dir_prefix_contains_pg = (dir_prefix.contains(' pgsql' ) or dir_prefix.contains(' postgres' ) or dir_prefix.contains( ' IvorySQL ' ) )
491495
492496dir_bin = get_option (' bindir' )
493497
@@ -2973,9 +2977,9 @@ cdata.set_quoted('DLSUFFIX', dlsuffix)
29732977
29742978# built later than the rest of the version metadata, we need SIZEOF_VOID_P
29752979cdata.set_quoted(' PG_VERSION_STR' ,
2976- ' PostgreSQL @0@ on @1@-@2@, compiled by @3@-@4@, @5@-bit' .format(
2980+ ' PostgreSQL (IvorySQL @6@) @0@ on @1@-@2@, compiled by @3@-@4@, @5@-bit' .format(
29772981 pg_version, host_machine .cpu_family(), host_system,
2978- cc.get_id(), cc.version(), cdata.get(' SIZEOF_VOID_P' ) * 8 ,
2982+ cc.get_id(), cc.version(), cdata.get(' SIZEOF_VOID_P' ) * 8 , cdata.get( ' PACKAGE_IVORYSQL_VERSION ' )
29792983 )
29802984)
29812985
0 commit comments