- Timestamp:
- Nov 28, 2011 1:21:34 PM (12 years ago)
- Location:
- branches/blt4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/configure
r2416 r2705 780 780 with_tclsh 781 781 with_vtk 782 with_ncurses 782 783 with_matlab 783 784 with_octave … … 1433 1434 --with-tclsh=DIR location of tclsh [default=yes] 1434 1435 --with-vtk=DIR location of vtk library [default=yes] 1436 --with-ncurses=DIR location of ncurses [default=yes] 1435 1437 --with-matlab=DIR location of matlab and mex compiler [default=yes] 1436 1438 --with-octave=DIR path of default octave compiler `mkoctfile' … … 2719 2721 2720 2722 2721 with_tclsh=yes2722 2723 2723 #------------------------------------------------------------------------ 2724 2724 # Handle the --prefix=... option … … 2739 2739 with_install=yes 2740 2740 fi 2741 2741 2742 2742 2743 if test "$with_install" != "yes"; then … … 4905 4906 as_fn_error $? "librappture requires libm" "$LINENO" 5 4906 4907 fi 4908 4909 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5 4911 $as_echo_n "checking for clrtoeol in -lncurses... " >&6; } 4912 if ${ac_cv_lib_ncurses_clrtoeol+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914 else 4915 ac_check_lib_save_LIBS=$LIBS 4916 LIBS="-lncurses $LIBS" 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918 /* end confdefs.h. */ 4919 4920 /* Override any GCC internal prototype to avoid an error. 4921 Use char because int might match the return type of a GCC 4922 builtin and then its argument prototype would still apply. */ 4923 #ifdef __cplusplus 4924 extern "C" 4925 #endif 4926 char clrtoeol (); 4927 int 4928 main () 4929 { 4930 return clrtoeol (); 4931 ; 4932 return 0; 4933 } 4934 _ACEOF 4935 if ac_fn_cxx_try_link "$LINENO"; then : 4936 ac_cv_lib_ncurses_clrtoeol=yes 4937 else 4938 ac_cv_lib_ncurses_clrtoeol=no 4939 fi 4940 rm -f core conftest.err conftest.$ac_objext \ 4941 conftest$ac_exeext conftest.$ac_ext 4942 LIBS=$ac_check_lib_save_LIBS 4943 fi 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5 4945 $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; } 4946 if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then : 4947 cat >>confdefs.h <<_ACEOF 4948 #define HAVE_LIBNCURSES 1 4949 _ACEOF 4950 4951 LIBS="-lncurses $LIBS" 4952 4953 else 4954 as_fn_error $? "ncursers library missing?" "$LINENO" 5 4955 fi 4956 4957 for ac_header in ncurses.h 4958 do : 4959 ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 4960 if test "x$ac_cv_header_ncurses_h" = xyes; then : 4961 cat >>confdefs.h <<_ACEOF 4962 #define HAVE_NCURSES_H 1 4963 _ACEOF 4964 4965 else 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5 4967 $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;} 4968 fi 4969 4970 done 4971 4907 4972 4908 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 … … 7375 7440 $as_echo "$VTKDIR" >&6; } 7376 7441 7377 7378 with_matlab="yes" 7442 with_ncurses="yes" 7443 7444 # Check whether --with-ncurses was given. 7445 if test "${with_ncurses+set}" = set; then : 7446 withval=$with_ncurses; 7447 else 7448 with_ncurses=yes 7449 fi 7450 7451 7452 if test "$with_vtk" != "no" ; then 7453 if test "$with_vtk" = "yes" ; then 7454 for path in \ 7455 $libdir \ 7456 $prefix/lib \ 7457 $exec_prefix/lib \ 7458 /usr/lib 7459 do 7460 for vtk in $path/vtk-* ; do 7461 if test -d "${vtk}" ; then 7462 VTKDIR=${vtk} 7463 fi 7464 done 7465 if test "x${VTKDIR}" != "x" ; then 7466 break 7467 fi 7468 done 7469 fi 7470 fi 7471 7472 7379 7473 7380 7474 # Check whether --with-matlab was given. -
branches/blt4/configure.in
r2679 r2705 60 60 61 61 AC_CHECK_LIB(m, main,,AC_MSG_ERROR(librappture requires libm)) 62 63 AC_CHECK_LIB(ncurses, clrtoeol,,AC_MSG_ERROR([ncursers library missing?])) 64 AC_CHECK_HEADERS(ncurses.h,,AC_MSG_WARN(ncurses headers missing ?)) 65 62 66 AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(librappture requires libstdc++)) 63 67 AC_CHECK_HEADERS(algorithm,,AC_MSG_WARN(STL classes missing ?)) … … 195 199 fi 196 200 AC_MSG_RESULT([$VTKDIR]) 201 202 with_ncurses="yes" 203 AC_ARG_WITH( 204 [ncurses], 205 [AS_HELP_STRING([--with-ncurses[=DIR]], 206 [location of ncurses @<:@default=yes@:>@])], 207 [], 208 [with_ncurses=yes]) 209 210 if test "$with_vtk" != "no" ; then 211 if test "$with_vtk" = "yes" ; then 212 for path in \ 213 $libdir \ 214 $prefix/lib \ 215 $exec_prefix/lib \ 216 /usr/lib 217 do 218 for vtk in $path/vtk-* ; do 219 if test -d "${vtk}" ; then 220 VTKDIR=${vtk} 221 fi 222 done 223 if test "x${VTKDIR}" != "x" ; then 224 break 225 fi 226 done 227 fi 228 fi 197 229 198 230 RP_LANG_MATLAB -
branches/blt4/lang/tcl/src/Makefile.in
r2676 r2705 28 28 TCL_VERSION = @TCL_VERSION@ 29 29 TCL_LIB_SPEC = @TCL_LIB_SPEC@ 30 HAVE_FFMPEG = @HAVE_FFMPEG_LIBS@ 31 HAVE_NCURSES = @HAVE_LIBNCURSES@ 30 32 31 33 CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) … … 49 51 LIBS = \ 50 52 -L../../../src/core -lrappture \ 51 $(TCL_LIB_SPEC) -l ncurses -lexpat -lz -lm -lstdc++53 $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++ 52 54 53 55 OBJS = \ 54 56 Rappture_Init.o \ 55 RpCurses.o \56 57 RpDaemon.o \ 57 58 RpEncodeTclInterface.o \ … … 70 71 endif 71 72 72 FFMPEG = @HAVE_FFMPEG_LIBS@ 73 ifeq ($(FFMPEG),yes) 73 ifeq ($(HAVE_LIBCURSES),yes) 74 OBJS += RpCurses.o 75 LIBS += -lncurses 76 endif 77 78 ifeq ($(HAVE_FFMPEG),yes) 74 79 OBJS += RpVideoTclInterface.o 75 80 LIBS += -L../../../src/objects -lRpObjects -
branches/blt4/src/core/config.h.in
r2170 r2705 79 79 #undef HAVE_LIBM 80 80 81 /* Define to 1 if you have the `ncurses' library (-lncurses). */ 82 #undef HAVE_LIBNCURSES 83 81 84 /* Define to 1 if you have the `stdc++' library (-lstdc++). */ 82 85 #undef HAVE_LIBSTDC__ … … 99 102 /* Define to 1 if you have the <memory.h> header file. */ 100 103 #undef HAVE_MEMORY_H 104 105 /* Define to 1 if you have the <ncurses.h> header file. */ 106 #undef HAVE_NCURSES_H 107 108 /* Define to 1 if you have the <Python.h> header file. */ 109 #undef HAVE_PYTHON_H 101 110 102 111 /* Define to 1 if you have the <sstream> header file. */
Note: See TracChangeset
for help on using the changeset viewer.