mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Heimdal support (Kerberos V implementation from KTH)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
# Macros that test various C library quirks
|
||||
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.10 2001/12/20 21:23:05 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.11 2002/02/23 04:17:45 petere Exp $
|
||||
|
||||
|
||||
# PGAC_VAR_INT_TIMEZONE
|
||||
@ -196,3 +196,34 @@ if test x"$pgac_cv_header_strings_both" = x"yes"; then
|
||||
AC_DEFINE([STRING_H_WITH_STRINGS_H], 1,
|
||||
[Define if string.h and strings.h may both be included])
|
||||
fi])
|
||||
|
||||
|
||||
# PGAC_CHECK_MEMBER(AGGREGATE.MEMBER,
|
||||
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
|
||||
# [INCLUDES])
|
||||
# -----------------------------------------------------------
|
||||
|
||||
AC_DEFUN([PGAC_CHECK_MEMBER],
|
||||
[changequote(<<, >>)dnl
|
||||
dnl The name to #define.
|
||||
define(<<pgac_define_name>>, translit(HAVE_$1, [a-z .*], [A-Z__P]))dnl
|
||||
dnl The cache variable name.
|
||||
define(<<pgac_cache_name>>, translit(pgac_cv_member_$1, [ .*], [__p]))dnl
|
||||
changequote([, ])dnl
|
||||
AC_CACHE_CHECK([for $1], [pgac_cache_name],
|
||||
[AC_TRY_COMPILE([$4],
|
||||
[static ]patsubst([$1], [\..*])[ pgac_var;
|
||||
if (pgac_var.]patsubst([$1], [^[^.]*\.])[)
|
||||
return 0;],
|
||||
[pgac_cache_name=yes],
|
||||
[pgac_cache_name=no])])
|
||||
|
||||
if test x"[$]pgac_cache_name" = x"yes"; then
|
||||
AC_DEFINE_UNQUOTED(pgac_define_name)
|
||||
$2
|
||||
else
|
||||
ifelse([$3], [], :, [$3])
|
||||
fi
|
||||
undefine([pgac_define_name])[]dnl
|
||||
undefine([pgac_cache_name])[]dnl
|
||||
])
|
||||
|
Reference in New Issue
Block a user