@@ -698,6 +698,7 @@ BISON
698698MKDIR_P
699699LN_S
700700TAR
701+ USE_MDBLOCALES
701702install_bin
702703INSTALL_DATA
703704INSTALL_SCRIPT
@@ -944,6 +945,7 @@ with_rt
944945with_libcurl
945946with_apr_config
946947with_gnu_ld
948+ with_mdblocales
947949with_ssl
948950with_openssl
949951enable_openssl_redirect
@@ -1702,6 +1704,7 @@ Optional Packages:
17021704 --without-libcurl do not use libcurl
17031705 --with-apr-config=PATH path to apr-1-config utility
17041706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707+ --without-mdblocales build without MDB locales
17051708 --with-ssl=LIB use LIB for SSL/TLS support (openssl)
17061709 --with-openssl obsolete spelling of --with-ssl=openssl
17071710
@@ -2918,7 +2921,6 @@ PG_PACKAGE_VERSION=14.4
29182921
29192922
29202923
2921-
29222924ac_aux_dir=
29232925for ac_dir in config "$srcdir"/config; do
29242926 if test -f "$ac_dir/install-sh"; then
@@ -12136,6 +12138,38 @@ case $INSTALL in
1213612138esac
1213712139
1213812140
12141+ #
12142+ # MDB locales
12143+ #
12144+
12145+
12146+
12147+
12148+ # Check whether --with-mdblocales was given.
12149+ if test "${with_mdblocales+set}" = set; then :
12150+ withval=$with_mdblocales;
12151+ case $withval in
12152+ yes)
12153+
12154+ $as_echo "#define USE_MDBLOCALES 1" >>confdefs.h
12155+
12156+ ;;
12157+ no)
12158+ :
12159+ ;;
12160+ *)
12161+ as_fn_error $? "no argument expected for --with-mdblocales option" "$LINENO" 5
12162+ ;;
12163+ esac
12164+
12165+ else
12166+ with_mdblocales=no
12167+
12168+ fi
12169+
12170+
12171+
12172+
1213912173if test -z "$TAR"; then
1214012174 for ac_prog in tar
1214112175do
@@ -12772,6 +12806,56 @@ $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
1277212806
1277312807
1277412808
12809+ fi
12810+
12811+ if test "$with_mdblocales" = yes; then
12812+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_setlocale in -lmdblocales" >&5
12813+ $as_echo_n "checking for mdb_setlocale in -lmdblocales... " >&6; }
12814+ if ${ac_cv_lib_mdblocales_mdb_setlocale+:} false; then :
12815+ $as_echo_n "(cached) " >&6
12816+ else
12817+ ac_check_lib_save_LIBS=$LIBS
12818+ LIBS="-lmdblocales $LIBS"
12819+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820+ /* end confdefs.h. */
12821+
12822+ /* Override any GCC internal prototype to avoid an error.
12823+ Use char because int might match the return type of a GCC
12824+ builtin and then its argument prototype would still apply. */
12825+ #ifdef __cplusplus
12826+ extern "C"
12827+ #endif
12828+ char mdb_setlocale ();
12829+ int
12830+ main ()
12831+ {
12832+ return mdb_setlocale ();
12833+ ;
12834+ return 0;
12835+ }
12836+ _ACEOF
12837+ if ac_fn_c_try_link "$LINENO"; then :
12838+ ac_cv_lib_mdblocales_mdb_setlocale=yes
12839+ else
12840+ ac_cv_lib_mdblocales_mdb_setlocale=no
12841+ fi
12842+ rm -f core conftest.err conftest.$ac_objext \
12843+ conftest$ac_exeext conftest.$ac_ext
12844+ LIBS=$ac_check_lib_save_LIBS
12845+ fi
12846+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdblocales_mdb_setlocale" >&5
12847+ $as_echo "$ac_cv_lib_mdblocales_mdb_setlocale" >&6; }
12848+ if test "x$ac_cv_lib_mdblocales_mdb_setlocale" = xyes; then :
12849+ cat >>confdefs.h <<_ACEOF
12850+ #define HAVE_LIBMDBLOCALES 1
12851+ _ACEOF
12852+
12853+ LIBS="-lmdblocales $LIBS"
12854+
12855+ else
12856+ as_fn_error $? "mdblocales library not found" "$LINENO" 5
12857+ fi
12858+
1277512859fi
1277612860
1277712861if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
@@ -16993,6 +17077,17 @@ fi
1699317077
1699417078done
1699517079
17080+ fi
17081+
17082+ if test "$with_mdblocales" = yes; then
17083+ ac_fn_c_check_header_mongrel "$LINENO" "mdblocales.h" "ac_cv_header_mdblocales_h" "$ac_includes_default"
17084+ if test "x$ac_cv_header_mdblocales_h" = xyes; then :
17085+
17086+ else
17087+ as_fn_error $? "mdblocales header not found." "$LINENO" 5
17088+ fi
17089+
17090+
1699617091fi
1699717092
1699817093if test "$with_gssapi" = yes ; then
0 commit comments