From c82afd5c8844c2cd5c411124fb077ca15dce6095 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 11 Sep 2003 14:42:55 +1000 Subject: - (dtucker) [configure.ac] Bug #588, #615: Move other libgen tests to after the dirname test, to allow a broken dirname to be detected correctly. Based partially on patch supplied by alex.kiernan at thus.net. ok djm@ --- ChangeLog | 7 ++++++- configure.ac | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3a2a38fde..ce319f38b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +20030911 + - (dtucker) [configure.ac] Bug #588, #615: Move other libgen tests to after + the dirname test, to allow a broken dirname to be detected correctly. + Based partially on patch supplied by alex.kiernan at thus.net. ok djm@ + 20030910 - (dtucker) [configure.ac] Bug #636: Add support for Cray's new X1 machine. Patch from wendyp at cray.com. @@ -1059,4 +1064,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.2978 2003/09/10 10:17:40 dtucker Exp $ +$Id: ChangeLog,v 1.2979 2003/09/11 04:42:55 dtucker Exp $ diff --git a/configure.ac b/configure.ac index cac1bbf2a..d5d6f546d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.149 2003/09/10 05:22:45 dtucker Exp $ +# $Id: configure.ac,v 1.150 2003/09/11 04:42:56 dtucker Exp $ AC_INIT AC_CONFIG_SRCDIR([ssh.c]) @@ -442,7 +442,7 @@ int main(){exit(0);} # Checks for header files. AC_CHECK_HEADERS(bstring.h crypt.h endian.h features.h floatingpoint.h \ - getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \ + getopt.h glob.h ia.h lastlog.h limits.h login.h \ login_cap.h maillock.h netdb.h netgroup.h \ netinet/in_systm.h paths.h pty.h readpassphrase.h \ rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ @@ -463,9 +463,6 @@ if test "x$with_tcp_wrappers" != "xno" ; then fi fi -AC_CHECK_FUNC(getspnam, , - AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")) - AC_ARG_WITH(rpath, [ --without-rpath Disable auto-added -R linker paths], [ @@ -676,7 +673,6 @@ AC_CHECK_FUNCS(\ ) AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) -AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) dnl Make sure prototypes are defined for these before using them. AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)]) @@ -726,6 +722,10 @@ int main(int argc, char **argv) { ]) ]) +AC_CHECK_FUNC(getspnam, , + AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")) +AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) + dnl Checks for time functions AC_CHECK_FUNCS(gettimeofday time) dnl Checks for utmp functions -- cgit v1.2.3