IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7412


Ignore:
Timestamp:
Jun 7, 2006, 12:57:54 PM (20 years ago)
Author:
Paul Price
Message:

Fixing --with-float for FFTW to --enable-float, which is what builds the library with the correct precision.
Putting in libjpeg checking in the same manner as for FFTW.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r7404 r7412  
    169169TMP_LIBS=${LIBS}
    170170AC_CHECK_LIB(cfitsio,ffopen,[],
    171   [AC_MSG_ERROR([CFITSIO library not found.  Obtain it at  http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])]
     171  [AC_MSG_ERROR([CFITSIO library not found.  Obtain it at  http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])],[-lm]
    172172)
    173173dnl Now check if CFITSIO supports fits_open_diskfile, i.e., is at least version 2.501
     
    175175  [CFITSIO_DISKFILE=1],
    176176  [AC_MSG_WARN([The CFITSIO library version is rather old.  Suggested version is 2.501 or greater.])
    177    CFITSIO_DISKFILE=0]
     177   CFITSIO_DISKFILE=0],[-lm]
    178178)
    179179LIBS=${TMP_LIBS}
     
    207207LDFLAGS="${TMP_LDFLAGS} ${PSLIB_LIBS}"
    208208AC_CHECK_HEADERS([fftw3.h],[],
    209   [AC_MSG_ERROR([FFTW version 3 (--with-float) headers not found.  Obtain it at http://www.fftw.org/or use --with-fftw3 to specify location.])]
     209  [AC_MSG_ERROR([FFTW version 3 (--enable-float) headers not found.  Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])]
    210210)
    211211AC_CHECK_LIB(fftw3f,fftwf_plan_dft_2d,[],
    212   [AC_MSG_ERROR([FFTW version 3 (--with-float) library not found.  Obtain it at http://www.fftw.org/or use --with-fftw3 to specify location.])],[-lm]
     212  [AC_MSG_ERROR([FFTW version 3 (--enable-float) library not found.  Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])],[-lm]
    213213)
    214214LIBS=${TMP_LIBS}
     
    241241AC_SUBST([GSL_CFLAGS])
    242242
    243 dnl libjpeg -------------------------------------------------------------------
    244 
    245 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],[AC_MSG_ERROR([jpeg library not found.])])
     243dnl ------------------ libjpeg options ---------------------
     244AC_ARG_WITH(jpeg,
     245[AS_HELP_STRING(--with-jpeg=DIR,Specify location of libjpeg.)],
     246[JPEG_CFLAGS="-I$withval/include"
     247 JPEG_LDFLAGS="-L$withval/lib"])
     248AC_ARG_WITH(jpeg-include,
     249[AS_HELP_STRING(--with-jpeg-include=DIR,Specify libjpeg include directory.)],
     250[FFTW3_CFLAGS="-I$withval"])
     251AC_ARG_WITH(fftw3-lib,
     252[AS_HELP_STRING(--with-jpeg-lib=DIR,Specify libjpeg library directory.)],
     253[JPEG_LDFLAGS="-L$withval"])
     254PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${JPEG_CFLAGS}"
     255PSLIB_LIBS="${PSLIB_LIBS=} $JPEG_LDFLAGS -ljpeg"
     256
     257dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests
     258TMP_CFLAGS=${CFLAGS}
     259TMP_LDFLAGS=${LDFLAGS}
     260
     261CFLAGS="${TMP_CFLAGS} ${PSLIB_CFLAGS}"
     262LDFLAGS="${TMP_LDFLAGS} ${PSLIB_LIBS}"
     263AC_CHECK_HEADERS([jpeglib.h],[],
     264  [AC_MSG_ERROR([libjpeg headers not found.  Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])]
     265)
     266AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],
     267  [AC_MSG_ERROR([libjpeg library not found.  Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])]
     268)
     269LIBS=${TMP_LIBS}
     270
     271dnl restore the CFLAGS/LDFLAGS
     272CFLAGS=${TMP_CFLAGS}
     273LDFLAGS=${TMP_LDFLAGS}
     274
     275AC_SUBST([JPEG_CFLAGS])
    246276
    247277dnl ------------------- XML2 options ---------------------
Note: See TracChangeset for help on using the changeset viewer.