AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE
AC_PREREQ(2.52)
-AC_CONFIG_HEADERS(silcdefs.h)
+AC_CONFIG_HEADERS(runtimedefs.h)
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Set some compiler options based on CPU
if test "x$CC" = "xicc"; then
# ICC flags
- if test x$x_have_cpu_sse2 = xtrue; then
- SILC_ADD_CFLAGS(-axW)
- fi
- if test x$x_have_cpu_sse3 = xtrue; then
- SILC_ADD_CFLAGS(-axP)
+ if test x$x_have_cpu_sse4 = xtrue; then
+ SILC_ADD_CFLAGS(-axS)
fi
if test x$x_have_cpu_ssse3 = xtrue; then
SILC_ADD_CFLAGS(-axT)
- fi
- if test x$x_have_cpu_sse4 = xtrue; then
- SILC_ADD_CFLAGS(-axS)
+ elif test x$x_have_cpu_pni = xtrue; then
+ SILC_ADD_CFLAGS(-axP)
+ elif test x$x_have_cpu_sse2 = xtrue; then
+ SILC_ADD_CFLAGS(-axW)
fi
else
# Other compilers
# More header checking
#
-AC_CHECK_HEADERS(unistd.h string.h errno.h fcntl.h assert.h)
+AC_CHECK_HEADERS(unistd.h string.h errno.h fcntl.h assert.h execinfo.h)
AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/time.h stddef.h)
AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h xti.h netdb.h sys/resource.h)
AC_CHECK_HEADERS(pwd.h grp.h termcap.h paths.h)
AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid sched_yield)
AC_CHECK_FUNCS(setgroups initgroups nl_langinfo nanosleep)
AC_CHECK_FUNCS(strchr snprintf strstr strcpy strncpy memcpy memset memmove)
-AC_CHECK_FUNCS(setenv getenv putenv unsetenv clearenv)
+AC_CHECK_FUNCS(setenv getenv putenv unsetenv clearenv backtrace)
# Check getopt_long
AC_CHECK_FUNC(getopt_long,
])
# Stack trace checking
+__SILC_ENABLE_STACKTRACE=""
AC_MSG_CHECKING(whether to enable stack tracing)
AC_ARG_ENABLE(stack-trace,
[ --enable-stack-trace enable memory stack trace],
yes)
AC_MSG_RESULT(yes)
AC_DEFINE([SILC_STACKTRACE], [], [SILC_STACKTRACE])
+ __SILC_ENABLE_STACKTRACE="#define __SILC_ENABLE_STACKTRACE 1"
+ CFLAGS="$CFLAGS -rdynamic"
+ PC_CFLAGS="$PC_CFLAGS -rdynamic"
;;
*)
AC_MSG_RESULT(no)
yes)
AC_MSG_RESULT(yes)
AC_DEFINE([SILC_DEBUG], [], [enable-debug])
+ PC_CFLAGS="$PC_CFLAGS -DSILC_DEBUG"
summary_debug="yes"
__SILC_ENABLE_DEBUG="#define __SILC_ENABLE_DEBUG 1"
;;
AC_DEFINE([SILC_HAVE_PTHREAD], [], [HAVE_PTHREAD])
AC_DEFINE([SILC_THREADS], [], [HAVE_THREAD])
__SILC_HAVE_PTHREAD="#define __SILC_HAVE_PTHREAD 1"
+ PC_CFLAGS="$PC_CFLAGS -DSILC_THREADS"
fi
AC_SUBST(LDFLAGS)
AC_SUBST(LIBS)
AC_SUBST(SILC_LIB_INCLUDES)
+AC_SUBST(PC_CFLAGS)
AC_SUBST(__SILC_ENABLE_DEBUG)
+AC_SUBST(__SILC_ENABLE_STACKTRACE)
AC_SUBST(__SILC_HAVE_PTHREAD)
AC_SUBST(__RUNTIME_PACKAGE_VERSION)
Makefile
doc/Makefile
doc/runtime.in/index.html
+doc/runtime.in/manual.html
Makefile.defines
Makefile.defines_int
includes/Makefile