Changeset 13776 for trunk/FACT++


Ignore:
Timestamp:
05/18/12 17:43:48 (12 years ago)
Author:
tbretz
Message:
Added smartfact and a check for the nova-library.
Location:
trunk/FACT++
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/Makefile.am

    r13480 r13776  
    4040        mcp feedback ratescan ratecontrol \
    4141        magicweather \
    42         fitsdump fitscheck
     42        smartfact \
     43        fitsdump fitscheck
    4344
    4445if HAS_GUI
     
    8283        datalogger.man \
    8384        fitsdump.man \
    84         fitscheck.man
     85        fitscheck.man \
     86        smartfact.man
    8587endif
    8688
     
    256258        libConfiguration.la
    257259
     260smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
     261smartfact_LDADD   = libDim++.la libDim.la libDimExtension.la \
     262        libStateMachine.la libTools.la libTime.la \
     263        libConfiguration.la
     264
    258265fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
    259266        src/EventBuilder.c      src/EventBuilder.h \
  • trunk/FACT++/Makefile.in

    r13481 r13776  
    5050        drivectrl$(EXEEXT) mcp$(EXEEXT) feedback$(EXEEXT) \
    5151        ratescan$(EXEEXT) ratecontrol$(EXEEXT) magicweather$(EXEEXT) \
    52         fitsdump$(EXEEXT) fitscheck$(EXEEXT) $(am__EXEEXT_1) \
    53         $(am__EXEEXT_2) $(am__EXEEXT_3) $(am__EXEEXT_4)
     52        smartfact$(EXEEXT) fitsdump$(EXEEXT) fitscheck$(EXEEXT) \
     53        $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
     54        $(am__EXEEXT_4)
    5455@HAS_GUI_TRUE@am__append_1 = fact
    5556@HAS_VIEWER_TRUE@am__append_2 = viewer
     
    348349scheduler_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
    349350        libDim++.la libDim.la libDimExtension.la libConfiguration.la
     351am_smartfact_OBJECTS = src/smartfact.$(OBJEXT) src/PixelMap.$(OBJEXT)
     352smartfact_OBJECTS = $(am_smartfact_OBJECTS)
     353smartfact_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     354        libStateMachine.la libTools.la libTime.la libConfiguration.la
    350355am_test_OBJECTS = src/test.$(OBJEXT)
    351356test_OBJECTS = $(am_test_OBJECTS)
     
    441446        $(magicweather_SOURCES) $(mcp_SOURCES) $(ratecontrol_SOURCES) \
    442447        $(ratescan_SOURCES) $(readfits_SOURCES) sched.c \
    443         $(scheduler_SOURCES) $(test_SOURCES) $(time_SOURCES) \
    444         $(triggerschedule_SOURCES) $(viewer_SOURCES)
     448        $(scheduler_SOURCES) $(smartfact_SOURCES) $(test_SOURCES) \
     449        $(time_SOURCES) $(triggerschedule_SOURCES) $(viewer_SOURCES)
    445450DIST_SOURCES = $(libConfiguration_la_SOURCES) $(libDim___la_SOURCES) \
    446451        $(libDim_la_SOURCES) $(libDimExtension_la_SOURCES) \
     
    458463        $(logtime_SOURCES) $(magicweather_SOURCES) $(mcp_SOURCES) \
    459464        $(ratecontrol_SOURCES) $(ratescan_SOURCES) $(readfits_SOURCES) \
    460         sched.c $(scheduler_SOURCES) $(test_SOURCES) $(time_SOURCES) \
    461         $(triggerschedule_SOURCES) $(am__viewer_SOURCES_DIST)
     465        sched.c $(scheduler_SOURCES) $(smartfact_SOURCES) \
     466        $(test_SOURCES) $(time_SOURCES) $(triggerschedule_SOURCES) \
     467        $(am__viewer_SOURCES_DIST)
    462468man1dir = $(mandir)/man1
    463469NROFF = nroff
     
    716722@HAS_HELP2MAN_TRUE@     datalogger.man \
    717723@HAS_HELP2MAN_TRUE@     fitsdump.man \
    718 @HAS_HELP2MAN_TRUE@     fitscheck.man
     724@HAS_HELP2MAN_TRUE@     fitscheck.man \
     725@HAS_HELP2MAN_TRUE@     smartfact.man
    719726
    720727
     
    863870magicweather_SOURCES = src/magicweather.cc src/LocalControl.h
    864871magicweather_LDADD = libDim++.la libDim.la libDimExtension.la \
     872        libStateMachine.la libTools.la libTime.la \
     873        libConfiguration.la
     874
     875smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
     876smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \
    865877        libStateMachine.la libTools.la libTime.la \
    866878        libConfiguration.la
     
    14461458        @rm -f scheduler$(EXEEXT)
    14471459        $(AM_V_CXXLD)$(CXXLINK) $(scheduler_OBJECTS) $(scheduler_LDADD) $(LIBS)
     1460src/smartfact.$(OBJEXT): src/$(am__dirstamp) \
     1461        src/$(DEPDIR)/$(am__dirstamp)
     1462smartfact$(EXEEXT): $(smartfact_OBJECTS) $(smartfact_DEPENDENCIES)
     1463        @rm -f smartfact$(EXEEXT)
     1464        $(AM_V_CXXLD)$(CXXLINK) $(smartfact_OBJECTS) $(smartfact_LDADD) $(LIBS)
    14481465src/test.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
    14491466test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES)
     
    16481665        -rm -f src/readfits.$(OBJEXT)
    16491666        -rm -f src/scheduler.$(OBJEXT)
     1667        -rm -f src/smartfact.$(OBJEXT)
    16501668        -rm -f src/test.$(OBJEXT)
    16511669        -rm -f src/time.$(OBJEXT)
     
    17721790@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/readfits.Po@am__quote@
    17731791@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/scheduler.Po@am__quote@
     1792@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/smartfact.Po@am__quote@
    17741793@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/test.Po@am__quote@
    17751794@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/time.Po@am__quote@
  • trunk/FACT++/configure

    r13031 r13776  
    624624HAS_GUI_FALSE
    625625HAS_GUI_TRUE
     626HAS_NOVA_FALSE
     627HAS_NOVA_TRUE
    626628HAS_QWT_FALSE
    627629HAS_QWT_TRUE
     
    926928with_GLU_include
    927929with_GLU_libdir
     930with_nova
     931with_nova_include
     932with_nova_libdir
    928933with_cfitsio
    929934with_cfitsio_include
     
    16541659  --with-GLU-libdir=DIR        specify exact library dir for GLU library (e.g. libGLU)
    16551660  --without-GLU        disables GLU usage completely
     1661  --with-nova=DIR       root directory of nova installation
     1662  --with-nova-include=DIR        specify exact include dir for nova headers (e.g. libnova/julian_day.h)
     1663  --with-nova-libdir=DIR        specify exact library dir for nova library (e.g. libnova)
     1664  --without-nova        disables nova usage completely
    16561665  --with-cfitsio=DIR    root directory of cfitsio installation
    16571666  --with-cfitsio-include=DIR        specify exact include dir for cfitsio headers (e.g. fitsio.h)
     
    1993419943
    1993519944
     19945# Check for libnova
     19946
     19947
     19948
     19949# Check whether --with-nova was given.
     19950if test "${with_nova+set}" = set; then :
     19951  withval=$with_nova; with_nova=$withval
     19952if test "${with_nova}" != yes; then
     19953        nova_include="$withval/include"
     19954        nova_libdir="$withval/lib"
     19955fi
     19956
     19957fi
     19958
     19959
     19960
     19961# Check whether --with-nova-include was given.
     19962if test "${with_nova_include+set}" = set; then :
     19963  withval=$with_nova_include; nova_include="$withval"
     19964fi
     19965
     19966
     19967
     19968# Check whether --with-nova-libdir was given.
     19969if test "${with_nova_libdir+set}" = set; then :
     19970  withval=$with_nova_libdir; nova_libdir="$withval"
     19971fi
     19972
     19973
     19974if test "${with_nova}" != no ; then
     19975        OLD_LIBS=$LIBS
     19976        OLD_LDFLAGS=$LDFLAGS
     19977        OLD_CFLAGS=$CFLAGS
     19978        OLD_CPPFLAGS=$CPPFLAGS
     19979
     19980        if test "${nova_libdir}" ; then
     19981                LDFLAGS="$LDFLAGS -L${nova_libdir}"
     19982        fi
     19983        if test "${nova_include}" ; then
     19984                CPPFLAGS="$CPPFLAGS -I${nova_include}"
     19985                CFLAGS="$CFLAGS -I${nova_include}"
     19986        fi
     19987
     19988        ac_fn_c_check_header_mongrel "$LINENO" "libnova/julian_day.h" "ac_cv_header_libnova_julian_day_h" "$ac_includes_default"
     19989if test "x$ac_cv_header_libnova_julian_day_h" = xyes; then :
     19990
     19991else
     19992  no_good=yes
     19993fi
     19994
     19995
     19996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln_get_julian_from_sys in -lnova" >&5
     19997$as_echo_n "checking for ln_get_julian_from_sys in -lnova... " >&6; }
     19998if ${ac_cv_lib_nova_ln_get_julian_from_sys+:} false; then :
     19999  $as_echo_n "(cached) " >&6
     20000else
     20001  ac_check_lib_save_LIBS=$LIBS
     20002LIBS="-lnova  $LIBS"
     20003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20004/* end confdefs.h.  */
     20005
     20006/* Override any GCC internal prototype to avoid an error.
     20007   Use char because int might match the return type of a GCC
     20008   builtin and then its argument prototype would still apply.  */
     20009#ifdef __cplusplus
     20010extern "C"
     20011#endif
     20012char ln_get_julian_from_sys ();
     20013int
     20014main ()
     20015{
     20016return ln_get_julian_from_sys ();
     20017  ;
     20018  return 0;
     20019}
     20020_ACEOF
     20021if ac_fn_c_try_link "$LINENO"; then :
     20022  ac_cv_lib_nova_ln_get_julian_from_sys=yes
     20023else
     20024  ac_cv_lib_nova_ln_get_julian_from_sys=no
     20025fi
     20026rm -f core conftest.err conftest.$ac_objext \
     20027    conftest$ac_exeext conftest.$ac_ext
     20028LIBS=$ac_check_lib_save_LIBS
     20029fi
     20030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nova_ln_get_julian_from_sys" >&5
     20031$as_echo "$ac_cv_lib_nova_ln_get_julian_from_sys" >&6; }
     20032if test "x$ac_cv_lib_nova_ln_get_julian_from_sys" = xyes; then :
     20033  cat >>confdefs.h <<_ACEOF
     20034#define HAVE_LIBNOVA 1
     20035_ACEOF
     20036
     20037  LIBS="-lnova $LIBS"
     20038
     20039else
     20040  no_good=yes
     20041fi
     20042
     20043        if test "$no_good" = yes; then
     20044                HAVE_NOVA=no
     20045
     20046                LIBS=$OLD_LIBS
     20047                LDFLAGS=$OLD_LDFLAGS
     20048                CPPFLAGS=$OLD_CPPFLAGS
     20049                CFLAGS=$OLD_CFLAGS
     20050        else
     20051                HAVE_NOVA=yes
     20052
     20053                $as_echo "#define HAVE_PKG_nova 1" >>confdefs.h
     20054
     20055        fi
     20056
     20057fi
     20058
     20059
     20060
    1993620061# Taken from http://code.google.com/p/autoconf-gl-macros/
    1993720062#AX_CHECK_GL
     
    2350023625
    2350123626                cat > conftest.$ac_ext <<EOF
    23502 #line 23502 "configure"
     23627#line 23627 "configure"
    2350323628#include "confdefs.h"
    2350423629#include <qglobal.h>
     
    2450424629fi
    2450524630
     24631 if test "$HAVE_NOVA" = yes; then
     24632  HAS_NOVA_TRUE=
     24633  HAS_NOVA_FALSE='#'
     24634else
     24635  HAS_NOVA_TRUE='#'
     24636  HAS_NOVA_FALSE=
     24637fi
     24638
    2450624639
    2450724640 if test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ; then
     
    2454924682if test "$HAVE_ZLIB" = yes; then
    2455024683  $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
     24684
     24685fi
     24686if test "$HAVE_NOVA" = yes; then
     24687  $as_echo "#define HAVE_NOVA 1" >>confdefs.h
    2455124688
    2455224689fi
     
    2489325030if test -z "${HAS_QWT_TRUE}" && test -z "${HAS_QWT_FALSE}"; then
    2489425031  as_fn_error $? "conditional \"HAS_QWT\" was never defined.
     25032Usually this means the macro was only invoked conditionally." "$LINENO" 5
     25033fi
     25034if test -z "${HAS_NOVA_TRUE}" && test -z "${HAS_NOVA_FALSE}"; then
     25035  as_fn_error $? "conditional \"HAS_NOVA\" was never defined.
    2489525036Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2489625037fi
     
    2736927510{ $as_echo "$as_me:${as_lineno-$LINENO}:  zlib                   / 'zlib.h'           found: $HAVE_ZLIB" >&5
    2737027511$as_echo "$as_me:  zlib                   / 'zlib.h'           found: $HAVE_ZLIB" >&6;}
     27512{ $as_echo "$as_me:${as_lineno-$LINENO}:  nova                   / libnova.so         found: $HAVE_NOVA" >&5
     27513$as_echo "$as_me:  nova                   / libnova.so         found: $HAVE_NOVA" >&6;}
    2737127514#AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h              found: $HAVE_IZSTREAM_H])
    2737227515#AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h                  found: $HAVE_FITS_H])
  • trunk/FACT++/configure.ac

    r13031 r13776  
    147147AC_CHECK_PACKAGE(GL, glLoadIdentity, GL, GL/gl.h, HAVE_GL=yes, HAVE_GL=no)
    148148AC_CHECK_PACKAGE(GLU, gluNewTess, GLU, GL/glu.h, HAVE_GLU=yes, HAVE_GLU=no)
     149
     150# Check for libnova
     151AC_CHECK_PACKAGE(nova, ln_get_julian_from_sys, nova, libnova/julian_day.h, HAVE_NOVA=yes, HAVE_NOVA=no)
    149152
    150153# Taken from http://code.google.com/p/autoconf-gl-macros/
     
    370373AM_CONDITIONAL(HAS_QGL,       [test "$HAVE_QGL" = yes])
    371374AM_CONDITIONAL(HAS_QWT,       [test "$HAVE_QWT" = yes])
     375AM_CONDITIONAL(HAS_NOVA,      [test "$HAVE_NOVA" = yes])
    372376
    373377AM_CONDITIONAL(HAS_GUI,       [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ])
     
    380384AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], )
    381385AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], )
     386AM_COND_IF(HAS_NOVA, [AC_DEFINE(HAVE_NOVA)], )
    382387
    383388#AM_COND_IF(HAS_FITS_H, [
     
    438443AC_MSG_NOTICE()
    439444AC_MSG_NOTICE([ zlib                   / 'zlib.h'           found: $HAVE_ZLIB])
     445AC_MSG_NOTICE([ nova                   / libnova.so         found: $HAVE_NOVA])
    440446#AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h              found: $HAVE_IZSTREAM_H])
    441447#AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h                  found: $HAVE_FITS_H])
Note: See TracChangeset for help on using the changeset viewer.