diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 54 |
1 files changed, 11 insertions, 43 deletions
diff --git a/configure.ac b/configure.ac index 9777d597f..c30d547d9 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.520 2013/04/18 11:36:20 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.521 2013/04/23 04:25:53 djm Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) | 17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) |
18 | AC_REVISION($Revision: 1.520 $) | 18 | AC_REVISION($Revision: 1.521 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | AC_LANG([C]) | 20 | AC_LANG([C]) |
21 | 21 | ||
@@ -3303,9 +3303,16 @@ OSSH_CHECK_HEADER_FOR_FIELD([ut_time], [utmpx.h], [HAVE_TIME_IN_UTMPX]) | |||
3303 | OSSH_CHECK_HEADER_FOR_FIELD([ut_tv], [utmpx.h], [HAVE_TV_IN_UTMPX]) | 3303 | OSSH_CHECK_HEADER_FOR_FIELD([ut_tv], [utmpx.h], [HAVE_TV_IN_UTMPX]) |
3304 | 3304 | ||
3305 | AC_CHECK_MEMBERS([struct stat.st_blksize]) | 3305 | AC_CHECK_MEMBERS([struct stat.st_blksize]) |
3306 | AC_CHECK_MEMBERS([struct passwd.pw_gecos, struct passwd.pw_class, | ||
3307 | struct passwd.pw_change, struct passwd.pw_expire], | ||
3308 | [], [], [[ | ||
3309 | #include <sys/types.h> | ||
3310 | #include <pwd.h> | ||
3311 | ]]) | ||
3312 | |||
3306 | AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [state], | 3313 | AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [state], |
3307 | [Define if we don't have struct __res_state in resolv.h])], | 3314 | [Define if we don't have struct __res_state in resolv.h])], |
3308 | [ | 3315 | [[ |
3309 | #include <stdio.h> | 3316 | #include <stdio.h> |
3310 | #if HAVE_SYS_TYPES_H | 3317 | #if HAVE_SYS_TYPES_H |
3311 | # include <sys/types.h> | 3318 | # include <sys/types.h> |
@@ -3313,7 +3320,7 @@ AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [sta | |||
3313 | #include <netinet/in.h> | 3320 | #include <netinet/in.h> |
3314 | #include <arpa/nameser.h> | 3321 | #include <arpa/nameser.h> |
3315 | #include <resolv.h> | 3322 | #include <resolv.h> |
3316 | ]) | 3323 | ]]) |
3317 | 3324 | ||
3318 | AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage], | 3325 | AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage], |
3319 | ac_cv_have_ss_family_in_struct_ss, [ | 3326 | ac_cv_have_ss_family_in_struct_ss, [ |
@@ -3343,45 +3350,6 @@ if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | |||
3343 | [Fields in struct sockaddr_storage]) | 3350 | [Fields in struct sockaddr_storage]) |
3344 | fi | 3351 | fi |
3345 | 3352 | ||
3346 | AC_CACHE_CHECK([for pw_class field in struct passwd], | ||
3347 | ac_cv_have_pw_class_in_struct_passwd, [ | ||
3348 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], | ||
3349 | [[ struct passwd p; p.pw_class = 0; ]])], | ||
3350 | [ ac_cv_have_pw_class_in_struct_passwd="yes" ], | ||
3351 | [ ac_cv_have_pw_class_in_struct_passwd="no" | ||
3352 | ]) | ||
3353 | ]) | ||
3354 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
3355 | AC_DEFINE([HAVE_PW_CLASS_IN_PASSWD], [1], | ||
3356 | [Define if your password has a pw_class field]) | ||
3357 | fi | ||
3358 | |||
3359 | AC_CACHE_CHECK([for pw_expire field in struct passwd], | ||
3360 | ac_cv_have_pw_expire_in_struct_passwd, [ | ||
3361 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], | ||
3362 | [[ struct passwd p; p.pw_expire = 0; ]])], | ||
3363 | [ ac_cv_have_pw_expire_in_struct_passwd="yes" ], | ||
3364 | [ ac_cv_have_pw_expire_in_struct_passwd="no" | ||
3365 | ]) | ||
3366 | ]) | ||
3367 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
3368 | AC_DEFINE([HAVE_PW_EXPIRE_IN_PASSWD], [1], | ||
3369 | [Define if your password has a pw_expire field]) | ||
3370 | fi | ||
3371 | |||
3372 | AC_CACHE_CHECK([for pw_change field in struct passwd], | ||
3373 | ac_cv_have_pw_change_in_struct_passwd, [ | ||
3374 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], | ||
3375 | [[ struct passwd p; p.pw_change = 0; ]])], | ||
3376 | [ ac_cv_have_pw_change_in_struct_passwd="yes" ], | ||
3377 | [ ac_cv_have_pw_change_in_struct_passwd="no" | ||
3378 | ]) | ||
3379 | ]) | ||
3380 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
3381 | AC_DEFINE([HAVE_PW_CHANGE_IN_PASSWD], [1], | ||
3382 | [Define if your password has a pw_change field]) | ||
3383 | fi | ||
3384 | |||
3385 | dnl make sure we're using the real structure members and not defines | 3353 | dnl make sure we're using the real structure members and not defines |
3386 | AC_CACHE_CHECK([for msg_accrights field in struct msghdr], | 3354 | AC_CACHE_CHECK([for msg_accrights field in struct msghdr], |
3387 | ac_cv_have_accrights_in_msghdr, [ | 3355 | ac_cv_have_accrights_in_msghdr, [ |