fix variable reference to fix --enable-profiling (closes #17550)
diff --git a/configure b/configure
index d3c722f..528aa51 100755
--- a/configure
+++ b/configure
@@ -5281,7 +5281,7 @@
 
 if test "x$enable_profiling" = xyes; then
   ac_save_cc="$CC"
-  CC="$(CC) -pg"
+  CC="$CC -pg"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 int main() { return 0; }