Changeset 14048
- Timestamp:
- 06/03/12 20:17:12 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure
r14035 r14048 624 624 HAS_GUI_FALSE 625 625 HAS_GUI_TRUE 626 HAS_V8_FALSE 627 HAS_V8_TRUE 626 628 HAS_DBUS_FALSE 627 629 HAS_DBUS_TRUE … … 958 960 with_boost_regex 959 961 with_boost_thread 962 with_v8 963 with_v8_include 964 with_v8_libdir 960 965 with_qt4 961 966 with_qt4_dir … … 1727 1732 to specify a certain library for the linker e.g. 1728 1733 --with-boost-thread=boost_thread-gcc-mt 1734 --with-v8=DIR root directory of v8 installation 1735 --with-v8-include=DIR specify exact include dir for v8 headers (e.g. v8.h) 1736 --with-v8-libdir=DIR specify exact library dir for v8 library (e.g. libv8) 1737 --without-v8 disables v8 usage completely 1729 1738 --without-qt4 Disable qt4, i.e. disable gui support. 1730 1739 --with-qt4-dir where the root of Qt 4 is installed … … 20294 20303 #AX_CHECK_GLUT 20295 20304 20296 # Check for the fits header and zstream support from MARS20297 #AC_CHECK_FILE(gui/RawEventsViewer/izstream.h,20298 # HAVE_IZSTREAM_H=yes, HAVE_IZSTREAM_H=no)20299 #AC_CHECK_FILE(gui/RawEventsViewer/fits.h,20300 # HAVE_FITS_H=yes, HAVE_FITS_H=no)20301 20302 20305 # Needed to compile FACT++ 20303 20306 … … 22675 22678 # ] 22676 22679 #) 22680 22681 ###################################################################### 22682 # v8 / JavaScript 22683 ###################################################################### 22684 22685 22686 22687 22688 # Check whether --with-v8 was given. 22689 if test "${with_v8+set}" = set; then : 22690 withval=$with_v8; with_v8=$withval 22691 if test "${with_v8}" != yes; then 22692 v8_include="$withval/include" 22693 v8_libdir="$withval/lib" 22694 fi 22695 22696 fi 22697 22698 22699 22700 # Check whether --with-v8-include was given. 22701 if test "${with_v8_include+set}" = set; then : 22702 withval=$with_v8_include; v8_include="$withval" 22703 fi 22704 22705 22706 22707 # Check whether --with-v8-libdir was given. 22708 if test "${with_v8_libdir+set}" = set; then : 22709 withval=$with_v8_libdir; v8_libdir="$withval" 22710 fi 22711 22712 22713 if test "${with_v8}" != no ; then 22714 OLD_LIBS=$LIBS 22715 OLD_LDFLAGS=$LDFLAGS 22716 OLD_CFLAGS=$CFLAGS 22717 OLD_CPPFLAGS=$CPPFLAGS 22718 22719 if test "${v8_libdir}" ; then 22720 LDFLAGS="$LDFLAGS -L${v8_libdir}" 22721 fi 22722 if test "${v8_include}" ; then 22723 CPPFLAGS="$CPPFLAGS -I${v8_include}" 22724 CFLAGS="$CFLAGS -I${v8_include}" 22725 fi 22726 22727 ac_fn_cxx_check_header_mongrel "$LINENO" "v8.h" "ac_cv_header_v8_h" "$ac_includes_default" 22728 if test "x$ac_cv_header_v8_h" = xyes; then : 22729 22730 else 22731 no_good=yes 22732 fi 22733 22734 22735 22736 ac_ext=cpp 22737 ac_cpp='$CXXCPP $CPPFLAGS' 22738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22741 22742 22743 22744 22745 22746 22747 22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v8::HandleScope handle_scope in -lv8" >&5 22749 $as_echo_n "checking for v8::HandleScope handle_scope in -lv8... " >&6; } 22750 if ${ac_cv_lib_v8_v8__HandleScope_handle_scope+:} false; then : 22751 $as_echo_n "(cached) " >&6 22752 else 22753 22754 ac_check_lib_save_LIBS=$LIBS 22755 LIBS="-lv8 $LIBS" 22756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22757 /* end confdefs.h. */ 22758 #include <v8.h> 22759 int 22760 main () 22761 { 22762 v8::HandleScope handle_scope 22763 ; 22764 return 0; 22765 } 22766 _ACEOF 22767 if ac_fn_cxx_try_link "$LINENO"; then : 22768 ac_cv_lib_v8_v8__HandleScope_handle_scope=yes 22769 else 22770 ac_cv_lib_v8_v8__HandleScope_handle_scope=no 22771 fi 22772 rm -f core conftest.err conftest.$ac_objext \ 22773 conftest$ac_exeext conftest.$ac_ext 22774 LIBS=$ac_check_lib_save_LIBS 22775 fi 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v8_v8__HandleScope_handle_scope" >&5 22777 $as_echo "$ac_cv_lib_v8_v8__HandleScope_handle_scope" >&6; } 22778 if test $ac_cv_lib_v8_v8__HandleScope_handle_scope = yes; then : 22779 22780 22781 cat >>confdefs.h <<_ACEOF 22782 #define HAVE_LIBV8 1 22783 _ACEOF 22784 22785 LIBS="-lv8 $LIBS" 22786 22787 22788 else 22789 no_good=yes 22790 fi 22791 22792 22793 22794 ac_ext=cpp 22795 ac_cpp='$CXXCPP $CPPFLAGS' 22796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22799 22800 22801 if test "$no_good" = yes; then 22802 HAVE_V8=no 22803 22804 LIBS=$OLD_LIBS 22805 LDFLAGS=$OLD_LDFLAGS 22806 CPPFLAGS=$OLD_CPPFLAGS 22807 CFLAGS=$OLD_CFLAGS 22808 else 22809 HAVE_V8=yes 22810 22811 $as_echo "#define HAVE_PKG_v8 1" >>confdefs.h 22812 22813 fi 22814 22815 fi 22816 22817 22677 22818 22678 22819 ###################################################################### … … 23859 24000 23860 24001 cat > conftest.$ac_ext <<EOF 23861 #line 2 3861"configure"24002 #line 24002 "configure" 23862 24003 #include "confdefs.h" 23863 24004 #include <qglobal.h> … … 24970 25111 fi 24971 25112 24972 #AM_CONDITIONAL(HAS_IZSTREAM_H,[test "$HAVE_IZSTREAM_H" = yes])24973 #AM_CONDITIONAL(HAS_FITS_H, [test "$HAVE_FITS_H" = yes])24974 25113 if test "$HAVE_GL" = yes; then 24975 25114 HAS_GL_TRUE= … … 25028 25167 fi 25029 25168 25169 if test "$HAVE_V8" = yes; then 25170 HAS_V8_TRUE= 25171 HAS_V8_FALSE='#' 25172 else 25173 HAS_V8_TRUE='#' 25174 HAS_V8_FALSE= 25175 fi 25176 25030 25177 25031 25178 if test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ; then … … 25087 25234 25088 25235 fi 25089 25090 #AM_COND_IF(HAS_FITS_H, [ 25091 # AM_COND_IF(HAS_IZSTREAM_H, [ 25092 # ]) 25093 #],) 25094 25236 if test "$HAVE_V8" = yes; then 25237 $as_echo "#define HAVE_V8 1" >>confdefs.h 25238 25239 fi 25095 25240 25096 25241 ########################################################################## … … 25445 25590 if test -z "${HAS_DBUS_TRUE}" && test -z "${HAS_DBUS_FALSE}"; then 25446 25591 as_fn_error $? "conditional \"HAS_DBUS\" was never defined. 25592 Usually this means the macro was only invoked conditionally." "$LINENO" 5 25593 fi 25594 if test -z "${HAS_V8_TRUE}" && test -z "${HAS_V8_FALSE}"; then 25595 as_fn_error $? "conditional \"HAS_V8\" was never defined. 25447 25596 Usually this means the macro was only invoked conditionally." "$LINENO" 5 25448 25597 fi … … 27937 28086 { $as_echo "$as_me:${as_lineno-$LINENO}: nova / libnova.so found: $HAVE_NOVA" >&5 27938 28087 $as_echo "$as_me: nova / libnova.so found: $HAVE_NOVA" >&6;} 27939 #AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h found: $HAVE_IZSTREAM_H]) 27940 #AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h found: $HAVE_FITS_H]) 28088 { $as_echo "$as_me:${as_lineno-$LINENO}: v8 / 'v8.h' / libv8.so found: $HAVE_V8" >&5 28089 $as_echo "$as_me: v8 / 'v8.h' / libv8.so found: $HAVE_V8" >&6;} 27941 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: GL / GL/gl.h found: $HAVE_GL" >&5 27942 28091 $as_echo "$as_me: GL / GL/gl.h found: $HAVE_GL" >&6;} … … 28206 28355 $as_echo "$as_me: WARNING: libnova missing - smartfact will be compiles without astronomy support!" >&2;} 28207 28356 fi 28357 if test "$HAVE_V8" = yes; then 28358 : 28359 else 28360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libv8 missing - JavaScript support will be disabled!" >&5 28361 $as_echo "$as_me: WARNING: libv8 missing - JavaScript support will be disabled!" >&2;} 28362 fi 28208 28363 if test "$HAVE_DBUS" = yes; then 28209 28364 : -
trunk/FACT++/configure.ac
r14035 r14048 283 283 # ] 284 284 #) 285 286 ###################################################################### 287 # v8 / JavaScript 288 ###################################################################### 289 290 AC_CHECK_CLASS(v8, [v8::HandleScope handle_scope], v8, v8.h, 291 HAVE_V8=yes, HAVE_V8=no) 285 292 286 293 ###################################################################### … … 384 391 AM_CONDITIONAL(HAS_SOPRANO, [test "$HAVE_SOPRANO" = yes]) 385 392 AM_CONDITIONAL(HAS_DBUS, [test "$HAVE_DBUS" = yes]) 393 AM_CONDITIONAL(HAS_V8, [test "$HAVE_V8" = yes]) 386 394 387 395 AM_CONDITIONAL(HAS_GUI, [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ]) … … 397 405 AM_COND_IF(HAS_DBUS, [AC_DEFINE(HAVE_DBUS)], ) 398 406 AM_COND_IF(HAS_SQL, [AC_DEFINE(HAVE_SQL)], ) 407 AM_COND_IF(HAS_V8, [AC_DEFINE(HAVE_V8)], ) 399 408 400 409 ########################################################################## … … 457 466 AC_MSG_NOTICE([ zlib / 'zlib.h' found: $HAVE_ZLIB]) 458 467 AC_MSG_NOTICE([ nova / libnova.so found: $HAVE_NOVA]) 468 AC_MSG_NOTICE([ v8 / 'v8.h' / libv8.so found: $HAVE_V8]) 459 469 AC_MSG_NOTICE([ GL / GL/gl.h found: $HAVE_GL]) 460 470 AC_MSG_NOTICE([ GLU / GL/glu.h found: $HAVE_GLU]) … … 575 585 AM_COND_IF(HAS_SQL,, AC_MSG_WARN([ database support globally disabled!])) 576 586 AM_COND_IF(HAS_NOVA,, AC_MSG_WARN([ libnova missing - smartfact will be compiles without astronomy support!])) 587 AM_COND_IF(HAS_V8,, AC_MSG_WARN([ libv8 missing - JavaScript support will be disabled!])) 577 588 AM_COND_IF(HAS_DBUS,, AC_MSG_WARN([ DBus libraries missing - skypeclient will not be compiled!])) 578 589 AM_COND_IF(HAS_SOPRANO,, AC_MSG_WARN([ Soprano libraries missing - tngweather will not be compiled!]))
Note:
See TracChangeset
for help on using the changeset viewer.