Commit Graph

357 Commits

Author SHA1 Message Date
Geert Janssens
0e53cf89aa Merge branch 'maint'
Resolved conflicts:
	src/engine/test/Makefile.am
	src/gnome/dialog-sx-editor.c
2015-12-07 21:54:41 +01:00
John Ralls
90601ac464 Fix libdbi-0.9 crash on shutdown.
Must include the header before checking the version! Since this also
corrects the deprecation warnings, also reverts commit 29138bc.
2015-12-03 10:49:36 -08:00
John Ralls
29138bc793 Silence deprecation warnings.
Required because libdbi-0.9 emits them when using libdbi-0.8 API.
2015-12-01 16:40:31 -08:00
Geert Janssens
68f1db9ed6 Bug 756720 - configure fails to find libgoffice 0.10-10 (0.10.18-1)
While we can't support libgoffice 0.10 because that would require gtk3
we can improve the error message if no libgoffice 0.8.x version is found.
2015-11-03 12:19:52 +01:00
John Ralls
ac34d316a5 Merge branch 'maint' 2015-10-27 17:28:45 -07:00
John Ralls
ce838d3cfc Rename GNOME_COMPILE_WARNINGS to just COMPILE_WARNINGS.
Poaching someone else's macro name is a really dumb idea, because aclocal
looks in our macros directory only if it can't find the macro in the system
directories. Our config code doesn't work with Gnome's macro, it exports
WARN_CFLAGS rather than modifying CFLAGS directly the way ours does.
2015-10-27 17:25:48 -07:00
John Ralls
42415056d0 Release 2.6.9 2015-10-05 12:57:12 -07:00
John Ralls
12f760228c Release Gnucash-2.6.8 2015-09-26 12:05:50 -07:00
John Ralls
986bb368cd Merge branch 'maint' 2015-09-19 16:58:13 -07:00
John Ralls
04a6f4cfc5 Rearrange the LINGUAS as suggested by Frank Ellenberger in the wiki.
And remove the binary message catalog accidentally added in the last commit.
2015-09-19 16:19:00 -07:00
John Ralls
42859b91bb Set -std=gnu99, matching master.
Fixes broken build on win32
2015-09-16 17:59:50 -07:00
John Ralls
44d4365046 Bug 754617 - Gnucash should use PKG_PROG_PKG_CONFIG
Actually we already do, making this fragment unnecessary. What's more
Ximian Desktop is long gone so the work-around is redundant as well.
2015-09-12 18:01:36 -07:00
John Ralls
e7aa53a75e Remove gmtime_r and localtime_r from lib/libc. They're no longer used. 2015-07-25 12:50:17 -07:00
John Ralls
290dd611d7 More fiddling with gtest linkage.
This time for when we don't have a system installation.
2015-07-25 12:23:35 -07:00
John Ralls
d3e70217cd Move libgtest.a arg from Makefile to configure, add -pthread flag. 2015-07-07 16:46:13 -07:00
John Ralls
757a50c9ec Release 2.6.7 2015-06-27 11:31:44 -07:00
John Ralls
06d5d0a20a Change the Glib version test for C-standard to a compile check.
The actual problem occurred in only a couple of Glib releases before
being reverted.
2015-06-18 15:02:30 -07:00
John Ralls
9914a046d7 src/app-utils/gfec.a requires _XOPEN_EXTENDED, defined by -std=gnu99. 2015-06-07 11:59:05 -07:00
John Ralls
fefec86f64 Remove stray quote that ate all the CFLAGS. 2015-05-31 17:45:07 -07:00
John Ralls
80034b39bc Refine forcing C11 to handle case where AC_PROG_CC_C99 doesn't set -std= 2015-05-25 11:06:50 -07:00
John Ralls
54bf84af0e Force -std=c11 when compiling against GLib-2.44 or greater.
Required for new G_DECLARE_INTERFACE macro.
2015-05-24 18:02:24 -07:00
John Ralls
847e2c2717 Ensure BOOST_CPPFLAGS are included for boost test.
Necessary on Windows due to non-standard installation paths for dependencies.
2015-05-22 13:26:38 -07:00
John Ralls
8a77e139ce Better check for C++11 compile error in custom_time_zone.hpp
It turns out that F20's boost-1.53 already has this fixed, so set the
boost version to 1.53 and test for the actual problem.
2015-05-11 16:55:15 -07:00
John Ralls
d0fc57a5a7 Change minimum boost version to 1.55
There was a C++11 compilation bust in
date_time/local_time/custom_time_zone.hpp, which was fixed in that
version. Since we also require C++11, that makes it the minimum
necessary.
2015-05-11 12:32:24 -07:00
John Ralls
90f0d9952c Set gmock_root to gmock_src_path if the latter is detected.
Otherwise configure thinks gmock isn't installed.
2015-05-04 15:05:53 -07:00
John Ralls
725622f613 Ensure we compile C for at least C99. 2015-05-04 15:05:53 -07:00
John Ralls
280b7223bf Partial posix implementation 2015-04-28 10:48:53 -07:00
John Ralls
45170bb5eb Basic tests for TimeZoneProvider. 2015-04-28 10:48:53 -07:00
John Ralls
15a0d5d25f Merge branch 'maint' 2015-04-28 10:47:47 -07:00
Geert Janssens
405a26b6ac Add missing language in configure.ac
This was intended to be part of the previous commit...
2015-04-28 18:53:17 +02:00
Bill Nottingham
e54af98b05 Bug 747812 - unset LDFLAGS when unsetting CFLAGS
Since some LDFLAGS settings depend on corresponding CFLAGS ones,
e.g. -fPIC, unsetting only CFLAGS will cause the test-compile to
fail because of the mismatched flags.
2015-04-25 16:11:23 -07:00
Geert Janssens
df1fc7d903 Fix dbi driver detection on linux and similar
This is a follow up on the fix for
Bug 747300 - SQL backend missing from most recent DMG?
which broke dbi driver detection on linux
2015-04-25 09:27:57 +02:00
John Ralls
c97ab47379 Merge branch 'maint' 2015-04-07 14:36:01 -07:00
John Ralls
1d6fd55767 Bug 747300 - SQL backend missing from most recent DMG?
Fix configure.ac so that ${prefix}/lib/dbd is searched for modules.
Use gnc_path_get_libdir() to check for modules in the event that
$GNC_DBD_DIR is either empty or wrong and the path compiled into libdbi
itself is invalid. This applies mostly to Mac as other OSes tend to
leave their binaries where configure installs them.
2015-04-03 14:01:17 -07:00
John Ralls
b24cd7708d Merge branch 'maint' 2015-03-31 13:16:05 -07:00
John Ralls
46f7551523 Change gtk-mac-integration package name and includes.
Reflecting change in the dependency.
2015-03-31 13:15:33 -07:00
Frank H. Ellenberger
daf66df6c7 Merge branch 'maint' 2015-03-31 10:05:22 +02:00
Frank H. Ellenberger
10b3ac4489 Build system: Rename SCM_TYPE to VCS_TYPE
Follow up of the 2 previous commits.
2015-03-31 07:12:24 +02:00
Frank H. Ellenberger
b63370856d Merge branch 'maint'
Conflicts:
	configure.ac
