# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-m4_define([SSLPROXY_VERSION], 1.0.1)
-m4_define([SSLPROXY_PATCHLV], 1)
+m4_define([SSLPROXY_VERSION], 1.0.2)
+m4_define([SSLPROXY_PATCHLV], 0)
# For additional releasename (ex. m4_define([SSLPROXY_RELSUFFIX], [rc1]) for rc1)
-m4_define([SSLPROXY_RELSUFFIX], [atfix])
+m4_define([SSLPROXY_RELSUFFIX], [.rc1])
AC_PREREQ(2.59)
AC_INIT([sslproxy],
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([boost/asio/ssl.hpp],,
[AC_MSG_ERROR([sslproxy requires boost, The Boost C++ Libraries, ]dnl
-[1.36.0 or higher. Does your system have boost headers? ]dnl
+[1.37.0 or higher. Does your system have boost headers? ]dnl
[In many linux distro, boost-devel or boost-dev package will provides you ]dnl
[the boost headers.])])
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([gethostname localtime_r memset])
+# Check gcc version.
+AC_CONFIG_COMMANDS_PRE([sslproxy_gcc_ver=`gcc -dumpversion | sed -e 's/\.//; s/\..*$//;'`])
+
AC_SUBST(CC,g++)
AC_SUBST(sslproxy_version, SSLPROXY_VERSION)
AC_SUBST(sslproxy_patchlv, SSLPROXY_PATCHLV)
AC_SUBST(sslproxy_relsuffix, SSLPROXY_RELSUFFIX)
+AC_SUBST(sslproxy_gcc_ver)
AC_CONFIG_FILES([parameter/Makefile]
[logger/Makefile]
[Makefile]