summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2016-04-25 23:09:18 (GMT)
committerStefan Krah <skrah@bytereef.org>2016-04-25 23:09:18 (GMT)
commit267b639a2655d283282813219730704a8d2743b7 (patch)
treeb6b35a76827f1f9d6aea1634ebaae2739d136724 /configure
parent8e1da5823b4dabbc5e60f8ee27411070a37804ef (diff)
downloadcpython-267b639a2655d283282813219730704a8d2743b7.zip
cpython-267b639a2655d283282813219730704a8d2743b7.tar.gz
cpython-267b639a2655d283282813219730704a8d2743b7.tar.bz2
Issue #20306: The pw_gecos and pw_passwd fields are not required by POSIX.
If they aren't present, set them to an empty string.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index ee8a8fc..a961f39 100755
--- a/configure
+++ b/configure
@@ -12918,6 +12918,33 @@ _ACEOF
fi
+ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
+ #include <sys/types.h>
+ #include <pwd.h>
+
+"
+if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_PASSWD_PW_GECOS 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
+ #include <sys/types.h>
+ #include <pwd.h>
+
+"
+if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
+_ACEOF
+
+
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
$as_echo_n "checking for time.h that defines altzone... " >&6; }