diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 8d9143e6c..431c6446b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.131 2003/07/07 09:44:01 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.132 2003/07/08 10:52:13 dtucker Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -75,12 +75,25 @@ case "$host" in | |||
75 | AC_MSG_RESULT($blibflags) | 75 | AC_MSG_RESULT($blibflags) |
76 | fi | 76 | fi |
77 | LDFLAGS="$saved_LDFLAGS" | 77 | LDFLAGS="$saved_LDFLAGS" |
78 | AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)], | 78 | # Check for authenticate. Might be in libs.a on older AIXes |
79 | AC_CHECK_FUNC(authenticate, [with_aixauthenticate=1], | ||
79 | [AC_CHECK_LIB(s,authenticate, | 80 | [AC_CHECK_LIB(s,authenticate, |
80 | [ AC_DEFINE(WITH_AIXAUTHENTICATE) | 81 | [ with_aixaixauthenticate=1 |
81 | LIBS="$LIBS -ls" | 82 | LIBS="$LIBS -ls" |
82 | ]) | 83 | ]) |
83 | ]) | 84 | ]) |
85 | # Check if loginfailed takes 3 arguments (AIX <= 5.1) | ||
86 | if (test "x$with_aixauthenticate" = "x1" ); then | ||
87 | AC_DEFINE(WITH_AIXAUTHENTICATE) | ||
88 | AC_MSG_CHECKING(if loginfailed takes 3 arguments) | ||
89 | AC_TRY_COMPILE( | ||
90 | [#include <usersec.h>], | ||
91 | [(void)loginfailed("user","host","tty");], | ||
92 | [AC_MSG_RESULT(yes) | ||
93 | AC_DEFINE(AIX_LOGINFAILED_3ARG)], | ||
94 | [AC_MSG_RESULT(no)] | ||
95 | ) | ||
96 | fi | ||
84 | AC_DEFINE(BROKEN_GETADDRINFO) | 97 | AC_DEFINE(BROKEN_GETADDRINFO) |
85 | AC_DEFINE(BROKEN_REALPATH) | 98 | AC_DEFINE(BROKEN_REALPATH) |
86 | dnl AIX handles lastlog as part of its login message | 99 | dnl AIX handles lastlog as part of its login message |
@@ -456,8 +469,8 @@ AC_CHECK_HEADERS(bstring.h crypt.h endian.h features.h floatingpoint.h \ | |||
456 | login_cap.h maillock.h netdb.h netgroup.h \ | 469 | login_cap.h maillock.h netdb.h netgroup.h \ |
457 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | 470 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ |
458 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | 471 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ |
459 | strings.h sys/strtio.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | 472 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ |
460 | sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | 473 | sys/cdefs.h sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ |
461 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | 474 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ |
462 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | 475 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ |
463 | util.h utime.h utmp.h utmpx.h) | 476 | util.h utime.h utmp.h utmpx.h) |