From: jbasney Date: Sat, 17 Feb 2007 03:14:02 +0000 (+0000) Subject: fix for AIX build problems from X-Git-Tag: OPENSSH_4_5P1_20070218_GPT-premerge~5 X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/commitdiff_plain/59246c425f27095a5a36672d9e055c7f0f6fbe45 fix for AIX build problems from http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=115762618401061&w=2 --- diff --git a/openssh/configure.ac b/openssh/configure.ac index e756697..1d9fd0e 100644 --- a/openssh/configure.ac +++ b/openssh/configure.ac @@ -3588,6 +3588,32 @@ else AC_SUBST(XAUTH_PATH) fi +AC_CHECK_DECL(_PATH_BSHELL, , + AC_DEFINE_UNQUOTED(_PATH_BSHELL, "/bin/sh", + [Define to your C shell if not defined in paths.h]) + [ #include ] +) + +AC_CHECK_DECL(_PATH_CSHELL, , + AC_DEFINE_UNQUOTED(_PATH_CSHELL, "/bin/csh", + [Define to your Bourne shell if not defined in paths.h]) + [ #include ] +) + +AC_CHECK_DECL(_PATH_SHELLS, , + AC_DEFINE_UNQUOTED(_PATH_BSHELL, "/etc/shells", + [Define to your shells file if not defined in paths.h]) + [ #include ] +) + +# if _PATH_MAILDIR is in paths.h then we won't go hunting for it. +AC_CHECK_DECL(_PATH_MAILDIR, + AC_DEFINE(PATH_MAILDIR_IN_PATHS_H, 1, + [Define if _PATH_MAILDIR is in paths.h]), + , + [ #include ] +) + # Check for mail directory (last resort if we cannot get it from headers) if test ! -z "$MAIL" ; then maildir=`dirname $MAIL` diff --git a/openssh/defines.h b/openssh/defines.h index 143ede9..c0710b1 100644 --- a/openssh/defines.h +++ b/openssh/defines.h @@ -318,16 +318,6 @@ struct winsize { /* Paths */ -#ifndef _PATH_BSHELL -# define _PATH_BSHELL "/bin/sh" -#endif -#ifndef _PATH_CSHELL -# define _PATH_CSHELL "/bin/csh" -#endif -#ifndef _PATH_SHELLS -# define _PATH_SHELLS "/etc/shells" -#endif - #ifdef USER_PATH # ifdef _PATH_STDPATH # undef _PATH_STDPATH @@ -347,6 +337,8 @@ struct winsize { # define _PATH_DEVNULL "/dev/null" #endif +#ifndef PATH_MAILDIR_IN_PATHS_H + #ifndef MAIL_DIRECTORY # define MAIL_DIRECTORY "/var/spool/mail" #endif @@ -359,6 +351,8 @@ struct winsize { # define _PATH_MAILDIR MAILDIR #endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */ +#endif /* PATH_MAILDIR_IN_PATHS_H */ + #ifndef _PATH_NOLOGIN # define _PATH_NOLOGIN "/etc/nologin" #endif