Index: /trunk/psLib/configure.ac
===================================================================
--- /trunk/psLib/configure.ac	(revision 5024)
+++ /trunk/psLib/configure.ac	(revision 5025)
@@ -22,5 +22,5 @@
 SUBDIR="etc src test" dnl don't include 'swig', as it is optional
 
-SRCPATH='$(top_srcdir)/src'
+SRCPATH='${top_srcdir}/src'
 SRCDIRS="sys astro db fft fits imageops math mathtypes types xml"
 SRCINC=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|-I\${SRCPATH=}/\1|g"`
@@ -29,5 +29,5 @@
 AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=})
 AC_SUBST(SRCINC,${SRCINC=})
-
+AC_SUBST(ABS_SRCDIR,`pwd`) dnl assuming configure is run in top directory -- is there something better?
 AC_DISABLE_STATIC
 AC_PROG_MAKE_SET
Index: /trunk/psLib/pslib-config.in
===================================================================
--- /trunk/psLib/pslib-config.in	(revision 5024)
+++ /trunk/psLib/pslib-config.in	(revision 5025)
@@ -4,4 +4,5 @@
 exec_prefix=@exec_prefix@
 includedir=@includedir@
+top_srcdir=@ABS_SRCDIR@
 @PERL_INSTALLSYTLE@
 
@@ -17,4 +18,6 @@
   --libs		print library linking information
   --cflags		print pre-processor and compiler flags
+  --build-libs		print library linking information to the build (non-installed) version
+  --build-cflags	print pre-processor and compiler flags to the build (non-installed) version
   --help		display this help and exit
   --version		output version information
@@ -64,4 +67,12 @@
        	;;
 
+    --build-cflags)
+       	echo @SRCINC@ @PSLIB_CFLAGS@
+       	;;
+
+    --build-libs)
+       	echo -L@ABS_SRCDIR@/src/.libs -lpslib @PSLIB_LIBS@
+       	;;
+
     --deps)
        	echo @PSLIB_LIBS@
