X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fconfigure.in;h=d99456a06d475a9b0bcde40ea4bee90b7ac49594;hp=451cc018bab141a2f09624194ba46ea14494c48a;hb=aefc1659d732acf7e62c0c78a443d6d8352a3c6e;hpb=5ae2721913c0d2adde0d65063e37a723bf8a0987 diff --git a/test/configure.in b/test/configure.in index 451cc018..d99456a0 100644 --- a/test/configure.in +++ b/test/configure.in @@ -1,5 +1,5 @@ dnl*************************************************************************** -dnl Copyright (c) 1998-2011,2012 Free Software Foundation, Inc. * +dnl Copyright (c) 1998-2013,2014 Free Software Foundation, Inc. * dnl * dnl Permission is hereby granted, free of charge, to any person obtaining a * dnl copy of this software and associated documentation files (the * @@ -28,7 +28,7 @@ dnl*************************************************************************** dnl dnl Author: Thomas E. Dickey 1996, etc. dnl -dnl $Id: configure.in,v 1.109 2012/11/03 19:26:33 tom Exp $ +dnl $Id: configure.in,v 1.117 2014/09/20 21:03:23 tom Exp $ dnl This is a simple configuration-script for the ncurses test programs that dnl allows the test-directory to be separately configured against a reference dnl system (i.e., sysvr4 curses) @@ -56,7 +56,7 @@ CF_PROG_INSTALL CF_PROG_LINT CF_MAKE_TAGS -CF_MATH_LIB(MATH_LIB,sin(x)) +CF_MATH_LIB(MATH_LIB,pow(sin(x),x)) AC_SUBST(MATH_LIB) dnl Things that we don't need (or must override) if we're not building ncurses @@ -86,6 +86,7 @@ TINFO_LDFLAGS='' AC_SUBST(TINFO_LDFLAGS) TINFO_LIBS='$(LIBS_CURSES)' AC_SUBST(TINFO_LIBS) cf_cv_abi_version="" AC_SUBST(cf_cv_abi_version) cf_cv_rel_version="" AC_SUBST(cf_cv_rel_version) +includesubdir="" AC_SUBST(includesubdir) cf_cv_screen=curses cf_cv_libtype= @@ -138,9 +139,12 @@ pdcurses) #(vi ;; *) # look for curses-related libraries - AC_CHECK_LIB(panel$cf_cv_libtype,new_panel) - AC_CHECK_LIB(menu$cf_cv_libtype,menu_driver) - AC_CHECK_LIB(form$cf_cv_libtype,form_driver) + : ${cf_panel_lib:=panel} + : ${cf_menu_lib:=menu} + : ${cf_form_lib:=form} + AC_CHECK_LIB($cf_panel_lib$cf_cv_libtype,new_panel) + AC_CHECK_LIB($cf_menu_lib$cf_cv_libtype,menu_driver) + AC_CHECK_LIB($cf_form_lib$cf_cv_libtype,form_driver) # look for curses-related headers AC_CHECK_HEADERS( \ @@ -154,8 +158,6 @@ pdcurses) #(vi ;; esac -AC_TYPE_SIGNAL - AC_STDC_HEADERS AC_HEADER_TIME AC_CHECK_HEADERS( \ @@ -173,9 +175,14 @@ unistd.h \ CF_GETOPT_HEADER AC_CHECK_FUNCS( \ +getopt \ gettimeofday \ ) +if test "x$ac_cv_func_getopt" = xno; then + AC_MSG_ERROR(getopt is required for building programs) +fi + if test "$cf_enable_widec" = yes; then AC_CHECK_FUNCS( \ mblen \ @@ -217,8 +224,12 @@ tigetnum \ tigetstr \ typeahead \ use_default_colors \ +use_env \ +use_extended_names \ use_screen \ use_window \ +vid_puts \ +vidputs \ vsscanf \ vw_printw \ wchgat \