*-hpux*)
MKAFS_OSTYPE=HPUX
AC_MSG_RESULT(hp_ux)
+ if test -f "/usr/old/usr/include/ndir.h"; then
+ AC_DEFINE(HAVE_USR_OLD_USR_INCLUDE_NDIR_H, 1, [define if you have old ndir.h])
+ fi
;;
*-irix*)
if test -d /usr/include/sys/SN/SN1; then
AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
fi
if test "x$PTHREAD_LIBS" = xerror; then
+ # pthread_attr_init is a macro under HPUX 11.0 and 11.11
+ AC_CHECK_LIB(pthread, pthread_attr_destroy,
+ PTHREAD_LIBS="-lpthread")
+fi
+if test "x$PTHREAD_LIBS" = xerror; then
AC_MSG_WARN(*** Unable to locate working posix thread library ***)
fi
AC_SUBST(PTHREAD_LIBS)
#if defined(AFS_SGI53_ENV)
afs_int32 use64BitDirent, dirsiz;
#endif /* defined(AFS_SGI53_ENV) */
+#ifndef AFS_HPUX_ENV
OSI_VC_CONVERT(avc);
-#ifdef AFS_HPUX_ENV
+#else
/*
* XXX All the hacks for alloced sdirEntry and inlining of afs_readdir_move instead of calling
* it is necessary for hpux due to stack problems that seem to occur when coming thru the nfs
#include <sys/sysmacros.h>
#include <sys/ino.h>
#define DIRSIZ_MACRO
+#ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
+#include </usr/old/usr/include/ndir.h>
+#else
#include <ndir.h>
+#endif
#else
#define KERNEL
#include <sys/dir.h>
#include <sys/sysmacros.h>
#include <sys/ino.h>
#define DIRSIZ_MACRO
+#ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
+#include </usr/old/usr/include/ndir.h>
+#else
#include <ndir.h>
+#endif
#else
#include <sys/dir.h>
#endif
#include <sys/sysmacros.h>
#include <sys/ino.h>
#define DIRSIZ_MACRO
+#ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
+#include </usr/old/usr/include/ndir.h>
+#else
#include <ndir.h>
+#endif
#else
#define KERNEL
#include <sys/dir.h>
#include <sys/sysmacros.h>
#include <sys/ino.h>
#define DIRSIZ_MACRO
+#ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
+#include </usr/old/usr/include/ndir.h>
+#else
#include <ndir.h>
+#endif
#else
#include <sys/dir.h>
#endif
#include <sys/ino.h>
#include <sys/signal.h>
#define DIRSIZ_MACRO
+#ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
+#include </usr/old/usr/include/ndir.h>
+#else
#include <ndir.h>
+#endif
#else
#include <sys/dir.h>
#endif
#include <sys/sysmacros.h>
#include <sys/ino.h>
#define DIRSIZ_MACRO
+#ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
+#include </usr/old/usr/include/ndir.h>
+#else
#include <ndir.h>
+#endif
#else
#define KERNEL
#include <sys/dir.h>