Changeset 11618


Ignore:
Timestamp:
07/26/11 15:27:39 (13 years ago)
Author:
tbretz
Message:
First draft of compiling the raw events viewer.
Location:
trunk/FACT++
Files:
4 edited

Legend:

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

    r11585 r11618  
    4343if HAS_GUI
    4444bin_PROGRAMS += fact
     45if HAS_VIEWER
     46bin_PROGRAMS += viewer
     47endif
    4548endif
    4649
     
    311314
    312315if HAS_GUI
    313 DIALOGS = \
     316
     317#
     318
     319fact_DIALOGS = \
    314320        gui/design.ui
    315321
    316 RESOURCES = \
     322fact_RESOURCES = \
    317323        gui/design.qrc
    318324
    319 QT_SOURCES = \
     325fact_QT_SOURCES = \
    320326        gui/DockWindow.cc \
    321327        gui/MainWindow.cc
    322 endif
    323 
    324 BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc)
    325 
     328
     329fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
     330
     331#
     332
     333if HAS_VIEWER
     334
     335viewer_DIALOGS = \
     336        gui/RawEventsViewer/viewer.ui
     337
     338viewer_QT_SOURCES = \
     339        gui/RawEventsViewer/RawEventsViewer.cc
     340
     341viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
     342
     343endif
     344
     345endif
     346
     347
     348
     349BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
     350       
    326351CLEANFILES += $(BUILT_SOURCES)
    327352
     
    333358        libConfiguration.la
    334359
    335 fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \
     360fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
    336361        gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
    337362        gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
     363
     364viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU
     365
     366viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES)
     367
     368
    338369
    339370#-------------------------------------------------------------------------
  • trunk/FACT++/Makefile.in

    r11585 r11618  
    5353        chatclient$(EXEEXT) chatserv$(EXEEXT) biasctrl$(EXEEXT) \
    5454        mcp$(EXEEXT) fitsdump$(EXEEXT) $(am__EXEEXT_1) $(am__EXEEXT_2) \
    55         $(am__EXEEXT_3)
     55        $(am__EXEEXT_3) $(am__EXEEXT_4)
    5656@HAS_GUI_TRUE@am__append_1 = fact
    57 @HAS_LIBXP_TRUE@am__append_2 = did
     57@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@am__append_2 = viewer
     58@HAS_LIBXP_TRUE@am__append_3 = did
    5859
    5960# This is a trick to be able to build them but not having them in 'all'
    60 @IS_FALSE@am__append_3 = \
     61@IS_FALSE@am__append_4 = \
    6162@IS_FALSE@      test \
    6263@IS_FALSE@      dclient5 dserver2 \
     
    6566@IS_FALSE@      readfits
    6667
    67 @HAS_FITS_TRUE@am__append_4 = src/Fits.cc
    68 @HAS_GROFF_TRUE@am__append_5 = $(dist_man1_MANS:.man=.html)
    69 @HAS_GROFF_TRUE@am__append_6 = $(dist_man1_MANS:.man=.html)
     68@HAS_FITS_TRUE@am__append_5 = src/Fits.cc
     69@HAS_GROFF_TRUE@am__append_6 = $(dist_man1_MANS:.man=.html)
    7070@HAS_GROFF_TRUE@am__append_7 = $(dist_man1_MANS:.man=.html)
    71 @HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_8 = $(dist_man1_MANS:.man=.pdf)
     71@HAS_GROFF_TRUE@am__append_8 = $(dist_man1_MANS:.man=.html)
    7272@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_9 = $(dist_man1_MANS:.man=.pdf)
    7373@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_10 = $(dist_man1_MANS:.man=.pdf)
     74@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_11 = $(dist_man1_MANS:.man=.pdf)
    7475subdir = .
    7576ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    159160libTools_la_OBJECTS = $(am_libTools_la_OBJECTS)
    160161@HAS_GUI_TRUE@am__EXEEXT_1 = fact$(EXEEXT)
    161 @HAS_LIBXP_TRUE@am__EXEEXT_2 = did$(EXEEXT)
    162 @IS_FALSE@am__EXEEXT_3 = test$(EXEEXT) dclient5$(EXEEXT) \
     162@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@am__EXEEXT_2 = viewer$(EXEEXT)
     163@HAS_LIBXP_TRUE@am__EXEEXT_3 = did$(EXEEXT)
     164@IS_FALSE@am__EXEEXT_4 = test$(EXEEXT) dclient5$(EXEEXT) \
    163165@IS_FALSE@      dserver2$(EXEEXT) fitsloader$(EXEEXT) \
    164166@IS_FALSE@      fitsgrep$(EXEEXT) sched$(EXEEXT) astro$(EXEEXT) \
     
    222224@HAS_GUI_TRUE@am__objects_4 = gui/DockWindow.moc.$(OBJEXT) \
    223225@HAS_GUI_TRUE@  gui/MainWindow.moc.$(OBJEXT)
    224 am__objects_5 = $(am__objects_2) $(am__objects_3) $(am__objects_4)
     226@HAS_GUI_TRUE@am__objects_5 = $(am__objects_2) $(am__objects_3) \
     227@HAS_GUI_TRUE@  $(am__objects_4)
    225228@HAS_GUI_TRUE@am__objects_6 = gui/DockWindow.$(OBJEXT) \
    226229@HAS_GUI_TRUE@  gui/MainWindow.$(OBJEXT)
     
    303306triggerschedule_DEPENDENCIES = libDim.la libDim++.la \
    304307        libDimExtension.la libConfiguration.la
     308am__viewer_SOURCES_DIST = gui/RawEventsViewer/viewer.h \
     309        gui/RawEventsViewer/RawEventsViewer.moc.cc \
     310        gui/RawEventsViewer/RawEventsViewer.cc
     311@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@am__objects_7 = gui/RawEventsViewer/RawEventsViewer.moc.$(OBJEXT)
     312@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@am__objects_8 = $(am__objects_2) \
     313@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@ $(am__objects_7)
     314@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@am__objects_9 = gui/RawEventsViewer/RawEventsViewer.$(OBJEXT)
     315am_viewer_OBJECTS = $(am__objects_8) $(am__objects_9)
     316viewer_OBJECTS = $(am_viewer_OBJECTS)
     317viewer_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
    305318SCRIPTS = $(dist_noinst_SCRIPTS)
    306319DEFAULT_INCLUDES = -I.@am__isrc@
     
    359372        $(logtime_SOURCES) $(mcp_SOURCES) $(readfits_SOURCES) sched.c \
    360373        $(scheduler_SOURCES) $(test_SOURCES) $(time_SOURCES) \
    361         $(triggerschedule_SOURCES)
     374        $(triggerschedule_SOURCES) $(viewer_SOURCES)
    362375DIST_SOURCES = $(libConfiguration_la_SOURCES) $(libDim___la_SOURCES) \
    363376        $(libDim_la_SOURCES) $(libDimExtension_la_SOURCES) \
     
    374387        $(mcp_SOURCES) $(readfits_SOURCES) sched.c \
    375388        $(scheduler_SOURCES) $(test_SOURCES) $(time_SOURCES) \
    376         $(triggerschedule_SOURCES)
     389        $(triggerschedule_SOURCES) $(am__viewer_SOURCES_DIST)
    377390man1dir = $(mandir)/man1
    378391NROFF = nroff
     
    648661
    649662#-------------------------------------------------------------------------
    650 CLEANFILES = $(BUILT_SOURCES) $(am__append_7) $(am__append_10)
     663CLEANFILES = $(BUILT_SOURCES) $(am__append_8) $(am__append_11)
    651664dist_noinst_SCRIPTS = autogen.sh
    652665EXTRA_DIST = Doxyfile dim/DIM_Performance.pdf dim/LICENSE.GPL \
     
    655668        dim/README_v14.txt dim/README_v17.txt dim/README_v16.txt \
    656669        dim/README_v17.txt dim/README_v18.txt dim/README_v19.txt \
    657         $(DIALOGS) $(RESOURCES) $(am__append_6) $(am__append_9)
     670        $(DIALOGS) $(RESOURCES) $(am__append_7) $(am__append_10)
    658671dns_LDADD = libDim.la libDimExtension.la
    659672dns_SOURCES = src/dns.c
     
    828841test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
    829842datalogger_SOURCES = src/datalogger.cc src/LocalControl.h \
    830         $(am__append_4)
     843        $(am__append_5)
    831844datalogger_LDADD = libDim.la libDim++.la libDimExtension.la \
    832845        libTime.la libTools.la libStateMachine.la \
     
    850863
    851864# -----
    852 @HAS_GUI_TRUE@DIALOGS = \
     865
     866#
     867@HAS_GUI_TRUE@fact_DIALOGS = \
    853868@HAS_GUI_TRUE@  gui/design.ui
    854869
    855 @HAS_GUI_TRUE@RESOURCES = \
     870@HAS_GUI_TRUE@fact_RESOURCES = \
    856871@HAS_GUI_TRUE@  gui/design.qrc
    857872
    858 @HAS_GUI_TRUE@QT_SOURCES = \
     873@HAS_GUI_TRUE@fact_QT_SOURCES = \
    859874@HAS_GUI_TRUE@  gui/DockWindow.cc \
    860875@HAS_GUI_TRUE@  gui/MainWindow.cc
    861876
    862 BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc)
     877@HAS_GUI_TRUE@fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
     878
     879#
     880@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@viewer_DIALOGS = \
     881@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@ gui/RawEventsViewer/viewer.ui
     882
     883@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@viewer_QT_SOURCES = \
     884@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@ gui/RawEventsViewer/RawEventsViewer.cc
     885
     886@HAS_GUI_TRUE@@HAS_VIEWER_TRUE@viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
     887BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
    863888fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
    864889        libDim.la libDim++.la libDimExtension.la \
     
    866891        libConfiguration.la
    867892
    868 fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \
     893fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
    869894        gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
    870895        gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
    871896
     897viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU
     898viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES)
    872899
    873900#-------------------------------------------------------------------------
     
    875902
    876903#-------------------------------------------------------------------------
    877 MAN_TARGETS = $(dist_man1_MANS) $(am__append_5) $(am__append_8)
     904MAN_TARGETS = $(dist_man1_MANS) $(am__append_6) $(am__append_9)
    878905all: $(BUILT_SOURCES)
    879906        $(MAKE) $(AM_MAKEFLAGS) all-am
     
    12861313        @rm -f triggerschedule$(EXEEXT)
    12871314        $(AM_V_CXXLD)$(CXXLINK) $(triggerschedule_OBJECTS) $(triggerschedule_LDADD) $(LIBS)
     1315gui/RawEventsViewer/$(am__dirstamp):
     1316        @$(MKDIR_P) gui/RawEventsViewer
     1317        @: > gui/RawEventsViewer/$(am__dirstamp)
     1318gui/RawEventsViewer/$(DEPDIR)/$(am__dirstamp):
     1319        @$(MKDIR_P) gui/RawEventsViewer/$(DEPDIR)
     1320        @: > gui/RawEventsViewer/$(DEPDIR)/$(am__dirstamp)
     1321gui/RawEventsViewer/RawEventsViewer.moc.$(OBJEXT):  \
     1322        gui/RawEventsViewer/$(am__dirstamp) \
     1323        gui/RawEventsViewer/$(DEPDIR)/$(am__dirstamp)
     1324gui/RawEventsViewer/RawEventsViewer.$(OBJEXT):  \
     1325        gui/RawEventsViewer/$(am__dirstamp) \
     1326        gui/RawEventsViewer/$(DEPDIR)/$(am__dirstamp)
     1327viewer$(EXEEXT): $(viewer_OBJECTS) $(viewer_DEPENDENCIES)
     1328        @rm -f viewer$(EXEEXT)
     1329        $(AM_V_CXXLD)$(CXXLINK) $(viewer_OBJECTS) $(viewer_LDADD) $(LIBS)
    12881330
    12891331mostlyclean-compile:
     
    13341376        -rm -f gui/MainWindow.$(OBJEXT)
    13351377        -rm -f gui/MainWindow.moc.$(OBJEXT)
     1378        -rm -f gui/RawEventsViewer/RawEventsViewer.$(OBJEXT)
     1379        -rm -f gui/RawEventsViewer/RawEventsViewer.moc.$(OBJEXT)
    13361380        -rm -f gui/design.$(OBJEXT)
    13371381        -rm -f gui/fact.$(OBJEXT)
     
    14631507@AMDEP_TRUE@@am__include@ @am__quote@gui/$(DEPDIR)/design.Po@am__quote@
    14641508@AMDEP_TRUE@@am__include@ @am__quote@gui/$(DEPDIR)/fact.Po@am__quote@
     1509@AMDEP_TRUE@@am__include@ @am__quote@gui/RawEventsViewer/$(DEPDIR)/RawEventsViewer.Po@am__quote@
     1510@AMDEP_TRUE@@am__include@ @am__quote@gui/RawEventsViewer/$(DEPDIR)/RawEventsViewer.moc.Po@am__quote@
    14651511@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/Configuration.Plo@am__quote@
    14661512@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/Connection.Plo@am__quote@
     
    19752021        -rm -f gui/$(DEPDIR)/$(am__dirstamp)
    19762022        -rm -f gui/$(am__dirstamp)
     2023        -rm -f gui/RawEventsViewer/$(DEPDIR)/$(am__dirstamp)
     2024        -rm -f gui/RawEventsViewer/$(am__dirstamp)
    19772025        -rm -f src/$(DEPDIR)/$(am__dirstamp)
    19782026        -rm -f src/$(am__dirstamp)
     
    19892037distclean: distclean-am
    19902038        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    1991         -rm -rf ./$(DEPDIR) dim/src/$(DEPDIR) dim/src/did/$(DEPDIR) gui/$(DEPDIR) src/$(DEPDIR)
     2039        -rm -rf ./$(DEPDIR) dim/src/$(DEPDIR) dim/src/did/$(DEPDIR) gui/$(DEPDIR) gui/RawEventsViewer/$(DEPDIR) src/$(DEPDIR)
    19922040        -rm -f Makefile
    19932041distclean-am: clean-am distclean-compile distclean-generic \
     
    20382086        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    20392087        -rm -rf $(top_srcdir)/autom4te.cache
    2040         -rm -rf ./$(DEPDIR) dim/src/$(DEPDIR) dim/src/did/$(DEPDIR) gui/$(DEPDIR) src/$(DEPDIR)
     2088        -rm -rf ./$(DEPDIR) dim/src/$(DEPDIR) dim/src/did/$(DEPDIR) gui/$(DEPDIR) gui/RawEventsViewer/$(DEPDIR) src/$(DEPDIR)
    20412089        -rm -f Makefile
    20422090maintainer-clean-am: distclean-am maintainer-clean-generic
  • trunk/FACT++/configure

    r11615 r11618  
    751751IS_FALSE_FALSE
    752752IS_FALSE_TRUE
     753HAS_VIEWER_FALSE
     754HAS_VIEWER_TRUE
     755HAS_FITS_H_FALSE
     756HAS_FITS_H_TRUE
     757HAS_IZSTREAM_H_FALSE
     758HAS_IZSTREAM_H_TRUE
    753759HAS_ZLIB_FALSE
    754760HAS_ZLIB_TRUE
     
    48044810  lt_cv_nm_interface="BSD nm"
    48054811  echo "int some_variable = 0;" > conftest.$ac_ext
    4806   (eval echo "\"\$as_me:4806: $ac_compile\"" >&5)
     4812  (eval echo "\"\$as_me:4812: $ac_compile\"" >&5)
    48074813  (eval "$ac_compile" 2>conftest.err)
    48084814  cat conftest.err >&5
    4809   (eval echo "\"\$as_me:4809: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
     4815  (eval echo "\"\$as_me:4815: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    48104816  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    48114817  cat conftest.err >&5
    4812   (eval echo "\"\$as_me:4812: output\"" >&5)
     4818  (eval echo "\"\$as_me:4818: output\"" >&5)
    48134819  cat conftest.out >&5
    48144820  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    60156021*-*-irix6*)
    60166022  # Find out which ABI we are using.
    6017   echo '#line 6017 "configure"' > conftest.$ac_ext
     6023  echo '#line 6023 "configure"' > conftest.$ac_ext
    60186024  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    60196025  (eval $ac_compile) 2>&5
     
    76767682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76777683   -e 's:$: $lt_compiler_flag:'`
    7678    (eval echo "\"\$as_me:7678: $lt_compile\"" >&5)
     7684   (eval echo "\"\$as_me:7684: $lt_compile\"" >&5)
    76797685   (eval "$lt_compile" 2>conftest.err)
    76807686   ac_status=$?
    76817687   cat conftest.err >&5
    7682    echo "$as_me:7682: \$? = $ac_status" >&5
     7688   echo "$as_me:7688: \$? = $ac_status" >&5
    76837689   if (exit $ac_status) && test -s "$ac_outfile"; then
    76847690     # The compiler can only warn and ignore the option if not recognized
     
    80158021   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80168022   -e 's:$: $lt_compiler_flag:'`
    8017    (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
     8023   (eval echo "\"\$as_me:8023: $lt_compile\"" >&5)
    80188024   (eval "$lt_compile" 2>conftest.err)
    80198025   ac_status=$?
    80208026   cat conftest.err >&5
    8021    echo "$as_me:8021: \$? = $ac_status" >&5
     8027   echo "$as_me:8027: \$? = $ac_status" >&5
    80228028   if (exit $ac_status) && test -s "$ac_outfile"; then
    80238029     # The compiler can only warn and ignore the option if not recognized
     
    81208126   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81218127   -e 's:$: $lt_compiler_flag:'`
    8122    (eval echo "\"\$as_me:8122: $lt_compile\"" >&5)
     8128   (eval echo "\"\$as_me:8128: $lt_compile\"" >&5)
    81238129   (eval "$lt_compile" 2>out/conftest.err)
    81248130   ac_status=$?
    81258131   cat out/conftest.err >&5
    8126    echo "$as_me:8126: \$? = $ac_status" >&5
     8132   echo "$as_me:8132: \$? = $ac_status" >&5
    81278133   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    81288134   then
     
    81758181   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81768182   -e 's:$: $lt_compiler_flag:'`
    8177    (eval echo "\"\$as_me:8177: $lt_compile\"" >&5)
     8183   (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
    81788184   (eval "$lt_compile" 2>out/conftest.err)
    81798185   ac_status=$?
    81808186   cat out/conftest.err >&5
    8181    echo "$as_me:8181: \$? = $ac_status" >&5
     8187   echo "$as_me:8187: \$? = $ac_status" >&5
    81828188   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    81838189   then
     
    1055910565  lt_status=$lt_dlunknown
    1056010566  cat > conftest.$ac_ext <<_LT_EOF
    10561 #line 10561 "configure"
     10567#line 10567 "configure"
    1056210568#include "confdefs.h"
    1056310569
     
    1065510661  lt_status=$lt_dlunknown
    1065610662  cat > conftest.$ac_ext <<_LT_EOF
    10657 #line 10657 "configure"
     10663#line 10663 "configure"
    1065810664#include "confdefs.h"
    1065910665
     
    1261112617   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1261212618   -e 's:$: $lt_compiler_flag:'`
    12613    (eval echo "\"\$as_me:12613: $lt_compile\"" >&5)
     12619   (eval echo "\"\$as_me:12619: $lt_compile\"" >&5)
    1261412620   (eval "$lt_compile" 2>conftest.err)
    1261512621   ac_status=$?
    1261612622   cat conftest.err >&5
    12617    echo "$as_me:12617: \$? = $ac_status" >&5
     12623   echo "$as_me:12623: \$? = $ac_status" >&5
    1261812624   if (exit $ac_status) && test -s "$ac_outfile"; then
    1261912625     # The compiler can only warn and ignore the option if not recognized
     
    1271012716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1271112717   -e 's:$: $lt_compiler_flag:'`
    12712    (eval echo "\"\$as_me:12712: $lt_compile\"" >&5)
     12718   (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
    1271312719   (eval "$lt_compile" 2>out/conftest.err)
    1271412720   ac_status=$?
    1271512721   cat out/conftest.err >&5
    12716    echo "$as_me:12716: \$? = $ac_status" >&5
     12722   echo "$as_me:12722: \$? = $ac_status" >&5
    1271712723   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1271812724   then
     
    1276212768   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1276312769   -e 's:$: $lt_compiler_flag:'`
    12764    (eval echo "\"\$as_me:12764: $lt_compile\"" >&5)
     12770   (eval echo "\"\$as_me:12770: $lt_compile\"" >&5)
    1276512771   (eval "$lt_compile" 2>out/conftest.err)
    1276612772   ac_status=$?
    1276712773   cat out/conftest.err >&5
    12768    echo "$as_me:12768: \$? = $ac_status" >&5
     12774   echo "$as_me:12774: \$? = $ac_status" >&5
    1276912775   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1277012776   then
     
    1833918345
    1834018346
    18341 #AC_CHECK_FILE(gui/RawEventsViewer(izstream.h, [action.if-yes], [action-if-no])
    18342 #AC_CHECK_FILE(gui/RawEventsViewer(fits.h    , [action.if-yes], [action-if-no])
     18347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gui/RawEventsViewer/izstream.h" >&5
     18348$as_echo_n "checking for gui/RawEventsViewer/izstream.h... " >&6; }
     18349if test "${ac_cv_file_gui_RawEventsViewer_izstream_h+set}" = set; then :
     18350  $as_echo_n "(cached) " >&6
     18351else
     18352  test "$cross_compiling" = yes &&
     18353  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
     18354if test -r "gui/RawEventsViewer/izstream.h"; then
     18355  ac_cv_file_gui_RawEventsViewer_izstream_h=yes
     18356else
     18357  ac_cv_file_gui_RawEventsViewer_izstream_h=no
     18358fi
     18359fi
     18360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_gui_RawEventsViewer_izstream_h" >&5
     18361$as_echo "$ac_cv_file_gui_RawEventsViewer_izstream_h" >&6; }
     18362if test "x$ac_cv_file_gui_RawEventsViewer_izstream_h" = x""yes; then :
     18363  HAVE_IZSTREAM_H=yes
     18364else
     18365  HAVE_IZSTREAM_H=no
     18366fi
     18367
     18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gui/RawEventsViewer/fits.h" >&5
     18369$as_echo_n "checking for gui/RawEventsViewer/fits.h... " >&6; }
     18370if test "${ac_cv_file_gui_RawEventsViewer_fits_h+set}" = set; then :
     18371  $as_echo_n "(cached) " >&6
     18372else
     18373  test "$cross_compiling" = yes &&
     18374  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
     18375if test -r "gui/RawEventsViewer/fits.h"; then
     18376  ac_cv_file_gui_RawEventsViewer_fits_h=yes
     18377else
     18378  ac_cv_file_gui_RawEventsViewer_fits_h=no
     18379fi
     18380fi
     18381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_gui_RawEventsViewer_fits_h" >&5
     18382$as_echo "$ac_cv_file_gui_RawEventsViewer_fits_h" >&6; }
     18383if test "x$ac_cv_file_gui_RawEventsViewer_fits_h" = x""yes; then :
     18384  HAVE_FITS_H=yes
     18385else
     18386  HAVE_FITS_H=no
     18387fi
     18388
    1834318389
    1834418390# Needed to compile FACT++
     
    2181421860
    2181521861                cat > conftest.$ac_ext <<EOF
    21816 #line 21816 "configure"
     21862#line 21862 "configure"
    2181721863#include "confdefs.h"
    2181821864#include <qglobal.h>
     
    2252322569fi
    2252422570
     22571 if test "$HAVE_IZSTREAM_H" = yes; then
     22572  HAS_IZSTREAM_H_TRUE=
     22573  HAS_IZSTREAM_H_FALSE='#'
     22574else
     22575  HAS_IZSTREAM_H_TRUE='#'
     22576  HAS_IZSTREAM_H_FALSE=
     22577fi
     22578
     22579 if test "$HAVE_FITS_H" = yes; then
     22580  HAS_FITS_H_TRUE=
     22581  HAS_FITS_H_FALSE='#'
     22582else
     22583  HAS_FITS_H_TRUE='#'
     22584  HAS_FITS_H_FALSE=
     22585fi
     22586
     22587
     22588 if test "$HAVE_FITS_H" = yes; then
     22589  HAS_VIEWER_TRUE=
     22590  HAS_VIEWER_FALSE='#'
     22591else
     22592  HAS_VIEWER_TRUE='#'
     22593  HAS_VIEWER_FALSE=
     22594fi
     22595
    2252522596
    2252622597 if test "x" = "y"; then
     
    2254922620
    2255022621fi
    22551 if test "$HAVE_ZLIB" = yes; then
     22622
     22623if test "$HAVE_FITS_H" = yes; then
     22624
     22625   if test "$HAVE_IZSTREAM_H" = yes; then
     22626
     22627      if test "$HAVE_ZLIB" = yes; then
    2255222628  $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
    2255322629
    2255422630fi
     22631
     22632fi
     22633
     22634fi
     22635
    2255522636
    2255622637##########################################################################
     
    2286622947if test -z "${HAS_ZLIB_TRUE}" && test -z "${HAS_ZLIB_FALSE}"; then
    2286722948  as_fn_error $? "conditional \"HAS_ZLIB\" was never defined.
     22949Usually this means the macro was only invoked conditionally." "$LINENO" 5
     22950fi
     22951if test -z "${HAS_IZSTREAM_H_TRUE}" && test -z "${HAS_IZSTREAM_H_FALSE}"; then
     22952  as_fn_error $? "conditional \"HAS_IZSTREAM_H\" was never defined.
     22953Usually this means the macro was only invoked conditionally." "$LINENO" 5
     22954fi
     22955if test -z "${HAS_FITS_H_TRUE}" && test -z "${HAS_FITS_H_FALSE}"; then
     22956  as_fn_error $? "conditional \"HAS_FITS_H\" was never defined.
     22957Usually this means the macro was only invoked conditionally." "$LINENO" 5
     22958fi
     22959if test -z "${HAS_VIEWER_TRUE}" && test -z "${HAS_VIEWER_FALSE}"; then
     22960  as_fn_error $? "conditional \"HAS_VIEWER\" was never defined.
    2286822961Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2286922962fi
     
    2525825351{ $as_echo "$as_me:${as_lineno-$LINENO}:  zlib                   / 'zlib.h'          found: $HAVE_ZLIB" >&5
    2525925352$as_echo "$as_me:  zlib                   / 'zlib.h'          found: $HAVE_ZLIB" >&6;}
     25353{ $as_echo "$as_me:${as_lineno-$LINENO}:  gui/RawEventsViewer/izstream.h             found: $HAVE_IZSTREAM_H" >&5
     25354$as_echo "$as_me:  gui/RawEventsViewer/izstream.h             found: $HAVE_IZSTREAM_H" >&6;}
     25355{ $as_echo "$as_me:${as_lineno-$LINENO}:  gui/RawEventsViewer/fits.h                 found: $HAVE_FITS_H" >&5
     25356$as_echo "$as_me:  gui/RawEventsViewer/fits.h                 found: $HAVE_FITS_H" >&6;}
    2526025357{ $as_echo "$as_me:${as_lineno-$LINENO}:  cfitsio                / 'fitsio.h'        found: $HAVE_CFITSIO" >&5
    2526125358$as_echo "$as_me:  cfitsio                / 'fitsio.h'        found: $HAVE_CFITSIO" >&6;}
     
    2542125518  :
    2542225519else
    25423   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  zlib not found. Support for reading zipped files disabled!" >&5
    25424 $as_echo "$as_me: WARNING:  zlib not found. Support for reading zipped files disabled!" >&2;}
     25520  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  zlib not found. Support for reading zipped files viewer disabled!" >&5
     25521$as_echo "$as_me: WARNING:  zlib not found. Support for reading zipped files viewer disabled!" >&2;}
     25522
     25523fi
     25524if test "$HAVE_IZSTREAM_H" = yes; then
     25525  :
     25526else
     25527  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Mars izstream.h not found in gui/RawEventsViwer. Support for reading zipped files in viewer disabled!" >&5
     25528$as_echo "$as_me: WARNING:  Mars izstream.h not found in gui/RawEventsViwer. Support for reading zipped files in viewer disabled!" >&2;}
     25529
     25530fi
     25531if test "$HAVE_FITS_H" = yes; then
     25532  :
     25533else
     25534  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Mars fits.h not found in gui/RawEventsViwer. Support for viewer disabled!" >&5
     25535$as_echo "$as_me: WARNING:  Mars fits.h not found in gui/RawEventsViwer. Support for viewer disabled!" >&2;}
    2542525536
    2542625537fi
     
    2545225563  :
    2545325564else
    25454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Either QT4 or qt-root is missing: GUI disabled!" >&5
    25455 $as_echo "$as_me: WARNING:  Either QT4 or qt-root is missing: GUI disabled!" >&2;}
     25565  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Either QT4 or qt-root is missing: GUIs disabled!" >&5
     25566$as_echo "$as_me: WARNING:  Either QT4 or qt-root is missing: GUIs disabled!" >&2;}
    2545625567
    2545725568fi
  • trunk/FACT++/configure.ac

    r11615 r11618  
    111111                 HAVE_ZLIB=yes, HAVE_ZLIB=no)
    112112
    113 #AC_CHECK_FILE(gui/RawEventsViewer(izstream.h, [action.if-yes], [action-if-no])
    114 #AC_CHECK_FILE(gui/RawEventsViewer(fits.h    , [action.if-yes], [action-if-no])
     113AC_CHECK_FILE(gui/RawEventsViewer/izstream.h,
     114                HAVE_IZSTREAM_H=yes, HAVE_IZSTREAM_H=no)
     115AC_CHECK_FILE(gui/RawEventsViewer/fits.h,
     116                HAVE_FITS_H=yes, HAVE_FITS_H=no)
    115117
    116118# Needed to compile FACT++
     
    290292AM_CONDITIONAL(HAS_FITS,      [test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes])
    291293AM_CONDITIONAL(HAS_ZLIB,      [test "$HAVE_ZLIB" = yes])
     294AM_CONDITIONAL(HAS_IZSTREAM_H,[test "$HAVE_IZSTREAM_H" = yes])
     295AM_CONDITIONAL(HAS_FITS_H,    [test "$HAVE_FITS_H" = yes])
     296
     297AM_CONDITIONAL(HAS_VIEWER,    [test "$HAVE_FITS_H" = yes])
    292298
    293299AM_CONDITIONAL(IS_FALSE,      [test "x" = "y"])
     
    296302AM_COND_IF(HAS_FITS, [AC_DEFINE(HAVE_FITS)], )
    297303AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], )
    298 AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], )
     304
     305AM_COND_IF(HAS_FITS_H, [
     306   AM_COND_IF(HAS_IZSTREAM_H, [
     307      AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], )
     308   ])
     309],)
     310
    299311
    300312##########################################################################
     
    345357AC_MSG_NOTICE()
    346358AC_MSG_NOTICE([ zlib                   / 'zlib.h'          found: $HAVE_ZLIB])
     359AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h             found: $HAVE_IZSTREAM_H])
     360AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h                 found: $HAVE_FITS_H])
    347361AC_MSG_NOTICE([ cfitsio                / 'fitsio.h'        found: $HAVE_CFITSIO])
    348362AC_MSG_NOTICE([ CCfits                 / 'CCfits/CCfits'   found: $HAVE_CCFITS])
     
    427441AC_MSG_NOTICE()
    428442AM_COND_IF(HAS_ZLIB,,
    429       AC_MSG_WARN([ zlib not found. Support for reading zipped files disabled!])
     443      AC_MSG_WARN([ zlib not found. Support for reading zipped files viewer disabled!])
     444)
     445AM_COND_IF(HAS_IZSTREAM_H,,
     446      AC_MSG_WARN([ Mars izstream.h not found in gui/RawEventsViwer. Support for reading zipped files in viewer disabled!])
     447)
     448AM_COND_IF(HAS_FITS_H,,
     449      AC_MSG_WARN([ Mars fits.h not found in gui/RawEventsViwer. Support for viewer disabled!])
    430450)
    431451AM_COND_IF(HAS_LIBXP,,
     
    441461)
    442462AM_COND_IF(HAS_GUI, [],
    443       AC_MSG_WARN([ Either QT4 or qt-root is missing: GUI disabled!])
    444 )
    445 AC_MSG_NOTICE()
     463      AC_MSG_WARN([ Either QT4 or qt-root is missing: GUIs disabled!])
     464)
     465AC_MSG_NOTICE()
Note: See TracChangeset for help on using the changeset viewer.