2015-03-31 03:36:25 +02:00
Frank H. Ellenberger
a59b01b939 Build system: rename gnc-scm-info to gnc-vcs-info
Follow up of my previous patch to distinguish version control from
scheme
2015-03-31 02:07:39 +02:00
Frank H. Ellenberger
cc2e87baa0 Build system: Rename BUILDING_FROM_SCM to BUILDING_FROM_VCS
This should avoid confunsion as in other variable SCM means scheme.
2015-03-31 02:07:38 +02:00
John Ralls
417d2f3b86 Protect the function tests from -Werror passed in from CFLAGS.
Which happens during make distcheck on Mac.
2015-03-28 09:08:51 +09:00
John Ralls
e25ce35967 Bump Version to 2.6.6 for release.
Make ChangeLog.2014, new ChangeLog for 2015.
2015-03-27 14:45:14 +09:00
John Ralls
dcff1159c4 Merge branch 'maint' 2015-03-21 11:29:32 +09:00
Chandrakant Dhutadmal
46034fb5cf Bug 745598 - GNUCash Translation for Manipuri Language - Bengali Script
by Centre for Development of Advanced Computing (C-DAC), Pune, India
http://www.cdac.in
2015-03-12 07:45:06 +01:00
Sangeeta
ac2eb30a7d Bug 745596 - GNUCash Translation for Maithili Language 2015-03-11 17:49:57 +01:00
Chandrakant Dhutadmal
8d188bcb99 Bug 745597 - GNUCash Translation for Manipuri Language - Meetei Mayek
Script (New)
2015-03-10 06:06:23 +01:00
John Ralls
9c8405da14 Update status on automake bug 13928. 2015-02-09 08:48:48 -08:00
Geert Janssens
e1c7d9d1b9 Merge branch 'maint'
- Bug 731889 - guile 2 exports different autoconf macros than what is expected
- Bug 742624 - [patch] Scheduled Transaction Editor results in immediate segfault
- Numeric values with more than commodity smallest fraction get silently dropped.
- Bug 721196 - Use a regex for checking for a valid numeric value.
- Bug 727647 - "gncInvoiceGetTotal" is not read-only function?
- Bug 743609 - Add configure options to disable libsecret detection
- Switch from guile to xml to manage our iso-currencies source file
- Rewrite gnc-test-env in perl
- Bug 619899 - Use normal gettext or intltool toolchain also for scm files

