Changeset 11615
- Timestamp:
- 07/26/11 13:34:03 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure
r11391 r11615 751 751 IS_FALSE_FALSE 752 752 IS_FALSE_TRUE 753 HAS_ZLIB_FALSE 754 HAS_ZLIB_TRUE 753 755 HAS_FITS_FALSE 754 756 HAS_FITS_TRUE … … 1031 1033 with_motif_includes 1032 1034 with_motif_libraries 1035 with_zlib 1036 with_zlib_include 1037 with_zlib_libdir 1033 1038 with_cfitsio 1034 1039 with_cfitsio_include … … 1735 1740 --with-motif-includes=DIR Motif include files are in DIR 1736 1741 --with-motif-libraries=DIR Motif libraries are in DIR 1742 --with-zlib=DIR root directory of zlib installation 1743 --with-zlib-include=DIR specify exact include dir for zlib headers (e.g. zlib.h) 1744 --with-zlib-libdir=DIR specify exact library dir for zlib library (e.g. libz) 1745 --without-zlib disables zlib usage completely 1737 1746 --with-cfitsio=DIR root directory of cfitsio installation 1738 1747 --with-cfitsio-include=DIR specify exact include dir for cfitsio headers (e.g. fitsio.h) … … 4795 4804 lt_cv_nm_interface="BSD nm" 4796 4805 echo "int some_variable = 0;" > conftest.$ac_ext 4797 (eval echo "\"\$as_me:4 797: $ac_compile\"" >&5)4806 (eval echo "\"\$as_me:4806: $ac_compile\"" >&5) 4798 4807 (eval "$ac_compile" 2>conftest.err) 4799 4808 cat conftest.err >&5 4800 (eval echo "\"\$as_me:480 0: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4809 (eval echo "\"\$as_me:4809: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4801 4810 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4802 4811 cat conftest.err >&5 4803 (eval echo "\"\$as_me:48 03: output\"" >&5)4812 (eval echo "\"\$as_me:4812: output\"" >&5) 4804 4813 cat conftest.out >&5 4805 4814 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 6006 6015 *-*-irix6*) 6007 6016 # Find out which ABI we are using. 6008 echo '#line 60 08"configure"' > conftest.$ac_ext6017 echo '#line 6017 "configure"' > conftest.$ac_ext 6009 6018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6010 6019 (eval $ac_compile) 2>&5 … … 7667 7676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7668 7677 -e 's:$: $lt_compiler_flag:'` 7669 (eval echo "\"\$as_me:76 69: $lt_compile\"" >&5)7678 (eval echo "\"\$as_me:7678: $lt_compile\"" >&5) 7670 7679 (eval "$lt_compile" 2>conftest.err) 7671 7680 ac_status=$? 7672 7681 cat conftest.err >&5 7673 echo "$as_me:76 73: \$? = $ac_status" >&57682 echo "$as_me:7682: \$? = $ac_status" >&5 7674 7683 if (exit $ac_status) && test -s "$ac_outfile"; then 7675 7684 # The compiler can only warn and ignore the option if not recognized … … 8006 8015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8007 8016 -e 's:$: $lt_compiler_flag:'` 8008 (eval echo "\"\$as_me:80 08: $lt_compile\"" >&5)8017 (eval echo "\"\$as_me:8017: $lt_compile\"" >&5) 8009 8018 (eval "$lt_compile" 2>conftest.err) 8010 8019 ac_status=$? 8011 8020 cat conftest.err >&5 8012 echo "$as_me:80 12: \$? = $ac_status" >&58021 echo "$as_me:8021: \$? = $ac_status" >&5 8013 8022 if (exit $ac_status) && test -s "$ac_outfile"; then 8014 8023 # The compiler can only warn and ignore the option if not recognized … … 8111 8120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8112 8121 -e 's:$: $lt_compiler_flag:'` 8113 (eval echo "\"\$as_me:81 13: $lt_compile\"" >&5)8122 (eval echo "\"\$as_me:8122: $lt_compile\"" >&5) 8114 8123 (eval "$lt_compile" 2>out/conftest.err) 8115 8124 ac_status=$? 8116 8125 cat out/conftest.err >&5 8117 echo "$as_me:81 17: \$? = $ac_status" >&58126 echo "$as_me:8126: \$? = $ac_status" >&5 8118 8127 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8119 8128 then … … 8166 8175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8167 8176 -e 's:$: $lt_compiler_flag:'` 8168 (eval echo "\"\$as_me:81 68: $lt_compile\"" >&5)8177 (eval echo "\"\$as_me:8177: $lt_compile\"" >&5) 8169 8178 (eval "$lt_compile" 2>out/conftest.err) 8170 8179 ac_status=$? 8171 8180 cat out/conftest.err >&5 8172 echo "$as_me:81 72: \$? = $ac_status" >&58181 echo "$as_me:8181: \$? = $ac_status" >&5 8173 8182 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8174 8183 then … … 10550 10559 lt_status=$lt_dlunknown 10551 10560 cat > conftest.$ac_ext <<_LT_EOF 10552 #line 105 52"configure"10561 #line 10561 "configure" 10553 10562 #include "confdefs.h" 10554 10563 … … 10646 10655 lt_status=$lt_dlunknown 10647 10656 cat > conftest.$ac_ext <<_LT_EOF 10648 #line 106 48"configure"10657 #line 10657 "configure" 10649 10658 #include "confdefs.h" 10650 10659 … … 12602 12611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12603 12612 -e 's:$: $lt_compiler_flag:'` 12604 (eval echo "\"\$as_me:126 04: $lt_compile\"" >&5)12613 (eval echo "\"\$as_me:12613: $lt_compile\"" >&5) 12605 12614 (eval "$lt_compile" 2>conftest.err) 12606 12615 ac_status=$? 12607 12616 cat conftest.err >&5 12608 echo "$as_me:126 08: \$? = $ac_status" >&512617 echo "$as_me:12617: \$? = $ac_status" >&5 12609 12618 if (exit $ac_status) && test -s "$ac_outfile"; then 12610 12619 # The compiler can only warn and ignore the option if not recognized … … 12701 12710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12702 12711 -e 's:$: $lt_compiler_flag:'` 12703 (eval echo "\"\$as_me:127 03: $lt_compile\"" >&5)12712 (eval echo "\"\$as_me:12712: $lt_compile\"" >&5) 12704 12713 (eval "$lt_compile" 2>out/conftest.err) 12705 12714 ac_status=$? 12706 12715 cat out/conftest.err >&5 12707 echo "$as_me:127 07: \$? = $ac_status" >&512716 echo "$as_me:12716: \$? = $ac_status" >&5 12708 12717 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12709 12718 then … … 12753 12762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12754 12763 -e 's:$: $lt_compiler_flag:'` 12755 (eval echo "\"\$as_me:127 55: $lt_compile\"" >&5)12764 (eval echo "\"\$as_me:12764: $lt_compile\"" >&5) 12756 12765 (eval "$lt_compile" 2>out/conftest.err) 12757 12766 ac_status=$? 12758 12767 cat out/conftest.err >&5 12759 echo "$as_me:127 59: \$? = $ac_status" >&512768 echo "$as_me:12768: \$? = $ac_status" >&5 12760 12769 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12761 12770 then … … 18214 18223 fi 18215 18224 18225 # Check for zlib and exit with error if not found (defines HAVE_LIBZ) 18226 18227 18228 18229 # Check whether --with-zlib was given. 18230 if test "${with_zlib+set}" = set; then : 18231 withval=$with_zlib; with_zlib=$withval 18232 if test "${with_zlib}" != yes; then 18233 zlib_include="$withval/include" 18234 zlib_libdir="$withval/lib" 18235 fi 18236 18237 fi 18238 18239 18240 18241 # Check whether --with-zlib-include was given. 18242 if test "${with_zlib_include+set}" = set; then : 18243 withval=$with_zlib_include; zlib_include="$withval" 18244 fi 18245 18246 18247 18248 # Check whether --with-zlib-libdir was given. 18249 if test "${with_zlib_libdir+set}" = set; then : 18250 withval=$with_zlib_libdir; zlib_libdir="$withval" 18251 fi 18252 18253 18254 if test "${with_zlib}" != no ; then 18255 OLD_LIBS=$LIBS 18256 OLD_LDFLAGS=$LDFLAGS 18257 OLD_CFLAGS=$CFLAGS 18258 OLD_CPPFLAGS=$CPPFLAGS 18259 18260 if test "${zlib_libdir}" ; then 18261 LDFLAGS="$LDFLAGS -L${zlib_libdir}" 18262 fi 18263 if test "${zlib_include}" ; then 18264 CPPFLAGS="$CPPFLAGS -I${zlib_include}" 18265 CFLAGS="$CFLAGS -I${zlib_include}" 18266 fi 18267 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18269 $as_echo_n "checking for inflateEnd in -lz... " >&6; } 18270 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then : 18271 $as_echo_n "(cached) " >&6 18272 else 18273 ac_check_lib_save_LIBS=$LIBS 18274 LIBS="-lz $LIBS" 18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18276 /* end confdefs.h. */ 18277 18278 /* Override any GCC internal prototype to avoid an error. 18279 Use char because int might match the return type of a GCC 18280 builtin and then its argument prototype would still apply. */ 18281 #ifdef __cplusplus 18282 extern "C" 18283 #endif 18284 char inflateEnd (); 18285 int 18286 main () 18287 { 18288 return inflateEnd (); 18289 ; 18290 return 0; 18291 } 18292 _ACEOF 18293 if ac_fn_c_try_link "$LINENO"; then : 18294 ac_cv_lib_z_inflateEnd=yes 18295 else 18296 ac_cv_lib_z_inflateEnd=no 18297 fi 18298 rm -f core conftest.err conftest.$ac_objext \ 18299 conftest$ac_exeext conftest.$ac_ext 18300 LIBS=$ac_check_lib_save_LIBS 18301 fi 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18303 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18304 if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then : 18305 cat >>confdefs.h <<_ACEOF 18306 #define HAVE_LIBZ 1 18307 _ACEOF 18308 18309 LIBS="-lz $LIBS" 18310 18311 else 18312 no_good=yes 18313 fi 18314 18315 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18316 if test "x$ac_cv_header_zlib_h" = x""yes; then : 18317 18318 else 18319 no_good=yes 18320 fi 18321 18322 18323 if test "$no_good" = yes; then 18324 HAVE_ZLIB=no 18325 18326 LIBS=$OLD_LIBS 18327 LDFLAGS=$OLD_LDFLAGS 18328 CPPFLAGS=$OLD_CPPFLAGS 18329 CFLAGS=$OLD_CFLAGS 18330 else 18331 HAVE_ZLIB=yes 18332 18333 $as_echo "#define HAVE_PKG_zlib 1" >>confdefs.h 18334 18335 fi 18336 18337 fi 18338 18339 18340 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]) 18343 18216 18344 # Needed to compile FACT++ 18217 18345 … … 21686 21814 21687 21815 cat > conftest.$ac_ext <<EOF 21688 #line 21 688"configure"21816 #line 21816 "configure" 21689 21817 #include "confdefs.h" 21690 21818 #include <qglobal.h> … … 22387 22515 fi 22388 22516 22517 if test "$HAVE_ZLIB" = yes; then 22518 HAS_ZLIB_TRUE= 22519 HAS_ZLIB_FALSE='#' 22520 else 22521 HAS_ZLIB_TRUE='#' 22522 HAS_ZLIB_FALSE= 22523 fi 22524 22389 22525 22390 22526 if test "x" = "y"; then … … 22411 22547 if test "$ROOTEXEC" != no; then 22412 22548 $as_echo "#define HAVE_ROOT 1" >>confdefs.h 22549 22550 fi 22551 if test "$HAVE_ZLIB" = yes; then 22552 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h 22413 22553 22414 22554 fi … … 22722 22862 if test -z "${HAS_FITS_TRUE}" && test -z "${HAS_FITS_FALSE}"; then 22723 22863 as_fn_error $? "conditional \"HAS_FITS\" was never defined. 22864 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22865 fi 22866 if test -z "${HAS_ZLIB_TRUE}" && test -z "${HAS_ZLIB_FALSE}"; then 22867 as_fn_error $? "conditional \"HAS_ZLIB\" was never defined. 22724 22868 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22725 22869 fi … … 25112 25256 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 25113 25257 $as_echo "$as_me: " >&6;} 25258 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib / 'zlib.h' found: $HAVE_ZLIB" >&5 25259 $as_echo "$as_me: zlib / 'zlib.h' found: $HAVE_ZLIB" >&6;} 25114 25260 { $as_echo "$as_me:${as_lineno-$LINENO}: cfitsio / 'fitsio.h' found: $HAVE_CFITSIO" >&5 25115 25261 $as_echo "$as_me: cfitsio / 'fitsio.h' found: $HAVE_CFITSIO" >&6;} … … 25272 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 25273 25419 $as_echo "$as_me: " >&6;} 25420 if test "$HAVE_ZLIB" = yes; then 25421 : 25422 else 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;} 25425 25426 fi 25274 25427 if test "$lt_cv_libxp" = "yes"; then 25275 25428 : -
trunk/FACT++/configure.ac
r11391 r11615 106 106 AC_MSG_WARN([ Motif/lesstif not found!]) 107 107 ) 108 109 # Check for zlib and exit with error if not found (defines HAVE_LIBZ) 110 AC_CHECK_PACKAGE(zlib, inflateEnd, z, zlib.h, 111 HAVE_ZLIB=yes, HAVE_ZLIB=no) 112 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]) 108 115 109 116 # Needed to compile FACT++ … … 282 289 AM_CONDITIONAL(HAS_CCFITS, [test "$HAVE_CCFITS" = yes]) 283 290 AM_CONDITIONAL(HAS_FITS, [test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes]) 291 AM_CONDITIONAL(HAS_ZLIB, [test "$HAVE_ZLIB" = yes]) 284 292 285 293 AM_CONDITIONAL(IS_FALSE, [test "x" = "y"]) … … 288 296 AM_COND_IF(HAS_FITS, [AC_DEFINE(HAVE_FITS)], ) 289 297 AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], ) 298 AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], ) 290 299 291 300 ########################################################################## … … 335 344 AC_MSG_NOTICE(--------------------------------------------------------------------) 336 345 AC_MSG_NOTICE() 346 AC_MSG_NOTICE([ zlib / 'zlib.h' found: $HAVE_ZLIB]) 337 347 AC_MSG_NOTICE([ cfitsio / 'fitsio.h' found: $HAVE_CFITSIO]) 338 348 AC_MSG_NOTICE([ CCfits / 'CCfits/CCfits' found: $HAVE_CCFITS]) … … 416 426 AC_MSG_NOTICE(--------------------------------------------------------------------) 417 427 AC_MSG_NOTICE() 428 AM_COND_IF(HAS_ZLIB,, 429 AC_MSG_WARN([ zlib not found. Support for reading zipped files disabled!]) 430 ) 418 431 AM_COND_IF(HAS_LIBXP,, 419 432 AC_MSG_WARN([ Motif/lesstif not found. The dim gui did will not be built!])
Note:
See TracChangeset
for help on using the changeset viewer.