AC_CHECK_HEADERS(sys/socket.h sys/ioctl.h errno.h time.h syslog.h)
AC_CHECK_HEADERS(linux/errqueue.h,,,[#include <linux/types.h>])
AC_CHECK_HEADERS(et/com_err.h stdio_ext.h)
+AC_CHECK_HEADERS(ncurses.h curses.h)
AC_CHECK_TYPES([fsblkcnt_t],,,[
#include <sys/types.h>
#endif
])
+dnl check for curses-lib
+save_LIBS=$LIBS
+AC_CHECK_LIB( [ncurses], [setupterm],
+[LIB_curses=-lncurses],
+[AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses])])
+LIBS=$save_LIBS
+AC_SUBST(LIB_curses)
+
OPENAFS_TEST_PACKAGE(libintl,[#include <libintl.h>],[-lintl],,,INTL)
dnl Don't build PAM on IRIX; the interface doesn't work for us.
setprogname \
setvbuf \
sigaction \
- snprintf \
strcasestr \
strerror \
timegm \
- vsnprintf \
- vsyslog \
])
OPENAFS_ROKEN()
strsep \
])
-dnl Functions that we're going to try and get from libroken
+dnl Functions that are in objects that we always build from libroken
+AC_CHECK_FUNCS([ \
+ asprintf \
+ asnprintf \
+ vasprintf \
+ vasnprintf \
+ vsnprintf \
+ snprintf \
+])
+dnl Functions that we're going to try and get from libroken
AC_REPLACE_FUNCS([ \
daemon \
ecalloc \
errx \
getopt \
getprogname \
+ mkstemp \
strcasecmp \
strlcat \
strnlen \
strlcpy \
+ strsep \
verr \
verrx \
vsyslog \
#include <netdb.h>
#endif
])
+AC_CHECK_TYPES([long long], [], [], [])
AC_SIZEOF_TYPE(long)
LIB_hcrypto="-lafshcrypto"
AC_SUBST(LIB_hcrypto)
])
+
+AC_DEFUN([SUMMARY], [
+ # Print a configuration summary
+echo
+echo "**************************************"
+echo configure summary
+echo
+AS_IF([test $LIB_curses],[
+echo "LIB_curses : $LIB_curses" ],[
+echo "XXX LIB_curses not found! not building scout and afsmonitor!"
+])
+echo
+echo "**************************************"
+])