Resolved conflicts:
	make-gnucash-potfiles.in
	po/POTFILES.in
	po/POTFILES.skip
	src/backend/dbi/test/Makefile.am
2015-01-31 18:37:41 +01:00
Geert Janssens
785c6d621b Bug 731889 - guile 2 exports different autoconf macros than what is expected
Check for the now required ltdl.h and bail out if not found
2015-01-31 14:33:33 +01:00
John Ralls
b3781c16d0 Bug 731889 - guile 2 exports different autoconf macros than what is expected
Replace the autogen-sh time configuration which doesn't really work
correctly by making a local interpreter which links whichever library
pkg-config finds.

Also makes Guile-2.0 the default by looking for it first.
2015-01-31 14:31:19 +01:00
Geert Janssens
c312b865d1 Bug 619899 - Use normal gettext or intltool toolchain also for scm files 2015-01-31 13:21:52 +01:00
Geert Janssens
48b30271e0 Rewrite gnc-test-env in perl
This eliminates another guile dependency in the build chain

Conflicts:
	src/backend/dbi/test/Makefile.am
2015-01-31 08:19:26 +01:00
Geert Janssens
87520cdde4 Switch from guile to xml to manage our iso-currencies source file 2015-01-31 08:16:32 +01:00
Geert Janssens
7581436e79 Bug 743609 - Add configure options to disable libsecret detection 2015-01-29 17:55:23 +01:00
Geert Janssens
d5da59331f Bug 731889 - guile 2 exports different autoconf macros than what is expected
The problem is mainly a poorly chosen error message. The user
should generally only rerun autogen.sh, so I have added this
in the error message.
2015-01-24 16:10:58 +01:00
Geert Janssens
219a06b5f7 Merge branch 'maint'
* Revert one patch for bug 740471 - it caused a different segmentation fault
* Bug 738749 - Broken account template en_GB/uk-vat.gnucash-xea
* Bug 721196 - Fixed for locales where decimal point is a comma
* Bug 672760 - Postponed transaction applied invalid date
* Added Lithuanian language business accounts
* Bug 742332 - German tax report uses US tax quarters and not real quarters
2015-01-18 16:07:14 +01:00
John Ralls
60b86ce80f Adjust gtest config & make for shared library use.
Because that's how Fedora packages it.
Also make it a default-if-found so there's no extra config required
on Debian and Fedora work-alikes.
Note that it won't work on Fedora18 because they provide a library for
gmock and it's a different version from gtest.
2015-01-17 17:07:57 -08:00
Romas
1b227b1abc Added Lithuanian language business accounts 2015-01-16 15:51:07 +01:00
John Ralls
321278f996 Release 2.6.5. 2014-12-15 15:20:36 -08:00
John Ralls
0c47414364 Make the gtest section fail properly when presented with the broken Fedora installation of gtest.
Fedora users will need to install sources and pass --gtest-root and --gmock-root to configure.
2014-12-07 21:59:36 -08:00
John Ralls
996345a00f Fix gperformance-tools setup and apply it to src/engine/tests. 2014-12-03 16:26:38 -08:00
Geert Janssens
dd65a6e39e Periodic merge of branch 'maint'
Fixed conflicts:
	src/test-core/Makefile.am

Most important changes:
* precompile scm files in case guile 2 is detected
* several new and updated translations
* several bugfixes since the 2.6.4 release
2014-11-12 15:23:04 +01:00
Geert Janssens
97f8f39dc6 Pre-compile scm files when building with guile 2
With pre-compiled scm files, guile will no longer
resort to autocompilation at first startup. This avoids
bugs like downstream
https://bugzilla.redhat.com/show_bug.cgi?id=1151870
(Where autocompiled files for an older version of
gnucash are more recent than the source files installed
with the newer version)

