Index: /trunk/psphot/configure.ac
===================================================================
--- /trunk/psphot/configure.ac	(revision 11506)
+++ /trunk/psphot/configure.ac	(revision 11507)
@@ -9,9 +9,5 @@
 AM_MAINTAINER_MODE
 
-dnl otherwise AC_PROG_CC will default CFLAGS to "-g -02"
-if test -z ${CFLAGS} ; then
-  CFLAGS=""
-fi
-AC_SUBST([CFLAGS])
+IPP_STDOPS
 
 AC_LANG(C)
@@ -20,27 +16,5 @@
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
-
-dnl enable largefile supports
 AC_SYS_LARGEFILE
-
-dnl handle debug building
-AC_ARG_ENABLE(optimize,
-  [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
-  [AC_MSG_RESULT(compile optimization enabled)
-   CFLAGS="${CFLAGS=} -O2 -g"],
-  [AC_MSG_RESULT([compile optimization disabled])
-    if test x"${CFLAGS}" == x; then
-      CFLAGS="-O0 -g"
-    fi
-  ]
-)
-
-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=} -pg -g"
-   LDFLAGS="${LDFLAGS=} -pg"]
-)
 
 dnl turn off trace messages
@@ -231,5 +205,5 @@
 
 dnl Set CFLAGS for build
-CFLAGS="${CFLAGS} -Wall -Werror -std=c99"
+CFLAGS="${CFLAGS=} -Wall -Werror -std=c99"
 echo "PSPHOT_CFLAGS: $PSPHOT_CFLAGS"
 echo "PSPHOT_LIBS: $PSPHOT_LIBS"
