configure.ac 889 Bytes
Newer Older
1 2

AC_PREREQ([2.69])
Filip Hroch's avatar
Filip Hroch committed
3
AC_INIT([fitspng],[1.4],[hroch@physics.muni.cz])
4 5 6 7 8 9
AM_INIT_AUTOMAKE

AC_PROG_CC
AC_PROG_INSTALL
AC_FUNC_MALLOC

Filip Hroch's avatar
Filip Hroch committed
10 11
AC_CHECK_HEADERS([stdlib.h string.h])
AC_CHECK_HEADERS([math.h])
12 13
AC_CHECK_LIB([m], [powf])

Filip Hroch's avatar
Filip Hroch committed
14
dnl FITSIO library
15
AC_CHECK_HEADERS([fitsio.h])
Filip Hroch's avatar
Filip Hroch committed
16
AC_CHECK_LIB([cfitsio],[ffopen],[],[
17 18 19 20 21 22 23 24
    echo "configure: no cfitsio library found"
    echo
    echo "Please check installation of cfitsio and try again."
    echo "Look at http://heasarc.gsfc.nasa.gov/fitsio for more information."
    echo
    exit 1],
    [-lm])

Filip Hroch's avatar
Filip Hroch committed
25
dnl PNG library
26 27 28 29 30 31 32 33 34 35 36 37
AC_CHECK_HEADERS([png.h])
AC_CHECK_LIB([png],[png_init_io],[],[
    echo "configure: no png library found"
    echo
    echo "Please check installation of png and try again."
    echo "Look at http://libpng.sourceforge.net/ for more information."
    echo
    exit 1],
    [-lm])

AC_CONFIG_FILES([Makefile] [images/Makefile])
AC_OUTPUT