diff -r 7fbec6da8123 -r 066e557ac453 configure.ac --- a/configure.ac Mon Nov 17 11:36:20 2014 +0000 +++ b/configure.ac Fri Apr 15 13:05:48 2016 +0100 @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_INIT([plover],[0.5],[ali@juiblex.co.uk]) +AC_INIT([plover],[0.5.1],[ali@juiblex.co.uk]) AC_PREREQ(2.59) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_SRCDIR([plover/plover.h]) @@ -70,9 +70,9 @@ # increment CURRENT and set AGE and REVISION to 0. # - If the interface is the same as the previous version, increment REVISION. # -lt_current=3 +lt_current=4 lt_revision=0 -lt_age=0 +lt_age=1 LIBPLOVER_LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age" AC_SUBST(LIBPLOVER_LT_VERSION_INFO) @@ -88,6 +88,7 @@ # Checks for programs. ################################################## AC_PROG_CC +AC_PROG_CXX AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG @@ -163,6 +164,22 @@ fi AC_SUBST([FETCH_LIBS]) LIBS="$save_LIBS" +AC_ARG_WITH([breakpad], + [AS_HELP_STRING([--with-breakpad], + [produce minidumps on crash @<:@default=check@:>@])], + [],[with_breakpad=check]) +if test "$with_breakpad" != no; then + PKG_CHECK_MODULES([BREAKPAD],[breakpad-client], + [have_breakpad="yes";REQUIREMENTS="$REQUIREMENTS x11"],[have_breakpad="no"]) + if test "$have_breakpad" = yes; then + AC_DEFINE([HAVE_BREAKPAD],[1],[Define if breakpad is available.]) + elif test "$with_breakpad" = yes; then + AC_MSG_ERROR([$BREAKPAD_PKG_ERRORS]) + fi +else + have_breakpad="no" +fi +AM_CONDITIONAL([HAVE_BREAKPAD],[test $have_breakpad = yes]) ################################################## # Checks for library functions.