AM_PROG_CC_C_O
AC_PROG_LIBTOOL
+libtool=$(switch_builddir)/libtool
+LIBTOOL_MAJOR_VERSION=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'| awk -F . '{print $1}'`
+
#Check for compiler vendor
AX_COMPILER_VENDOR
;;
esac
+
+LIBTOOL_LIB_EXTEN="$DYNAMIC_LIB_EXTEN"
+
+if test "$LIBTOOL_MAJOR_VERSION" -eq "2"; then
+ LIBTOOL_LIB_EXTEN="la"
+fi
+
# Enable 64 bit build
AC_ARG_ENABLE(64,
[AC_HELP_STRING([--enable-64],[build with 64 bit support])],[enable_64="$enable_64"],[enable_64="no"])
AC_SUBST(PLATFORM_CORE_DEPLIBS)
AC_SUBST(SOLINK)
AC_SUBST(DYNAMIC_LIB_EXTEN)
+AC_SUBST(LIBTOOL_LIB_EXTEN)
# Checks for header files.
AC_HEADER_DIRENT