View | Details | Raw Unified | Return to bug 947
Collapse All | Expand All

(-)configure.ac (+19 lines)
Lines 220-225 Link Here
220
	AC_DEFINE(LOCKED_PASSWD_STRING, "*")
220
	AC_DEFINE(LOCKED_PASSWD_STRING, "*")
221
	AC_DEFINE(SPT_TYPE,SPT_PSTAT)
221
	AC_DEFINE(SPT_TYPE,SPT_PSTAT)
222
	check_for_hpux_broken_getaddrinfo=1
222
	check_for_hpux_broken_getaddrinfo=1
223
	check_for_conflicting_getspnam=1
223
	LIBS="$LIBS -lsec"
224
	LIBS="$LIBS -lsec"
224
	AC_CHECK_LIB(xnet, t_error, ,AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***]))
225
	AC_CHECK_LIB(xnet, t_error, ,AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***]))
225
	;;
226
	;;
Lines 1123-1128 Link Here
1123
	)
1124
	)
1124
fi
1125
fi
1125
1126
1127
if test "x$check_for_conflicting_getspnam" = "x1"; then
1128
	AC_MSG_CHECKING(for conflicting getspnam in shadow.h)
1129
	AC_COMPILE_IFELSE(
1130
		[
1131
#include <shadow.h>
1132
int main(void) {exit(0);}
1133
		],
1134
		[
1135
			AC_MSG_RESULT(no)
1136
		],
1137
		[
1138
			AC_MSG_RESULT(yes)
1139
			AC_DEFINE(GETSPNAM_CONFLICTING_DEFS, 1,
1140
			    [Conflicting defs for getspnam])
1141
		]
1142
	)
1143
fi
1144
1126
AC_FUNC_GETPGRP
1145
AC_FUNC_GETPGRP
1127
1146
1128
# Check for PAM libs
1147
# Check for PAM libs
(-)includes.h (-1 / +1 lines)
Lines 185-191 Link Here
185
 * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
185
 * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
186
 * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
186
 * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
187
 */
187
 */
188
#ifdef __hpux
188
#ifdef GETSPNAM_CONFLICTING_DEFS
189
# ifdef _INCLUDE__STDC__
189
# ifdef _INCLUDE__STDC__
190
#  undef _INCLUDE__STDC__
190
#  undef _INCLUDE__STDC__
191
# endif
191
# endif

Return to bug 947