Note that a new variable GUILE_LOAD_COMPILED_PATH is added
for this in the environment file. This variable should probably
be updated in the OSX and Windows build scrips if/when these
are building with guile 2.

Strictly speaking this new variable is only needed for guile 2.
However since guile 1.8 simply ignores the environment variable,
it's just set unconditionally regardless of the guile version
being active.
2014-11-10 18:31:15 +01:00
Jeff Earickson
76a340c25a Add Assamese Indic Language (as) to LINGUAS
https://bugzilla.gnome.org/show_bug.cgi?id=738599
2014-11-09 12:30:20 +01:00
lmat
8de928241f Added quotes to gtest section in configure.ac
Without these quotes, the error messages can be confusing in the case that
variables contain spaces, and, more likely, when the variables are empty.
2014-11-07 14:26:20 -08:00
John Ralls
8eae1d8f44 Modify gtest/gmock tests to work around demented test implementation in Debian 2014-10-30 16:12:56 -07:00
John Ralls
35e9257cab Add Google Test and Google Mock
Enabled with --enable-google-test, configure the location of the sources
with --with-gtest-root, --with-gtest-headers, --with-gmock-root, and
--with-gmock-headers. The latter isn't necessary if the headers are
installed in /usr/include and the sources in /usr/src as the Debian
packages do.

This is a first-pass and needs to be made a bit more sophisticated later.
It might also be worthwhile to extract it into an m4 macro.
2014-10-29 14:18:46 -07:00
Jeff Earickson
ddd733dbde Add kok@latin to LINGUAS_ALL (Konkani in Latin script)
https://bugzilla.gnome.org/show_bug.cgi?id=738829
2014-10-21 23:53:33 +02:00
Jeff Earickson
daf31ded07 Addition of Gujarati (gu) to LINGUAS_ALL po file list
https://bugzilla.gnome.org/show_bug.cgi?id=738828
2014-10-21 23:53:31 +02:00
Jeff Earickson
a0c03160bf Add kn (Kannada) to LINGUAS_ALL
https://bugzilla.gnome.org/show_bug.cgi?id=738827
2014-10-21 23:53:30 +02:00
Geert Janssens
9f3236f072 Merge branch 'maint'
* New and updated translations: brx, hi, kok, ks, lv, mr, ta, te, ur
* Bug 701052 - cannot click on 'cancel' or 'ok' button on dialogue box
* Updated resource files for Latvian: po/lv.po and  accounts/lv/acctchrt_business.gnucash-xea
* Add ability to skip rows when importing transactions.
* Ensure that the root account is saved to the SQL backend.
* Add sv_AX, sv_FI, zh_HK, and zh_TW to Makefiles & configure.
* Fix a bunch of non-literal-null-conversion warnings.
* Allow GUILE1_PROGS as m4 name

Conflicts:
	configure.ac
	src/register/ledger-core/split-register-model.c
2014-10-02 11:05:40 +02:00
Frank H. Ellenberger
7e0b7834d9 Allow GUILE1_PROGS as m4 name
Patch by dimstar@opensuse.org
http://lists.gnucash.org/logs/2014/10/2014-10-01.html#T16:46:18
2014-10-02 01:07:35 +02:00
Frank H. Ellenberger
77a2f3fef4 Allow GUILE1_PROGS as m4 name
Patch by dimstar@opensuse.org
2014-10-02 00:24:18 +02:00
John Ralls
1583ce3159 Add sv_AX, sv_FI, zh_HK, and zh_TW to Makefiles & configure. 2014-09-30 09:44:47 -07:00
John Ralls
79bdcf1996 Release 2.6.4 2014-09-27 17:54:22 -07:00
Jeff Earickson
870c5e36b5 Added or updated the following Indic Language Translation Files:
Bodo, Konkani, Hindi, Kashmiri, Marathi, Tamil, Telugu, Urdu

