Index: trunk/psLib/configure.ac
===================================================================
--- trunk/psLib/configure.ac	(revision 5219)
+++ trunk/psLib/configure.ac	(revision 5231)
@@ -25,6 +25,4 @@
 SRCDIRS="sys astro db fft fits imageops math mathtypes types xml"
 SRCINC=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|-I\${SRCPATH=}/\1|g"`
-dnl needed for psErrorText.h which is BUILT_SOURCES but also distributed
-SRCINC="-I\${top_srcdir}/src ${SRCINC=}"
 
 SRCSUBLIBS=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|\1/libpslib\1.la|g"`
@@ -42,4 +40,11 @@
   [AC_MSG_RESULT([compile optimization disabled])
    CFLAGS="${CFLAGS=} -O0 -g"]
+)
+
+dnl handle profiler building
+AC_ARG_ENABLE(profile,
+  [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],
+  [AC_MSG_RESULT(compile optimization enabled)
+   CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]
 )
 
