Index: trunk/psphot/autogen.sh
===================================================================
--- trunk/psphot/autogen.sh	(revision 8776)
+++ trunk/psphot/autogen.sh	(revision 8780)
@@ -17,5 +17,5 @@
 LIBTOOLIZE=libtoolize
 ACLOCAL=aclocal
-# AUTOHEADER=autoheader
+AUTOHEADER=autoheader
 AUTOMAKE=automake
 AUTOCONF=autoconf
@@ -37,11 +37,11 @@
 }
 
-# ($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 || {
-#         echo
-#         echo "You must have $AUTOHEADER installed to compile $PROJECT."
-#         echo "Download the appropriate package for your distribution,"
-#         echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
-#         DIE=1
-# }
+($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 || {
+        echo
+        echo "You must have $AUTOHEADER installed to compile $PROJECT."
+        echo "Download the appropriate package for your distribution,"
+        echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
+        DIE=1
+}
 
 ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
@@ -77,5 +77,5 @@
 $LIBTOOLIZE --copy --force || echo "$LIBTOOlIZE failed"
 $ACLOCAL || echo "$ACLOCAL failed"
-# $AUTOHEADER || echo "$AUTOHEADER failed"
+$AUTOHEADER || echo "$AUTOHEADER failed"
 $AUTOMAKE --add-missing --force-missing --copy || echo "$AUTOMAKE  failed"
 $AUTOCONF || echo "$AUTOCONF failed"
Index: trunk/psphot/configure.ac
===================================================================
--- trunk/psphot/configure.ac	(revision 8776)
+++ trunk/psphot/configure.ac	(revision 8780)
@@ -6,5 +6,5 @@
 
 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
-dnl AM_CONFIG_HEADER([config.h])
+AM_CONFIG_HEADER([src/config.h])
 AM_MAINTAINER_MODE
 
@@ -14,4 +14,7 @@
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
+
+dnl enable largefile supports
+AC_SYS_LARGEFILE
 
 dnl handle debug building
Index: trunk/psphot/src/psphot.c
===================================================================
--- trunk/psphot/src/psphot.c	(revision 8776)
+++ trunk/psphot/src/psphot.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotApResid.c
===================================================================
--- trunk/psphot/src/psphotApResid.c	(revision 8776)
+++ trunk/psphot/src/psphotApResid.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 static char DEFAULT_OPTION[] = "SKYBIAS";
Index: trunk/psphot/src/psphotArguments.c
===================================================================
--- trunk/psphot/src/psphotArguments.c	(revision 8776)
+++ trunk/psphot/src/psphotArguments.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 # include <glob.h>
Index: trunk/psphot/src/psphotBasicDeblend.c
===================================================================
--- trunk/psphot/src/psphotBasicDeblend.c	(revision 8776)
+++ trunk/psphot/src/psphotBasicDeblend.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotBlendFit.c
===================================================================
--- trunk/psphot/src/psphotBlendFit.c	(revision 8776)
+++ trunk/psphot/src/psphotBlendFit.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotChoosePSF.c
===================================================================
--- trunk/psphot/src/psphotChoosePSF.c	(revision 8776)
+++ trunk/psphot/src/psphotChoosePSF.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotCleanup.c
===================================================================
--- trunk/psphot/src/psphotCleanup.c	(revision 8776)
+++ trunk/psphot/src/psphotCleanup.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotEnsemblePSF.c
===================================================================
--- trunk/psphot/src/psphotEnsemblePSF.c	(revision 8776)
+++ trunk/psphot/src/psphotEnsemblePSF.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 bool pmSourceChisq (pmModel *model, psImage *image, psImage *mask, psImage *weight);
Index: trunk/psphot/src/psphotEvalFLT.c
===================================================================
--- trunk/psphot/src/psphotEvalFLT.c	(revision 8776)
+++ trunk/psphot/src/psphotEvalFLT.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotEvalPSF.c
===================================================================
--- trunk/psphot/src/psphotEvalPSF.c	(revision 8776)
+++ trunk/psphot/src/psphotEvalPSF.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotFakeSources.c
===================================================================
--- trunk/psphot/src/psphotFakeSources.c	(revision 8776)
+++ trunk/psphot/src/psphotFakeSources.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotFindPeaks.c
===================================================================
--- trunk/psphot/src/psphotFindPeaks.c	(revision 8776)
+++ trunk/psphot/src/psphotFindPeaks.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotFitSet.c
===================================================================
--- trunk/psphot/src/psphotFitSet.c	(revision 8776)
+++ trunk/psphot/src/psphotFitSet.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotGrowthCurve.c
===================================================================
--- trunk/psphot/src/psphotGrowthCurve.c	(revision 8776)
+++ trunk/psphot/src/psphotGrowthCurve.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotImageLoop.c
===================================================================
--- trunk/psphot/src/psphotImageLoop.c	(revision 8776)
+++ trunk/psphot/src/psphotImageLoop.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotImageMedian.c
===================================================================
--- trunk/psphot/src/psphotImageMedian.c	(revision 8776)
+++ trunk/psphot/src/psphotImageMedian.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotMagnitudes.c
===================================================================
--- trunk/psphot/src/psphotMagnitudes.c	(revision 8776)
+++ trunk/psphot/src/psphotMagnitudes.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotMaskReadout.c
===================================================================
--- trunk/psphot/src/psphotMaskReadout.c	(revision 8776)
+++ trunk/psphot/src/psphotMaskReadout.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotModelGroupInit.c
===================================================================
--- trunk/psphot/src/psphotModelGroupInit.c	(revision 8776)
+++ trunk/psphot/src/psphotModelGroupInit.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotModelTest.c
===================================================================
--- trunk/psphot/src/psphotModelTest.c	(revision 8776)
+++ trunk/psphot/src/psphotModelTest.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 static char DEFAULT_MODE[] = "EXT";
Index: trunk/psphot/src/psphotOutput.c
===================================================================
--- trunk/psphot/src/psphotOutput.c	(revision 8776)
+++ trunk/psphot/src/psphotOutput.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotParseCamera.c
===================================================================
--- trunk/psphot/src/psphotParseCamera.c	(revision 8776)
+++ trunk/psphot/src/psphotParseCamera.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotRadiusChecks.c
===================================================================
--- trunk/psphot/src/psphotRadiusChecks.c	(revision 8776)
+++ trunk/psphot/src/psphotRadiusChecks.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 # define RADIUS_TYPE float
Index: trunk/psphot/src/psphotReadout.c
===================================================================
--- trunk/psphot/src/psphotReadout.c	(revision 8776)
+++ trunk/psphot/src/psphotReadout.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotReplaceUnfit.c
===================================================================
--- trunk/psphot/src/psphotReplaceUnfit.c	(revision 8776)
+++ trunk/psphot/src/psphotReplaceUnfit.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotRoughClass.c
===================================================================
--- trunk/psphot/src/psphotRoughClass.c	(revision 8776)
+++ trunk/psphot/src/psphotRoughClass.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotSkyReplace.c
===================================================================
--- trunk/psphot/src/psphotSkyReplace.c	(revision 8776)
+++ trunk/psphot/src/psphotSkyReplace.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotSortBySN.c
===================================================================
--- trunk/psphot/src/psphotSortBySN.c	(revision 8776)
+++ trunk/psphot/src/psphotSortBySN.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotSourceFits.c
===================================================================
--- trunk/psphot/src/psphotSourceFits.c	(revision 8776)
+++ trunk/psphot/src/psphotSourceFits.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotSourceFreePixels.c
===================================================================
--- trunk/psphot/src/psphotSourceFreePixels.c	(revision 8776)
+++ trunk/psphot/src/psphotSourceFreePixels.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotSourceStats.c
===================================================================
--- trunk/psphot/src/psphotSourceStats.c	(revision 8776)
+++ trunk/psphot/src/psphotSourceStats.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotTest.c
===================================================================
--- trunk/psphot/src/psphotTest.c	(revision 8776)
+++ trunk/psphot/src/psphotTest.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
Index: trunk/psphot/src/psphotTestArguments.c
===================================================================
--- trunk/psphot/src/psphotTestArguments.c	(revision 8776)
+++ trunk/psphot/src/psphotTestArguments.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 static int usage ();
Index: trunk/psphot/src/psphotVersion.c
===================================================================
--- trunk/psphot/src/psphotVersion.c	(revision 8776)
+++ trunk/psphot/src/psphotVersion.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "psphot.h"
 
Index: trunk/psphot/src/psphotWeightBias.c
===================================================================
--- trunk/psphot/src/psphotWeightBias.c	(revision 8776)
+++ trunk/psphot/src/psphotWeightBias.c	(revision 8780)
@@ -1,2 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 # include "psphot.h"
 
