@@ -804,6 +804,7 @@ SHELL'
804804ac_subst_files=''
805805ac_user_opts='
806806enable_option_checking
807+ with_extra_version
807808with_template
808809with_includes
809810with_libraries
@@ -1507,6 +1508,8 @@ Optional Features:
15071508Optional Packages:
15081509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15091510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511+ --with-extra-version=STRING
1512+ append STRING to version
15101513 --with-template=NAME override operating system template
15111514 --with-includes=DIRS look for additional header files in DIRS
15121515 --with-libraries=DIRS look for additional libraries in DIRS
@@ -2047,16 +2050,44 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
20472050configure_args=$ac_configure_args
20482051
20492052
2053+ PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2054+
20502055
20512056cat >>confdefs.h <<_ACEOF
2052- #define PG_VERSION "$PACKAGE_VERSION "
2057+ #define PG_MAJORVERSION "$PG_MAJORVERSION "
20532058_ACEOF
20542059
2055- PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2060+
2061+
2062+
2063+
2064+ # Check whether --with-extra-version was given.
2065+ if test "${with_extra_version+set}" = set; then
2066+ withval=$with_extra_version;
2067+ case $withval in
2068+ yes)
2069+ { { $as_echo "$as_me:$LINENO: error: argument required for --with-extra-version option" >&5
2070+ $as_echo "$as_me: error: argument required for --with-extra-version option" >&2;}
2071+ { (exit 1); exit 1; }; }
2072+ ;;
2073+ no)
2074+ { { $as_echo "$as_me:$LINENO: error: argument required for --with-extra-version option" >&5
2075+ $as_echo "$as_me: error: argument required for --with-extra-version option" >&2;}
2076+ { (exit 1); exit 1; }; }
2077+ ;;
2078+ *)
2079+ PG_VERSION="$PACKAGE_VERSION$withval"
2080+ ;;
2081+ esac
2082+
2083+ else
2084+ PG_VERSION="$PACKAGE_VERSION"
2085+ fi
2086+
20562087
20572088
20582089cat >>confdefs.h <<_ACEOF
2059- #define PG_MAJORVERSION "$PG_MAJORVERSION "
2090+ #define PG_VERSION "$PG_VERSION "
20602091_ACEOF
20612092
20622093
@@ -30284,7 +30315,7 @@ fi
3028430315
3028530316
3028630317cat >>confdefs.h <<_ACEOF
30287- #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30318+ #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
3028830319_ACEOF
3028930320
3029030321
0 commit comments