IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7464


Ignore:
Timestamp:
Jun 9, 2006, 1:27:10 PM (20 years ago)
Author:
rhl
Message:

Fix error messages about C preprocessor failing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r7452 r7464  
    159159
    160160dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests
     161TMP_CFLAGS=${CPPFLAGS}
    161162TMP_CFLAGS=${CFLAGS}
    162163TMP_LDFLAGS=${LDFLAGS}
    163164
     165CPPFLAGS=${PSLIB_CFLAGS}
    164166CFLAGS=${PSLIB_CFLAGS}
    165167LDFLAGS=${PSLIB_LIBS}
     
    180182
    181183dnl restore the CFLAGS/LDFLAGS
     184CPPFLAGS=${TMP_CPPFLAGS}
    182185CFLAGS=${TMP_CFLAGS}
    183186LDFLAGS=${TMP_LDFLAGS}
     
    200203PSLIB_LIBS="${PSLIB_LIBS=} $FFTW3_LDFLAGS -lfftw3f"
    201204
    202 dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests
     205dnl Store off CPPFLAGS/CFLAGS/LDFLAGS so that they can be restored after tests
     206TMP_CPPFLAGS=${CPPFLAGS}
    203207TMP_CFLAGS=${CFLAGS}
    204208TMP_LDFLAGS=${LDFLAGS}
    205209
    206210CFLAGS="${TMP_CFLAGS} ${PSLIB_CFLAGS}"
     211CPPFLAGS="$CFLAGS"
    207212LDFLAGS="${TMP_LDFLAGS} ${PSLIB_LIBS}"
    208213AC_CHECK_HEADERS([fftw3.h],[],
     
    215220
    216221dnl restore the CFLAGS/LDFLAGS
     222CPPFLAGS=${TMP_CPPFLAGS}
    217223CFLAGS=${TMP_CFLAGS}
    218224LDFLAGS=${TMP_LDFLAGS}
     
    254260[JPEG_LDFLAGS="-L$withval"])
    255261
    256 dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests
     262dnl Store off CPPFLAGS/CFLAGS/LDFLAGS so that they can be restored after tests
     263TMP_CPPFLAGS=${CPPFLAGS}
    257264TMP_CFLAGS=${CFLAGS}
    258265TMP_LDFLAGS=${LDFLAGS}
    259266
    260267CFLAGS="${TMP_CFLAGS} ${JPEG_CFLAGS}"
     268CPPFLAGS="$CFLAGS"
    261269LDFLAGS="${TMP_LDFLAGS} ${JPEG_LDFLAGS}"
    262270
     
    269277)
    270278
    271 dnl restore the CFLAGS/LDFLAGS
     279dnl restore the CFLAGS/LDFLAGS in case we decide to make missing libjpeg only a warning
     280CPPFLAGS=${TMP_CPPFLAGS}
    272281CFLAGS=${TMP_CFLAGS}
    273282LDFLAGS=${TMP_LDFLAGS}
Note: See TracChangeset for help on using the changeset viewer.