[AIX/IBMers read] Re: AIX and Privsep.
Tim Rice
tim at multitalents.net
Fri Jul 5 11:50:31 EST 2002
On Thu, 4 Jul 2002, Darren Tucker wrote:
> It doesn't work on 4.2.1, because it doesn't get compiled in. Configure
> doesn't define WITH_AIXAUTHENTICATE because authenticate() is in libs.a
> which isn't linked. Seting LDFLAGS="-ls" before running configure
> defines WITH_AIXAUTHENTICATE and lockout works OK.
>
> The existing configure.ac works on 4.3.3 authenticate() is in libc.a
> too.
>
> What's the consensus?
Fix configure.ac
Does the attached patch work?
> a) Do nothing and make people using 4.2.1 set LDFLAGS themselves.
> b) Add "-ls" to LDFLAGS for AIX in configure.ac. This works on 4.[23]
> but I'm not sure about 5.1.
>
>
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
-------------- next part --------------
--- configure.ac.old Mon Jul 1 13:38:23 2002
+++ configure.ac Thu Jul 4 18:46:54 2002
@@ -71,7 +71,12 @@
)
LDFLAGS="$saved_LDFLAGS"
fi
- AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
+ AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)],
+ [AC_CHECK_LIB(libs,authenticate,
+ [AC_DEFINE(WITH_AIXAUTHENTICATE)
+ LIBS="$LIBS -ls"
+ ])
+ ])
AC_DEFINE(BROKEN_GETADDRINFO)
AC_DEFINE(BROKEN_REALPATH)
dnl AIX handles lastlog as part of its login message
More information about the openssh-unix-dev
mailing list