|
Line
Link Here
|
| 0 |
-- configure.ac |
0 |
++ configure.ac |
|
Lines 251-261
Link Here
|
| 251 |
AC_CHECK_LIB(tiff, TIFFSetErrorHandler)) |
251 |
AC_CHECK_LIB(tiff, TIFFSetErrorHandler)) |
| 252 |
have_tiff=${ac_cv_lib_tiff_TIFFSetErrorHandler:-no} |
252 |
have_tiff=${ac_cv_lib_tiff_TIFFSetErrorHandler:-no} |
| 253 |
|
253 |
|
| 254 |
PKG_CHECK_MODULES(CFITSIO, cfitsio, |
254 |
AC_ARG_WITH([cfitsio], |
| 255 |
[ have_cfitsio=yes |
255 |
[AS_HELP_STRING([--with-cfitsio], |
| 256 |
AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ], |
256 |
[build fits support @<:@default=check@:>@])], |
| 257 |
[ have_cfitsio=no |
257 |
[], |
| 258 |
AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) |
258 |
[with_cfitsio=check]) |
|
|
259 |
|
| 260 |
have_cfitsio=no |
| 261 |
AS_IF([test "x$with_cfitsio" != xno], |
| 262 |
[PKG_CHECK_MODULES(CFITSIO, cfitsio, |
| 263 |
[ have_cfitsio=yes |
| 264 |
AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ], |
| 265 |
[ have_cfitsio=no |
| 266 |
AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) ] ) |
| 267 |
|
| 259 |
if test "$have_cfitsio" = "no"; then |
268 |
if test "$have_cfitsio" = "no"; then |
| 260 |
AC_CHECK_HEADER(fitsio.h, |
269 |
AC_CHECK_HEADER(fitsio.h, |
| 261 |
AC_CHECK_LIB(cfitsio, ffcmsg)) |
270 |
AC_CHECK_LIB(cfitsio, ffcmsg)) |