]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
gtx: add configure switch to force not building
authorDerrick Brashear <shadow@dementix.org>
Tue, 12 Jun 2012 18:10:04 +0000 (14:10 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Sat, 14 Nov 2015 17:56:56 +0000 (12:56 -0500)
allow gtx and associated software to be turned off.

Reviewed-on: http://gerrit.openafs.org/7552
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 5d53c12b95c6ffac6c00e4fec6138a51b6185dd7)

Change-Id: I79e3e2116dd244f4561be841beecb7c24eb59a18
Reviewed-on: http://gerrit.openafs.org/12095
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
acinclude.m4

index af56ea4de229a8a824b3d08d0cca50dd26306152..7a27f1b2333a838461a103f30235f9b28b8de33a 100644 (file)
@@ -80,6 +80,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
@@ -1439,16 +1441,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.