Changeset 10464


Ignore:
Timestamp:
04/26/11 18:44:46 (13 years ago)
Author:
tbretz
Message:
Updated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/configure

    r10459 r10464  
    10221022enable_doxygen_pdf
    10231023with_readline
     1024with_x
     1025with_motif_includes
     1026with_motif_libraries
    10241027with_cfitsio
    10251028with_cfitsio_include
     
    10281031with_ccfits_include
    10291032with_ccfits_libdir
    1030 with_x
    1031 with_motif_includes
    1032 with_motif_libraries
    10331033with_mysql_include
    10341034with_mysqlpp
     
    17261726  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    17271727  --with-readline[=dir]   Compile with readline/locate base dir
     1728  --with-x                use the X Window System
     1729  --with-motif-includes=DIR    Motif include files are in DIR
     1730  --with-motif-libraries=DIR   Motif libraries are in DIR
    17281731  --with-cfitsio=DIR    root directory of cfitsio installation
    17291732  --with-cfitsio-include=DIR        specify exact include dir for cfitsio headers
     
    17341737  --with-ccfits-libdir=DIR        specify exact library dir for ccfits library
    17351738  --without-ccfits        disables ccfits usage completely
    1736   --with-x                use the X Window System
    1737   --with-motif-includes=DIR    Motif include files are in DIR
    1738   --with-motif-libraries=DIR   Motif libraries are in DIR
    17391739  --with-mysql-include=<path> directory path of MySQL header installation
    17401740  --with-mysqlpp=<path>     path containing MySQL++ header and library subdirs
     
    1709217092
    1709317093
    17094 # Needed to compile FACT++
    17095 
    17096 
    17097 
    17098 # Check whether --with-cfitsio was given.
    17099 if test "${with_cfitsio+set}" = set; then :
    17100   withval=$with_cfitsio; with_cfitsio=$withval
    17101 if test "${with_cfitsio}" != yes; then
    17102         cfitsio_include="$withval/include"
    17103         cfitsio_libdir="$withval/lib"
    17104 fi
    17105 
    17106 fi
    17107 
    17108 
    17109 
    17110 # Check whether --with-cfitsio-include was given.
    17111 if test "${with_cfitsio_include+set}" = set; then :
    17112   withval=$with_cfitsio_include; cfitsio_include="$withval"
    17113 fi
    17114 
    17115 
    17116 
    17117 # Check whether --with-cfitsio-libdir was given.
    17118 if test "${with_cfitsio_libdir+set}" = set; then :
    17119   withval=$with_cfitsio_libdir; cfitsio_libdir="$withval"
    17120 fi
    17121 
    17122 
    17123 if test "${with_cfitsio}" != no ; then
    17124         OLD_LIBS=$LIBS
    17125         OLD_LDFLAGS=$LDFLAGS
    17126         OLD_CFLAGS=$CFLAGS
    17127         OLD_CPPFLAGS=$CPPFLAGS
    17128 
    17129         if test "${cfitsio_libdir}" ; then
    17130                 LDFLAGS="$LDFLAGS -L${cfitsio_libdir}"
    17131         fi
    17132         if test "${cfitsio_include}" ; then
    17133                 CPPFLAGS="$CPPFLAGS -I${cfitsio_include}"
    17134                 CFLAGS="$CFLAGS -I${cfitsio_include}"
    17135         fi
    17136 
    17137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5
    17138 $as_echo_n "checking for ffpss in -lcfitsio... " >&6; }
    17139 if test "${ac_cv_lib_cfitsio_ffpss+set}" = set; then :
    17140   $as_echo_n "(cached) " >&6
    17141 else
    17142   ac_check_lib_save_LIBS=$LIBS
    17143 LIBS="-lcfitsio  $LIBS"
    17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    17145 /* end confdefs.h.  */
    17146 
    17147 /* Override any GCC internal prototype to avoid an error.
    17148    Use char because int might match the return type of a GCC
    17149    builtin and then its argument prototype would still apply.  */
    17150 #ifdef __cplusplus
    17151 extern "C"
    17152 #endif
    17153 char ffpss ();
    17154 int
    17155 main ()
    17156 {
    17157 return ffpss ();
    17158   ;
    17159   return 0;
    17160 }
    17161 _ACEOF
    17162 if ac_fn_c_try_link "$LINENO"; then :
    17163   ac_cv_lib_cfitsio_ffpss=yes
    17164 else
    17165   ac_cv_lib_cfitsio_ffpss=no
    17166 fi
    17167 rm -f core conftest.err conftest.$ac_objext \
    17168     conftest$ac_exeext conftest.$ac_ext
    17169 LIBS=$ac_check_lib_save_LIBS
    17170 fi
    17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5
    17172 $as_echo "$ac_cv_lib_cfitsio_ffpss" >&6; }
    17173 if test "x$ac_cv_lib_cfitsio_ffpss" = x""yes; then :
    17174   cat >>confdefs.h <<_ACEOF
    17175 #define HAVE_LIBCFITSIO 1
    17176 _ACEOF
    17177 
    17178   LIBS="-lcfitsio $LIBS"
    17179 
    17180 else
    17181   no_good=yes
    17182 fi
    17183 
    17184         ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default"
    17185 if test "x$ac_cv_header_fitsio_h" = x""yes; then :
    17186 
    17187 else
    17188   no_good=yes
    17189 fi
    17190 
    17191 
    17192         if test "$no_good" = yes; then
    17193                 as_fn_error $? "cfitsio not properly installed/not found." "$LINENO" 5
    17194 
    17195                 LIBS=$OLD_LIBS
    17196                 LDFLAGS=$OLD_LDFLAGS
    17197                 CPPFLAGS=$OLD_CPPFLAGS
    17198                 CFLAGS=$OLD_CFLAGS
    17199         else
    17200 
    17201 
    17202                 $as_echo "#define HAVE_PKG_cfitsio 1" >>confdefs.h
    17203 
    17204         fi
    17205 
    17206 fi
    17207 
    17208 
    17209 
    17210 #AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found]))
    17211 #AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found]))
    17212 
    17213 ac_ext=cpp
    17214 ac_cpp='$CXXCPP $CPPFLAGS'
    17215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    17216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    17217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    17218 
    17219 
    17220 # Needed to compile FACT++
    17221 
    17222 
    17223 
    17224 
    17225 # Check whether --with-ccfits was given.
    17226 if test "${with_ccfits+set}" = set; then :
    17227   withval=$with_ccfits; with_ccfits=$withval
    17228 if test "${with_ccfits}" != yes; then
    17229         ccfits_include="$withval/include"
    17230         ccfits_libdir="$withval/lib"
    17231 fi
    17232 
    17233 fi
    17234 
    17235 
    17236 
    17237 # Check whether --with-ccfits-include was given.
    17238 if test "${with_ccfits_include+set}" = set; then :
    17239   withval=$with_ccfits_include; ccfits_include="$withval"
    17240 fi
    17241 
    17242 
    17243 
    17244 # Check whether --with-ccfits-libdir was given.
    17245 if test "${with_ccfits_libdir+set}" = set; then :
    17246   withval=$with_ccfits_libdir; ccfits_libdir="$withval"
    17247 fi
    17248 
    17249 
    17250 if test "${with_ccfits}" != no ; then
    17251         OLD_LIBS=$LIBS
    17252         OLD_LDFLAGS=$LDFLAGS
    17253         OLD_CFLAGS=$CFLAGS
    17254         OLD_CPPFLAGS=$CPPFLAGS
    17255 
    17256         if test "${ccfits_libdir}" ; then
    17257                 LDFLAGS="$LDFLAGS -L${ccfits_libdir}"
    17258         fi
    17259         if test "${ccfits_include}" ; then
    17260                 CPPFLAGS="$CPPFLAGS -I${ccfits_include}"
    17261                 CFLAGS="$CFLAGS -I${ccfits_include}"
    17262         fi
    17263 
    17264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCCfits" >&5
    17265 $as_echo_n "checking for main in -lCCfits... " >&6; }
    17266 if test "${ac_cv_lib_CCfits_main+set}" = set; then :
    17267   $as_echo_n "(cached) " >&6
    17268 else
    17269   ac_check_lib_save_LIBS=$LIBS
    17270 LIBS="-lCCfits  $LIBS"
    17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    17272 /* end confdefs.h.  */
    17273 
    17274 
    17275 int
    17276 main ()
    17277 {
    17278 return main ();
    17279   ;
    17280   return 0;
    17281 }
    17282 _ACEOF
    17283 if ac_fn_cxx_try_link "$LINENO"; then :
    17284   ac_cv_lib_CCfits_main=yes
    17285 else
    17286   ac_cv_lib_CCfits_main=no
    17287 fi
    17288 rm -f core conftest.err conftest.$ac_objext \
    17289     conftest$ac_exeext conftest.$ac_ext
    17290 LIBS=$ac_check_lib_save_LIBS
    17291 fi
    17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CCfits_main" >&5
    17293 $as_echo "$ac_cv_lib_CCfits_main" >&6; }
    17294 if test "x$ac_cv_lib_CCfits_main" = x""yes; then :
    17295   cat >>confdefs.h <<_ACEOF
    17296 #define HAVE_LIBCCFITS 1
    17297 _ACEOF
    17298 
    17299   LIBS="-lCCfits $LIBS"
    17300 
    17301 else
    17302   no_good=yes
    17303 fi
    17304 
    17305         ac_fn_cxx_check_header_mongrel "$LINENO" "CCfits/CCfits" "ac_cv_header_CCfits_CCfits" "$ac_includes_default"
    17306 if test "x$ac_cv_header_CCfits_CCfits" = x""yes; then :
    17307 
    17308 else
    17309   no_good=yes
    17310 fi
    17311 
    17312 
    17313         if test "$no_good" = yes; then
    17314                 as_fn_error $? "CCfits not properly installed/not found." "$LINENO" 5
    17315 
    17316                 LIBS=$OLD_LIBS
    17317                 LDFLAGS=$OLD_LDFLAGS
    17318                 CPPFLAGS=$OLD_CPPFLAGS
    17319                 CFLAGS=$OLD_CFLAGS
    17320         else
    17321 
    17322 
    17323                 $as_echo "#define HAVE_PKG_ccfits 1" >>confdefs.h
    17324 
    17325         fi
    17326 
    17327 fi
    17328 
    17329 
    17330 
    17331 #AC_CHECK_HEADERS([CCfits/CCfits],,
    17332 #   AC_MSG_ERROR(CCfits headers not found))
    17333 #AC_CHECK_LIB(CCfits, main,,
    17334 #   AC_MSG_ERROR(CCfits library not found))
    17335 
    17336 
    17337 ######################################################################
    17338 # Xm.h (lesstif/motif, needed by did)
    17339 ######################################################################
    17340 
    17341 # Needed to compile dim
     17094# Xm.h (lesstif/motif, needed to compile did)
    1734217095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
    1734317096$as_echo_n "checking for X... " >&6; }
     
    1744817201#include <X11/Xlib.h>
    1744917202_ACEOF
    17450 if ac_fn_cxx_try_cpp "$LINENO"; then :
     17203if ac_fn_c_try_cpp "$LINENO"; then :
    1745117204  # We can compile using X headers with no special include directory.
    1745217205ac_x_includes=
     
    1747917232}
    1748017233_ACEOF
    17481 if ac_fn_cxx_try_link "$LINENO"; then :
     17234if ac_fn_c_try_link "$LINENO"; then :
    1748217235  LIBS=$ac_save_LIBS
    1748317236# We can link X programs with no special library path.
     
    1755217305$as_echo_n "checking whether -R must be followed by a space... " >&6; }
    1755317306    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    17554     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
    17555     ac_cxx_werror_flag=yes
     17307    ac_xsave_c_werror_flag=$ac_c_werror_flag
     17308    ac_c_werror_flag=yes
    1755617309    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1755717310/* end confdefs.h.  */
     
    1756517318}
    1756617319_ACEOF
    17567 if ac_fn_cxx_try_link "$LINENO"; then :
     17320if ac_fn_c_try_link "$LINENO"; then :
    1756817321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    1756917322$as_echo "no" >&6; }
     
    1758217335}
    1758317336_ACEOF
    17584 if ac_fn_cxx_try_link "$LINENO"; then :
     17337if ac_fn_c_try_link "$LINENO"; then :
    1758517338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    1758617339$as_echo "yes" >&6; }
     
    1759517348rm -f core conftest.err conftest.$ac_objext \
    1759617349    conftest$ac_exeext conftest.$ac_ext
    17597     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
     17350    ac_c_werror_flag=$ac_xsave_c_werror_flag
    1759817351    LIBS=$ac_xsave_LIBS
    1759917352  fi
     
    1762817381}
    1762917382_ACEOF
    17630 if ac_fn_cxx_try_link "$LINENO"; then :
     17383if ac_fn_c_try_link "$LINENO"; then :
    1763117384
    1763217385else
     
    1765617409}
    1765717410_ACEOF
    17658 if ac_fn_cxx_try_link "$LINENO"; then :
     17411if ac_fn_c_try_link "$LINENO"; then :
    1765917412  ac_cv_lib_dnet_dnet_ntoa=yes
    1766017413else
     
    1769717450}
    1769817451_ACEOF
    17699 if ac_fn_cxx_try_link "$LINENO"; then :
     17452if ac_fn_c_try_link "$LINENO"; then :
    1770017453  ac_cv_lib_dnet_stub_dnet_ntoa=yes
    1770117454else
     
    1772617479    # The functions gethostbyname, getservbyname, and inet_addr are
    1772717480    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    17728     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
     17481    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
    1772917482if test "x$ac_cv_func_gethostbyname" = x""yes; then :
    1773017483
     
    1775717510}
    1775817511_ACEOF
    17759 if ac_fn_cxx_try_link "$LINENO"; then :
     17512if ac_fn_c_try_link "$LINENO"; then :
    1776017513  ac_cv_lib_nsl_gethostbyname=yes
    1776117514else
     
    1779817551}
    1779917552_ACEOF
    17800 if ac_fn_cxx_try_link "$LINENO"; then :
     17553if ac_fn_c_try_link "$LINENO"; then :
    1780117554  ac_cv_lib_bsd_gethostbyname=yes
    1780217555else
     
    1782317576    # must be given before -lnsl if both are needed.  We assume that
    1782417577    # if connect needs -lnsl, so does gethostbyname.
    17825     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
     17578    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
    1782617579if test "x$ac_cv_func_connect" = x""yes; then :
    1782717580
     
    1785417607}
    1785517608_ACEOF
    17856 if ac_fn_cxx_try_link "$LINENO"; then :
     17609if ac_fn_c_try_link "$LINENO"; then :
    1785717610  ac_cv_lib_socket_connect=yes
    1785817611else
     
    1787217625
    1787317626    # Guillermo Gomez says -lposix is necessary on A/UX.
    17874     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
     17627    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
    1787517628if test "x$ac_cv_func_remove" = x""yes; then :
    1787617629
     
    1790317656}
    1790417657_ACEOF
    17905 if ac_fn_cxx_try_link "$LINENO"; then :
     17658if ac_fn_c_try_link "$LINENO"; then :
    1790617659  ac_cv_lib_posix_remove=yes
    1790717660else
     
    1792117674
    1792217675    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    17923     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
     17676    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
    1792417677if test "x$ac_cv_func_shmat" = x""yes; then :
    1792517678
     
    1795217705}
    1795317706_ACEOF
    17954 if ac_fn_cxx_try_link "$LINENO"; then :
     17707if ac_fn_c_try_link "$LINENO"; then :
    1795517708  ac_cv_lib_ipc_shmat=yes
    1795617709else
     
    1800417757}
    1800517758_ACEOF
    18006 if ac_fn_cxx_try_link "$LINENO"; then :
     17759if ac_fn_c_try_link "$LINENO"; then :
    1800717760  ac_cv_lib_ICE_IceConnectionNumber=yes
    1800817761else
     
    1805717810}
    1805817811_ACEOF
    18059 if ac_fn_cxx_try_link "$LINENO"; then :
     17812if ac_fn_c_try_link "$LINENO"; then :
    1806017813  lt_cv_libxp=yes
    1806117814else
     
    1814517898}
    1814617899_ACEOF
    18147 if ac_fn_cxx_try_compile "$LINENO"; then :
     17900if ac_fn_c_try_compile "$LINENO"; then :
    1814817901
    1814917902# Xm/Xm.h is in the standard search path.
     
    1821917972}
    1822017973_ACEOF
    18221 if ac_fn_cxx_try_link "$LINENO"; then :
     17974if ac_fn_c_try_link "$LINENO"; then :
    1822217975
    1822317976# libXm.a is in the standard search path.
     
    1830918062}
    1831018063_ACEOF
    18311 if ac_fn_cxx_try_link "$LINENO"; then :
     18064if ac_fn_c_try_link "$LINENO"; then :
    1831218065  lt_cv_libxp=yes
    1831318066else
     
    1839318146
    1839418147fi
     18148
     18149# Needed to compile FACT++
     18150
     18151
     18152
     18153# Check whether --with-cfitsio was given.
     18154if test "${with_cfitsio+set}" = set; then :
     18155  withval=$with_cfitsio; with_cfitsio=$withval
     18156if test "${with_cfitsio}" != yes; then
     18157        cfitsio_include="$withval/include"
     18158        cfitsio_libdir="$withval/lib"
     18159fi
     18160
     18161fi
     18162
     18163
     18164
     18165# Check whether --with-cfitsio-include was given.
     18166if test "${with_cfitsio_include+set}" = set; then :
     18167  withval=$with_cfitsio_include; cfitsio_include="$withval"
     18168fi
     18169
     18170
     18171
     18172# Check whether --with-cfitsio-libdir was given.
     18173if test "${with_cfitsio_libdir+set}" = set; then :
     18174  withval=$with_cfitsio_libdir; cfitsio_libdir="$withval"
     18175fi
     18176
     18177
     18178if test "${with_cfitsio}" != no ; then
     18179        OLD_LIBS=$LIBS
     18180        OLD_LDFLAGS=$LDFLAGS
     18181        OLD_CFLAGS=$CFLAGS
     18182        OLD_CPPFLAGS=$CPPFLAGS
     18183
     18184        if test "${cfitsio_libdir}" ; then
     18185                LDFLAGS="$LDFLAGS -L${cfitsio_libdir}"
     18186        fi
     18187        if test "${cfitsio_include}" ; then
     18188                CPPFLAGS="$CPPFLAGS -I${cfitsio_include}"
     18189                CFLAGS="$CFLAGS -I${cfitsio_include}"
     18190        fi
     18191
     18192        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5
     18193$as_echo_n "checking for ffpss in -lcfitsio... " >&6; }
     18194if test "${ac_cv_lib_cfitsio_ffpss+set}" = set; then :
     18195  $as_echo_n "(cached) " >&6
     18196else
     18197  ac_check_lib_save_LIBS=$LIBS
     18198LIBS="-lcfitsio  $LIBS"
     18199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18200/* end confdefs.h.  */
     18201
     18202/* Override any GCC internal prototype to avoid an error.
     18203   Use char because int might match the return type of a GCC
     18204   builtin and then its argument prototype would still apply.  */
     18205#ifdef __cplusplus
     18206extern "C"
     18207#endif
     18208char ffpss ();
     18209int
     18210main ()
     18211{
     18212return ffpss ();
     18213  ;
     18214  return 0;
     18215}
     18216_ACEOF
     18217if ac_fn_c_try_link "$LINENO"; then :
     18218  ac_cv_lib_cfitsio_ffpss=yes
     18219else
     18220  ac_cv_lib_cfitsio_ffpss=no
     18221fi
     18222rm -f core conftest.err conftest.$ac_objext \
     18223    conftest$ac_exeext conftest.$ac_ext
     18224LIBS=$ac_check_lib_save_LIBS
     18225fi
     18226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5
     18227$as_echo "$ac_cv_lib_cfitsio_ffpss" >&6; }
     18228if test "x$ac_cv_lib_cfitsio_ffpss" = x""yes; then :
     18229  cat >>confdefs.h <<_ACEOF
     18230#define HAVE_LIBCFITSIO 1
     18231_ACEOF
     18232
     18233  LIBS="-lcfitsio $LIBS"
     18234
     18235else
     18236  no_good=yes
     18237fi
     18238
     18239        ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default"
     18240if test "x$ac_cv_header_fitsio_h" = x""yes; then :
     18241
     18242else
     18243  no_good=yes
     18244fi
     18245
     18246
     18247        if test "$no_good" = yes; then
     18248                as_fn_error $? "cfitsio not properly installed/not found." "$LINENO" 5
     18249
     18250                LIBS=$OLD_LIBS
     18251                LDFLAGS=$OLD_LDFLAGS
     18252                CPPFLAGS=$OLD_CPPFLAGS
     18253                CFLAGS=$OLD_CFLAGS
     18254        else
     18255
     18256
     18257                $as_echo "#define HAVE_PKG_cfitsio 1" >>confdefs.h
     18258
     18259        fi
     18260
     18261fi
     18262
     18263
     18264
     18265#AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found]))
     18266#AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found]))
     18267
     18268ac_ext=cpp
     18269ac_cpp='$CXXCPP $CPPFLAGS'
     18270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     18271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     18272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     18273
     18274
     18275# Needed to compile FACT++
     18276
     18277
     18278
     18279
     18280# Check whether --with-ccfits was given.
     18281if test "${with_ccfits+set}" = set; then :
     18282  withval=$with_ccfits; with_ccfits=$withval
     18283if test "${with_ccfits}" != yes; then
     18284        ccfits_include="$withval/include"
     18285        ccfits_libdir="$withval/lib"
     18286fi
     18287
     18288fi
     18289
     18290
     18291
     18292# Check whether --with-ccfits-include was given.
     18293if test "${with_ccfits_include+set}" = set; then :
     18294  withval=$with_ccfits_include; ccfits_include="$withval"
     18295fi
     18296
     18297
     18298
     18299# Check whether --with-ccfits-libdir was given.
     18300if test "${with_ccfits_libdir+set}" = set; then :
     18301  withval=$with_ccfits_libdir; ccfits_libdir="$withval"
     18302fi
     18303
     18304
     18305if test "${with_ccfits}" != no ; then
     18306        OLD_LIBS=$LIBS
     18307        OLD_LDFLAGS=$LDFLAGS
     18308        OLD_CFLAGS=$CFLAGS
     18309        OLD_CPPFLAGS=$CPPFLAGS
     18310
     18311        if test "${ccfits_libdir}" ; then
     18312                LDFLAGS="$LDFLAGS -L${ccfits_libdir}"
     18313        fi
     18314        if test "${ccfits_include}" ; then
     18315                CPPFLAGS="$CPPFLAGS -I${ccfits_include}"
     18316                CFLAGS="$CFLAGS -I${ccfits_include}"
     18317        fi
     18318
     18319        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCCfits" >&5
     18320$as_echo_n "checking for main in -lCCfits... " >&6; }
     18321if test "${ac_cv_lib_CCfits_main+set}" = set; then :
     18322  $as_echo_n "(cached) " >&6
     18323else
     18324  ac_check_lib_save_LIBS=$LIBS
     18325LIBS="-lCCfits  $LIBS"
     18326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18327/* end confdefs.h.  */
     18328
     18329
     18330int
     18331main ()
     18332{
     18333return main ();
     18334  ;
     18335  return 0;
     18336}
     18337_ACEOF
     18338if ac_fn_cxx_try_link "$LINENO"; then :
     18339  ac_cv_lib_CCfits_main=yes
     18340else
     18341  ac_cv_lib_CCfits_main=no
     18342fi
     18343rm -f core conftest.err conftest.$ac_objext \
     18344    conftest$ac_exeext conftest.$ac_ext
     18345LIBS=$ac_check_lib_save_LIBS
     18346fi
     18347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CCfits_main" >&5
     18348$as_echo "$ac_cv_lib_CCfits_main" >&6; }
     18349if test "x$ac_cv_lib_CCfits_main" = x""yes; then :
     18350  cat >>confdefs.h <<_ACEOF
     18351#define HAVE_LIBCCFITS 1
     18352_ACEOF
     18353
     18354  LIBS="-lCCfits $LIBS"
     18355
     18356else
     18357  no_good=yes
     18358fi
     18359
     18360        ac_fn_cxx_check_header_mongrel "$LINENO" "CCfits/CCfits" "ac_cv_header_CCfits_CCfits" "$ac_includes_default"
     18361if test "x$ac_cv_header_CCfits_CCfits" = x""yes; then :
     18362
     18363else
     18364  no_good=yes
     18365fi
     18366
     18367
     18368        if test "$no_good" = yes; then
     18369                as_fn_error $? "CCfits not properly installed/not found." "$LINENO" 5
     18370
     18371                LIBS=$OLD_LIBS
     18372                LDFLAGS=$OLD_LDFLAGS
     18373                CPPFLAGS=$OLD_CPPFLAGS
     18374                CFLAGS=$OLD_CFLAGS
     18375        else
     18376
     18377
     18378                $as_echo "#define HAVE_PKG_ccfits 1" >>confdefs.h
     18379
     18380        fi
     18381
     18382fi
     18383
     18384
     18385
     18386#AC_CHECK_HEADERS([CCfits/CCfits],,
     18387#   AC_MSG_ERROR(CCfits headers not found))
     18388#AC_CHECK_LIB(CCfits, main,,
     18389#   AC_MSG_ERROR(CCfits library not found))
    1839518390
    1839618391######################################################################
     
    2161221607
    2161321608                cat > conftest.$ac_ext <<EOF
    21614 #line 21614 "configure"
     21609#line 21609 "configure"
    2161521610#include "confdefs.h"
    2161621611#include <qglobal.h>
     
    2505625051
    2505725052fi
    25058 { $as_echo "$as_me:${as_lineno-$LINENO}:  ROOT support enabled   /  root >= 5.12/00  found: $ROOTEXEC" >&5
    25059 $as_echo "$as_me:  ROOT support enabled   /  root >= 5.12/00  found: $ROOTEXEC" >&6;}
    25060 { $as_echo "$as_me:${as_lineno-$LINENO}:  ROOT built with --with-qt                  found: $HAVE_ROOT_QT" >&5
    25061 $as_echo "$as_me:  ROOT built with --with-qt                  found: $HAVE_ROOT_QT" >&6;}
     25053{ $as_echo "$as_me:${as_lineno-$LINENO}:  ROOT support enabled   /  root >= 5.12/00   found: $ROOTEXEC" >&5
     25054$as_echo "$as_me:  ROOT support enabled   /  root >= 5.12/00   found: $ROOTEXEC" >&6;}
     25055{ $as_echo "$as_me:${as_lineno-$LINENO}:  ROOT built with --with-qt                   found: $HAVE_ROOT_QT" >&5
     25056$as_echo "$as_me:  ROOT built with --with-qt                   found: $HAVE_ROOT_QT" >&6;}
    2506225057{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
    2506325058$as_echo "$as_me: " >&6;}
Note: See TracChangeset for help on using the changeset viewer.