Ignore:
Timestamp:
05/13/11 11:24:35 (14 years ago)
Author:
tbretz
Message:
Implemented support for compilation without fits.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/configure

    r10682 r10693  
    751751IS_FALSE_FALSE
    752752IS_FALSE_TRUE
     753HAS_FITS_FALSE
     754HAS_FITS_TRUE
     755HAS_CCFITS_FALSE
     756HAS_CCFITS_TRUE
     757HAS_CFITSIO_FALSE
     758HAS_CFITSIO_TRUE
    753759HAS_GUI_FALSE
    754760HAS_GUI_TRUE
     
    44504456  lt_cv_nm_interface="BSD nm"
    44514457  echo "int some_variable = 0;" > conftest.$ac_ext
    4452   (eval echo "\"\$as_me:4452: $ac_compile\"" >&5)
     4458  (eval echo "\"\$as_me:4458: $ac_compile\"" >&5)
    44534459  (eval "$ac_compile" 2>conftest.err)
    44544460  cat conftest.err >&5
    4455   (eval echo "\"\$as_me:4455: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
     4461  (eval echo "\"\$as_me:4461: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    44564462  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    44574463  cat conftest.err >&5
    4458   (eval echo "\"\$as_me:4458: output\"" >&5)
     4464  (eval echo "\"\$as_me:4464: output\"" >&5)
    44594465  cat conftest.out >&5
    44604466  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    56625668*-*-irix6*)
    56635669  # Find out which ABI we are using.
    5664   echo '#line 5664 "configure"' > conftest.$ac_ext
     5670  echo '#line 5670 "configure"' > conftest.$ac_ext
    56655671  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    56665672  (eval $ac_compile) 2>&5
     
    75907596   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    75917597   -e 's:$: $lt_compiler_flag:'`
    7592    (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
     7598   (eval echo "\"\$as_me:7598: $lt_compile\"" >&5)
    75937599   (eval "$lt_compile" 2>conftest.err)
    75947600   ac_status=$?
    75957601   cat conftest.err >&5
    7596    echo "$as_me:7596: \$? = $ac_status" >&5
     7602   echo "$as_me:7602: \$? = $ac_status" >&5
    75977603   if (exit $ac_status) && test -s "$ac_outfile"; then
    75987604     # The compiler can only warn and ignore the option if not recognized
     
    79297935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    79307936   -e 's:$: $lt_compiler_flag:'`
    7931    (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
     7937   (eval echo "\"\$as_me:7937: $lt_compile\"" >&5)
    79327938   (eval "$lt_compile" 2>conftest.err)
    79337939   ac_status=$?
    79347940   cat conftest.err >&5
    7935    echo "$as_me:7935: \$? = $ac_status" >&5
     7941   echo "$as_me:7941: \$? = $ac_status" >&5
    79367942   if (exit $ac_status) && test -s "$ac_outfile"; then
    79377943     # The compiler can only warn and ignore the option if not recognized
     
    80348040   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80358041   -e 's:$: $lt_compiler_flag:'`
    8036    (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
     8042   (eval echo "\"\$as_me:8042: $lt_compile\"" >&5)
    80378043   (eval "$lt_compile" 2>out/conftest.err)
    80388044   ac_status=$?
    80398045   cat out/conftest.err >&5
    8040    echo "$as_me:8040: \$? = $ac_status" >&5
     8046   echo "$as_me:8046: \$? = $ac_status" >&5
    80418047   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    80428048   then
     
    80898095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80908096   -e 's:$: $lt_compiler_flag:'`
    8091    (eval echo "\"\$as_me:8091: $lt_compile\"" >&5)
     8097   (eval echo "\"\$as_me:8097: $lt_compile\"" >&5)
    80928098   (eval "$lt_compile" 2>out/conftest.err)
    80938099   ac_status=$?
    80948100   cat out/conftest.err >&5
    8095    echo "$as_me:8095: \$? = $ac_status" >&5
     8101   echo "$as_me:8101: \$? = $ac_status" >&5
    80968102   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    80978103   then
     
    1047310479  lt_status=$lt_dlunknown
    1047410480  cat > conftest.$ac_ext <<_LT_EOF
    10475 #line 10475 "configure"
     10481#line 10481 "configure"
    1047610482#include "confdefs.h"
    1047710483
     
    1056910575  lt_status=$lt_dlunknown
    1057010576  cat > conftest.$ac_ext <<_LT_EOF
    10571 #line 10571 "configure"
     10577#line 10577 "configure"
    1057210578#include "confdefs.h"
    1057310579
     
    1252512531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1252612532   -e 's:$: $lt_compiler_flag:'`
    12527    (eval echo "\"\$as_me:12527: $lt_compile\"" >&5)
     12533   (eval echo "\"\$as_me:12533: $lt_compile\"" >&5)
    1252812534   (eval "$lt_compile" 2>conftest.err)
    1252912535   ac_status=$?
    1253012536   cat conftest.err >&5
    12531    echo "$as_me:12531: \$? = $ac_status" >&5
     12537   echo "$as_me:12537: \$? = $ac_status" >&5
    1253212538   if (exit $ac_status) && test -s "$ac_outfile"; then
    1253312539     # The compiler can only warn and ignore the option if not recognized
     
    1262412630   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1262512631   -e 's:$: $lt_compiler_flag:'`
    12626    (eval echo "\"\$as_me:12626: $lt_compile\"" >&5)
     12632   (eval echo "\"\$as_me:12632: $lt_compile\"" >&5)
    1262712633   (eval "$lt_compile" 2>out/conftest.err)
    1262812634   ac_status=$?
    1262912635   cat out/conftest.err >&5
    12630    echo "$as_me:12630: \$? = $ac_status" >&5
     12636   echo "$as_me:12636: \$? = $ac_status" >&5
    1263112637   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1263212638   then
     
    1267612682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1267712683   -e 's:$: $lt_compiler_flag:'`
    12678    (eval echo "\"\$as_me:12678: $lt_compile\"" >&5)
     12684   (eval echo "\"\$as_me:12684: $lt_compile\"" >&5)
    1267912685   (eval "$lt_compile" 2>out/conftest.err)
    1268012686   ac_status=$?
    1268112687   cat out/conftest.err >&5
    12682    echo "$as_me:12682: \$? = $ac_status" >&5
     12688   echo "$as_me:12688: \$? = $ac_status" >&5
    1268312689   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1268412690   then
     
    1823618242
    1823718243        if test "$no_good" = yes; then
    18238                 as_fn_error $? "cfitsio not properly installed/not found." "$LINENO" 5
     18244                HAVE_CFITSIO=no
    1823918245
    1824018246                LIBS=$OLD_LIBS
     
    1824318249                CFLAGS=$OLD_CFLAGS
    1824418250        else
    18245 
     18251                HAVE_CFITSIO=yes
    1824618252
    1824718253                $as_echo "#define HAVE_PKG_cfitsio 1" >>confdefs.h
     
    1835718363
    1835818364        if test "$no_good" = yes; then
    18359                 as_fn_error $? "CCfits not properly installed/not found." "$LINENO" 5
     18365                HAVE_CCFITS=no
    1836018366
    1836118367                LIBS=$OLD_LIBS
     
    1836418370                CFLAGS=$OLD_CFLAGS
    1836518371        else
    18366 
     18372                HAVE_CCFITS=yes
    1836718373
    1836818374                $as_echo "#define HAVE_PKG_ccfits 1" >>confdefs.h
     
    2160921615
    2161021616                cat > conftest.$ac_ext <<EOF
    21611 #line 21611 "configure"
     21617#line 21617 "configure"
    2161221618#include "confdefs.h"
    2161321619#include <qglobal.h>
     
    2228722293fi
    2228822294
     22295 if test "$HAVE_CFITSIO" = yes; then
     22296  HAS_CFITSIO_TRUE=
     22297  HAS_CFITSIO_FALSE='#'
     22298else
     22299  HAS_CFITSIO_TRUE='#'
     22300  HAS_CFITSIO_FALSE=
     22301fi
     22302
     22303 if test "$HAVE_CCFITS" = yes; then
     22304  HAS_CCFITS_TRUE=
     22305  HAS_CCFITS_FALSE='#'
     22306else
     22307  HAS_CCFITS_TRUE='#'
     22308  HAS_CCFITS_FALSE=
     22309fi
     22310
     22311 if test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes; then
     22312  HAS_FITS_TRUE=
     22313  HAS_FITS_FALSE='#'
     22314else
     22315  HAS_FITS_TRUE='#'
     22316  HAS_FITS_FALSE=
     22317fi
     22318
    2228922319
    2229022320 if test "x" = "y"; then
     
    2230422334fi
    2230522335
     22336
     22337if test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes; then
     22338  $as_echo "#define HAVE_FITS 1" >>confdefs.h
     22339
     22340fi
    2230622341
    2230722342##########################################################################
     
    2260122636if test -z "${HAS_GUI_TRUE}" && test -z "${HAS_GUI_FALSE}"; then
    2260222637  as_fn_error $? "conditional \"HAS_GUI\" was never defined.
     22638Usually this means the macro was only invoked conditionally." "$LINENO" 5
     22639fi
     22640if test -z "${HAS_CFITSIO_TRUE}" && test -z "${HAS_CFITSIO_FALSE}"; then
     22641  as_fn_error $? "conditional \"HAS_CFITSIO\" was never defined.
     22642Usually this means the macro was only invoked conditionally." "$LINENO" 5
     22643fi
     22644if test -z "${HAS_CCFITS_TRUE}" && test -z "${HAS_CCFITS_FALSE}"; then
     22645  as_fn_error $? "conditional \"HAS_CCFITS\" was never defined.
     22646Usually this means the macro was only invoked conditionally." "$LINENO" 5
     22647fi
     22648if test -z "${HAS_FITS_TRUE}" && test -z "${HAS_FITS_FALSE}"; then
     22649  as_fn_error $? "conditional \"HAS_FITS\" was never defined.
    2260322650Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2260422651fi
     
    2499125038{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
    2499225039$as_echo "$as_me: " >&6;}
     25040{ $as_echo "$as_me:${as_lineno-$LINENO}:  cfitsio                / 'fitsio.h'        found: $HAVE_CFITSIO" >&5
     25041$as_echo "$as_me:  cfitsio                / 'fitsio.h'        found: $HAVE_CFITSIO" >&6;}
     25042{ $as_echo "$as_me:${as_lineno-$LINENO}:  CCfits                 / 'CCfits/CCfits'   found: $HAVE_CCFITS" >&5
     25043$as_echo "$as_me:  CCfits                 / 'CCfits/CCfits'   found: $HAVE_CCFITS" >&6;}
     25044if test "$lt_cv_libxp" = "yes"; then
     25045  { $as_echo "$as_me:${as_lineno-$LINENO}:  Motif/lesstif          / 'Xm/Xm.h' 'libXp' found: yes" >&5
     25046$as_echo "$as_me:  Motif/lesstif          / 'Xm/Xm.h' 'libXp' found: yes" >&6;}
     25047else
     25048  { $as_echo "$as_me:${as_lineno-$LINENO}:  Motif/lesstif          / 'Xm/Xm.h' 'libXp' found: no" >&5
     25049$as_echo "$as_me:  Motif/lesstif          / 'Xm/Xm.h' 'libXp' found: no" >&6;}
     25050
     25051fi
     25052
    2499325053if test "$lt_cv_libxp" = "yes"; then
    2499425054  { $as_echo "$as_me:${as_lineno-$LINENO}:  Motif/lesstif          / 'Xm/Xm.h' 'libXp' found: yes" >&5
     
    2514525205
    2514625206fi
     25207if test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes; then
     25208  :
     25209else
     25210  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  FITS support disabled. cfitsio/CCfits missing!" >&5
     25211$as_echo "$as_me: WARNING:  FITS support disabled. cfitsio/CCfits missing!" >&2;}
     25212
     25213fi
    2514725214if test "$ROOTEXEC" != no; then
    2514825215  if test "$HAVE_ROOT_QT" = yes; then
Note: See TracChangeset for help on using the changeset viewer.