X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=configure.ad;h=c9c292c9367acf22e662677823281f3bd9ca9dc7;hb=1ad1765203103b64292ace31d39503887e543b65;hp=4899dd6ef42369fa5a10c6e7f44c829c72929da9;hpb=2ede5da9520e7e8508ae28656d542824c4c29793;p=runtime.git diff --git a/configure.ad b/configure.ad index 4899dd6e..c9c292c9 100644 --- a/configure.ad +++ b/configure.ad @@ -197,17 +197,15 @@ if test x$want_cpu_optimizations = xtrue; then # 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 @@ -260,7 +258,7 @@ AC_HEADER_STAT # 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) @@ -382,7 +380,7 @@ AC_CHECK_FUNCS(chmod fcntl stat fstat getenv putenv strerror) 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, @@ -725,6 +723,7 @@ AC_ARG_ENABLE(stack-trace, yes) AC_MSG_RESULT(yes) AC_DEFINE([SILC_STACKTRACE], [], [SILC_STACKTRACE]) + CFLAGS="$CFLAGS -rdynamic" ;; *) AC_MSG_RESULT(no)