Index: trunk/psModules/src/detrend/pmFlatField.c
===================================================================
--- trunk/psModules/src/detrend/pmFlatField.c	(revision 5516)
+++ trunk/psModules/src/detrend/pmFlatField.c	(revision 5543)
@@ -18,6 +18,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-11-15 20:09:03 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-18 19:43:14 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -38,4 +38,9 @@
 #include "pmSubtractBias.h"
 
+// XXX: This should be removed when the autoconf stuff handles psConstants.h correctly.
+#define PS_WARN_PTR_NON_NULL(NAME) \
+if ((NAME) == NULL) { \
+    psLogMsg(__func__, PS_LOG_WARN, "WARNING: %s is NULL.", #NAME); \
+} \
 
 bool pmFlatField(
Index: trunk/psModules/src/detrend/pmMaskBadPixels.c
===================================================================
--- trunk/psModules/src/detrend/pmMaskBadPixels.c	(revision 5516)
+++ trunk/psModules/src/detrend/pmMaskBadPixels.c	(revision 5543)
@@ -19,6 +19,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-11-15 20:09:03 $
+ *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-18 19:43:14 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -36,4 +36,11 @@
 #include "pmMaskBadPixelsErrors.h"
 #include "pmSubtractBias.h"
+
+//XXX: REmove, autoconf is broken.
+#define PS_WARN_PTR_NON_NULL(NAME) \
+if ((NAME) == NULL) { \
+    psLogMsg(__func__, PS_LOG_WARN, "WARNING: %s is NULL.", #NAME); \
+} \
+
 
 /******************************************************************************
@@ -41,5 +48,5 @@
 input image mask and a pixel location, then sets (logical or) all pixels with
 parameter radius if that pixel to maskVal parameter.
- *****************************************************************************/
+*****************************************************************************/
 psBool GrowPixel(
     psImage *inMask,
Index: trunk/psModules/src/detrend/pmNonLinear.c
===================================================================
--- trunk/psModules/src/detrend/pmNonLinear.c	(revision 5516)
+++ trunk/psModules/src/detrend/pmNonLinear.c	(revision 5543)
@@ -5,6 +5,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-11-15 20:09:03 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-18 19:43:14 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -24,10 +24,16 @@
 #include "pmSubtractBias.h"
 
+// XXX: Remove, autoconf must be
+#define PS_WARN_PTR_NON_NULL(NAME) \
+if ((NAME) == NULL) { \
+    psLogMsg(__func__, PS_LOG_WARN, "WARNING: %s is NULL.", #NAME); \
+} \
 /******************************************************************************
 pmNonLinearityLookup(): This routine will take an pmReadout image as input
 and a 1-D polynomial.  For each pixel in the input image, the polynomial will
-be evaluated at that pixels value, and the image pixel will then be set to
+be evaluated at that pixels value, and the image pixel will then be set 
+to
 that value.
- *****************************************************************************/
+*****************************************************************************/
 
 pmReadout *pmNonLinearityPolynomial(pmReadout *inputReadout,
