IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7338


Ignore:
Timestamp:
Jun 5, 2006, 11:50:52 AM (20 years ago)
Author:
rhl
Message:

Add --with-libjpeg=DIR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/configure.ac

    r6495 r7338  
    3131)
    3232
    33 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],[AC_MSG_ERROR([jpeg library not found.])])
     33dnl ------------------------------------------------------------
     34dnl Find libjpeg. The library may not be in a well-known place,
     35dnl and AC_CHECK_LIB has no way of adding a library to the
     36dnl search path for the duration of the test
     37dnl
     38
     39AC_ARG_WITH(libjpeg,
     40            [AS_HELP_STRING(--with-libjpeg=DIR, Specify location of libjpg library)],
     41            [JPEG_LIB="-L$withval"])
     42SAVE_LIBS="${LIBS}"
     43LIBS="${LIBS=} $JPEG_LIB"
     44
     45AC_CHECK_LIB(jpeg,jpeg_CreateCompress,
     46        [LIBS="${SAVE_LIBS} $JPEG_LIB -ljpeg"],
     47        [LIBS="${SAVE_LIBS}"
     48         AC_MSG_ERROR([jpeg library not found.])])
     49
     50dnl ------------------------------------------------------------
     51
    3452PKG_CHECK_MODULES(PSLIB, pslib >= 0.9.0)
    3553PKG_CHECK_MODULES(PSMODULE, psmodule >= 0.0.0)
Note: See TracChangeset for help on using the changeset viewer.