*** /tmp/skip/configure.in.~1.423~6fGIBz Tue Jul 8 16:48:52 2003 --- /tmp/skip/configure.in6fG6KC Tue Jul 8 16:48:52 2003 *************** *** 475,480 **** --- 475,498 ---- fi AC_MSG_RESULT($enable_shared) + AC_MSG_CHECKING(for --enable-profiling) + AC_ARG_ENABLE(profiling, + AC_HELP_STRING(--enable-profiling, enable C-level code profiling), + [ac_save_cc="$CC" + CC="$CC -pg" + AC_TRY_RUN([int main() { return 0; }], + ac_enable_profiling="yes", + ac_enable_profiling="no", + ac_enable_profiling="no") + CC="$ac_save_cc"]) + AC_MSG_RESULT($ac_enable_profiling) + + case "$ac_enable_profiling" in + "yes") + BASECFLAGS="-pg $BASECFLAGS" + LDFLAGS="-pg $LDFLAGS" + ;; + esac AC_MSG_CHECKING(LDLIBRARY)