Greets, Would it be possible to get something along the lines of the attached patch in 8? (major,minor,patch,state version defines)
(I tried making them shell vars and giving it to AC_INIT, but it seemed to want a literal, so...) Yes, I know there are other ways to get and define this information, but [something like] this is considerably more convenient, IMO. -- Regards, James William Pye
Index: configure.in =================================================================== RCS file: /projects/cvsroot/pgsql/configure.in,v retrieving revision 1.383 diff -c -r1.383 configure.in *** configure.in 25 Oct 2004 00:11:04 -0000 1.383 --- configure.in 29 Oct 2004 18:21:13 -0000 *************** *** 26,31 **** --- 26,35 ---- AC_PREFIX_DEFAULT(/usr/local/pgsql) AC_SUBST(configure_args, [$ac_configure_args]) + AC_DEFINE_UNQUOTED(PG_VERSION_MAJOR, 8, [PostgreSQL major version]) + AC_DEFINE_UNQUOTED(PG_VERSION_MINOR, 0, [PostgreSQL minor version]) + AC_DEFINE_UNQUOTED(PG_VERSION_PATCH, 0, [PostgreSQL patch level]) + AC_DEFINE_UNQUOTED(PG_VERSION_STATE, "beta4", [PostgreSQL version state]) AC_DEFINE_UNQUOTED(PG_VERSION, "$PACKAGE_VERSION", [PostgreSQL version]) AC_CANONICAL_HOST Index: src/include/pg_config.h.in =================================================================== RCS file: /projects/cvsroot/pgsql/src/include/pg_config.h.in,v retrieving revision 1.80 diff -c -r1.80 pg_config.h.in *** src/include/pg_config.h.in 6 Oct 2004 09:35:22 -0000 1.80 --- src/include/pg_config.h.in 29 Oct 2004 18:21:13 -0000 *************** *** 587,592 **** --- 587,604 ---- /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT + /* Define to the major version */ + #undef PG_VERSION_MAJOR + + /* Define to the minor version */ + #undef PG_VERSION_MINOR + + /* Define to the patch level */ + #undef PG_VERSION_PATCH + + /* Define to version descriptor */ + #undef PG_VERSION_STATE + /* Define to the full name of this package. */ #undef PACKAGE_NAME
signature.asc
Description: This is a digitally signed message part