dnl
dnl Author: Thomas E. Dickey 1995-on
dnl
-dnl $Id: configure.in,v 1.636 2017/02/12 15:51:08 tom Exp $
+dnl $Id: configure.in,v 1.646 2017/08/07 23:27:56 tom Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
dnl See http://invisible-island.net/autoconf/ for additional information.
dnl
dnl ---------------------------------------------------------------------------
-AC_PREREQ(2.52.20030208)
-AC_REVISION($Revision: 1.636 $)
+AC_PREREQ(2.52.20170501)
+AC_REVISION($Revision: 1.646 $)
AC_INIT(ncurses/base/lib_initscr.c)
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
[cf_with_progs=yes])
AC_MSG_RESULT($cf_with_progs)
+if test -f $srcdir/tack/tack.h; then
+ if test "x$cross_compiling" = xyes ; then
+ CF_VERBOSE(ignoring tack because we are cross-compiling)
+ cf_with_tack=no
+ else
+ AC_MSG_CHECKING(if you want to build the tack program)
+ AC_ARG_WITH(tack,
+ [ --without-tack suppress build/install with tack program],
+ [cf_with_tack=$withval],
+ [cf_with_tack=$cf_with_progs])
+ AC_MSG_RESULT($cf_with_tack)
+ fi
+else
+ cf_with_tack=no
+fi
+
AC_MSG_CHECKING(if you want to build test-programs)
AC_ARG_WITH(tests,
[ --without-tests suppress build/install with test-programs],
AC_MSG_RESULT($with_curses_h)
modules_to_build="ncurses"
-if test "X$cf_with_progs" != Xno ; then
-modules_to_build="$modules_to_build progs tack"
-fi
+test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
+test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
modules_to_build="$modules_to_build panel menu form"
AC_ARG_PROGRAM
AC_MSG_RESULT($with_ext_funcs)
if test "x$with_ext_funcs" = xyes ; then
NCURSES_EXT_FUNCS=1
- AC_DEFINE(HAVE_ASSUME_DEFAULT_COLORS,1,[Define to 1 to enable assume_default_colors() function])
- AC_DEFINE(HAVE_CURSES_VERSION,1,[Define to 1 to enable curses_version() function])
- AC_DEFINE(HAVE_HAS_KEY,1,[Define to 1 to enable has_key() function])
- AC_DEFINE(HAVE_RESIZETERM,1,[Define to 1 to enable resizeterm() function])
- AC_DEFINE(HAVE_RESIZE_TERM,1,[Define to 1 to enable resize_term() function])
- AC_DEFINE(HAVE_TERM_ENTRY_H,1,[Define to 1 to enable term_entry() function])
- AC_DEFINE(HAVE_USE_DEFAULT_COLORS,1,[Define to 1 to enable use_default_colors() function])
- AC_DEFINE(HAVE_USE_EXTENDED_NAMES,1,[Define to 1 to enable use_extended_names() function])
- AC_DEFINE(HAVE_USE_SCREEN,1,[Define to 1 to enable use_screen() function])
- AC_DEFINE(HAVE_USE_WINDOW,1,[Define to 1 to enable use_window() function])
- AC_DEFINE(HAVE_WRESIZE,1,[Define to 1 to enable wresize() function])
AC_DEFINE(NCURSES_EXT_FUNCS,1,[Define to 1 to enable ncurses extended functions])
+ AC_DEFINE(HAVE_ASSUME_DEFAULT_COLORS,1,[Define to 1 to enable assume_default_colors() function in test-programs])
+ AC_DEFINE(HAVE_CURSES_VERSION,1,[Define to 1 to enable curses_version() function in test-programs])
+ AC_DEFINE(HAVE_HAS_KEY,1,[Define to 1 to enable has_key() function in test-programs])
+ AC_DEFINE(HAVE_RESIZETERM,1,[Define to 1 to enable resizeterm() function in test-programs])
+ AC_DEFINE(HAVE_RESIZE_TERM,1,[Define to 1 to enable resize_term() function in test-programs])
+ AC_DEFINE(HAVE_TERM_ENTRY_H,1,[Define to 1 to enable term_entry() function in test-programs])
+ AC_DEFINE(HAVE_USE_DEFAULT_COLORS,1,[Define to 1 to enable use_default_colors() function in test-programs])
+ AC_DEFINE(HAVE_USE_EXTENDED_NAMES,1,[Define to 1 to enable use_extended_names() function in test-programs])
+ AC_DEFINE(HAVE_USE_SCREEN,1,[Define to 1 to enable use_screen() function in test-programs])
+ AC_DEFINE(HAVE_USE_WINDOW,1,[Define to 1 to enable use_window() function in test-programs])
+ AC_DEFINE(HAVE_WRESIZE,1,[Define to 1 to enable wresize() function in test-programs])
GENERATED_EXT_FUNCS=generated
test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
else
if test "x$with_sp_funcs" = xyes ; then
NCURSES_SP_FUNCS=1
AC_DEFINE(NCURSES_SP_FUNCS,1,[Define to 1 to enable SCREEN-extensions])
+ AC_DEFINE(HAVE_TPUTS_SP,1,[Define to 1 to enable tputs_sp() function in test-programs])
GENERATED_SP_FUNCS=generated
else
NCURSES_SP_FUNCS=0
CF_NCURSES_ABI_6
NCURSES_EXT_COLORS=1
AC_DEFINE(NCURSES_EXT_COLORS,1,[Define to 1 to compile for 256-color support])
+ AC_DEFINE(HAVE_ALLOC_PAIR,1,[Define to 1 to enable alloc_pair() function])
+ AC_DEFINE(HAVE_INIT_EXTENDED_COLOR,1,[Define to 1 to enable init_extended_color() function in test-programs])
fi
fi
AC_SUBST(NCURSES_EXT_COLORS)
LIB_TRACING=all
ADA_TRACE=TRUE
CF_ADD_CFLAGS(-DTRACE)
+ AC_DEFINE(HAVE__TRACEF,1,[Define to 1 if we have _tracef function])
else
LIB_TRACING=DEBUG
ADA_TRACE=FALSE
strdup \
strstr \
tcgetpgrp \
+tdestroy \
times \
+tsearch \
vsnprintf \
)
-if test "x$ac_cv_func_getopt" = xno &&
+if test "x$ac_cv_func_getopt" = xno && \
test "x$cf_with_progs$cf_with_tests" != xnono; then
AC_MSG_ERROR(getopt is required for building programs)
fi
if test "x$cross_compiling" = xyes ; then
ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
+ CHECK_BUILD="#"
else
ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
+ CHECK_BUILD=
fi
AC_SUBST(ADAGEN_LDFLAGS)
+AC_SUBST(CHECK_BUILD)
+
+AC_DEFINE(HAVE_CURSES_DATA_BOOLNAMES,1,[definition needed for in-tree build of tack])
AC_OUTPUT( \
include/MKterm.h.awk \