@@ -17,13 +17,14 @@ dnl Read the Autoconf manual for details.
1717dnl
1818m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
1919
20- AC_INIT([PostgresPro], [9.5.0.1 ], [pgsql-bugs@postgrespro.com])
20+ AC_INIT([PostgresPro], [9.5.1.3 ], [pgsql-bugs@postgrespro.com])
2121
2222m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
2323Untested combinations of 'autoconf' and PostgreSQL versions are not
2424recommended. You can remove the check from 'configure.in' but it is then
2525your responsibility whether the result works or not.])])
26- AC_COPYRIGHT([Copyright (c) 1996-2015, PostgreSQL Global Development Group])
26+ AC_COPYRIGHT([Copyright (c) 1996-2015, PostgreSQL Global Development Group
27+ Copyright (c) 2015-2016, Postgres Professional])
2728AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
2829AC_CONFIG_AUX_DIR(config)
2930AC_PREFIX_DEFAULT(/usr/local/pgsql)
@@ -699,6 +700,16 @@ PGAC_ARG_BOOL(with, selinux, no, [build with SELinux support])
699700AC_SUBST(with_selinux)
700701AC_MSG_RESULT([$with_selinux])
701702
703+ #
704+ # ICU
705+ #
706+ AC_MSG_CHECKING([whether to build with ICU support])
707+ PGAC_ARG_BOOL(with, icu, no, [ --with-icu build with ICU support],
708+ [AC_DEFINE([USE_ICU], 1, [Define to build with ICU support. (--with-icu)])])
709+ AC_MSG_RESULT([$with_icu])
710+ AC_SUBST(with_icu)
711+
712+
702713#
703714# Readline
704715#
@@ -1036,6 +1047,75 @@ if test "$with_openssl" = yes ; then
10361047 AC_CHECK_FUNCS([SSL_get_current_compression])
10371048fi
10381049
1050+ if test "$with_icu" = yes ; then
1051+ AC_SEARCH_LIBS(ucol_open_57, [icui18n icuin], [], [
1052+ AC_SEARCH_LIBS(ucol_open_56, [icui18n icuin], [], [
1053+ AC_SEARCH_LIBS(ucol_open_55, [icui18n icuin], [], [
1054+ AC_SEARCH_LIBS(ucol_open_54, [icui18n icuin], [], [
1055+ AC_SEARCH_LIBS(ucol_open_53, [icui18n icuin], [], [
1056+ AC_SEARCH_LIBS(ucol_open_52, [icui18n icuin], [], [
1057+ AC_SEARCH_LIBS(ucol_open_50, [icui18n icuin], [], [
1058+ AC_SEARCH_LIBS(ucol_open_48, [icui18n icuin], [], [
1059+ AC_SEARCH_LIBS(ucol_open_46, [icui18n icuin], [], [
1060+ AC_SEARCH_LIBS(ucol_open_44, [icui18n icuin], [], [
1061+ AC_SEARCH_LIBS(ucol_open_43, [icui18n icuin], [], [
1062+ AC_SEARCH_LIBS(ucol_open_4_2, [icui18n icuin], [], [
1063+ AC_SEARCH_LIBS(ucol_open_4_1, [icui18n icuin], [], [
1064+ AC_SEARCH_LIBS(ucol_open_4_0, [icui18n icuin], [], [
1065+ AC_SEARCH_LIBS(ucol_open_3_8, [icui18n icuin], [], [
1066+ AC_SEARCH_LIBS(ucol_open_3_6, [icui18n icuin], [], [
1067+ AC_SEARCH_LIBS(ucol_open_3_4, [icui18n icuin], [], [AC_MSG_ERROR([library 'icui18n' is required for ICU])])
1068+ ])
1069+ ])
1070+ ])
1071+ ])
1072+ ])
1073+ ])
1074+ ])
1075+ ])
1076+ ])
1077+ ])
1078+ ])
1079+ ])
1080+ ])
1081+ ])
1082+ ])
1083+ ])
1084+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_57, [], [
1085+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_56, [], [
1086+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_55, [], [
1087+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_54, [], [
1088+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_53, [], [
1089+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_52, [], [
1090+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_50, [], [
1091+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_48, [], [
1092+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_46, [], [
1093+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_44, [], [
1094+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_43, [], [
1095+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_4_2, [], [
1096+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_4_1, [], [
1097+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_4_0, [], [
1098+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_8, [], [
1099+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_6, [], [
1100+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_4, [], [AC_MSG_ERROR([library 'icuuc' is required for ICU])])
1101+ ])
1102+ ])
1103+ ])
1104+ ])
1105+ ])
1106+ ])
1107+ ])
1108+ ])
1109+ ])
1110+ ])
1111+ ])
1112+ ])
1113+ ])
1114+ ])
1115+ ])
1116+ ])
1117+ fi
1118+
10391119if test "$with_pam" = yes ; then
10401120 AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
10411121fi
@@ -1162,6 +1242,10 @@ if test "$with_openssl" = yes ; then
11621242 AC_CHECK_HEADER(openssl/err.h, [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])])
11631243fi
11641244
1245+ if test "$with_icu" = yes ; then
1246+ AC_CHECK_HEADER(unicode/utypes.h, [], [AC_MSG_ERROR([header file <unicode/utypes.h> is required for ICU])])
1247+ fi
1248+
11651249if test "$with_pam" = yes ; then
11661250 AC_CHECK_HEADERS(security/pam_appl.h, [],
11671251 [AC_CHECK_HEADERS(pam/pam_appl.h, [],