Index: /trunk/Ohana/configure.tcsh
===================================================================
--- /trunk/Ohana/configure.tcsh	(revision 18877)
+++ /trunk/Ohana/configure.tcsh	(revision 18878)
@@ -52,4 +52,7 @@
    set optimize = 1
    breaksw;
+  case --enable-profile
+   set profile = 1
+   breaksw;
   case --enable-memcheck
    set memcheck = 1
@@ -158,4 +161,7 @@
 if ($optimize) set CFLAGS = "-O2"
 
+# profiler code
+if ($profile) set CFLAGS = "$CFLAGS -pg"
+
 if (! $?CPPFLAGS) then
   set CPPFLAGS = ""
@@ -167,4 +173,5 @@
   set LDFLAGS = 
 endif  
+if ($profile) set LDFLAGS = "$LDFLAGS -Wl,--start-group -Wl,-Bstatic -Wl,-Bdynamic"
 
 set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
Index: /trunk/psconfig/psbuild
===================================================================
--- /trunk/psconfig/psbuild	(revision 18877)
+++ /trunk/psconfig/psbuild	(revision 18878)
@@ -213,5 +213,5 @@
     $psopts = "";
     if ($optimize) { $psopts = "$psopts --enable-optimize"; }
-    if ($profile)  { $psopts = "$psopts --enable-profiler"; }
+    if ($profile)  { $psopts = "$psopts --enable-profile"; }
 
     $homedir = `pwd`; chomp $homedir;
