gtx: add configure switch to force not building

allow gtx and associated software to be turned off.

Change-Id: If02427311c79e0784fcc5fb1816a449f7dcdd879
Reviewed-on: http://gerrit.openafs.org/7552
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2012-06-12 14:10:04 -04:00
parent 6d3390bc16
commit 5d53c12b95

View File

@ -79,6 +79,8 @@ AC_ARG_ENABLE([pam],
[AS_HELP_STRING([--disable-pam], [disable PAM support])],
,
[enable_pam="yes"])
AC_ARG_ENABLE([gtx],
AS_HELP_STRING([--disable-gtx], [disable gtx curses-based terminal tools]))
AC_ARG_ENABLE([namei-fileserver],
[AS_HELP_STRING([--enable-namei-fileserver],
[force compilation of namei fileserver in preference to inode
@ -1371,16 +1373,16 @@ dnl see what struct stat has for timestamps
AC_CHECK_MEMBERS([struct stat.st_ctimespec, struct stat.st_ctimensec])
dnl check for curses-lib
save_LIBS=$LIBS
AC_CHECK_LIB( [ncurses], [setupterm],
[LIB_curses=-lncurses],
[AC_CHECK_LIB([Hcurses], [setupterm], [LIB_curses=-lHcurses],
[AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses])
])
])
LIBS=$save_LIBS
AC_SUBST(LIB_curses)
AS_IF([test "x$enable_gtx" != "xno"],
[save_LIBS=$LIBS
AC_CHECK_LIB( [ncurses], [setupterm],
[LIB_curses=-lncurses],
[AC_CHECK_LIB([Hcurses], [setupterm], [LIB_curses=-lHcurses],
[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.