X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure.ad;h=5f13377fbedd59f9d5562a91b62617bd6256efbd;hb=9905799a86c606304fd7df2cd401de1740a272a1;hp=865589dd8e52123c39e6b43db4969ceb11fca58b;hpb=087575e2f4248e52d8db5900f757b847e65d9d91;p=silc.git diff --git a/lib/configure.ad b/lib/configure.ad index 865589dd..5f13377f 100644 --- a/lib/configure.ad +++ b/lib/configure.ad @@ -4,7 +4,7 @@ # # Author: Pekka Riikonen # -# Copyright (C) 2005 Pekka Riikonen +# Copyright (C) 2005, 2007 Pekka Riikonen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -69,7 +69,7 @@ SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcvcard" # - If functions were added, increment [LIB]_AGE # - If functions were removed, set [LIB]_AGE to 0 # -# where [LIB] is LIBSILC, LIBSILCCLIENT or LIBSILCSERVER, and where +# where [LIB] is LIBSILC, LIBSILCCLIENT or LIBSILCSERVER, and where # "functions" means functions public interfaces (API). # # The LIB_BASE_VERSION defines the SILC software major.minor version and @@ -107,6 +107,9 @@ AC_SUBST(LIBSILCSERVER_CURRENT) AC_SUBST(LIBSILCSERVER_REVISION) AC_SUBST(LIBSILCSERVER_AGE) +# Check for big-endian machines +AC_C_BIGENDIAN + #ifdef SILC_DIST_SIM # SIM modules directory # @@ -147,6 +150,49 @@ AC_ARG_ENABLE(stack-trace, ) #endif SILC_DIST_TOOLKIT +#ifdef SILC_DIST_INPLACE +# +# Profiling options (never delivered to distributions) +# +AC_MSG_CHECKING(whether to enable gprof) +AC_ARG_ENABLE(gprof, + [ --enable-gprof enable gprof profiling], + [ + case "${enableval}" in + yes) + AC_MSG_RESULT(yes) + SILC_ADD_CFLAGS(-pg) + LIBS="$LIBS -pg" + ;; + *) + AC_MSG_RESULT(no) + ;; + esac + ], + [ + AC_MSG_RESULT(no) + ]) + +AC_MSG_CHECKING(whether to enable gcov) +AC_ARG_ENABLE(gcov, + [ --enable-gcov enable gcov], + [ + case "${enableval}" in + yes) + AC_MSG_RESULT(yes) + SILC_ADD_CFLAGS(-fprofile-arcs) + LIBS="$LIBS -lgcov" + ;; + *) + AC_MSG_RESULT(no) + ;; + esac + ], + [ + AC_MSG_RESULT(no) + ]) +#endif SILC_DIST_INPLACE + # # Makefile outputs # @@ -154,7 +200,6 @@ AC_CONFIG_FILES( lib/Makefile lib/contrib/Makefile lib/silccore/Makefile -lib/silccrypt/Makefile #ifdef SILC_DIST_SIM lib/silcsim/Makefile #endif SILC_DIST_SIM @@ -164,14 +209,12 @@ lib/silcutil/unix/Makefile lib/silcutil/win32/Makefile lib/silcutil/beos/Makefile lib/silcutil/os2/Makefile -lib/silcutil/epoc/Makefile lib/silcapputil/Makefile #ifdef SILC_DIST_SFTP lib/silcsftp/Makefile #endif SILC_DIST_SFTP #ifdef SILC_DIST_INPLACE lib/silcutil/tests/Makefile -lib/silccrypt/tests/Makefile lib/silccore/tests/Makefile lib/silcsftp/tests/Makefile #endif SILC_DIST_INPLACE