X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=configure.ad;h=c99faef62d772ccaec7564652532ca580826285b;hb=0b1c6527c7baaa07071e51b25dbb3b359be569d4;hp=dfa3df0efe76a5e21773e5c0cd06a31f7420b2fb;hpb=8b1712c6ee532bbd33ee9cf3b4d6844c63ce77d7;p=silc.git diff --git a/configure.ad b/configure.ad index dfa3df0e..c99faef6 100644 --- a/configure.ad +++ b/configure.ad @@ -33,6 +33,10 @@ AC_PATH_PROG(sedpath, sed) # Put here any platform specific stuff # case "$target" in + *-*-linux*) + check_threads=true + CFLAGS=`echo $CFLAGS -D_GNU_SOURCE` + ;; *-*-freebsd*) check_threads=true ;; @@ -95,8 +99,26 @@ __SILC_HAVE_SIM="" __SILC_ENABLE_DEBUG="" #ifdef SILC_DIST_TOOLKIT -toolkitver=`echo $VERSION | sed 's/\.//g'` -__SILC_PACKAGE_VERSION="#define __SILC_TOOLKIT_VERSION $toolkitver" +toolkitver=`echo $VERSION | sed 's/\./ /g'` +maj=0 +min=0 +bld=0 +for v in $toolkitver +do + if test $maj -eq 0; then + maj=$v + continue + fi + if test $min -eq 0; then + min=$v + continue + fi + if test $bld -eq 0; then + bld=$v + continue + fi +done +__SILC_PACKAGE_VERSION="#define __SILC_TOOLKIT_VERSION SILC_VERSION($maj,$min,$bld)" #endif SILC_DIST_TOOLKIT AC_PROG_RANLIB @@ -339,13 +361,21 @@ have_assembler=false if test x$want_asm = xtrue; then AC_PATH_PROG([NASM], [nasm], [no]) if test "x$NASM" != "xno"; then - SILC_ASSEMBLER="$NASM -O2 -felf" + if test x$cpu_x86_64 = xtrue; then + SILC_ASSEMBLER="$NASM -O2 -felf64" + else + SILC_ASSEMBLER="$NASM -O2 -felf" + fi have_assembler=true fi AC_PATH_PROG([YASM], [yasm], [no]) if test "x$YASM" != "xno"; then - SILC_ASSEMBLER="$YASM -Xgnu -felf" + if test x$cpu_x86_64 = xtrue; then + SILC_ASSEMBLER="$YASM -Xgnu -felf64" + else + SILC_ASSEMBLER="$YASM -Xgnu -felf" + fi have_assembler=true fi fi