All Translations supplied to Gnucash by the Centre for Development
of Advanced Computing (C-DAC), Pune, India.  Translation Team Leader:
Chandrakant Dhutadmal, translators noted in the po files.
2014-09-27 10:06:26 +02:00
Geert Janssens
0836946d80 Merge branch 'maint'
* Provide strfmon function for platforms that don't have it
* Bug 695240 - mortgage wizard empty table
* Bug 711567 - Cannot save a custom report if a path contain diacritic chars
* Rewrite gfec_eval_file to avoid opening the file itself in guile (follow up of bug 711567)
* Update Dutch translation, copied from the Translation Project.
2014-09-21 23:16:25 +02:00
Geert Janssens
24cb06156f Provide strfmon function for platforms that don't have it 2014-09-21 22:33:01 +02:00
John Ralls
010cf541f9 Fix the underlying non-literal-null-conversion instead of suppressing
The warning. What it was warning about was two calls to "g_strdup(NULL);",
which is a really dumb way of saying "NULL".
2014-09-19 16:24:00 -07:00
Christian Stimming
5b653811f8 Add some initial aqbanking test with example file that should demonstrate the hbci template kvp problem.
Not yet working, though - the test, I mean.
2014-08-29 23:33:01 +02:00
Mike Alexander
f4d2cc2863 Remove an AC_MSG_CHECKING/AC_MSG_RESULT that is redundant and confusing. 2014-08-14 17:11:49 -04:00
John Ralls
367b608fad Fix problem with gcc-4.9 failing to compile gfec.c.
The error, first reported in email, was that cc1 didn't recognize
the flag. Solution is to make it a CPPFLAG so that cc1 doesn't see it.
2014-08-07 13:28:10 -07:00
John Ralls
4e7e52a311 Merge branch 'maint' 2014-08-07 11:47:27 -07:00
John Ralls
c286448fdb Add note about automake 1.14 to configure.ac
The note has the details, but I wasn't able to get gnucash to build with
automake 1.14 without passing --disable-dependency-tracking regardless of
whether I used the subdir-objects option. If I could figure out a good way
to poison configure with automake 1.14 I would.
2014-08-07 11:44:47 -07:00
John Ralls
46455c7518 Revert "Fix broken test-backend-dbi with libdbi 0.9."
This reverts commit 321a159af2.
Got two unrelated changes into a single changeset.
2014-08-07 10:23:50 -07:00
John Ralls
321a159af2 Fix broken test-backend-dbi with libdbi 0.9.
Segfaulted for an uninitialized dbi_instance.
2014-08-07 10:12:52 -07:00
John Ralls
2869e9412e Really make it 1.48 instead of 1.49. 2014-07-21 10:17:17 +01:00
John Ralls
a995196d3e Lower Boost minimum version to 1.48.0 per user request. 2014-07-21 10:08:03 +01:00
Geert Janssens
147a5f5d00 Disable non-literal-null-conversion warning issued by clang 2014-07-04 16:25:12 +02:00
John Ralls
1d3cee110c Revert unintended restoration of AC_MSG_RESULT. 2014-07-03 09:51:53 +02:00
John Ralls
773326b7c5 Fix typo from 859866a. 2014-07-02 22:54:39 +02:00
Mike Alexander
d338982828 Properly nest AC_MSG_CHECKING and AC_MSG_RESULT calls to avoid confusing output. 2014-07-02 15:27:59 -04:00
John Ralls
859866ad28 Replace clang check with ax_check_compile_flags for -Wno-deprecated-register 2014-07-02 11:40:18 +02:00
Mike Alexander
84384ea565 Merge branch 'maint' 2014-07-01 22:51:30 -04:00
Geert Janssens
2952df937c Drop packaging/win32
Windows build specifics are now handled in gnucash-on-windows repository
2014-07-01 22:16:37 +02:00
John Ralls
4aed8b37e1 Don't try to use -Wno-deprecated-register with Clang.
It doesn't work.
2014-06-29 15:20:20 +02:00
John Ralls
273648ea80 Allow C/C++ extensions
MinGW declares any standard functions not part of the ISO C standard
in #ifndef __STRICT_ANSI__ blocks; Gcc defines __STRICT_ANSI__ with
-std=c++11; Pass 'ext' to the C++11 macro to get -std=gnu++ll, which allows
all those extensions we use.
2014-06-15 14:42:49 -07:00
John Ralls
ce409753b8 Disable C++11 deprecation warning for register storage class
It's used in GLib, so we're stuck with it for the short term.
2014-06-15 14:42:46 -07:00
John Ralls
b36a98149b Better test for conflict between optimization and FORTIFY_SOURCE 2014-06-15 14:42:45 -07:00