Skip to content
Snippets Groups Projects
Commit d00160ff authored by Moe Jette's avatar Moe Jette
Browse files

Updated tests for AIX: sysint.h, inttypes.h, termcap.h, hstrerror(),

and readline().
parent 94b48e9b
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ dnl ...@@ -41,6 +41,7 @@ dnl
AC_CHECK_HEADERS(mcheck.h values.h socket.h sys/socket.h \ AC_CHECK_HEADERS(mcheck.h values.h socket.h sys/socket.h \
stdbool.h sys/ipc.h sys/shm.h sys/sem.h errno.h \ stdbool.h sys/ipc.h sys/shm.h sys/sem.h errno.h \
stdlib.h dirent.h pthread.h sys/prctl.h \ stdlib.h dirent.h pthread.h sys/prctl.h \
sysint.h inttypes.h termcap.h \
) )
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AC_HEADER_TIME AC_HEADER_TIME
...@@ -69,6 +70,7 @@ dnl ...@@ -69,6 +70,7 @@ dnl
AC_FUNC_MALLOC AC_FUNC_MALLOC
AC_FUNC_STRERROR_R AC_FUNC_STRERROR_R
AC_CHECK_FUNCS( \ AC_CHECK_FUNCS( \
hstrerror \
strerror \ strerror \
mtrace \ mtrace \
strsignal \ strsignal \
...@@ -78,8 +80,7 @@ AC_CHECK_FUNCS( \ ...@@ -78,8 +80,7 @@ AC_CHECK_FUNCS( \
setproctitle \ setproctitle \
) )
AC_CHECK_DECLS([hstrerror, strsignal, sys_siglist])
AC_CHECK_DECLS([strsignal, sys_siglist])
ACX_PTHREAD([], AC_MSG_ERROR([Error: Cannot figure out how to use pthreads!])) ACX_PTHREAD([], AC_MSG_ERROR([Error: Cannot figure out how to use pthreads!]))
...@@ -159,6 +160,7 @@ AC_SUBST(SLURMD_PORT) ...@@ -159,6 +160,7 @@ AC_SUBST(SLURMD_PORT)
dnl check for whether to include Elan support dnl check for whether to include Elan support
dnl dnl
AC_MSG_CHECKING(whether to include Elan support)
savedLIBS="$LIBS" savedLIBS="$LIBS"
AC_CHECK_LIB([elanctrl], [elanctrl_open], AC_CHECK_LIB([elanctrl], [elanctrl_open],
[ have_elanctrl=yes [ have_elanctrl=yes
...@@ -196,13 +198,15 @@ AC_ARG_ENABLE(readline, ...@@ -196,13 +198,15 @@ AC_ARG_ENABLE(readline,
[ readline=no ], [ readline=no ],
[ readline=yes ] [ readline=yes ]
) )
if test x$readline = xyes; then
AC_CHECK_LIB([readline], [readline], [], [ readline=no ])
fi
AC_MSG_RESULT(${readline}) AC_MSG_RESULT(${readline})
if test x$readline = xyes; then if test x$readline = xyes; then
savedLIBS="$LIBS" savedLIBS="$LIBS"
READLINE_LIBS="-lreadline -lncurses" READLINE_LIBS="-lreadline -lncurses"
LIBS="$READLINE_LIBS $LIBS" LIBS="$READLINE_LIBS $LIBS"
AC_CHECK_LIB([readline], [readline], [], AC_MSG_ERROR([Cannot find libreadline!]))
AC_DEFINE(HAVE_READLINE, 1, [Define if you are compiling with readline]) AC_DEFINE(HAVE_READLINE, 1, [Define if you are compiling with readline])
LIBS="$savedLIBS" LIBS="$savedLIBS"
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment