Ignore:
Timestamp:
07/26/11 15:27:39 (14 years ago)
Author:
tbretz
Message:
First draft of compiling the raw events viewer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.