diff --git a/ChangeLog b/ChangeLog index 66904af21dbeb42c089812ea32c93542ee054af8..ee0078a4f791054172d3d3a3657f48e401bc4810 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,14 +1,82 @@ + +2014-07-27 Maxime Doyen + + Made 4.6.2 release. + + * change: xhb data file format (v0.9) + * change: sort preference language list by name (was by code) + * bugfix: gtk warning on budget/stats report + * bugfix: #1348951 when you move from one category to a new one, it creates a lot of categories + * bugfix: #1348319 scheduler options not saved + * bugfix: #1345739 moving payee creates erroneous payees + * bugfix: #1340142 program crash when select Category on Trend Time report button + * bugfix: #1339572 exclude from any reports and from budget, options with strange behaviour + * bugfix: #1338491 add transaction dialog, Memo field autocomplete doesn't give suggestions + * bugfix: #1338140 add transaction date defaults to the date the app was opened on + * bugfix: #1336882 filter for unreconciled transactions + * bugfix: #1335285 when inherit txn, date is not today's date + * bugfix: #1325969 ms windows incorrect sort of strings with special/accented (diacritics) + + +2014-06-25 Maxime Doyen + + Made 4.6.1 release. + + * bugfix: #1333426 crash under ms-windows when no euro datas into preferences + + +2014-06-23 Maxime Doyen + + Made 4.6 release. + + * new : report graph now use the gtk theme colors for background and scale + * new : scheduled list: added late column and splitted amount to expense/income + * new : speed optimization file load, register display (tested with 0,5M txn) + * change: xhb data file format (v0.8) + * change: account dialog : relayout the properties with tabs + * change: preferences: moved prefix/suffix symbol to a single symbol with a checkbox for prefix + * change: transaction dialog : replaced the split S button with a most common image button + * wish : #1317183 scheduled dialog listview to be resizable + * wish : #1258344 template transaction with unspecified account inherits from current account value + * wish : #1197965 text filter and sensitive case + * wish : #1099026 ability to individually play scheduled transactions from the list + * wish : #926784 per account QIF export + * wish : #923154 vehicle Costs assumes UK volume in gallons - sold in litres + * wish : #818440 scheduled transaction date before or after weekend + * wish : #676447 configure financial year boundaries (report dates) + * wish : #564922 add Direct Debit as payment type + * wish : #493162 auto-assign category from payee + * wish : #455295 quick search functionality (thunderbird/outlook) + * bugfix: was possible to quick edit the balance column in account window + * bugfix: crash after a reset of preferences + * bugfix: #1316252 Vehicle cost report: "Other cost" always $ 0.00 + * bugfix: #1308745 Error in sum displayed in Bank, Today, Future + * bugfix: #1304539 HomeBank crashes when 'move payee' + * bugfix: #1301002 Split Transactions are filtered by category incorrectly in reports + * bugfix: #1297054 Top spending not taking credits into account + * bugfix: #1295877 Expense shows in Income column + * bugfix: #1292012 car cost show 1km/l + * bugfix: #1287956 Dialogs for multiple edit of transaction are too small + * bugfix: #1286752 Screen Manage Categories: button Move is not translated + * bugfix: #1286329 In preferences, file chooser dialog have title "title" + + +2014-06-09 Maxime Doyen + + Made 4.6 beta release. + + 2014-03-01 Maxime Doyen Made 4.5.6 release. - * bugfix: #1285326 export transactions to csv. Concat [dot]csv to filename - * bugfix: #1285164 tags not well sorted when mixed with blank - * bugfix: #1277622 problem with the split transaction and the Vehicle cost feature - * bugfix: #1276377 qif import shows 0 items - * bugfix: #1275534 Balances not updated with sheduled transactions - * wish : #1273848 insert scheduled more than 92 days in advance + * bugfix: #1285326 export transactions to csv. Concat [dot]csv to filename + * bugfix: #1285164 tags not well sorted when mixed with blank + * bugfix: #1277622 problem with the split transaction and the Vehicle cost feature + * bugfix: #1276377 qif import shows 0 items + * bugfix: #1275534 Balances not updated with sheduled transactions + * wish : #1273848 insert scheduled more than 92 days in advance 2014-01-26 Maxime Doyen @@ -53,13 +121,13 @@ Made 4.5.3 release. * bugfix: #1225611 Trend Time report : categories crashes on windows - * bugfix: #1221484 end date not checked to be larger than Start date in reports - * bugfix: #1218644 there is a problem of calculating the column balances. - * bugfix: #1216321 reversed transactions - * bugfix: #1216284 balance report do not exclude account with exclude from report checked - * bugfix: #1215521 when importing qif, automatic assignments are not made - * bugfix: #1214077 win32: my csv file exported crash when import again - * bugfix: #1213569 win32: program not all translated in french since 4.5.1 + * bugfix: #1221484 end date not checked to be larger than Start date in reports + * bugfix: #1218644 there is a problem of calculating the column balances. + * bugfix: #1216321 reversed transactions + * bugfix: #1216284 balance report do not exclude account with exclude from report checked + * bugfix: #1215521 when importing qif, automatic assignments are not made + * bugfix: #1214077 win32: my csv file exported crash when import again + * bugfix: #1213569 win32: program not all translated in french since 4.5.1 2013-08-15 Maxime Doyen @@ -75,30 +143,30 @@ * change: lot of code warning fix with gcc -Wextra and cppcheck * change: source code preparation for gtk3 migration - * wish : #1163319 revert back date range 'Last Year' - * wish : #814472 update main wallet view while editing some accounts - * wish : #801970 add R keyboard shortcuts to reconcile/unreconcile - * wish : #703544 account selected in the main view should be used by default when launching a graph report - * wish : #559787 running balance column in the list of transactions - * wish : #331113 keep windows maximized + * wish : #1163319 revert back date range 'Last Year' + * wish : #814472 update main wallet view while editing some accounts + * wish : #801970 add R keyboard shortcuts to reconcile/unreconcile + * wish : #703544 account selected in the main view should be used by default when launching a graph report + * wish : #559787 running balance column in the list of transactions + * wish : #331113 keep windows maximized * bugfix: mainwindow, top spending was not refreshed after preferences change * bugfix: anonymize, bankname/number were not modified * bugfix: #1202507 moving a (sub)category resets its "income" (vs expense) status * bugfix: #1202503 after a move of a category the list was not refreshed - * bugfix: #1197516 file COPYING out of date - * bugfix: #1195859 expense Income Balance Total error in Tag Statistic Report - * bugfix: #1173910 illegal xml character allowed in split category memo - * bugfix: #1163749 positive/Minus button ignores decimal character - * bugfix: #1163447 auto-affectations non modifiables - * bugfix: #1156846 QIF Import with date format YY/MM/DD fails. - * bugfix: #1151259 split transaction filter on category problem - * bugfix: #1140903 Bank, Today and Future Don't Update After Adding Transaction - * bugfix: #1138103 no error message when 2 bank accounts have the same name - * bugfix: #1133105 more permissive QIF import - * bugfix: #1103668 segfaults on file open on x64 - * bugfix: #1102896 pick a date in calendar only works once (rollback #730319) - * bugfix: #1099944 some strings in the main window untranslated - * bugfix: #1047103 win: (libofx) Importing QFX causes HomeBank to freeze + * bugfix: #1197516 file COPYING out of date + * bugfix: #1195859 expense Income Balance Total error in Tag Statistic Report + * bugfix: #1173910 illegal xml character allowed in split category memo + * bugfix: #1163749 positive/Minus button ignores decimal character + * bugfix: #1163447 auto-affectations non modifiables + * bugfix: #1156846 QIF Import with date format YY/MM/DD fails. + * bugfix: #1151259 split transaction filter on category problem + * bugfix: #1140903 Bank, Today and Future Don't Update After Adding Transaction + * bugfix: #1138103 no error message when 2 bank accounts have the same name + * bugfix: #1133105 more permissive QIF import + * bugfix: #1103668 segfaults on file open on x64 + * bugfix: #1102896 pick a date in calendar only works once (rollback #730319) + * bugfix: #1099944 some strings in the main window untranslated + * bugfix: #1047103 win: (libofx) Importing QFX causes HomeBank to freeze 2013-07-16 Maxime Doyen @@ -131,56 +199,56 @@ * change: homebank, optimized xml * change: homebank, added a visual type of category everywhere (-income/+expense) * change: replaced '(none)' string by something more relevant - * wish : #140504 category split for transaction - * wish : #400010 csv export add support of mm-dd-yy - * wish : #593435 add subtotals for account list by type or bank - * wish : #660450 Cash Account hidden from Accounts Overview - * wish : #688494 limit day for automatic transaction add in the future - * wish : #722226 xhb file format : amounts and order details - * wish : #730137 portable app for ms-windows - * wish : #730319 single click in calendar to choose date - * wish : #787131 Column titles in exported CSV - * wish : #787134 exporting to CSV should include all available columns - * wish : #833614 sorting on category / subcategory in statistics report - * wish : #856477 improve category dropdown with +/- - * wish : #886372 poland in the European country list - * wish : #1006802 hide reconciled transactions by default - * wish : #1088259 Handling "VOIDed" check transactions + * wish : #140504 category split for transaction + * wish : #400010 csv export add support of mm-dd-yy + * wish : #593435 add subtotals for account list by type or bank + * wish : #660450 Cash Account hidden from Accounts Overview + * wish : #688494 limit day for automatic transaction add in the future + * wish : #722226 xhb file format : amounts and order details + * wish : #730137 portable app for ms-windows + * wish : #730319 single click in calendar to choose date + * wish : #787131 Column titles in exported CSV + * wish : #787134 exporting to CSV should include all available columns + * wish : #833614 sorting on category / subcategory in statistics report + * wish : #856477 improve category dropdown with +/- + * wish : #886372 poland in the European country list + * wish : #1006802 hide reconciled transactions by default + * wish : #1088259 Handling "VOIDed" check transactions * bugfix: archive target internal transfer account * bugfix: closed accounts were not excluded from reports * bugfix: detail status and rate in toolbar report window was not initialized - * bugfix: #123704 Numpad dot key does not work for french locale - * bugfix: #599476 some English terms unclear - * bugfix: #726052 Balance report not up to date - * bugfix: #740373 ofx import, debit should negate TRNAMT - * bugfix: #758281 QIF import shows wrong dates - * bugfix: #772233 mouse over piechart sometimes crash - * bugfix: #777886 Crash when I click "Select All" in the Balance Report - * bugfix: #783787 Fix for a small memleak - * bugfix: #793719 csv output: no rounded values - * bugfix: #801962 win: Descr field inUpcoming Auto-transactions alters on one entry when mouse-over or near - * bugfix: #813789 HomeBank does not import MsMoney-qif-exported files - * bugfix: #828947 New Wallet wizard do not treat created wallet as modified - * bugfix: #828991 Error message when you decide not to "Save As" - * bugfix: #829362 Missing decimal separator with C locale - * bugfix: #840245 Closed account on internal transfert selection - * bugfix: #850996 Escape key looses changes on "New file" with unsaved data - * bugfix: #870023 HomeBank can't find browser - * bugfix: #872185 crashes on qif export - * bugfix: #885749 QIF Import shows wrong amount - * bugfix: #905277 balance rapport reports wrong amount - * bugfix: #926915 transaction modify window sizing problem - * bugfix: #931187 preferences not saved when ~/.config doesn't exist - * bugfix: #932959 win7: import QXF/OFX file if path contains non-ascii chars - * bugfix: #942346 internal transactions mixup - * bugfix: #987144 QIF Import Error in Financisto - * bugfix: #1024907 2 qif export problems that must be fixed - * bugfix: #1074133 from date to date - does'nt count the last day of the months - * bugfix: #1080132 4.5pre1: transaction split OK button stays inactive - * bugfix: #1081809 4.5pre1: filter by category ignores split transactions - * bugfix: #1082634 4.5pre1: transaction filter dates being reset - * bugfix: #1094215 Button "ok" & "close" unvailable when changin "payement" - * bugfix: #1096364 scheduled txn internal xfer dst_account not saved + * bugfix: #123704 Numpad dot key does not work for french locale + * bugfix: #599476 some English terms unclear + * bugfix: #726052 Balance report not up to date + * bugfix: #740373 ofx import, debit should negate TRNAMT + * bugfix: #758281 QIF import shows wrong dates + * bugfix: #772233 mouse over piechart sometimes crash + * bugfix: #777886 Crash when I click "Select All" in the Balance Report + * bugfix: #783787 Fix for a small memleak + * bugfix: #793719 csv output: no rounded values + * bugfix: #801962 win: Descr field inUpcoming Auto-transactions alters on one entry when mouse-over or near + * bugfix: #813789 HomeBank does not import MsMoney-qif-exported files + * bugfix: #828947 New Wallet wizard do not treat created wallet as modified + * bugfix: #828991 Error message when you decide not to "Save As" + * bugfix: #829362 Missing decimal separator with C locale + * bugfix: #840245 Closed account on internal transfert selection + * bugfix: #850996 Escape key looses changes on "New file" with unsaved data + * bugfix: #870023 HomeBank can't find browser + * bugfix: #872185 crashes on qif export + * bugfix: #885749 QIF Import shows wrong amount + * bugfix: #905277 balance rapport reports wrong amount + * bugfix: #926915 transaction modify window sizing problem + * bugfix: #931187 preferences not saved when ~/.config doesn't exist + * bugfix: #932959 win7: import QXF/OFX file if path contains non-ascii chars + * bugfix: #942346 internal transactions mixup + * bugfix: #987144 QIF Import Error in Financisto + * bugfix: #1024907 2 qif export problems that must be fixed + * bugfix: #1074133 from date to date - does'nt count the last day of the months + * bugfix: #1080132 4.5pre1: transaction split OK button stays inactive + * bugfix: #1081809 4.5pre1: filter by category ignores split transactions + * bugfix: #1082634 4.5pre1: transaction filter dates being reset + * bugfix: #1094215 Button "ok" & "close" unvailable when changin "payement" + * bugfix: #1096364 scheduled txn internal xfer dst_account not saved 2012-11-17 Maxime Doyen diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..c29429b35acc96fa89a2d424604864965a8e1a19 --- /dev/null +++ b/LICENSE @@ -0,0 +1,3 @@ +* HomeBank is licensed under the GNU GENERAL PUBLIC LICENSE -- + see the 'COPYING' file in this directory for details. + diff --git a/Makefile.in b/Makefile.in index 74730905a0cc943d5d4694b3d7bcae5d6e3a24b7..60aa6531bbebb0c9dbdec5ecf7ac865d0147f8d6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,24 +13,54 @@ # PARTICULAR PURPOSE. @SET_MAKE@ + +# HomeBank Makefile.am VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -49,11 +78,11 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ - config.guess config.sub depcomp install-sh missing \ - mkinstalldirs +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/configure $(am__configure_deps) \ + $(srcdir)/config.h.in mkinstalldirs AUTHORS COPYING ChangeLog \ + INSTALL NEWS README compile config.guess config.sub depcomp \ + install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -64,15 +93,28 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -80,11 +122,33 @@ am__can_run_installinfo = \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ - distdir dist dist-all distcheck +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ + $(LISP)config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags +CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) @@ -95,6 +159,7 @@ am__remove_distdir = \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi +am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ @@ -122,6 +187,7 @@ am__relativize = \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best +DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' @@ -239,7 +305,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ #SUBDIRS = src -SUBDIRS = src data images doc mime po +SUBDIRS = src data images mime po doc # don't forget to do a 'make check' # to ensure all files are in po/POTFILES.in @@ -295,8 +361,8 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__aclocal_m4_deps): config.h: stamp-h1 - @if test ! -f $@; then rm -f stamp-h1; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 @@ -310,22 +376,25 @@ distclean-hdr: -rm -f config.h stamp-h1 # This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ @@ -340,57 +409,12 @@ $(RECURSIVE_TARGETS): $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" -$(RECURSIVE_CLEAN_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ @@ -406,12 +430,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ + $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -423,15 +442,11 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $$unique; \ fi; \ fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -440,9 +455,31 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) @@ -510,40 +547,42 @@ distdir: $(DISTFILES) || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) + $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__remove_distdir) + $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__remove_distdir) - -dist-lzma: distdir - tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma - $(am__remove_distdir) + $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__remove_distdir) + $(am__post_remove_distdir) dist-tarZ: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) + $(am__post_remove_distdir) dist-shar: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) + $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) + $(am__post_remove_distdir) -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another @@ -554,8 +593,6 @@ distcheck: dist GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.lzma*) \ - lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ @@ -567,18 +604,19 @@ distcheck: dist *.zip*) \ unzip $(distdir).zip ;;\ esac - chmod -R a-w $(distdir); chmod u+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + && ../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ + --srcdir=.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ @@ -601,7 +639,7 @@ distcheck: dist && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 - $(am__remove_distdir) + $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' @@ -736,13 +774,12 @@ ps-am: uninstall-am: -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ - ctags-recursive install-am install-strip tags-recursive +.MAKE: $(am__recursive_targets) all install-am install-strip -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am am--refresh check check-am clean clean-generic \ - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ - dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ + dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ @@ -752,8 +789,8 @@ uninstall-am: install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am + mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/aclocal.m4 b/aclocal.m4 index 6a5dbd86687b400fd013d0c15838f24ff9b0fcbe..7dfe12d3e285269943dcbe9061967f2b1571f42b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,8 +1,7 @@ -# generated automatically by aclocal 1.11.6 -*- Autoconf -*- +# generated automatically by aclocal 1.14.1 -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, -# Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -12,13 +11,14 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically `autoreconf'.])]) +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) @@ -236,7 +236,7 @@ AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # nls.m4 serial 5 (gettext-0.18) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -428,25 +428,22 @@ else fi[]dnl ])# PKG_CHECK_MODULES -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 - # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.11' +[am__api_version='1.14' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.11.6], [], +m4_if([$1], [1.14.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -462,24 +459,22 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.11.6])dnl +[AM_AUTOMAKE_VERSION([1.14.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 - # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and @@ -498,7 +493,7 @@ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you +# harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, @@ -524,22 +519,19 @@ am_aux_dir=`cd $ac_aux_dir && pwd` # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 -# Free Software Foundation, Inc. +# Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 9 - # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl @@ -558,16 +550,14 @@ AC_CONFIG_COMMANDS_PRE( Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, -# 2010, 2011 Free Software Foundation, Inc. +# Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 12 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing @@ -577,7 +567,7 @@ fi])]) # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was @@ -590,12 +580,13 @@ AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], + [$1], [CXX], [depcc="$CXX" am_compiler_list=], + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], + [$1], [UPC], [depcc="$UPC" am_compiler_list=], + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], @@ -603,8 +594,8 @@ AC_CACHE_CHECK([dependency style of $depcc], # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're @@ -644,16 +635,16 @@ AC_CACHE_CHECK([dependency style of $depcc], : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - # We check with `-c' and `-o' for the sake of the "dashmstdout" + # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in @@ -662,8 +653,8 @@ AC_CACHE_CHECK([dependency style of $depcc], test "$am__universal" = false || continue ;; nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else @@ -671,7 +662,7 @@ AC_CACHE_CHECK([dependency style of $depcc], fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok `-c -o', but also, the minuso test has + # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} @@ -719,7 +710,7 @@ AM_CONDITIONAL([am__fastdep$1], [ # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl @@ -729,9 +720,13 @@ AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) +[AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( + [--enable-dependency-tracking], + [do not reject slow dependency extractors]) +AS_HELP_STRING( + [--disable-dependency-tracking], + [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' @@ -746,20 +741,18 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 -# Free Software Foundation, Inc. +# Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -#serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ - # Autoconf 2.62 quotes --file arguments for eval, but not when files + # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in @@ -772,7 +765,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but + # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. @@ -784,21 +777,19 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], continue fi # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. + # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue + test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` @@ -816,7 +807,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will +# is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], @@ -824,32 +815,23 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) - # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 16 - # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- @@ -862,7 +844,7 @@ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.62])dnl +[AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -891,31 +873,40 @@ AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AM_PROG_MKDIR_P])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl @@ -926,34 +917,78 @@ _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) -_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl -dnl The `parallel-tests' driver may need to know about EXEEXT, so add the -dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro -dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl -]) -dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. @@ -975,15 +1010,12 @@ for _am_header in $config_headers :; do done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, -# Inc. +# Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 - # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. @@ -997,16 +1029,14 @@ if test x"${install_sh}" != xset; then install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi -AC_SUBST(install_sh)]) +AC_SUBST([install_sh])]) -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 2 - # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], @@ -1022,14 +1052,12 @@ AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 - # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. @@ -1047,7 +1075,7 @@ am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf -# Ignore all kinds of additional output from `make'. +# Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include @@ -1074,15 +1102,12 @@ rm -f confinc confmf # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 -# Free Software Foundation, Inc. +# Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 6 - # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], @@ -1090,11 +1115,10 @@ AC_DEFUN([AM_MISSING_PROG], $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) - # AM_MISSING_HAS_RUN # ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl @@ -1107,54 +1131,51 @@ if test x"${MISSING+set}" != xset; then esac fi # Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " else am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) + AC_MSG_WARN(['missing' script is too old or missing]) fi ]) -# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, -# Inc. +# -*- Autoconf -*- +# Obsolete and "removed" macros, that must however still report explicit +# error messages when used, to smooth transition. +# +# Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) +AC_DEFUN([AM_CONFIG_HEADER], +[AC_DIAGNOSE([obsolete], +['$0': this macro is obsolete. +You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl +AC_CONFIG_HEADERS($@)]) + +AC_DEFUN([AM_PROG_CC_STDC], +[AC_PROG_CC +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc +AC_DIAGNOSE([obsolete], +['$0': this macro is obsolete. +You should simply use the 'AC][_PROG_CC' macro instead. +Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', +but upon 'ac_cv_prog_cc_stdc'.])]) + +AC_DEFUN([AM_C_PROTOTYPES], + [AC_FATAL([automatic de-ANSI-fication support has been removed])]) +AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software -# Foundation, Inc. +# Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 - # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], @@ -1164,7 +1185,7 @@ AC_DEFUN([_AM_MANGLE_OPTION], # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ @@ -1178,24 +1199,82 @@ AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Check to make sure that the build environment is sane. -*- Autoconf -*- +# Copyright (C) 1999-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_CC_C_O +# --------------- +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC +# to automatically call this. +AC_DEFUN([_AM_PROG_CC_C_O], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( + [whether $CC understands -c and -o together], + [am_cv_prog_cc_c_o], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i]) +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 -# Free Software Foundation, Inc. +# For backward compatibility. +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' @@ -1206,32 +1285,40 @@ case `pwd` in esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac -# Do `set' in a subshell so we don't clobber the current shell's +# Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done test "$[2]" = conftest.file ) then @@ -1241,46 +1328,118 @@ else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi -AC_MSG_RESULT(yes)]) +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) -# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- -# One issue with vendor `install' (even GNU) is that you can't +# One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize +# always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. +# Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 - # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. @@ -1294,18 +1453,16 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. +# Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 2 - # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory @@ -1315,76 +1472,114 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar +# AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) -m4_if([$1], [v7], - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. + +# We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], + + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR diff --git a/autom4te.cache/output.0 b/autom4te.cache/output.0 new file mode 100644 index 0000000000000000000000000000000000000000..ce114fdcb8516858e17448951d6f54cbfcb5c654 --- /dev/null +++ b/autom4te.cache/output.0 @@ -0,0 +1,7179 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for homebank trunk. +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='homebank' +PACKAGE_TARNAME='homebank' +PACKAGE_VERSION='trunk' +PACKAGE_STRING='homebank trunk' +PACKAGE_BUGREPORT='' +PACKAGE_URL='' + +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIB@&t@OBJS +GETTEXT_PACKAGE +NOOFX_FALSE +NOOFX_TRUE +EGREP +GREP +CPP +DEPS_LIBS +DEPS_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +DATADIRNAME +ALL_LINGUAS +INTLTOOL_PERL +GMSGFMT +MSGFMT +MSGMERGE +XGETTEXT +INTLTOOL_POLICY_RULE +INTLTOOL_SERVICE_RULE +INTLTOOL_THEME_RULE +INTLTOOL_SCHEMAS_RULE +INTLTOOL_CAVES_RULE +INTLTOOL_XML_NOMERGE_RULE +INTLTOOL_XML_RULE +INTLTOOL_KBD_RULE +INTLTOOL_XAM_RULE +INTLTOOL_UI_RULE +INTLTOOL_SOUNDLIST_RULE +INTLTOOL_SHEET_RULE +INTLTOOL_SERVER_RULE +INTLTOOL_PONG_RULE +INTLTOOL_OAF_RULE +INTLTOOL_PROP_RULE +INTLTOOL_KEYS_RULE +INTLTOOL_DIRECTORY_RULE +INTLTOOL_DESKTOP_RULE +intltool__v_merge_options_0 +intltool__v_merge_options_ +INTLTOOL_V_MERGE_OPTIONS +INTLTOOL__v_MERGE_0 +INTLTOOL__v_MERGE_ +INTLTOOL_V_MERGE +INTLTOOL_EXTRACT +INTLTOOL_MERGE +INTLTOOL_UPDATE +USE_NLS +LN_S +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_nls +with_ofx +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +DEPS_CFLAGS +DEPS_LIBS +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures homebank trunk to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/homebank@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of homebank trunk:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + --disable-nls do not use Native Language Support + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --without-ofx build without ofx support default=with + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config + DEPS_LIBS linker flags for DEPS, overriding pkg-config + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +homebank configure trunk +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES +@%:@ ------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_type +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by homebank $as_me trunk, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.14' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +@%:@ Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='homebank' + VERSION='trunk' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + +# If the source code has changed at all, increment REVISION +# If any interfaces have been added, removed, or changed, increment CURRENT, and set REVISION to 0. +# If any interfaces have been added since the last public release, then increment AGE. +# If any interfaces have been removed since the last public release, then set AGE to 0. +# Reference: http://www.gnu.org/software/libtool/manual.html#Versioning + +# Checks for programs. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + @%:@ Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval +else + USE_NLS=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + + + + + +case "$am__api_version" in + 1.01234) + as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 + ;; + *) + ;; +esac + +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +if test -n ""; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5 +$as_echo_n "checking for intltool >= ... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 +$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + as_fn_error $? "Your intltool is too old. You need intltool or later." "$LINENO" 5 +fi + +# Extract the first word of "intltool-update", so it can be a program name with args. +set dummy intltool-update; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_UPDATE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE +if test -n "$INTLTOOL_UPDATE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 +$as_echo "$INTLTOOL_UPDATE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-merge", so it can be a program name with args. +set dummy intltool-merge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_MERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE +if test -n "$INTLTOOL_MERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 +$as_echo "$INTLTOOL_MERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-extract", so it can be a program name with args. +set dummy intltool-extract; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_EXTRACT in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT +if test -n "$INTLTOOL_EXTRACT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 +$as_echo "$INTLTOOL_EXTRACT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 +fi + +if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 +fi + + +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' +INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' + + + + +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' +intltool__v_merge_options_0='-q' + + + + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' +else + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' +fi + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Check the gettext tools to make sure they are GNU +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_XGETTEXT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $XGETTEXT in + [\\/]* | ?:[\\/]*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +XGETTEXT=$ac_cv_path_XGETTEXT +if test -n "$XGETTEXT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGMERGE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MSGMERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGMERGE=$ac_cv_path_MSGMERGE +if test -n "$MSGMERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGFMT=$ac_cv_path_MSGFMT +if test -n "$MSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GMSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL +if test -n "$INTLTOOL_PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 +$as_echo "$INTLTOOL_PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_PERL"; then + as_fn_error $? "perl not found" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 +$as_echo_n "checking for perl >= 5.8.1... " >&6; } +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 +else + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 +$as_echo "$IT_PERL_VERSION" >&6; } +fi +if test "x" != "xno-xml"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 +$as_echo_n "checking for XML::Parser... " >&6; } + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + else + as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile + + +# Set DATADIRNAME correctly if it is not set yet +# (copied from glib-gettext.m4) +if test -z "$DATADIRNAME"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + DATADIRNAME=share +else + case $host in + *-*-solaris*) + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" +if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : + DATADIRNAME=share +else + DATADIRNAME=lib +fi + + ;; + *) + DATADIRNAME=lib + ;; + esac +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + + + + + + +# Checks for libraries. + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 +$as_echo_n "checking for DEPS... " >&6; } + +if test -n "$DEPS_CFLAGS"; then + pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24 glib-2.0 >= 2.28\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$DEPS_LIBS"; then + pkg_cv_DEPS_LIBS="$DEPS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24 glib-2.0 >= 2.28\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>&1` + else + DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$DEPS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (gtk+-2.0 >= 2.24 glib-2.0 >= 2.28) were not met: + +$DEPS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables DEPS_CFLAGS +and DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables DEPS_CFLAGS +and DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS + DEPS_LIBS=$pkg_cv_DEPS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 +$as_echo_n "checking for pow in -lm... " >&6; } +if ${ac_cv_lib_m_pow+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pow (); +int +main () +{ +return pow (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_pow=yes +else + ac_cv_lib_m_pow=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 +$as_echo "$ac_cv_lib_m_pow" >&6; } +if test "x$ac_cv_lib_m_pow" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + + +# general usage flags +CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes" + +# extended flags +#CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter" + +#valgrind flags +#CFLAGS="${CFLAGS} -g -O0" + +# pre-relase # 2 - error as warning for +#CFLAGS="${CFLAGS} -Werror" + +# gtk3 migration +#CFLAGS="${CFLAGS} -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE" + +# GLib/Gtk deprecated flags +#CFLAGS="${CFLAGS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" + + +# Check for libofx +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +ac_fn_c_check_header_mongrel "$LINENO" "libofx/libofx.h" "ac_cv_header_libofx_libofx_h" "$ac_includes_default" +if test "x$ac_cv_header_libofx_libofx_h" = xyes; then : + +else + noofx=true +fi + + + +@%:@ Check whether --with-ofx was given. +if test "${with_ofx+set}" = set; then : + withval=$with_ofx; build_ofx=$withval +else + build_ofx=yes + +fi + +if test x$build_ofx != xno +then + if test x$noofx != xtrue + then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ofx_set_status_cb in -lofx" >&5 +$as_echo_n "checking for ofx_set_status_cb in -lofx... " >&6; } +if ${ac_cv_lib_ofx_ofx_set_status_cb+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lofx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ofx_set_status_cb (); +int +main () +{ +return ofx_set_status_cb (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ofx_ofx_set_status_cb=yes +else + ac_cv_lib_ofx_ofx_set_status_cb=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ofx_ofx_set_status_cb" >&5 +$as_echo "$ac_cv_lib_ofx_ofx_set_status_cb" >&6; } +if test "x$ac_cv_lib_ofx_ofx_set_status_cb" = xyes; then : + OFX_0_7="-DOFX_ENABLE" +fi + + DEPS_LIBS="-lofx ${DEPS_LIBS}" + CFLAGS="${CFLAGS} $OFX_0_7" + else + noofx=true + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Libofx header missing. Check your libofx installation" >&5 +$as_echo "Libofx header missing. Check your libofx installation" >&6; } + CFLAGS="${CFLAGS} -DNOOFX" + fi +else + noofx=true + CFLAGS="${CFLAGS} -DNOOFX" +fi + if test x$noofx = xtrue; then + NOOFX_TRUE= + NOOFX_FALSE='#' +else + NOOFX_TRUE='#' + NOOFX_FALSE= +fi + + +# Checks for header files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in libintl.h locale.h stdlib.h string.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "@%:@define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 +$as_echo_n "checking for working volatile... " >&6; } +if ${ac_cv_c_volatile+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +volatile int x; +int * volatile y = (int *) 0; +return !x && !y; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_volatile=yes +else + ac_cv_c_volatile=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 +$as_echo "$ac_cv_c_volatile" >&6; } +if test $ac_cv_c_volatile = no; then + +$as_echo "@%:@define volatile /**/" >>confdefs.h + +fi + + +# Checks for library functions. +for ac_func in floor localeconv memset modf pow setlocale sqrt strcasecmp strtoul +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# International support +#ALL_LINGUAS="af ar ast be bg ca cs cy da de el en_AU en_CA en_GB es et eu fa fi fr ga gl he hr hu id is it ja ka kn ko lt lv mr ms nb nds nl oc pl pt_BR pt pt_PT ro ru si sk sl sr sv tr uk vi zh_CN zh_TW" + +#AM_GLIB_GNU_GETTEXT + +GETTEXT_PACKAGE=$PACKAGE + + +cat >>confdefs.h <<_ACEOF +@%:@define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}" +_ACEOF + + +ac_config_files="$ac_config_files Makefile src/Makefile data/homebank.desktop.in data/Makefile data/icons/Makefile data/datas/Makefile images/Makefile mime/Makefile po/Makefile.in doc/Makefile doc/images/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + ac_config_commands="$ac_config_commands po/stamp-it" + + +if test -z "${NOOFX_TRUE}" && test -z "${NOOFX_FALSE}"; then + as_fn_error $? "conditional \"NOOFX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by homebank $as_me trunk, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +homebank config.status trunk +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "data/homebank.desktop.in") CONFIG_FILES="$CONFIG_FILES data/homebank.desktop.in" ;; + "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; + "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;; + "data/datas/Makefile") CONFIG_FILES="$CONFIG_FILES data/datas/Makefile" ;; + "images/Makefile") CONFIG_FILES="$CONFIG_FILES images/Makefile" ;; + "mime/Makefile") CONFIG_FILES="$CONFIG_FILES mime/Makefile" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "doc/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/images/Makefile" ;; + "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "po/stamp-it":C) + if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then + as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 + fi + rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" + >"po/stamp-it.tmp" + sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" + + sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r po/POTFILES + } + ' "po/Makefile.in" >"po/Makefile" + rm -f "po/Makefile.tmp" + mv "po/stamp-it.tmp" "po/stamp-it" + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +# ************************************* +# ************************************* + +echo +echo $PACKAGE $VERSION +echo +echo Compiler................ : $CC +echo Build with OFX support.. : $build_ofx +if test "x$noofx" = "xtrue" ; then +echo ........................ : **error** libofx header is missing, ofx feature will be disabled. Check your libofx installation +fi +eval eval echo Path to images.......... : $datadir/homebank/images +eval eval echo Path to locale.......... : $datadir/locale +eval eval echo Path to help............ : $datadir/homebank/help + +echo +eval eval echo HomeBank will be installed in $bindir. +echo +echo configure complete, now type \'make\' +echo + diff --git a/autom4te.cache/output.1 b/autom4te.cache/output.1 new file mode 100644 index 0000000000000000000000000000000000000000..ce114fdcb8516858e17448951d6f54cbfcb5c654 --- /dev/null +++ b/autom4te.cache/output.1 @@ -0,0 +1,7179 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for homebank trunk. +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='homebank' +PACKAGE_TARNAME='homebank' +PACKAGE_VERSION='trunk' +PACKAGE_STRING='homebank trunk' +PACKAGE_BUGREPORT='' +PACKAGE_URL='' + +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIB@&t@OBJS +GETTEXT_PACKAGE +NOOFX_FALSE +NOOFX_TRUE +EGREP +GREP +CPP +DEPS_LIBS +DEPS_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +DATADIRNAME +ALL_LINGUAS +INTLTOOL_PERL +GMSGFMT +MSGFMT +MSGMERGE +XGETTEXT +INTLTOOL_POLICY_RULE +INTLTOOL_SERVICE_RULE +INTLTOOL_THEME_RULE +INTLTOOL_SCHEMAS_RULE +INTLTOOL_CAVES_RULE +INTLTOOL_XML_NOMERGE_RULE +INTLTOOL_XML_RULE +INTLTOOL_KBD_RULE +INTLTOOL_XAM_RULE +INTLTOOL_UI_RULE +INTLTOOL_SOUNDLIST_RULE +INTLTOOL_SHEET_RULE +INTLTOOL_SERVER_RULE +INTLTOOL_PONG_RULE +INTLTOOL_OAF_RULE +INTLTOOL_PROP_RULE +INTLTOOL_KEYS_RULE +INTLTOOL_DIRECTORY_RULE +INTLTOOL_DESKTOP_RULE +intltool__v_merge_options_0 +intltool__v_merge_options_ +INTLTOOL_V_MERGE_OPTIONS +INTLTOOL__v_MERGE_0 +INTLTOOL__v_MERGE_ +INTLTOOL_V_MERGE +INTLTOOL_EXTRACT +INTLTOOL_MERGE +INTLTOOL_UPDATE +USE_NLS +LN_S +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_nls +with_ofx +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +DEPS_CFLAGS +DEPS_LIBS +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures homebank trunk to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/homebank@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of homebank trunk:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + --disable-nls do not use Native Language Support + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --without-ofx build without ofx support default=with + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config + DEPS_LIBS linker flags for DEPS, overriding pkg-config + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +homebank configure trunk +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES +@%:@ ------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_type +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by homebank $as_me trunk, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.14' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +@%:@ Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='homebank' + VERSION='trunk' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + +# If the source code has changed at all, increment REVISION +# If any interfaces have been added, removed, or changed, increment CURRENT, and set REVISION to 0. +# If any interfaces have been added since the last public release, then increment AGE. +# If any interfaces have been removed since the last public release, then set AGE to 0. +# Reference: http://www.gnu.org/software/libtool/manual.html#Versioning + +# Checks for programs. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + @%:@ Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval +else + USE_NLS=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + + + + + +case "$am__api_version" in + 1.01234) + as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 + ;; + *) + ;; +esac + +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +if test -n ""; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5 +$as_echo_n "checking for intltool >= ... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 +$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + as_fn_error $? "Your intltool is too old. You need intltool or later." "$LINENO" 5 +fi + +# Extract the first word of "intltool-update", so it can be a program name with args. +set dummy intltool-update; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_UPDATE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE +if test -n "$INTLTOOL_UPDATE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 +$as_echo "$INTLTOOL_UPDATE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-merge", so it can be a program name with args. +set dummy intltool-merge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_MERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE +if test -n "$INTLTOOL_MERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 +$as_echo "$INTLTOOL_MERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-extract", so it can be a program name with args. +set dummy intltool-extract; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_EXTRACT in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT +if test -n "$INTLTOOL_EXTRACT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 +$as_echo "$INTLTOOL_EXTRACT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 +fi + +if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 +fi + + +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' +INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' + + + + +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' +intltool__v_merge_options_0='-q' + + + + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' +else + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' +fi + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Check the gettext tools to make sure they are GNU +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_XGETTEXT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $XGETTEXT in + [\\/]* | ?:[\\/]*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +XGETTEXT=$ac_cv_path_XGETTEXT +if test -n "$XGETTEXT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGMERGE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MSGMERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGMERGE=$ac_cv_path_MSGMERGE +if test -n "$MSGMERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGFMT=$ac_cv_path_MSGFMT +if test -n "$MSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GMSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL +if test -n "$INTLTOOL_PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 +$as_echo "$INTLTOOL_PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_PERL"; then + as_fn_error $? "perl not found" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 +$as_echo_n "checking for perl >= 5.8.1... " >&6; } +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 +else + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 +$as_echo "$IT_PERL_VERSION" >&6; } +fi +if test "x" != "xno-xml"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 +$as_echo_n "checking for XML::Parser... " >&6; } + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + else + as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile + + +# Set DATADIRNAME correctly if it is not set yet +# (copied from glib-gettext.m4) +if test -z "$DATADIRNAME"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + DATADIRNAME=share +else + case $host in + *-*-solaris*) + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" +if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : + DATADIRNAME=share +else + DATADIRNAME=lib +fi + + ;; + *) + DATADIRNAME=lib + ;; + esac +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + + + + + + +# Checks for libraries. + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 +$as_echo_n "checking for DEPS... " >&6; } + +if test -n "$DEPS_CFLAGS"; then + pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24 glib-2.0 >= 2.28\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$DEPS_LIBS"; then + pkg_cv_DEPS_LIBS="$DEPS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24 glib-2.0 >= 2.28\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>&1` + else + DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$DEPS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (gtk+-2.0 >= 2.24 glib-2.0 >= 2.28) were not met: + +$DEPS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables DEPS_CFLAGS +and DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables DEPS_CFLAGS +and DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS + DEPS_LIBS=$pkg_cv_DEPS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 +$as_echo_n "checking for pow in -lm... " >&6; } +if ${ac_cv_lib_m_pow+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pow (); +int +main () +{ +return pow (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_pow=yes +else + ac_cv_lib_m_pow=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 +$as_echo "$ac_cv_lib_m_pow" >&6; } +if test "x$ac_cv_lib_m_pow" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + + +# general usage flags +CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes" + +# extended flags +#CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter" + +#valgrind flags +#CFLAGS="${CFLAGS} -g -O0" + +# pre-relase # 2 - error as warning for +#CFLAGS="${CFLAGS} -Werror" + +# gtk3 migration +#CFLAGS="${CFLAGS} -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE" + +# GLib/Gtk deprecated flags +#CFLAGS="${CFLAGS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" + + +# Check for libofx +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +ac_fn_c_check_header_mongrel "$LINENO" "libofx/libofx.h" "ac_cv_header_libofx_libofx_h" "$ac_includes_default" +if test "x$ac_cv_header_libofx_libofx_h" = xyes; then : + +else + noofx=true +fi + + + +@%:@ Check whether --with-ofx was given. +if test "${with_ofx+set}" = set; then : + withval=$with_ofx; build_ofx=$withval +else + build_ofx=yes + +fi + +if test x$build_ofx != xno +then + if test x$noofx != xtrue + then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ofx_set_status_cb in -lofx" >&5 +$as_echo_n "checking for ofx_set_status_cb in -lofx... " >&6; } +if ${ac_cv_lib_ofx_ofx_set_status_cb+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lofx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ofx_set_status_cb (); +int +main () +{ +return ofx_set_status_cb (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ofx_ofx_set_status_cb=yes +else + ac_cv_lib_ofx_ofx_set_status_cb=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ofx_ofx_set_status_cb" >&5 +$as_echo "$ac_cv_lib_ofx_ofx_set_status_cb" >&6; } +if test "x$ac_cv_lib_ofx_ofx_set_status_cb" = xyes; then : + OFX_0_7="-DOFX_ENABLE" +fi + + DEPS_LIBS="-lofx ${DEPS_LIBS}" + CFLAGS="${CFLAGS} $OFX_0_7" + else + noofx=true + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Libofx header missing. Check your libofx installation" >&5 +$as_echo "Libofx header missing. Check your libofx installation" >&6; } + CFLAGS="${CFLAGS} -DNOOFX" + fi +else + noofx=true + CFLAGS="${CFLAGS} -DNOOFX" +fi + if test x$noofx = xtrue; then + NOOFX_TRUE= + NOOFX_FALSE='#' +else + NOOFX_TRUE='#' + NOOFX_FALSE= +fi + + +# Checks for header files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in libintl.h locale.h stdlib.h string.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "@%:@define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 +$as_echo_n "checking for working volatile... " >&6; } +if ${ac_cv_c_volatile+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +volatile int x; +int * volatile y = (int *) 0; +return !x && !y; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_volatile=yes +else + ac_cv_c_volatile=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 +$as_echo "$ac_cv_c_volatile" >&6; } +if test $ac_cv_c_volatile = no; then + +$as_echo "@%:@define volatile /**/" >>confdefs.h + +fi + + +# Checks for library functions. +for ac_func in floor localeconv memset modf pow setlocale sqrt strcasecmp strtoul +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# International support +#ALL_LINGUAS="af ar ast be bg ca cs cy da de el en_AU en_CA en_GB es et eu fa fi fr ga gl he hr hu id is it ja ka kn ko lt lv mr ms nb nds nl oc pl pt_BR pt pt_PT ro ru si sk sl sr sv tr uk vi zh_CN zh_TW" + +#AM_GLIB_GNU_GETTEXT + +GETTEXT_PACKAGE=$PACKAGE + + +cat >>confdefs.h <<_ACEOF +@%:@define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}" +_ACEOF + + +ac_config_files="$ac_config_files Makefile src/Makefile data/homebank.desktop.in data/Makefile data/icons/Makefile data/datas/Makefile images/Makefile mime/Makefile po/Makefile.in doc/Makefile doc/images/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + ac_config_commands="$ac_config_commands po/stamp-it" + + +if test -z "${NOOFX_TRUE}" && test -z "${NOOFX_FALSE}"; then + as_fn_error $? "conditional \"NOOFX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by homebank $as_me trunk, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +homebank config.status trunk +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "data/homebank.desktop.in") CONFIG_FILES="$CONFIG_FILES data/homebank.desktop.in" ;; + "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; + "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;; + "data/datas/Makefile") CONFIG_FILES="$CONFIG_FILES data/datas/Makefile" ;; + "images/Makefile") CONFIG_FILES="$CONFIG_FILES images/Makefile" ;; + "mime/Makefile") CONFIG_FILES="$CONFIG_FILES mime/Makefile" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "doc/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/images/Makefile" ;; + "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "po/stamp-it":C) + if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then + as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 + fi + rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" + >"po/stamp-it.tmp" + sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" + + sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r po/POTFILES + } + ' "po/Makefile.in" >"po/Makefile" + rm -f "po/Makefile.tmp" + mv "po/stamp-it.tmp" "po/stamp-it" + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +# ************************************* +# ************************************* + +echo +echo $PACKAGE $VERSION +echo +echo Compiler................ : $CC +echo Build with OFX support.. : $build_ofx +if test "x$noofx" = "xtrue" ; then +echo ........................ : **error** libofx header is missing, ofx feature will be disabled. Check your libofx installation +fi +eval eval echo Path to images.......... : $datadir/homebank/images +eval eval echo Path to locale.......... : $datadir/locale +eval eval echo Path to help............ : $datadir/homebank/help + +echo +eval eval echo HomeBank will be installed in $bindir. +echo +echo configure complete, now type \'make\' +echo + diff --git a/autom4te.cache/requests b/autom4te.cache/requests new file mode 100644 index 0000000000000000000000000000000000000000..f176244837b3acb74dacbbf5e14b15f57ba4b57c --- /dev/null +++ b/autom4te.cache/requests @@ -0,0 +1,171 @@ +# This file was generated by Autom4te Thu Apr 10 10:06:43 UTC 2014. +# It contains the lists of macros which have been traced. +# It can be safely removed. + +@request = ( + bless( [ + '0', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + '-', + '/usr/share/aclocal-1.14/internal/ac-config-macro-dirs.m4', + '/usr/share/aclocal/intltool.m4', + '/usr/share/aclocal/nls.m4', + '/usr/share/aclocal/pkg.m4', + '/usr/share/aclocal-1.14/amversion.m4', + '/usr/share/aclocal-1.14/auxdir.m4', + '/usr/share/aclocal-1.14/cond.m4', + '/usr/share/aclocal-1.14/depend.m4', + '/usr/share/aclocal-1.14/depout.m4', + '/usr/share/aclocal-1.14/init.m4', + '/usr/share/aclocal-1.14/install-sh.m4', + '/usr/share/aclocal-1.14/lead-dot.m4', + '/usr/share/aclocal-1.14/make.m4', + '/usr/share/aclocal-1.14/missing.m4', + '/usr/share/aclocal-1.14/obsolete.m4', + '/usr/share/aclocal-1.14/options.m4', + '/usr/share/aclocal-1.14/prog-cc-c-o.m4', + '/usr/share/aclocal-1.14/runlog.m4', + '/usr/share/aclocal-1.14/sanity.m4', + '/usr/share/aclocal-1.14/silent.m4', + '/usr/share/aclocal-1.14/strip.m4', + '/usr/share/aclocal-1.14/substnot.m4', + '/usr/share/aclocal-1.14/tar.m4', + 'configure.ac' + ], + { + 'AM_MAKE_INCLUDE' => 1, + '_IT_SUBST' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'IT_PO_SUBDIR' => 1, + '_AM_SET_OPTIONS' => 1, + 'fp_C_PROTOTYPES' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AM_PROG_CC_STDC' => 1, + 'PKG_CHECK_EXISTS' => 1, + '_AM_IF_OPTION' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'm4_include' => 1, + 'PKG_CHECK_MODULES' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_NLS' => 1, + 'AM_C_PROTOTYPES' => 1, + 'AM_SET_DEPDIR' => 1, + 'PKG_PROG_PKG_CONFIG' => 1, + 'AC_DEFUN' => 1, + 'm4_pattern_allow' => 1, + 'AM_RUN_LOG' => 1, + 'IT_PROG_INTLTOOL' => 1, + '_AM_PROG_TAR' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AM_MISSING_HAS_RUN' => 1, + '_AM_PROG_CC_C_O' => 1, + 'include' => 1, + '_AM_SUBST_NOTMAKE' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + '_AM_MANGLE_OPTION' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'AM_SANITY_CHECK' => 1, + '_AM_SET_OPTION' => 1, + 'AM_CONDITIONAL' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'AM_MISSING_PROG' => 1, + 'AC_PROG_INTLTOOL' => 1, + '_PKG_SHORT_ERRORS_SUPPORTED' => 1, + 'AU_DEFUN' => 1, + 'AM_CONFIG_HEADER' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'AM_DEP_TRACK' => 1, + '_AM_DEPENDENCIES' => 1, + '_m4_warn' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'm4_pattern_forbid' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_CONFIG_MACRO_DIR' => 1 + } + ], 'Autom4te::Request' ), + bless( [ + '1', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + 'aclocal.m4', + 'configure.ac' + ], + { + 'AM_GNU_GETTEXT' => 1, + '_LT_AC_TAGCONFIG' => 1, + '_AM_COND_IF' => 1, + 'AC_FC_FREEFORM' => 1, + '_m4_warn' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'AM_SILENT_RULES' => 1, + 'LT_INIT' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'm4_pattern_forbid' => 1, + 'AM_PATH_GUILE' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AC_SUBST_TRACE' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AM_PROG_MOC' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AC_FC_SRCEXT' => 1, + 'include' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_PROG_AR' => 1, + '_AM_COND_ENDIF' => 1, + 'AH_OUTPUT' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_POT_TOOLS' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_NLS' => 1, + 'm4_pattern_allow' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_INIT' => 1, + 'm4_sinclude' => 1, + 'AC_SUBST' => 1, + '_AM_COND_ELSE' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AC_CANONICAL_HOST' => 1, + 'm4_include' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'sinclude' => 1, + 'AC_PROG_LIBTOOL' => 1 + } + ], 'Autom4te::Request' ) + ); + diff --git a/autom4te.cache/traces.0 b/autom4te.cache/traces.0 new file mode 100644 index 0000000000000000000000000000000000000000..b44fffb9a76b0a54936301f4157efdf779c6d255 --- /dev/null +++ b/autom4te.cache/traces.0 @@ -0,0 +1,1365 @@ +m4trace:/usr/share/aclocal/intltool.m4:27: -1- AC_DEFUN([IT_PROG_INTLTOOL], [ +AC_PREREQ([2.50])dnl +AC_REQUIRE([AM_NLS])dnl + +case "$am__api_version" in + 1.[01234]) + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) + ;; + *) + ;; +esac + +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +if test -n "$1"; then + AC_MSG_CHECKING([for intltool >= $1]) + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) +fi + +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) +fi + +if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 +fi +AC_SUBST([AM_DEFAULT_VERBOSITY]) + +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' +INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' +AC_SUBST(INTLTOOL_V_MERGE) +AC_SUBST(INTLTOOL__v_MERGE_) +AC_SUBST(INTLTOOL__v_MERGE_0) + +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' +intltool__v_merge_options_0='-q' +AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) +AC_SUBST(intltool__v_merge_options_) +AC_SUBST(intltool__v_merge_options_0) + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' +else + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' +fi + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + +_IT_SUBST(INTLTOOL_DESKTOP_RULE) +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) +_IT_SUBST(INTLTOOL_KEYS_RULE) +_IT_SUBST(INTLTOOL_PROP_RULE) +_IT_SUBST(INTLTOOL_OAF_RULE) +_IT_SUBST(INTLTOOL_PONG_RULE) +_IT_SUBST(INTLTOOL_SERVER_RULE) +_IT_SUBST(INTLTOOL_SHEET_RULE) +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) +_IT_SUBST(INTLTOOL_UI_RULE) +_IT_SUBST(INTLTOOL_XAM_RULE) +_IT_SUBST(INTLTOOL_KBD_RULE) +_IT_SUBST(INTLTOOL_XML_RULE) +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) +_IT_SUBST(INTLTOOL_CAVES_RULE) +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) +_IT_SUBST(INTLTOOL_THEME_RULE) +_IT_SUBST(INTLTOOL_SERVICE_RULE) +_IT_SUBST(INTLTOOL_POLICY_RULE) + +# Check the gettext tools to make sure they are GNU +AC_PATH_PROG(XGETTEXT, xgettext) +AC_PATH_PROG(MSGMERGE, msgmerge) +AC_PATH_PROG(MSGFMT, msgfmt) +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi + +AC_PATH_PROG(INTLTOOL_PERL, perl) +if test -z "$INTLTOOL_PERL"; then + AC_MSG_ERROR([perl not found]) +fi +AC_MSG_CHECKING([for perl >= 5.8.1]) +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) +else + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` + AC_MSG_RESULT([$IT_PERL_VERSION]) +fi +if test "x$2" != "xno-xml"; then + AC_MSG_CHECKING([for XML::Parser]) + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + AC_MSG_RESULT([ok]) + else + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile +AC_SUBST(ALL_LINGUAS) + +# Set DATADIRNAME correctly if it is not set yet +# (copied from glib-gettext.m4) +if test -z "$DATADIRNAME"; then + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[]], + [[extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr]])], + [DATADIRNAME=share], + [case $host in + *-*-solaris*) + dnl On Solaris, if bind_textdomain_codeset is in libc, + dnl GNU format message catalog is always supported, + dnl since both are added to the libc all together. + dnl Hence, we'd like to go with DATADIRNAME=share + dnl in this case. + AC_CHECK_FUNC(bind_textdomain_codeset, + [DATADIRNAME=share], [DATADIRNAME=lib]) + ;; + *) + [DATADIRNAME=lib] + ;; + esac]) +fi +AC_SUBST(DATADIRNAME) + +IT_PO_SUBDIR([po]) + +]) +m4trace:/usr/share/aclocal/intltool.m4:193: -1- AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. +dnl +dnl The following CONFIG_COMMANDS should be executed at the very end +dnl of config.status. +AC_CONFIG_COMMANDS_PRE([ + AC_CONFIG_COMMANDS([$1/stamp-it], [ + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) + fi + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" + >"$1/stamp-it.tmp" + [sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" + ] + [sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r $1/POTFILES + } + ' "$1/Makefile.in" >"$1/Makefile"] + rm -f "$1/Makefile.tmp" + mv "$1/stamp-it.tmp" "$1/stamp-it" + ]) +])dnl +]) +m4trace:/usr/share/aclocal/intltool.m4:226: -1- AC_DEFUN([_IT_SUBST], [ +AC_SUBST([$1]) +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) + +]) +m4trace:/usr/share/aclocal/intltool.m4:234: -1- AU_DEFUN([AC_PROG_INTLTOOL], [m4_if($#, 0, [IT_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)])]) +m4trace:/usr/share/aclocal/intltool.m4:234: -1- AC_DEFUN([AC_PROG_INTLTOOL], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_INTLTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [IT_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)])]) +m4trace:/usr/share/aclocal/nls.m4:23: -1- AC_DEFUN([AM_NLS], [ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE([nls], + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT([$USE_NLS]) + AC_SUBST([USE_NLS]) +]) +m4trace:/usr/share/aclocal/pkg.m4:27: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi +fi[]dnl +]) +m4trace:/usr/share/aclocal/pkg.m4:60: -1- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_default([$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) +m4trace:/usr/share/aclocal/pkg.m4:86: -1- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +]) +m4trace:/usr/share/aclocal/pkg.m4:106: -1- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + m4_default([$4], [AC_MSG_ERROR( +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT])[]dnl + ]) +elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])[]dnl + ]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + $3 +fi[]dnl +]) +m4trace:/usr/share/aclocal-1.14/amversion.m4:14: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.14' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.14.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) +m4trace:/usr/share/aclocal-1.14/amversion.m4:33: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.14.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) +m4trace:/usr/share/aclocal-1.14/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) +m4trace:/usr/share/aclocal-1.14/cond.m4:12: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) +m4trace:/usr/share/aclocal-1.14/depend.m4:26: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], + [$1], [CXX], [depcc="$CXX" am_compiler_list=], + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], + [$1], [UPC], [depcc="$UPC" am_compiler_list=], + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) +m4trace:/usr/share/aclocal-1.14/depend.m4:163: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) +m4trace:/usr/share/aclocal-1.14/depend.m4:171: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( + [--enable-dependency-tracking], + [do not reject slow dependency extractors]) +AS_HELP_STRING( + [--disable-dependency-tracking], + [speeds up one-time build])]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) +m4trace:/usr/share/aclocal-1.14/depout.m4:12: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +]) +m4trace:/usr/share/aclocal-1.14/depout.m4:71: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) +m4trace:/usr/share/aclocal-1.14/init.m4:29: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi]) +m4trace:/usr/share/aclocal-1.14/init.m4:182: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) +m4trace:/usr/share/aclocal-1.14/install-sh.m4:11: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) +m4trace:/usr/share/aclocal-1.14/lead-dot.m4:10: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) +m4trace:/usr/share/aclocal-1.14/make.m4:12: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) +m4trace:/usr/share/aclocal-1.14/missing.m4:11: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) +m4trace:/usr/share/aclocal-1.14/missing.m4:20: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) +m4trace:/usr/share/aclocal-1.14/obsolete.m4:11: -1- AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], +['$0': this macro is obsolete. +You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl +AC_CONFIG_HEADERS($@)]) +m4trace:/usr/share/aclocal-1.14/obsolete.m4:17: -1- AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc +AC_DIAGNOSE([obsolete], +['$0': this macro is obsolete. +You should simply use the 'AC][_PROG_CC' macro instead. +Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', +but upon 'ac_cv_prog_cc_stdc'.])]) +m4trace:/usr/share/aclocal-1.14/obsolete.m4:26: -1- AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) +m4trace:/usr/share/aclocal-1.14/obsolete.m4:28: -1- AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) +m4trace:/usr/share/aclocal-1.14/obsolete.m4:28: -1- AC_DEFUN([fp_C_PROTOTYPES], [AC_DIAGNOSE([obsolete], [The macro `fp_C_PROTOTYPES' is obsolete. +You should run autoupdate.])dnl +AM_C_PROTOTYPES]) +m4trace:/usr/share/aclocal-1.14/options.m4:11: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) +m4trace:/usr/share/aclocal-1.14/options.m4:17: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) +m4trace:/usr/share/aclocal-1.14/options.m4:23: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +m4trace:/usr/share/aclocal-1.14/options.m4:29: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) +m4trace:/usr/share/aclocal-1.14/prog-cc-c-o.m4:12: -1- AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( + [whether $CC understands -c and -o together], + [am_cv_prog_cc_c_o], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i]) +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) +m4trace:/usr/share/aclocal-1.14/prog-cc-c-o.m4:47: -1- AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) +m4trace:/usr/share/aclocal-1.14/runlog.m4:12: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) +m4trace:/usr/share/aclocal-1.14/sanity.m4:11: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) +m4trace:/usr/share/aclocal-1.14/silent.m4:12: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) +m4trace:/usr/share/aclocal-1.14/strip.m4:17: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) +m4trace:/usr/share/aclocal-1.14/substnot.m4:12: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) +m4trace:/usr/share/aclocal-1.14/substnot.m4:17: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) +m4trace:/usr/share/aclocal-1.14/tar.m4:23: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], + + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- AM_CONFIG_HEADER([config.h]) +m4trace:configure.ac:7: -1- _m4_warn([obsolete], ['AM_CONFIG_HEADER': this macro is obsolete. +You should use the 'AC_CONFIG_HEADERS' macro instead.], [/usr/share/aclocal-1.14/obsolete.m4:11: AM_CONFIG_HEADER is expanded from... +configure.ac:7: the top level]) +m4trace:configure.ac:9: -1- AM_INIT_AUTOMAKE([1.9 foreign]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:9: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:9: -1- AM_AUTOMAKE_VERSION([1.14.1]) +m4trace:configure.ac:9: -1- _AM_AUTOCONF_VERSION([2.69]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:9: -1- _AM_SET_OPTIONS([1.9 foreign]) +m4trace:configure.ac:9: -1- _AM_SET_OPTION([1.9]) +m4trace:configure.ac:9: -2- _AM_MANGLE_OPTION([1.9]) +m4trace:configure.ac:9: -1- _AM_SET_OPTION([foreign]) +m4trace:configure.ac:9: -2- _AM_MANGLE_OPTION([foreign]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:9: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])]) +m4trace:configure.ac:9: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:9: -1- AM_SANITY_CHECK +m4trace:configure.ac:9: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:9: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:9: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:9: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:9: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:9: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:9: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:9: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:9: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:9: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:9: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:9: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:9: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:9: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +m4trace:configure.ac:9: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:9: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:9: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:9: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:9: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +m4trace:configure.ac:9: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:9: -1- AM_SILENT_RULES +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:9: -1- AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:9: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:18: -1- _AM_PROG_CC_C_O +m4trace:configure.ac:18: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) +m4trace:configure.ac:18: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:18: -1- AM_SET_DEPDIR +m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:18: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:18: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:18: -1- AM_DEP_TRACK +m4trace:configure.ac:18: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:18: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:21: -1- AC_PROG_INTLTOOL +m4trace:configure.ac:21: -1- _m4_warn([obsolete], [The macro `AC_PROG_INTLTOOL' is obsolete. +You should run autoupdate.], [/usr/share/aclocal/intltool.m4:234: AC_PROG_INTLTOOL is expanded from... +configure.ac:21: the top level]) +m4trace:configure.ac:21: -1- IT_PROG_INTLTOOL +m4trace:configure.ac:21: -1- AM_NLS +m4trace:configure.ac:21: -1- m4_pattern_allow([^USE_NLS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_UPDATE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_MERGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_EXTRACT$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_V_MERGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL__v_MERGE_$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL__v_MERGE_0$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_V_MERGE_OPTIONS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^intltool__v_merge_options_$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^intltool__v_merge_options_0$]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_DESKTOP_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_DESKTOP_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_DESKTOP_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_DIRECTORY_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_DIRECTORY_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_DIRECTORY_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_KEYS_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_KEYS_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_KEYS_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_PROP_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_PROP_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_PROP_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_OAF_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_OAF_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_OAF_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_PONG_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_PONG_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_PONG_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_SERVER_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SERVER_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SERVER_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_SHEET_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SHEET_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SHEET_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_SOUNDLIST_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SOUNDLIST_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SOUNDLIST_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_UI_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_UI_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_UI_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_XAM_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_XAM_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_XAM_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_KBD_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_KBD_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_KBD_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_XML_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_XML_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_XML_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_XML_NOMERGE_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_XML_NOMERGE_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_XML_NOMERGE_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_CAVES_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_CAVES_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_CAVES_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_SCHEMAS_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SCHEMAS_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SCHEMAS_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_THEME_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_THEME_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_THEME_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_SERVICE_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SERVICE_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SERVICE_RULE]) +m4trace:configure.ac:21: -1- _IT_SUBST([INTLTOOL_POLICY_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_POLICY_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_POLICY_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^XGETTEXT$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MSGMERGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MSGFMT$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^GMSGFMT$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_PERL$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ALL_LINGUAS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^DATADIRNAME$]) +m4trace:configure.ac:21: -1- IT_PO_SUBDIR([po]) +m4trace:configure.ac:24: -1- PKG_CHECK_MODULES([DEPS], [gtk+-2.0 >= 2.24 glib-2.0 >= 2.28]) +m4trace:configure.ac:24: -1- PKG_PROG_PKG_CONFIG +m4trace:configure.ac:24: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^DEPS_CFLAGS$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^DEPS_LIBS$]) +m4trace:configure.ac:24: -1- PKG_CHECK_EXISTS([gtk+-2.0 >= 2.24 glib-2.0 >= 2.28], [pkg_cv_[]DEPS_CFLAGS=`$PKG_CONFIG --[]cflags "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:24: -1- PKG_CHECK_EXISTS([gtk+-2.0 >= 2.24 glib-2.0 >= 2.28], [pkg_cv_[]DEPS_LIBS=`$PKG_CONFIG --[]libs "gtk+-2.0 >= 2.24 glib-2.0 >= 2.28" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:24: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:25: -1- m4_pattern_allow([^DEPS_CFLAGS$]) +m4trace:configure.ac:26: -1- m4_pattern_allow([^DEPS_LIBS$]) +m4trace:configure.ac:27: -1- m4_pattern_allow([^HAVE_LIBM$]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:71: -1- AM_CONDITIONAL([NOOFX], [test x$noofx = xtrue]) +m4trace:configure.ac:71: -1- m4_pattern_allow([^NOOFX_TRUE$]) +m4trace:configure.ac:71: -1- m4_pattern_allow([^NOOFX_FALSE$]) +m4trace:configure.ac:71: -1- _AM_SUBST_NOTMAKE([NOOFX_TRUE]) +m4trace:configure.ac:71: -1- _AM_SUBST_NOTMAKE([NOOFX_FALSE]) +m4trace:configure.ac:74: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^HAVE__BOOL$]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^HAVE_STDBOOL_H$]) +m4trace:configure.ac:79: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:80: -1- m4_pattern_allow([^TM_IN_SYS_TIME$]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^volatile$]) +m4trace:configure.ac:92: -1- m4_pattern_allow([^GETTEXT_PACKAGE$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^GETTEXT_PACKAGE$]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:109: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:109: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:109: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:109: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) +m4trace:configure.ac:109: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS diff --git a/autom4te.cache/traces.1 b/autom4te.cache/traces.1 new file mode 100644 index 0000000000000000000000000000000000000000..d9822781fce11b12e8818d9f8e9abbffc9bae7dd --- /dev/null +++ b/autom4te.cache/traces.1 @@ -0,0 +1,640 @@ +m4trace:configure.ac:5: -1- AC_INIT([homebank], [trunk]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:5: -1- AC_SUBST([SHELL]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([SHELL]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:5: -1- AC_SUBST([PATH_SEPARATOR]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_NAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_STRING]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_URL]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- AC_SUBST([exec_prefix], [NONE]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([exec_prefix]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:5: -1- AC_SUBST([prefix], [NONE]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:5: -1- AC_SUBST([program_transform_name], [s,x,x,]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([program_transform_name]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:5: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([bindir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:5: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([sbindir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:5: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([libexecdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([datarootdir], ['${prefix}/share']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([datarootdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([datadir], ['${datarootdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([datadir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:5: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([sysconfdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([sharedstatedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([localstatedir], ['${prefix}/var']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([localstatedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([includedir], ['${prefix}/include']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([includedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([oldincludedir], ['/usr/include']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([oldincludedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], + ['${datarootdir}/doc/${PACKAGE}'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([docdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([infodir], ['${datarootdir}/info']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([infodir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:5: -1- AC_SUBST([htmldir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([htmldir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:5: -1- AC_SUBST([dvidir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([dvidir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:5: -1- AC_SUBST([pdfdir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([pdfdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([psdir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([psdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([libdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([localedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([mandir], ['${datarootdir}/man']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([mandir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ +@%:@undef PACKAGE_TARNAME]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:5: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:5: -1- AC_SUBST([ECHO_C]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([ECHO_C]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:5: -1- AC_SUBST([ECHO_N]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([ECHO_N]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:5: -1- AC_SUBST([ECHO_T]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([ECHO_T]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:5: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:5: -1- AC_SUBST([build_alias]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([build_alias]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:5: -1- AC_SUBST([host_alias]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([host_alias]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:5: -1- AC_SUBST([target_alias]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([target_alias]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- _m4_warn([obsolete], ['AM_CONFIG_HEADER': this macro is obsolete. +You should use the 'AC_CONFIG_HEADERS' macro instead.], [aclocal.m4:1152: AM_CONFIG_HEADER is expanded from... +configure.ac:7: the top level]) +m4trace:configure.ac:7: -1- AC_CONFIG_HEADERS([config.h]) +m4trace:configure.ac:9: -1- AM_INIT_AUTOMAKE([1.9 foreign]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:9: -1- AM_AUTOMAKE_VERSION([1.14.1]) +m4trace:configure.ac:9: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:9: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:9: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:9: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:9: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([am__isrc]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:9: -1- AC_SUBST([CYGPATH_W]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([CYGPATH_W]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:9: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([PACKAGE]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:9: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([VERSION]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:9: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:9: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ +@%:@undef PACKAGE]) +m4trace:configure.ac:9: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:9: -1- AH_OUTPUT([VERSION], [/* Version number of package */ +@%:@undef VERSION]) +m4trace:configure.ac:9: -1- AC_REQUIRE_AUX_FILE([missing]) +m4trace:configure.ac:9: -1- AC_SUBST([ACLOCAL]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([ACLOCAL]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:9: -1- AC_SUBST([AUTOCONF]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AUTOCONF]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:9: -1- AC_SUBST([AUTOMAKE]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AUTOMAKE]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:9: -1- AC_SUBST([AUTOHEADER]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AUTOHEADER]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:9: -1- AC_SUBST([MAKEINFO]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([MAKEINFO]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:9: -1- AC_SUBST([install_sh]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([install_sh]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:9: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:9: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:9: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:9: -1- AC_SUBST([MKDIR_P]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:9: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([mkdir_p]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:9: -1- AC_SUBST([AWK]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:9: -1- AC_SUBST([SET_MAKE]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([SET_MAKE]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:9: -1- AC_SUBST([am__leading_dot]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([am__leading_dot]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:9: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AMTAR]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:9: -1- AC_SUBST([am__tar]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([am__tar]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:9: -1- AC_SUBST([am__untar]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([am__untar]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:9: -1- AM_SILENT_RULES +m4trace:configure.ac:9: -1- AC_SUBST([AM_V]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AM_V]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:9: -1- AC_SUBST([AM_DEFAULT_V]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:9: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:9: -1- AC_SUBST([AM_BACKSLASH]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([AM_BACKSLASH]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:9: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:18: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:18: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:18: -1- AC_REQUIRE_AUX_FILE([compile]) +m4trace:configure.ac:18: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([DEPDIR]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:18: -1- AC_SUBST([am__include]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__include]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:18: -1- AC_SUBST([am__quote]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__quote]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:18: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:18: -1- AC_SUBST([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:18: -1- AC_SUBST([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- AC_SUBST([am__nodep]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__nodep]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:18: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CCDEPMODE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:18: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:18: -1- AC_SUBST([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:18: -1- AC_SUBST([am__fastdepCC_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:19: -1- AC_SUBST([LN_S], [$as_ln_s]) +m4trace:configure.ac:19: -1- AC_SUBST_TRACE([LN_S]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:21: -1- _m4_warn([obsolete], [The macro `AC_PROG_INTLTOOL' is obsolete. +You should run autoupdate.], [aclocal.m4:233: AC_PROG_INTLTOOL is expanded from... +configure.ac:21: the top level]) +m4trace:configure.ac:21: -1- AM_NLS +m4trace:configure.ac:21: -1- AC_SUBST([USE_NLS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([USE_NLS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^USE_NLS$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_UPDATE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_UPDATE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_UPDATE$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_MERGE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_MERGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_MERGE$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_EXTRACT]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_EXTRACT]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_EXTRACT$]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_V_MERGE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_V_MERGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_V_MERGE$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL__v_MERGE_]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL__v_MERGE_]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL__v_MERGE_$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL__v_MERGE_0]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL__v_MERGE_0]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL__v_MERGE_0$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_V_MERGE_OPTIONS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_V_MERGE_OPTIONS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_V_MERGE_OPTIONS$]) +m4trace:configure.ac:21: -1- AC_SUBST([intltool__v_merge_options_]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([intltool__v_merge_options_]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^intltool__v_merge_options_$]) +m4trace:configure.ac:21: -1- AC_SUBST([intltool__v_merge_options_0]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([intltool__v_merge_options_0]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^intltool__v_merge_options_0$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_DESKTOP_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_DESKTOP_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_DESKTOP_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_DESKTOP_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_DIRECTORY_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_DIRECTORY_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_DIRECTORY_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_DIRECTORY_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_KEYS_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_KEYS_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_KEYS_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_KEYS_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_PROP_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_PROP_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_PROP_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_PROP_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_OAF_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_OAF_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_OAF_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_OAF_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_PONG_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_PONG_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_PONG_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_PONG_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_SERVER_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_SERVER_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SERVER_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SERVER_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_SHEET_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_SHEET_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SHEET_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SHEET_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_SOUNDLIST_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_SOUNDLIST_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SOUNDLIST_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SOUNDLIST_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_UI_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_UI_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_UI_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_UI_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_XAM_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_XAM_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_XAM_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_XAM_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_KBD_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_KBD_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_KBD_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_KBD_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_XML_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_XML_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_XML_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_XML_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_XML_NOMERGE_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_XML_NOMERGE_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_XML_NOMERGE_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_XML_NOMERGE_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_CAVES_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_CAVES_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_CAVES_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_CAVES_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_SCHEMAS_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_SCHEMAS_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SCHEMAS_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SCHEMAS_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_THEME_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_THEME_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_THEME_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_THEME_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_SERVICE_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_SERVICE_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_SERVICE_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_SERVICE_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_POLICY_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_POLICY_RULE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_POLICY_RULE$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([INTLTOOL_POLICY_RULE]) +m4trace:configure.ac:21: -1- AC_SUBST([XGETTEXT]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([XGETTEXT]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^XGETTEXT$]) +m4trace:configure.ac:21: -1- AC_SUBST([MSGMERGE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([MSGMERGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MSGMERGE$]) +m4trace:configure.ac:21: -1- AC_SUBST([MSGFMT]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([MSGFMT]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MSGFMT$]) +m4trace:configure.ac:21: -1- AC_SUBST([GMSGFMT]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([GMSGFMT]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^GMSGFMT$]) +m4trace:configure.ac:21: -1- AC_SUBST([INTLTOOL_PERL]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INTLTOOL_PERL]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INTLTOOL_PERL$]) +m4trace:configure.ac:21: -1- AC_SUBST([ALL_LINGUAS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([ALL_LINGUAS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ALL_LINGUAS$]) +m4trace:configure.ac:21: -1- AC_SUBST([DATADIRNAME]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([DATADIRNAME]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^DATADIRNAME$]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:24: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:24: -1- AC_SUBST([PKG_CONFIG_PATH]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:24: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:24: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:24: -1- AC_SUBST([DEPS_CFLAGS]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([DEPS_CFLAGS]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^DEPS_CFLAGS$]) +m4trace:configure.ac:24: -1- AC_SUBST([DEPS_LIBS]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([DEPS_LIBS]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^DEPS_LIBS$]) +m4trace:configure.ac:25: -1- AC_SUBST([DEPS_CFLAGS]) +m4trace:configure.ac:25: -1- AC_SUBST_TRACE([DEPS_CFLAGS]) +m4trace:configure.ac:25: -1- m4_pattern_allow([^DEPS_CFLAGS$]) +m4trace:configure.ac:26: -1- AC_SUBST([DEPS_LIBS]) +m4trace:configure.ac:26: -1- AC_SUBST_TRACE([DEPS_LIBS]) +m4trace:configure.ac:26: -1- m4_pattern_allow([^DEPS_LIBS$]) +m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */ +@%:@undef HAVE_LIBM]) +m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM]) +m4trace:configure.ac:27: -1- m4_pattern_allow([^HAVE_LIBM$]) +m4trace:configure.ac:49: -1- AC_SUBST([CPP]) +m4trace:configure.ac:49: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:49: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:49: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:49: -1- AC_SUBST([CPP]) +m4trace:configure.ac:49: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:49: -1- AC_SUBST([GREP]) +m4trace:configure.ac:49: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:49: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:49: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:49: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:49: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TYPES_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_STAT_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_MEMORY_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_INTTYPES_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDINT_H]) +m4trace:configure.ac:49: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:71: -1- AM_CONDITIONAL([NOOFX], [test x$noofx = xtrue]) +m4trace:configure.ac:71: -1- AC_SUBST([NOOFX_TRUE]) +m4trace:configure.ac:71: -1- AC_SUBST_TRACE([NOOFX_TRUE]) +m4trace:configure.ac:71: -1- m4_pattern_allow([^NOOFX_TRUE$]) +m4trace:configure.ac:71: -1- AC_SUBST([NOOFX_FALSE]) +m4trace:configure.ac:71: -1- AC_SUBST_TRACE([NOOFX_FALSE]) +m4trace:configure.ac:71: -1- m4_pattern_allow([^NOOFX_FALSE$]) +m4trace:configure.ac:71: -1- _AM_SUBST_NOTMAKE([NOOFX_TRUE]) +m4trace:configure.ac:71: -1- _AM_SUBST_NOTMAKE([NOOFX_FALSE]) +m4trace:configure.ac:74: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:74: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:74: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:75: -1- AH_OUTPUT([HAVE_LIBINTL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_LIBINTL_H]) +m4trace:configure.ac:75: -1- AH_OUTPUT([HAVE_LOCALE_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_LOCALE_H]) +m4trace:configure.ac:75: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:75: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:78: -1- AC_DEFINE_TRACE_LITERAL([HAVE__BOOL]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^HAVE__BOOL$]) +m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE__BOOL], [/* Define to 1 if the system has the type `_Bool\'. */ +@%:@undef HAVE__BOOL]) +m4trace:configure.ac:78: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STDBOOL_H]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^HAVE_STDBOOL_H$]) +m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_STDBOOL_H], [/* Define to 1 if stdbool.h conforms to C99. */ +@%:@undef HAVE_STDBOOL_H]) +m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([const]) +m4trace:configure.ac:79: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:79: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */ +@%:@undef const]) +m4trace:configure.ac:80: -1- AC_DEFINE_TRACE_LITERAL([TM_IN_SYS_TIME]) +m4trace:configure.ac:80: -1- m4_pattern_allow([^TM_IN_SYS_TIME$]) +m4trace:configure.ac:80: -1- AH_OUTPUT([TM_IN_SYS_TIME], [/* Define to 1 if your declares `struct tm\'. */ +@%:@undef TM_IN_SYS_TIME]) +m4trace:configure.ac:81: -1- AC_DEFINE_TRACE_LITERAL([volatile]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^volatile$]) +m4trace:configure.ac:81: -1- AH_OUTPUT([volatile], [/* Define to empty if the keyword `volatile\' does not work. Warning: valid + code using `volatile\' can become incorrect without. Disable with care. */ +@%:@undef volatile]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_FLOOR], [/* Define to 1 if you have the `floor\' function. */ +@%:@undef HAVE_FLOOR]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_LOCALECONV], [/* Define to 1 if you have the `localeconv\' function. */ +@%:@undef HAVE_LOCALECONV]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_MEMSET], [/* Define to 1 if you have the `memset\' function. */ +@%:@undef HAVE_MEMSET]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_MODF], [/* Define to 1 if you have the `modf\' function. */ +@%:@undef HAVE_MODF]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_POW], [/* Define to 1 if you have the `pow\' function. */ +@%:@undef HAVE_POW]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_SETLOCALE], [/* Define to 1 if you have the `setlocale\' function. */ +@%:@undef HAVE_SETLOCALE]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_SQRT], [/* Define to 1 if you have the `sqrt\' function. */ +@%:@undef HAVE_SQRT]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_STRCASECMP], [/* Define to 1 if you have the `strcasecmp\' function. */ +@%:@undef HAVE_STRCASECMP]) +m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_STRTOUL], [/* Define to 1 if you have the `strtoul\' function. */ +@%:@undef HAVE_STRTOUL]) +m4trace:configure.ac:92: -1- AC_SUBST([GETTEXT_PACKAGE]) +m4trace:configure.ac:92: -1- AC_SUBST_TRACE([GETTEXT_PACKAGE]) +m4trace:configure.ac:92: -1- m4_pattern_allow([^GETTEXT_PACKAGE$]) +m4trace:configure.ac:93: -1- AC_DEFINE_TRACE_LITERAL([GETTEXT_PACKAGE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^GETTEXT_PACKAGE$]) +m4trace:configure.ac:93: -1- AH_OUTPUT([GETTEXT_PACKAGE], [/* gettext domain */ +@%:@undef GETTEXT_PACKAGE]) +m4trace:configure.ac:95: -1- AC_CONFIG_FILES([ +Makefile +src/Makefile +data/homebank.desktop.in +data/Makefile +data/icons/Makefile +data/datas/Makefile +images/Makefile +mime/Makefile +po/Makefile.in +doc/Makefile +doc/images/Makefile +]) +m4trace:configure.ac:109: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:109: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:109: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:109: -1- AC_SUBST([am__EXEEXT_TRUE]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:109: -1- AC_SUBST([am__EXEEXT_FALSE]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:109: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:109: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([INSTALL]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([MKDIR_P]) diff --git a/compile b/compile new file mode 120000 index 0000000000000000000000000000000000000000..d3164c8dbf3eb75f86160742e1a2fb38d6f92d5d --- /dev/null +++ b/compile @@ -0,0 +1 @@ +/usr/share/automake-1.14/compile \ No newline at end of file diff --git a/configure b/configure index 4871e08c73c6a01fdc4f4d6b0f048ed11bd7b594..ed129a8d1a13b5cafa79228ad5bff34e84d46a91 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for homebank 4.5pre2. +# Generated by GNU Autoconf 2.69 for homebank trunk. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -577,8 +577,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='homebank' PACKAGE_TARNAME='homebank' -PACKAGE_VERSION='4.5pre2' -PACKAGE_STRING='homebank 4.5pre2' +PACKAGE_VERSION='trunk' +PACKAGE_STRING='homebank trunk' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -665,7 +665,6 @@ INTLTOOL_V_MERGE_OPTIONS INTLTOOL__v_MERGE_0 INTLTOOL__v_MERGE_ INTLTOOL_V_MERGE -AM_DEFAULT_VERBOSITY INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE @@ -688,6 +687,10 @@ CPPFLAGS LDFLAGS CFLAGS CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V am__untar am__tar AMTAR @@ -752,6 +755,7 @@ SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking +enable_silent_rules enable_dependency_tracking enable_nls with_ofx @@ -1310,7 +1314,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures homebank 4.5pre2 to adapt to many kinds of systems. +\`configure' configures homebank trunk to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1376,7 +1380,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of homebank 4.5pre2:";; + short | recursive ) echo "Configuration of homebank trunk:";; esac cat <<\_ACEOF @@ -1384,8 +1388,12 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build --disable-nls do not use Native Language Support Optional Packages: @@ -1476,7 +1484,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -homebank configure 4.5pre2 +homebank configure trunk generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1895,7 +1903,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by homebank $as_me 4.5pre2, which was +It was created by homebank $as_me trunk, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2244,11 +2252,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - ac_config_headers="$ac_config_headers config.h" -am__api_version='1.11' +am__api_version='1.14' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do @@ -2374,9 +2381,6 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' @@ -2387,32 +2391,40 @@ case `pwd` in esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac -# Do `set' in a subshell so we don't clobber the current shell's +# Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken -alias in your environment" "$LINENO" 5 - fi - + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done test "$2" = conftest.file ) then @@ -2424,6 +2436,16 @@ Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. @@ -2446,12 +2468,12 @@ if test x"${MISSING+set}" != xset; then esac fi # Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " else am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then @@ -2463,10 +2485,10 @@ if test x"${install_sh}" != xset; then esac fi -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. +# will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. @@ -2605,12 +2627,6 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. @@ -2693,6 +2709,45 @@ else fi rmdir .tst 2>/dev/null +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." @@ -2715,7 +2770,7 @@ fi # Define the identity of the package. PACKAGE='homebank' - VERSION='4.5pre2' + VERSION='trunk' cat >>confdefs.h <<_ACEOF @@ -2743,12 +2798,22 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' @@ -2756,6 +2821,48 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + # If the source code has changed at all, increment REVISION # If any interfaces have been added, removed, or changed, increment CURRENT, and set REVISION to 0. # If any interfaces have been added since the last public release, then increment AGE. @@ -3551,6 +3658,65 @@ ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" @@ -3570,7 +3736,7 @@ am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf -# Ignore all kinds of additional output from `make'. +# Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include @@ -3626,8 +3792,8 @@ else # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're @@ -3662,16 +3828,16 @@ else : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - # We check with `-c' and `-o' for the sake of the "dashmstdout" + # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in @@ -3680,8 +3846,8 @@ else test "$am__universal" = false || continue ;; nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else @@ -3689,7 +3855,7 @@ else fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok `-c -o', but also, the minuso test has + # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} @@ -4596,14 +4762,24 @@ _ACEOF fi -# Usual flags -CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes " +# general usage flags +CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes" -# pre-release #1 - GLib/Gtk deprecated flags -#CFLAGS="${CFLAGS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" +# extended flags +#CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter" + +#valgrind flags +#CFLAGS="${CFLAGS} -g -O0" # pre-relase # 2 - error as warning for -#CFLAGS="${CFLAGS} -Werror " +#CFLAGS="${CFLAGS} -Werror" + +# gtk3 migration +#CFLAGS="${CFLAGS} -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE" + +# GLib/Gtk deprecated flags +#CFLAGS="${CFLAGS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" + # Check for libofx ac_ext=c @@ -5472,7 +5648,7 @@ done # International support -#ALL_LINGUAS="am ar ast be bg br bs ca cs da de el en_AU en_CA en_GB es et eu fa fi fr gl he hr ht hu id is it ja ka kk kn ko lt lv mi ml ms nb nds nl oc pl pt_BR pt pt_PT ro ru sk sl sn sr sv ta th tr uk ur uz vi zh_CN zh_HK zh_TW" +#ALL_LINGUAS="af ar ast be bg ca cs cy da de el en_AU en_CA en_GB es et eu fa fi fr ga gl he hr hu id is it ja ka kn ko lt lv mr ms nb nds nl oc pl pt_BR pt pt_PT ro ru si sk sl sr sv tr uk vi zh_CN zh_TW" #AM_GLIB_GNU_GETTEXT @@ -5581,7 +5757,6 @@ DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= -U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' @@ -5596,6 +5771,14 @@ LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' @@ -6017,7 +6200,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by homebank $as_me 4.5pre2, which was +This file was extended by homebank $as_me trunk, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -6083,7 +6266,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -homebank config.status 4.5pre2 +homebank config.status trunk configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -6822,7 +7005,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { - # Autoconf 2.62 quotes --file arguments for eval, but not when files + # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in @@ -6835,7 +7018,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but + # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. @@ -6869,21 +7052,19 @@ $as_echo X"$mf" | continue fi # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. + # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue + test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || diff --git a/data/Makefile.am b/data/Makefile.am index 5211e091eeecf9024a050a22638727a8a1805ad8..d2be1b9d5b0380c93470c929b420a64b833ca8fb 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -2,14 +2,17 @@ SUBDIRS = icons datas -desktopdir = $(datadir)/applications +desktopdir = $(datadir)/applications desktop_in_files = homebank.desktop.in -desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ -EXTRA_DIST = \ +EXTRA_DIST = \ $(desktop_in_files) -CLEANFILES = \ +CLEANFILES = \ + $(desktop_DATA) + +DISTCLEANFILES = \ $(desktop_DATA) diff --git a/data/Makefile.in b/data/Makefile.in index 30e698347df6e4dcdd803d8015c13f8a9f1a27f3..2b548a5df026b0c687316cd8b95b4f4fc4908aaf 100644 --- a/data/Makefile.in +++ b/data/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -50,8 +77,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = data -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/homebank.desktop.in.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs $(srcdir)/homebank.desktop.in.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -60,15 +87,28 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = homebank.desktop.in CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -105,9 +145,29 @@ am__installdirs = "$(DESTDIR)$(desktopdir)" DATA = $(desktop_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -258,6 +318,9 @@ EXTRA_DIST = \ CLEANFILES = \ $(desktop_DATA) +DISTCLEANFILES = \ + $(desktop_DATA) + all: all-recursive .SUFFIXES: @@ -316,22 +379,25 @@ uninstall-desktopDATA: dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ @@ -346,57 +412,12 @@ $(RECURSIVE_TARGETS): $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" -$(RECURSIVE_CLEAN_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ @@ -412,12 +433,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ + $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -429,15 +445,11 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $$unique; \ fi; \ fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -446,6 +458,21 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -540,6 +567,7 @@ clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -610,22 +638,20 @@ ps-am: uninstall-am: uninstall-desktopDATA -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ - install-am install-strip tags-recursive - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am check check-am clean clean-generic ctags \ - ctags-recursive distclean distclean-generic distclean-tags \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-desktopDATA \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-desktopDATA +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic cscopelist-am ctags ctags-am \ + distclean distclean-generic distclean-tags distdir dvi dvi-am \ + html html-am info info-am install install-am install-data \ + install-data-am install-desktopDATA install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-desktopDATA @INTLTOOL_DESKTOP_RULE@ diff --git a/data/datas/Makefile.in b/data/datas/Makefile.in index 92872d7102eb63742ec4835410814f96cf012e85..98ffe033d67b8a401d2b1e9a01d14d385ec1d146 100644 --- a/data/datas/Makefile.in +++ b/data/datas/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -50,7 +77,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = data/datas -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -59,6 +87,18 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ @@ -95,6 +135,7 @@ am__uninstall_files_from_dir = { \ } am__installdirs = "$(DESTDIR)$(datasdir)" DATA = $(datas_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ @@ -217,6 +258,7 @@ hb-categories-it.csv \ hb-categories-pt.csv \ hb-categories-ro.csv \ hb-categories-ru.csv \ +hb-categories-sk.csv \ example.xhb EXTRA_DIST = $(datas_DATA) @@ -274,11 +316,11 @@ uninstall-datasDATA: @list='$(datas_DATA)'; test -n "$(datasdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(datasdir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) @@ -416,16 +458,17 @@ uninstall-am: uninstall-datasDATA .MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-datasDATA install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-datasDATA install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-datasDATA + pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-datasDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/data/homebank.desktop.in b/data/homebank.desktop.in deleted file mode 100644 index 8f7d43af95664dfc9fcb84433023d303269f0d01..0000000000000000000000000000000000000000 --- a/data/homebank.desktop.in +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -_Name=HomeBank -_Comment=Free, easy, personal accounting for everyone. -Exec=homebank %F -Terminal=false -StartupNotify=true -Type=Application -Icon=homebank -Categories=GTK;Office;Finance; -MimeType=application/x-homebank; diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am index b4b26108c85bc8912493bcc1827ad511655d992b..266287e22eba118a206a18463240e8f5b51a9aa7 100644 --- a/data/icons/Makefile.am +++ b/data/icons/Makefile.am @@ -70,6 +70,7 @@ private_icons = \ hicolor_actions_22x22_hb-legend.png \ hicolor_actions_22x22_hb-rate.png \ hicolor_actions_16x16_lpi-help.png \ + hicolor_status_22x22_btn-split.png \ hicolor_status_22x22_flt-inactive.png \ hicolor_status_22x22_flt-include.png \ hicolor_status_22x22_flt-exclude.png \ @@ -97,6 +98,8 @@ private_icons = \ hicolor_status_22x22_pm-deposit.png \ hicolor_status_16x16_pm-fifee.png \ hicolor_status_22x22_pm-fifee.png \ + hicolor_status_16x16_pm-directdebit.png \ + hicolor_status_22x22_pm-directdebit.png \ hicolor_status_22x22_prf-general.png \ hicolor_status_48x48_prf-general.png \ hicolor_status_22x22_prf-interface.png \ diff --git a/data/icons/Makefile.in b/data/icons/Makefile.in index 90201a61d6d5f1fde4167a0f07167c7d2556f5fb..605249efa8d7f2196d952bb9773b1e1444fcfbc4 100644 --- a/data/icons/Makefile.in +++ b/data/icons/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,23 +14,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ esac; \ - test $$am__dry = yes; \ - } + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -49,7 +76,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = data/icons -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -58,6 +86,18 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ @@ -65,6 +105,7 @@ am__can_run_installinfo = \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ @@ -246,6 +287,7 @@ private_icons = \ hicolor_actions_22x22_hb-legend.png \ hicolor_actions_22x22_hb-rate.png \ hicolor_actions_16x16_lpi-help.png \ + hicolor_status_22x22_btn-split.png \ hicolor_status_22x22_flt-inactive.png \ hicolor_status_22x22_flt-include.png \ hicolor_status_22x22_flt-exclude.png \ @@ -273,6 +315,8 @@ private_icons = \ hicolor_status_22x22_pm-deposit.png \ hicolor_status_16x16_pm-fifee.png \ hicolor_status_22x22_pm-fifee.png \ + hicolor_status_16x16_pm-directdebit.png \ + hicolor_status_22x22_pm-directdebit.png \ hicolor_status_22x22_prf-general.png \ hicolor_status_48x48_prf-general.png \ hicolor_status_22x22_prf-interface.png \ @@ -331,11 +375,11 @@ $(top_srcdir)/configure: $(am__configure_deps) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): -tags: TAGS -TAGS: +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) @@ -470,16 +514,16 @@ uninstall-am: uninstall-local .MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-data-local install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-data-local install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-local + pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-local update-icon-cache: diff --git a/data/icons/hicolor_status_16x16_pm-directdebit.png b/data/icons/hicolor_status_16x16_pm-directdebit.png new file mode 100644 index 0000000000000000000000000000000000000000..cdb11514f1a9ef1677ae965de974d9e9131c7219 Binary files /dev/null and b/data/icons/hicolor_status_16x16_pm-directdebit.png differ diff --git a/data/icons/hicolor_status_22x22_btn-split.png b/data/icons/hicolor_status_22x22_btn-split.png new file mode 100644 index 0000000000000000000000000000000000000000..47d9a7d183cd1deb8f2202c6ab9da529b72bcda0 Binary files /dev/null and b/data/icons/hicolor_status_22x22_btn-split.png differ diff --git a/data/icons/hicolor_status_22x22_pm-directdebit.png b/data/icons/hicolor_status_22x22_pm-directdebit.png new file mode 100644 index 0000000000000000000000000000000000000000..238c64d84fbb025fc53b0537f9726e1e0cc4b37f Binary files /dev/null and b/data/icons/hicolor_status_22x22_pm-directdebit.png differ diff --git a/doc/Makefile.in b/doc/Makefile.in index 6f668cb8379bb7b2be3059d349c9dcb852125c4c..09934ef6d87df617ef40c48cd8ed52e9d32259f1 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -50,7 +77,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = doc -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs TODO ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -59,15 +87,28 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -104,9 +145,29 @@ am__installdirs = "$(DESTDIR)$(helpdir)" DATA = $(help_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -307,22 +368,25 @@ uninstall-helpDATA: dir='$(DESTDIR)$(helpdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ @@ -337,57 +401,12 @@ $(RECURSIVE_TARGETS): $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" -$(RECURSIVE_CLEAN_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ @@ -403,12 +422,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ + $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -420,15 +434,11 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $$unique; \ fi; \ fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -437,6 +447,21 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -600,22 +625,20 @@ ps-am: uninstall-am: uninstall-helpDATA -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ - install-am install-strip tags-recursive - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am check check-am clean clean-generic ctags \ - ctags-recursive distclean distclean-generic distclean-tags \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-helpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-helpDATA +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic cscopelist-am ctags ctags-am \ + distclean distclean-generic distclean-tags distdir dvi dvi-am \ + html html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-helpDATA install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-helpDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/doc/images/Makefile.in b/doc/images/Makefile.in index 142eaa3bf9fd7b6eefc8cd4dc3356c8a5de801c9..ec16c4fb6505db63ca779b4636e48ebeaaf764dd 100644 --- a/doc/images/Makefile.in +++ b/doc/images/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -50,7 +77,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = doc/images -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -59,6 +87,18 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ @@ -95,6 +135,7 @@ am__uninstall_files_from_dir = { \ } am__installdirs = "$(DESTDIR)$(imagesdir)" DATA = $(images_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ @@ -264,11 +305,11 @@ uninstall-imagesDATA: @list='$(images_DATA)'; test -n "$(imagesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(imagesdir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) @@ -406,16 +447,17 @@ uninstall-am: uninstall-imagesDATA .MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-imagesDATA install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-imagesDATA +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ + install-imagesDATA install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am uninstall-imagesDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/images/Makefile.in b/images/Makefile.in index 142956c4e6c1e764224260aaa5e24dec274d41bc..5ff215d8c5bb1011ae900721c52827daf8c11f22 100644 --- a/images/Makefile.in +++ b/images/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -50,7 +77,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = images -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -59,6 +87,18 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ @@ -95,6 +135,7 @@ am__uninstall_files_from_dir = { \ } am__installdirs = "$(DESTDIR)$(imagedatadir)" DATA = $(imagedata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ @@ -266,11 +307,11 @@ uninstall-imagedataDATA: @list='$(imagedata_DATA)'; test -n "$(imagedatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(imagedatadir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) @@ -408,16 +449,17 @@ uninstall-am: uninstall-imagedataDATA .MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-imagedataDATA install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-imagedataDATA +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ + install-imagedataDATA install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am uninstall-imagedataDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/mime/Makefile.in b/mime/Makefile.in index 638cdcd5789bd2bf5c8ab1b5c687851304b5099a..1a7d4a4e05c5f54bd7c73f792c964cd12cca95ab 100644 --- a/mime/Makefile.in +++ b/mime/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ - test $$am__dry = yes; \ - } + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -50,7 +77,8 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = mime -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -59,6 +87,18 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ @@ -96,6 +136,7 @@ am__uninstall_files_from_dir = { \ am__installdirs = "$(DESTDIR)$(appdir)" "$(DESTDIR)$(mimedir)" \ "$(DESTDIR)$(mimexmldir)" DATA = $(app_DATA) $(mime_DATA) $(mimexml_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ @@ -318,11 +359,11 @@ uninstall-mimexmlDATA: @list='$(mimexml_DATA)'; test -n "$(mimexmldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(mimexmldir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: +tags TAGS: -ctags: CTAGS -CTAGS: +ctags CTAGS: + +cscope cscopelist: distdir: $(DISTFILES) @@ -462,18 +503,19 @@ uninstall-am: uninstall-appDATA uninstall-local uninstall-mimeDATA \ .MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-appDATA install-data \ - install-data-am install-data-local install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-mimeDATA \ - install-mimexmlDATA install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ - uninstall-am uninstall-appDATA uninstall-local \ - uninstall-mimeDATA uninstall-mimexmlDATA +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-appDATA \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-mimeDATA install-mimexmlDATA install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-appDATA uninstall-local uninstall-mimeDATA \ + uninstall-mimexmlDATA # $(mimeicon_DATA) diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 6891e8f7d9f1baaf5e0acc78c2c316204adcb03a..06a8cfe92783e4d0bf473c6484d9fe48e1ffa77c 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -21,7 +21,7 @@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ -SHELL = /bin/sh +SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ @@ -49,21 +49,21 @@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist -GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot +MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist +GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ -PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi) +PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) -USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi) +USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) -USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) +USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) -POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) +POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) -DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES) -EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS +DISTFILES = Makefile.in.in POTFILES.in $(POFILES) +EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out @@ -73,15 +73,20 @@ CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$l .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) +INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) +INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; + .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: - $(MSGFMT) -o $@ $< + $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< .po.gmo: - file=`echo $* | sed 's,.*/,,'`.gmo \ + $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: @@ -101,7 +106,6 @@ install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all - $(mkdir_p) $(DESTDIR)$(itlocaledir) linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ @@ -130,7 +134,7 @@ install-data-yes: all done # Empty stubs to satisfy archaic automake needs -dvi info tags TAGS ID: +dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: diff --git a/src/Makefile.am b/src/Makefile.am index 835358a2fa3e850b862fa0efa4bb846c6e9022fb..4115add2ba511449e529e3d53f04a9161f664ffc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -108,7 +108,7 @@ homebank_SOURCES = \ ui-widgets.c \ ui-widgets.h \ gtk-chart-colors.c \ - gtk-chart-colors.h + gtk-chart-colors.h homebank_LDADD = $(DEPS_LIBS) diff --git a/src/Makefile.in b/src/Makefile.in index 5436bed95e416f0bcba0c249dd1dea84d455dcfe..95b570383ccefa5aba296bca7dc213a745687d35 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,23 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ esac; \ - test $$am__dry = yes; \ - } + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -51,7 +78,8 @@ PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = homebank$(EXEEXT) subdir = src -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -84,14 +112,34 @@ am_homebank_OBJECTS = dsp_account.$(OBJEXT) dsp_mainwindow.$(OBJEXT) \ homebank_OBJECTS = $(am_homebank_OBJECTS) am__DEPENDENCIES_1 = homebank_DEPENDENCIES = $(am__DEPENDENCIES_1) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = SOURCES = $(homebank_SOURCES) DIST_SOURCES = $(homebank_SOURCES) am__can_run_installinfo = \ @@ -99,6 +147,23 @@ am__can_run_installinfo = \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -110,8 +175,6 @@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ @@ -129,7 +192,6 @@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ @@ -137,8 +199,6 @@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ @@ -154,9 +214,7 @@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ -MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ @@ -170,10 +228,6 @@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ @@ -325,7 +379,7 @@ homebank_SOURCES = \ ui-widgets.c \ ui-widgets.h \ gtk-chart-colors.c \ - gtk-chart-colors.h + gtk-chart-colors.h homebank_LDADD = $(DEPS_LIBS) AM_CPPFLAGS = \ @@ -375,10 +429,11 @@ install-binPROGRAMS: $(bin_PROGRAMS) fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p; \ - then echo "$$p"; echo "$$p"; else :; fi; \ + while read p p1; do if test -f $$p \ + ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ - sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + sed -e 'p;s,.*/,,;n;h' \ + -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ @@ -399,16 +454,18 @@ uninstall-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' `; \ + -e 's/$$/$(EXEEXT)/' \ + `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) + homebank$(EXEEXT): $(homebank_OBJECTS) $(homebank_DEPENDENCIES) $(EXTRA_homebank_DEPENDENCIES) @rm -f homebank$(EXEEXT) - $(LINK) $(homebank_OBJECTS) $(homebank_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(homebank_OBJECTS) $(homebank_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -465,39 +522,28 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui-widgets.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ + $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -509,15 +555,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $$unique; \ fi; \ fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -526,6 +568,21 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -668,18 +725,19 @@ uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic ctags distclean distclean-compile \ - distclean-generic distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ + clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ + distclean distclean-compile distclean-generic distclean-tags \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-binPROGRAMS install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am \ + uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/src/dsp_account.c b/src/dsp_account.c index 658268e873912143010e4fed0889603c46cf8734..5de8a318b6d190e7df1ef7d3e440dcb122f6f4ec 100644 --- a/src/dsp_account.c +++ b/src/dsp_account.c @@ -57,193 +57,104 @@ extern gchar *CYA_FLT_TYPE[]; extern gchar *CYA_FLT_STATUS[]; -static void account_action_close(GtkAction *action, gpointer user_data); +static void register_panel_collect_filtered_txn(GtkWidget *view); +static void register_panel_listview_populate(GtkWidget *view); +static void register_panel_action(GtkWidget *widget, gpointer user_data); +static void register_panel_update(GtkWidget *widget, gpointer user_data); -static void account_action_editfilter(GtkAction *action, gpointer user_data); +static void register_panel_export_csv(GtkWidget *widget, gpointer user_data); -static void account_action_add(GtkAction *action, gpointer user_data); -static void account_action_inherit(GtkAction *action, gpointer user_data); -static void account_action_edit(GtkAction *action, gpointer user_data); -static void account_action_reconcile(GtkAction *action, gpointer user_data); -static void account_action_remove(GtkAction *action, gpointer user_data); -static void account_action_createtemplate(GtkAction *action, gpointer user_data); - -static void account_action_exportcsv(GtkAction *action, gpointer user_data); - -static void account_action_assign(GtkAction *action, gpointer user_data); -static void account_populate(GtkWidget *view); -static void account_action(GtkWidget *widget, gpointer user_data); -static void account_toggle(GtkWidget *widget, gpointer user_data); -static void account_update(GtkWidget *widget, gpointer user_data); - -static void account_export_csv(GtkWidget *widget, gpointer user_data); - -static void account_make_archive(GtkWidget *widget, gpointer user_data); +static void register_panel_make_archive(GtkWidget *widget, gpointer user_data); static void reconcile_selected_foreach_func (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer userdata); Transaction *get_active_transaction(GtkTreeView *treeview); -static void account_action(GtkWidget *widget, gpointer user_data); -static void account_toggle(GtkWidget *widget, gpointer user_data); -static void account_selection(GtkTreeSelection *treeselection, gpointer user_data); -static void account_onRowActivated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col, gpointer userdata); - -static GtkActionEntry entries[] = { - - /* name, stock id, label */ - { "AccountMenu" , NULL, N_("_Account"), NULL, NULL, NULL }, - { "TransactionMenu", NULL, N_("Transacti_on"), NULL, NULL, NULL }, - { "ActionsMenu" , NULL, N_("_Actions"), NULL, NULL, NULL }, - { "ToolsMenu" , NULL, N_("_Tools"), NULL, NULL, NULL }, - - { "Close" , GTK_STOCK_CLOSE , N_("_Close") , NULL, N_("Close the current account"), G_CALLBACK (account_action_close) }, - - /* name, stock id, label, accelerator, tooltip */ - { "Filter" , "hb-filter" , N_("_Filter..."), NULL, N_("Open the list filter"), G_CALLBACK (account_action_editfilter) }, - - { "Add" , HB_STOCK_OPE_ADD , N_("_Add..."), NULL, N_("Add a new transaction"), G_CALLBACK (account_action_add) }, - { "Inherit" , HB_STOCK_OPE_HERIT , N_("_Inherit..."), NULL, N_("Inherit from the active transaction"), G_CALLBACK (account_action_inherit) }, - { "Edit" , HB_STOCK_OPE_EDIT , N_("_Edit..."), NULL, N_("Edit the active transaction"), G_CALLBACK (account_action_edit) }, - { "Reconcile" , "hb-ope-valid" , N_("_Reconciled"), "r", N_("Toggle reconciled status of active transactions"), G_CALLBACK (account_action_reconcile) }, - { "Remove" , HB_STOCK_OPE_DELETE , N_("_Remove..."), NULL, N_("Remove the active transactions"), G_CALLBACK (account_action_remove) }, - { "CreateTemplate" , NULL , N_("Create template..."), NULL, NULL, G_CALLBACK (account_action_createtemplate) }, - - { "Assign" , "hb-assign-run" , N_("Auto. Assignments"), NULL, N_("Run auto assignments"), G_CALLBACK (account_action_assign) }, - { "Export" , "hb-file-export" , N_("Export CSV..."), NULL, N_("Export as CSV"), G_CALLBACK (account_action_exportcsv) }, - -}; -static guint n_entries = G_N_ELEMENTS (entries); +static void register_panel_selection(GtkTreeSelection *treeselection, gpointer user_data); +static void register_panel_onRowActivated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col, gpointer userdata); -static const gchar *ui_info = -"" -" " - -" " -" " -" " - -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " - -" " -" " -" " -" " -" " - -" " -" " -" " -" " -" " - -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -""; /* account action functions -------------------- */ -static void account_action_close(GtkAction *action, gpointer user_data) -{ -struct account_data *data = user_data; - - DB( g_print("action close\n") ); - - DB( g_print("window %p\n", data->window) ); - - gtk_widget_destroy (GTK_WIDGET (data->window)); - - //g_signal_emit_by_name(data->window, "delete-event", NULL, &result); - -} -static void account_action_editfilter(GtkAction *action, gpointer user_data) +static void register_panel_action_editfilter(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_FILTER)); + register_panel_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_FILTER)); } -static void account_action_add(GtkAction *action, gpointer user_data) +static void register_panel_action_add(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_ADD)); + register_panel_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_ADD)); } -static void account_action_inherit(GtkAction *action, gpointer user_data) +static void register_panel_action_inherit(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_INHERIT)); + register_panel_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_INHERIT)); } -static void account_action_edit(GtkAction *action, gpointer user_data) +static void register_panel_action_edit(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_EDIT)); + register_panel_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_EDIT)); } -static void account_action_reconcile(GtkAction *action, gpointer user_data) +static void register_panel_action_reconcile(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_RECONCILE)); + register_panel_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_RECONCILE)); } -static void account_action_remove(GtkAction *action, gpointer user_data) +static void register_panel_action_remove(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_REMOVE)); + register_panel_action(data->window, GINT_TO_POINTER(ACTION_ACCOUNT_REMOVE)); } -static void account_action_createtemplate(GtkAction *action, gpointer user_data) +static void register_panel_action_createtemplate(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_make_archive(data->window, NULL); + register_panel_make_archive(data->window, NULL); } -static void account_action_exportcsv(GtkAction *action, gpointer user_data) +static void register_panel_action_exportcsv(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; - account_export_csv(data->window, NULL); + register_panel_export_csv(data->window, NULL); } +static void register_panel_action_exportqif(GtkAction *action, gpointer user_data) +{ +struct register_panel_data *data = user_data; +gchar *filename; + DB( g_print("(qif) test qif export\n\n") ); + if( ui_file_chooser_qif(GTK_WINDOW(data->window), &filename) == TRUE ) + { + hb_export_qif_account_single(filename, data->acc); + g_free( filename ); + } +} -static void account_action_assign(GtkAction *action, gpointer user_data) +static void register_panel_action_assign(GtkAction *action, gpointer user_data) { -struct account_data *data = user_data; +struct register_panel_data *data = user_data; gint count; gboolean usermode = TRUE; @@ -271,15 +182,28 @@ gboolean usermode = TRUE; } +static void register_panel_action_close(GtkAction *action, gpointer user_data) +{ +struct register_panel_data *data = user_data; + + DB( g_print("action close\n") ); + + DB( g_print("window %p\n", data->window) ); + + gtk_widget_destroy (GTK_WIDGET (data->window)); + + //g_signal_emit_by_name(data->window, "delete-event", NULL, &result); + +} /* these 5 functions are independant from account window */ /* account functions -------------------- */ -static void account_export_csv(GtkWidget *widget, gpointer user_data) +static void register_panel_export_csv(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; gchar *filename = NULL; GtkTreeModel *model; GtkTreeIter iter; @@ -395,9 +319,9 @@ GIOChannel *io; /* ** make an archive with the active transaction */ -static void account_make_archive(GtkWidget *widget, gpointer user_data) +static void register_panel_make_archive(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; DB( g_print("\n[account] make archive\n") ); @@ -478,9 +402,9 @@ gint result, count; } -static void account_cb_filter_daterange(GtkWidget *widget, gpointer user_data) +static void register_panel_cb_filter_daterange(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; gint range; DB( g_print("\n[account] filter_daterange\n") ); @@ -492,23 +416,25 @@ gint range; if(range != FLT_RANGE_OTHER) { filter_preset_daterange_set(data->filter, range); - account_populate(data->LV_ope); + register_panel_collect_filtered_txn(data->LV_ope); + register_panel_listview_populate(data->LV_ope); } else { if(ui_flt_manage_dialog_new(data->filter, FALSE) != GTK_RESPONSE_REJECT) { - account_populate(data->LV_ope); - account_update(data->LV_ope, GINT_TO_POINTER(UF_SENSITIVE+UF_BALANCE)); + register_panel_collect_filtered_txn(data->LV_ope); + register_panel_listview_populate(data->LV_ope); + register_panel_update(data->LV_ope, GINT_TO_POINTER(UF_SENSITIVE+UF_BALANCE)); } } } -static void account_cb_filter_type(GtkWidget *widget, gpointer user_data) +static void register_panel_cb_filter_type(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; gint type; DB( g_print("\n[account] filter_type\n") ); @@ -517,14 +443,15 @@ gint type; type = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_type)); filter_preset_type_set(data->filter, type); - - account_populate(data->LV_ope); + + register_panel_collect_filtered_txn(data->LV_ope); + register_panel_listview_populate(data->LV_ope); } -static void account_cb_filter_status(GtkWidget *widget, gpointer user_data) +static void register_panel_cb_filter_status(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; gint status; DB( g_print("\n[account] filter_status\n") ); @@ -533,14 +460,15 @@ gint status; status = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_status)); filter_preset_status_set(data->filter, status); - - account_populate(data->LV_ope); + + register_panel_collect_filtered_txn(data->LV_ope); + register_panel_listview_populate(data->LV_ope); } -static void account_cb_filter_reset(GtkWidget *widget, gpointer user_data) +static void register_panel_cb_filter_reset(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; DB( g_print("\n[account] filter_reset\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -549,8 +477,9 @@ struct account_data *data; filter_preset_daterange_set (data->filter, PREFS->date_range_txn); if(PREFS->hidereconciled) filter_preset_status_set (data->filter, 1); - - account_populate(data->LV_ope); + + register_panel_collect_filtered_txn(data->LV_ope); + register_panel_listview_populate(data->LV_ope); g_signal_handler_block(data->CY_range, data->handler_id[HID_RANGE]); g_signal_handler_block(data->CY_type, data->handler_id[HID_TYPE]); @@ -567,9 +496,9 @@ struct account_data *data; } -static void account_balance_refresh(GtkWidget *view) +static void register_panel_balance_refresh(GtkWidget *view) { -struct account_data *data; +struct register_panel_data *data; GList *list; gdouble balance; GtkTreeModel *model; @@ -624,72 +553,130 @@ gushort lpos = 1; } -static void account_populate(GtkWidget *view) +static void register_panel_collect_filtered_txn(GtkWidget *view) { -struct account_data *data; -GtkTreeModel *model; -GtkTreeIter iter; +struct register_panel_data *data; +guint i; GList *list; - data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(view, GTK_TYPE_WINDOW)), "inst_data"); - + DB( g_print("\n[register_panel] collect_filtered_txn\n") ); - DB( g_print("\n[account] populate\n") ); - - model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); - - gtk_list_store_clear (GTK_LIST_STORE(model)); - - g_object_ref(model); /* Make sure the model stays with us after the tree view unrefs it */ - gtk_tree_view_set_model(GTK_TREE_VIEW(view), NULL); /* Detach model from view */ + data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(view, GTK_TYPE_WINDOW)), "inst_data"); - //... insert a couple of thousand rows ... + if(data->gpatxn != NULL) + g_ptr_array_free (data->gpatxn, TRUE); - data->hidden = 0; - data->total = 0; - data->totalsum = 0.0; +#if MYDEBUG == 1 + guint nbtxn = g_list_length (GLOBALS->ope_list); + g_print(" - nb txn %d\n", nbtxn); +#endif + + data->gpatxn = g_ptr_array_sized_new(64); + //data->hidden = 0; - //insert all glist item into treeview - list = g_list_first(GLOBALS->ope_list); + list = g_list_first(GLOBALS->ope_list); i=0; while (list != NULL) { - Transaction *ope; + Transaction *ope = list->data; - ope = list->data; if(ope->kacc == data->accnum) { - /* then filter on date */ if(filter_test(data->filter, ope) == 1) { - /* append to our treeview */ - gtk_list_store_append (GTK_LIST_STORE(model), &iter); - - //g_print(" populate: %s\n", ope->ope_Word); - - gtk_list_store_set (GTK_LIST_STORE(model), &iter, - LST_DSPOPE_DATAS, ope, - -1); - data->totalsum += ope->amount; - data->total++; + g_ptr_array_add(data->gpatxn, (gpointer)ope); } - else + /*else { - /* later */ data->hidden++; - - } + }*/ } +#if MYDEBUG == 1 + + if( !(i % 1000) ) { g_print(" - progress %d/%d\n", i, nbtxn); } + +#endif + i++; list = g_list_next(list); } + g_signal_handler_block(data->ST_search, data->handler_id[HID_SEARCH]); + gtk_entry_set_text (GTK_ENTRY(data->ST_search), ""); + g_signal_handler_unblock(data->ST_search, data->handler_id[HID_SEARCH]); - gtk_tree_view_set_model(GTK_TREE_VIEW(view), model); /* Re-attach model to view */ + +} - g_object_unref(model); +static void register_panel_listview_populate(GtkWidget *widget) +{ +struct register_panel_data *data; +GtkTreeModel *model; +GtkTreeIter iter; +gboolean hastext; +gchar *needle; +gint sort_column_id; +GtkSortType order; +guint i, qs_flag; + data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); + + DB( g_print("\n[register_panel] listview_populate\n") ); + + model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_ope)); + gtk_list_store_clear (GTK_LIST_STORE(model)); + + // ref model to keep it + g_object_ref(model); + gtk_tree_view_set_model(GTK_TREE_VIEW(data->LV_ope), NULL); + + // perf: if you leave the sort, insert is damned slow + gtk_tree_sortable_get_sort_column_id (GTK_TREE_SORTABLE(GTK_LIST_STORE(model)), &sort_column_id, &order); + + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(GTK_LIST_STORE(model)), GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID, PREFS->lst_ope_sort_order); + + hastext = gtk_entry_get_text_length (GTK_ENTRY(data->ST_search)) >= 2; + needle = (gchar *)gtk_entry_get_text(GTK_ENTRY(data->ST_search)); + + //build the mask flag for quick search + qs_flag = 0; + if(hastext) + { + qs_flag = list_transaction_get_quicksearch_column_mask(GTK_TREE_VIEW(data->LV_ope)); + } + + data->total = 0; + data->totalsum = 0.0; + + for(i=0;igpatxn->len;i++) + { + Transaction *txn = g_ptr_array_index(data->gpatxn, i); + gboolean insert = TRUE; + + if(hastext) + { + insert = filter_txn_search_match(needle, txn, qs_flag); + } + + if(insert) + { + gtk_list_store_append (GTK_LIST_STORE(model), &iter); + + gtk_list_store_set (GTK_LIST_STORE(model), &iter, + LST_DSPOPE_DATAS, txn, + -1); + + data->totalsum += txn->amount; + data->total++; + } + } + + gtk_tree_view_set_model(GTK_TREE_VIEW(data->LV_ope), model); /* Re-attach model to view */ + g_object_unref(model); + + // push back the sort id + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(GTK_LIST_STORE(model)), sort_column_id, order); /* update info range text */ { @@ -700,7 +687,7 @@ GList *list; g_free(daterange); } - account_update(view, GINT_TO_POINTER(UF_SENSITIVE+UF_BALANCE)); + register_panel_update(data->LV_ope, GINT_TO_POINTER(UF_SENSITIVE+UF_BALANCE)); } @@ -714,6 +701,10 @@ Transaction *trn; account_balances_sub(trn); trn->flags ^= OF_VALID; + //#1308745 remind flags is exclusive with reconciled + if(trn->flags & OF_VALID) + trn->flags &= ~(OF_REMIND); + trn->flags |= OF_CHANGED; account_balances_add(trn); @@ -773,9 +764,9 @@ GList *list; -static void account_action(GtkWidget *widget, gpointer user_data) +static void register_panel_action(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; gint action = GPOINTER_TO_INT(user_data); gboolean result; @@ -797,10 +788,11 @@ gboolean result; Transaction *src_txn; gint type = 0; + homebank_app_date_get_julian(); + if(action == ACTION_ACCOUNT_ADD) { DB( g_print("(transaction) add multiple\n") ); - //date = GLOBALS->today; src_txn = da_transaction_malloc(); src_txn->date = GLOBALS->today; src_txn->kacc = data->accnum; @@ -820,7 +812,7 @@ gboolean result; /* clone source transaction */ data->cur_ope = da_transaction_clone (src_txn); - if( PREFS->heritdate == FALSE ) //fix: 318733 + if( PREFS->heritdate == FALSE ) //fix: 318733 / 1335285 data->cur_ope->date = GLOBALS->today; deftransaction_set_transaction(dialog, data->cur_ope); @@ -830,7 +822,7 @@ gboolean result; { deftransaction_get(dialog, NULL); transaction_add(data->cur_ope, data->LV_ope, data->accnum); - account_update(widget, GINT_TO_POINTER(UF_BALANCE)); + register_panel_update(widget, GINT_TO_POINTER(UF_BALANCE)); data->acc->flags |= AF_ADDED; GLOBALS->changes_count++; //store last date @@ -938,7 +930,7 @@ gboolean result; da_transaction_copy(data->cur_ope, old_txn); - account_update(widget, GINT_TO_POINTER(UF_BALANCE)); + register_panel_update(widget, GINT_TO_POINTER(UF_BALANCE)); data->acc->flags |= AF_CHANGED; GLOBALS->changes_count++; @@ -1038,7 +1030,7 @@ gboolean result; gtk_tree_view_set_model(GTK_TREE_VIEW(data->LV_ope), model); /* Re-attach model to view */ g_object_unref(model); - account_update(widget, GINT_TO_POINTER(UF_BALANCE)); + register_panel_update(widget, GINT_TO_POINTER(UF_BALANCE)); data->acc->flags |= AF_CHANGED; @@ -1060,7 +1052,7 @@ gboolean result; //gtk_widget_queue_resize (data->LV_acc); - account_update(widget, GINT_TO_POINTER(UF_BALANCE)); + register_panel_update(widget, GINT_TO_POINTER(UF_BALANCE)); data->acc->flags |= AF_CHANGED; GLOBALS->changes_count++; @@ -1074,55 +1066,51 @@ gboolean result; if(ui_flt_manage_dialog_new(data->filter, FALSE) != GTK_RESPONSE_REJECT) { - account_populate(data->LV_ope); - account_update(data->LV_ope, GINT_TO_POINTER(UF_SENSITIVE+UF_BALANCE)); + register_panel_collect_filtered_txn(data->LV_ope); + register_panel_listview_populate(data->LV_ope); + register_panel_update(data->LV_ope, GINT_TO_POINTER(UF_SENSITIVE+UF_BALANCE)); + + g_signal_handler_block(data->CY_range, data->handler_id[HID_RANGE]); + gtk_combo_box_set_active(GTK_COMBO_BOX(data->CY_range), FLT_RANGE_OTHER); + g_signal_handler_unblock(data->CY_range, data->handler_id[HID_RANGE]); } } break; - //close - case ACTION_ACCOUNT_CLOSE: - { - DB( g_print(" - close\n") ); - - //g_signal_emit_by_name(data->window, "delete-event"); - - - } - break; } } -static void account_toggle(GtkWidget *widget, gpointer user_data) +static void register_panel_toggle_minor(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; DB( g_print("\n[account] toggle\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - account_update(data->LV_ope, GINT_TO_POINTER(UF_BALANCE)); + register_panel_update(data->LV_ope, GINT_TO_POINTER(UF_BALANCE)); gtk_tree_view_columns_autosize (GTK_TREE_VIEW(data->LV_ope)); } -static void account_selection(GtkTreeSelection *treeselection, gpointer user_data) + +static void register_panel_selection(GtkTreeSelection *treeselection, gpointer user_data) { DB( g_print("\n[account] selection changed cb\n") ); - account_update(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(UF_SENSITIVE)); + register_panel_update(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(UF_SENSITIVE)); } -static void account_update(GtkWidget *widget, gpointer user_data) +static void register_panel_update(GtkWidget *widget, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data; GtkTreeSelection *selection; gint flags = GPOINTER_TO_INT(user_data); gint count = 0; @@ -1168,11 +1156,21 @@ gint count = 0; } */ + // multiple: disable inherit, edit + sensitive = (count != 1 ) ? FALSE : TRUE; + gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/TxnBar/Inherit"), sensitive); + gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/TxnBar/Edit"), sensitive); + sensitive = (count > 0 ) ? TRUE : FALSE; // no selection: disable reconcile, remove gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/MenuBar/TransactionMenu/Reconcile"), sensitive); gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/MenuBar/TransactionMenu/Remove"), sensitive); - gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/MenuBar/TransactionMenu/CreateTemplate"), sensitive); + gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/MenuBar/TransactionMenu/Template"), sensitive); + + gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/TxnBar/Remove"), sensitive); + gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/TxnBar/Reconcile"), sensitive); + gtk_action_set_sensitive(gtk_ui_manager_get_action(data->ui, "/TxnBar/Template"), sensitive); + // multiple: disable inherit, edit sensitive = (count != 1 ) ? FALSE : TRUE; @@ -1207,7 +1205,7 @@ gint count = 0; { DB( printf(" - UF_BALANCE\n") ); - account_balance_refresh(widget); + register_panel_balance_refresh(widget); /* hb_label_set_colvaluecurr(GTK_LABEL(data->TX_balance[0]), data->acc->bal_bank, data->acc->kcur); @@ -1295,9 +1293,9 @@ gint count = 0; } -void account_onRowActivated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col, gpointer userdata) +void register_panel_onRowActivated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col, gpointer userdata) { -struct account_data *data; +struct register_panel_data *data; GtkTreeModel *model; GtkTreeIter iter; gint col_id, count; @@ -1323,30 +1321,34 @@ gboolean refreshbalance; if( count == 1) { - account_action(GTK_WIDGET(treeview), GINT_TO_POINTER(ACTION_ACCOUNT_EDIT)); + register_panel_action(GTK_WIDGET(treeview), GINT_TO_POINTER(ACTION_ACCOUNT_EDIT)); } else - if(col_id >= LST_DSPOPE_DATE ) + if(col_id >= LST_DSPOPE_DATE && col_id != LST_DSPOPE_BALANCE) { - GtkWidget *parentwindow, *dialog, *mainvbox, *widget1, *widget2, *content; + GtkWidget *parentwindow, *dialog, *mainbox, *widget1, *widget2, *content; parentwindow = gtk_widget_get_ancestor(GTK_WIDGET(treeview), GTK_TYPE_WINDOW); - dialog = gtk_dialog_new_with_buttons (NULL, - GTK_WINDOW (parentwindow), - 0, - GTK_STOCK_CANCEL, - GTK_RESPONSE_REJECT, - GTK_STOCK_OK, - GTK_RESPONSE_ACCEPT, - NULL); + dialog = gtk_dialog_new_with_buttons (NULL, + GTK_WINDOW (parentwindow), + 0, + GTK_STOCK_CANCEL, + GTK_RESPONSE_REJECT, + GTK_STOCK_OK, + GTK_RESPONSE_ACCEPT, + NULL); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); + gint w; + w = gtk_tree_view_column_get_width(GTK_TREE_VIEW_COLUMN(col)); + gtk_window_set_default_size (GTK_WINDOW(dialog), w + 40, 0); - mainvbox = gtk_vbox_new (FALSE, 0); content = gtk_dialog_get_content_area(GTK_DIALOG (dialog)); - gtk_box_pack_start (GTK_BOX (content), mainvbox, TRUE, TRUE, 0); - gtk_container_set_border_width (GTK_CONTAINER (mainvbox), HB_BOX_SPACING); + + mainbox = gtk_hbox_new (FALSE, 0); + gtk_container_set_border_width (GTK_CONTAINER (mainbox), HB_BOX_SPACING); + gtk_box_pack_start (GTK_BOX (content), mainbox, FALSE, FALSE, 0); widget1 = widget2 = NULL; @@ -1401,10 +1403,10 @@ gboolean refreshbalance; break; } - if(widget1 != NULL) gtk_box_pack_start (GTK_BOX (mainvbox), widget1, TRUE, TRUE, 0); - if(widget2 != NULL) gtk_box_pack_start (GTK_BOX (mainvbox), widget2, TRUE, TRUE, 0); + if(widget1 != NULL) gtk_box_pack_start (GTK_BOX (mainbox), widget1, TRUE, TRUE, 0); + if(widget2 != NULL) gtk_box_pack_start (GTK_BOX (mainbox), widget2, TRUE, TRUE, 0); - gtk_widget_show_all(mainvbox); + gtk_widget_show_all(mainbox); //wait for the user gint result = gtk_dialog_run (GTK_DIALOG (dialog)); @@ -1490,7 +1492,7 @@ gboolean refreshbalance; } if(refreshbalance) - account_update(GTK_WIDGET(treeview), GINT_TO_POINTER(UF_BALANCE)); + register_panel_update(GTK_WIDGET(treeview), GINT_TO_POINTER(UF_BALANCE)); g_list_foreach(selection, (GFunc)gtk_tree_path_free, NULL); @@ -1542,7 +1544,7 @@ static gint listview_context_cb (GtkWidget *widget, GdkEventButton *event, GtkWi /* ** populate the account window */ -void account_init_window(GtkWidget *widget, gpointer user_data) +void register_panel_window_init(GtkWidget *widget, gpointer user_data) { DB( g_print("\n[account] init window\n") ); @@ -1553,11 +1555,11 @@ void account_init_window(GtkWidget *widget, gpointer user_data) //DB( g_print(" mindate=%d, maxdate=%d %x\n", data->filter->mindate,data->filter->maxdate) ); DB( g_print(" - call update visual\n") ); - account_update(widget, GINT_TO_POINTER(UF_VISUAL)); + register_panel_update(widget, GINT_TO_POINTER(UF_VISUAL)); DB( g_print(" - set range or populate+update sensitive+balance\n") ); - account_cb_filter_reset(widget, user_data); + register_panel_cb_filter_reset(widget, user_data); } @@ -1565,9 +1567,9 @@ void account_init_window(GtkWidget *widget, gpointer user_data) ** */ static gboolean -account_getgeometry(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) +register_panel_getgeometry(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { -//struct account_data *data = user_data; +//struct register_panel_data *data = user_data; struct WinGeometry *wg; DB( g_print("\n[account] get geometry\n") ); @@ -1588,9 +1590,9 @@ struct WinGeometry *wg; /* ** */ -static gboolean account_dispose(GtkWidget *widget, GdkEvent *event, gpointer user_data) +static gboolean register_panel_dispose(GtkWidget *widget, GdkEvent *event, gpointer user_data) { -//struct account_data *data = user_data; +//struct register_panel_data *data = user_data; DB( g_print("\n[account] delete-event\n") ); @@ -1600,10 +1602,10 @@ static gboolean account_dispose(GtkWidget *widget, GdkEvent *event, gpointer use } /* Another callback */ -static gboolean account_destroy( GtkWidget *widget, +static gboolean register_panel_destroy( GtkWidget *widget, gpointer user_data ) { -struct account_data *data; +struct register_panel_data *data; data = g_object_get_data(G_OBJECT(widget), "inst_data"); @@ -1623,6 +1625,8 @@ struct account_data *data; DB( g_print(" user_data=%p to be free\n", user_data) ); g_free(data->wintitle); + if(data->gpatxn != NULL) + g_ptr_array_free (data->gpatxn, TRUE); da_filter_free(data->filter); @@ -1636,22 +1640,155 @@ struct account_data *data; } -// the window creation -GtkWidget *create_account_window(guint32 accnum, Account *acc) +static void +quick_search_activate_cb (GtkEntry *entry, gpointer user_data) { -struct account_data *data; +struct register_panel_data *data = user_data; + + register_panel_listview_populate (data->LV_ope); +} + + +static gint quick_search_text_changed_timeout (gpointer user_data) +{ +struct register_panel_data *data = user_data; + + DB( g_print("quick search timed out !\n") ); + + register_panel_listview_populate (data->window); + + data->timer_tag = 0; + + return FALSE; +} + +static void +quick_search_text_changed_cb (GtkEntry *entry, + GParamSpec *pspec, + gpointer user_data) +{ +struct register_panel_data *data = user_data; + + gboolean has_text; + + has_text = gtk_entry_get_text_length (entry) > 0; + gtk_entry_set_icon_sensitive (entry, + GTK_ENTRY_ICON_SECONDARY, + has_text); + + if(data->timer_tag == 0 ) + data->timer_tag = g_timeout_add( DEFAULT_DELAY, quick_search_text_changed_timeout, (gpointer)user_data); + + + +} + +static void +quick_search_icon_press_cb (GtkEntry *entry, + gint position, + GdkEventButton *event, + gpointer data) +{ + if (position == GTK_ENTRY_ICON_SECONDARY) + gtk_entry_set_text (entry, ""); +} + + +static GtkActionEntry entries[] = { + + /* name, stock id, label */ + { "AccountMenu" , NULL, N_("_Account"), NULL, NULL, NULL }, + { "TransactionMenu", NULL, N_("Transacti_on"), NULL, NULL, NULL }, + { "ActionsMenu" , NULL, N_("_Actions"), NULL, NULL, NULL }, + { "ToolsMenu" , NULL, N_("_Tools"), NULL, NULL, NULL }, + + { "Close" , GTK_STOCK_CLOSE , N_("_Close") , NULL, N_("Close the current account"), G_CALLBACK (register_panel_action_close) }, + + /* name, stock id, label, accelerator, tooltip */ + { "Filter" , "hb-filter" , N_("_Filter..."), NULL, N_("Open the list filter"), G_CALLBACK (register_panel_action_editfilter) }, + + { "Add" , HB_STOCK_OPE_ADD , N_("_Add..."), NULL, N_("Add a new transaction"), G_CALLBACK (register_panel_action_add) }, + { "Inherit" , HB_STOCK_OPE_HERIT , N_("_Inherit..."), NULL, N_("Inherit from the active transaction"), G_CALLBACK (register_panel_action_inherit) }, + { "Edit" , HB_STOCK_OPE_EDIT , N_("_Edit..."), NULL, N_("Edit the active transaction"), G_CALLBACK (register_panel_action_edit) }, + { "Reconcile" , "hb-ope-valid" , N_("_Reconciled"), "r", N_("Toggle reconciled status of active transactions"), G_CALLBACK (register_panel_action_reconcile) }, + { "Remove" , HB_STOCK_OPE_DELETE , N_("_Remove..."), NULL, N_("Remove the active transactions"), G_CALLBACK (register_panel_action_remove) }, + { "Template" , GTK_STOCK_CONVERT , N_("Create template..."), NULL, N_("Create template"), G_CALLBACK (register_panel_action_createtemplate) }, + + { "Assign" , "hb-assign-run" , N_("Auto. Assignments"), NULL, N_("Run auto assignments"), G_CALLBACK (register_panel_action_assign) }, + { "ExportQIF" , "hb-file-export" , N_("Export QIF..."), NULL, N_("Export as QIF"), G_CALLBACK (register_panel_action_exportqif) }, + { "ExportCSV" , "hb-file-export" , N_("Export CSV..."), NULL, N_("Export as CSV"), G_CALLBACK (register_panel_action_exportcsv) }, + +}; +static guint n_entries = G_N_ELEMENTS (entries); + +static const gchar *ui_info = +"" +" " + +" " +" " +" " + +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " + +" " +" " +" " +" " +" " +" " + +" " +" " +" " +" " +" " + +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +""; + + + + + +GtkWidget *register_panel_window_new(guint32 accnum, Account *acc) +{ +struct register_panel_data *data; struct WinGeometry *wg; -GtkWidget *window, *mainvbox, *vbox2, *hbox, *hbox2, *align; -GtkWidget *treeview, *check_button, *vbar, *label, *entry, *sw, *widget; -//GtkWidget *menu, *menu_items; +GtkWidget *window, *mainbox, *hbox, *hbox2, *align, *sw; +GtkWidget *treeview, *label, *widget; GtkUIManager *ui; GtkActionGroup *actions; GtkAction *action; GError *error = NULL; - DB( g_print("\n[account] create_account_window\n") ); + DB( g_print("\n[account] create_register_panel_window\n") ); - data = g_malloc0(sizeof(struct account_data)); + data = g_malloc0(sizeof(struct register_panel_data)); if(!data) return NULL; //disable define windows @@ -1677,15 +1814,15 @@ GError *error = NULL; // connect our dispose function g_signal_connect (window, "delete_event", - G_CALLBACK (account_dispose), (gpointer)data); + G_CALLBACK (register_panel_dispose), (gpointer)data); // connect our dispose function g_signal_connect (window, "destroy", - G_CALLBACK (account_destroy), (gpointer)data); + G_CALLBACK (register_panel_destroy), (gpointer)data); // connect our dispose function g_signal_connect (window, "configure-event", - G_CALLBACK (account_getgeometry), (gpointer)data); + G_CALLBACK (register_panel_getgeometry), (gpointer)data); @@ -1752,75 +1889,67 @@ GError *error = NULL; data->actions = actions; #endif - mainvbox = gtk_vbox_new (FALSE, 0); - gtk_container_add (GTK_CONTAINER (window), mainvbox); + mainbox = gtk_vbox_new (FALSE, 0); + gtk_container_add (GTK_CONTAINER (window), mainbox); - gtk_box_pack_start (GTK_BOX (mainvbox), - gtk_ui_manager_get_widget (ui, "/MenuBar"), - FALSE, FALSE, 0); + widget = gtk_ui_manager_get_widget (ui, "/MenuBar"); + //data->menu = widget; + gtk_box_pack_start (GTK_BOX (mainbox), widget, FALSE, FALSE, 0); - hbox2 = gtk_hbox_new (FALSE, HB_BOX_SPACING); - gtk_box_pack_start (GTK_BOX (mainvbox), hbox2, FALSE, FALSE, 0); + hbox = gtk_hbox_new (FALSE, 3*HB_BOX_SPACING); + gtk_container_set_border_width (GTK_CONTAINER(hbox), HB_BOX_SPACING); + gtk_box_pack_start (GTK_BOX (mainbox), hbox, FALSE, FALSE, 0); - data->TB_bar = gtk_ui_manager_get_widget (ui, "/ToolBar"); - gtk_box_pack_start (GTK_BOX (hbox2), data->TB_bar, TRUE, TRUE, 0); + // account name (+ balance) + align = gtk_alignment_new(0.0, 0.5, 0.0, 1.0); + gtk_alignment_set_padding(GTK_ALIGNMENT(align), 0, 0, 0, 4*HB_BOX_SPACING); + gtk_box_pack_start (GTK_BOX (hbox), align, TRUE, TRUE, 0); - hbox = gtk_hbox_new (FALSE, HB_BOX_SPACING); - gtk_container_set_border_width (GTK_CONTAINER(hbox), HB_BOX_SPACING + 4); - gtk_box_pack_start (GTK_BOX (hbox2), hbox, FALSE, FALSE, HB_BOX_SPACING); + label = gtk_label_new(data->acc->name); + gimp_label_set_attributes (GTK_LABEL (label), PANGO_ATTR_SCALE, PANGO_SCALE_LARGE, -1); + gtk_container_add (GTK_CONTAINER (align), label); + /* balances area */ + hbox2 = gtk_hbox_new (FALSE, HB_BOX_SPACING); + gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, FALSE, 0); - entry = gtk_label_new(NULL); - data->TX_balance[2] = entry; - gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); + label = gtk_label_new(NULL); + data->TX_balance[2] = label; + gtk_box_pack_end (GTK_BOX (hbox2), label, FALSE, FALSE, 0); label = gtk_label_new(_("Future:")); - gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); + gtk_box_pack_end (GTK_BOX (hbox2), label, FALSE, FALSE, 0); - entry = gtk_label_new(NULL); - data->TX_balance[1] = entry; - gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); + label = gtk_label_new(NULL); + data->TX_balance[1] = label; + gtk_box_pack_end (GTK_BOX (hbox2), label, FALSE, FALSE, 0); label = gtk_label_new(_("Today:")); - gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); + gtk_box_pack_end (GTK_BOX (hbox2), label, FALSE, FALSE, 0); - entry = gtk_label_new(NULL); - data->TX_balance[0] = entry; - gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); + label = gtk_label_new(NULL); + data->TX_balance[0] = label; + gtk_box_pack_end (GTK_BOX (hbox2), label, FALSE, FALSE, 0); label = gtk_label_new(_("Bank:")); - gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); + gtk_box_pack_end (GTK_BOX (hbox2), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); - //TRANSLATORS: this is for Euro specific users, a toggle to display in 'Minor' currency - check_button = gtk_check_button_new_with_mnemonic (_("Minor")); - data->CM_minor = check_button; - gtk_box_pack_end (GTK_BOX (hbox), check_button, FALSE, FALSE, 0); + //quick search + widget = gtk_entry_new (); + data->ST_search = widget; + gtk_entry_set_icon_from_stock (GTK_ENTRY (widget), GTK_ENTRY_ICON_PRIMARY, GTK_STOCK_FIND); + gtk_entry_set_icon_from_stock (GTK_ENTRY (widget), GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_CLEAR); + gtk_widget_set_size_request(widget, 240, -1); + gtk_box_pack_end (GTK_BOX (hbox), widget, FALSE, FALSE, 0); - // windows interior - vbox2 = gtk_vbox_new (FALSE, HB_BOX_SPACING); - gtk_container_set_border_width (GTK_CONTAINER(vbox2), HB_BOX_SPACING); - gtk_box_pack_start (GTK_BOX (mainvbox), vbox2, TRUE, TRUE, 0); + g_signal_connect (widget, "activate", G_CALLBACK (quick_search_activate_cb), data); + data->handler_id[HID_SEARCH] = g_signal_connect (widget, "notify::text", G_CALLBACK (quick_search_text_changed_cb), data); + g_signal_connect (widget, "icon-press", G_CALLBACK (quick_search_icon_press_cb), data); + + // windows interior hbox = gtk_hbox_new (FALSE, HB_BOX_SPACING); - gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0); + gtk_container_set_border_width (GTK_CONTAINER(hbox), HB_BOX_SPACING/2); - // account name (+ balance) - align = gtk_alignment_new(0.0, 0.5, 1.0, 1.0); - gtk_alignment_set_padding(GTK_ALIGNMENT(align), 0, 0, 0, 4*HB_BOX_SPACING); - gtk_box_pack_start (GTK_BOX (hbox), align, FALSE, FALSE, 0); - - label = gtk_label_new(data->acc->name); - gimp_label_set_attributes (GTK_LABEL (label), - PANGO_ATTR_SCALE, PANGO_SCALE_LARGE, - //PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, - -1); - gtk_container_add (GTK_CONTAINER (align), label); + gtk_box_pack_start (GTK_BOX (mainbox), hbox, FALSE, FALSE, 0); label = make_label(_("_Range:"), 1.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); @@ -1841,6 +1970,11 @@ GError *error = NULL; data->BT_reset = widget; gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); + //TRANSLATORS: this is for Euro specific users, a toggle to display in 'Minor' currency + widget = gtk_check_button_new_with_mnemonic (_("_Minor currency")); + data->CM_minor = widget; + gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); + label = gtk_label_new(NULL); data->TX_selection = label; gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); @@ -1863,31 +1997,53 @@ GError *error = NULL; sw = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); - gtk_box_pack_start (GTK_BOX (vbox2), sw, TRUE, TRUE, 0); - - //gtk_container_set_border_width (GTK_CONTAINER(sw), HB_BOX_SPACING); - - // create tree view treeview = (GtkWidget *)create_list_transaction(TRN_LIST_TYPE_BOOK, PREFS->lst_ope_columns); data->LV_ope = treeview; gtk_container_add (GTK_CONTAINER (sw), treeview); - - //todo:should move this + gtk_box_pack_start (GTK_BOX (mainbox), sw, TRUE, TRUE, 0); + + /* toolbars */ + hbox = gtk_hbox_new (FALSE, 0); + gtk_box_pack_start (GTK_BOX (mainbox), hbox, FALSE, FALSE, 0); + + widget = gtk_ui_manager_get_widget (ui, "/TxnBar"); + data->TB_bar = widget; + //gtk_widget_set_halign (widget, GTK_ALIGN_START); + gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); + + widget = gtk_ui_manager_get_widget (ui, "/ToolBar"); + data->TB_tools = widget; + gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); + + #ifdef G_OS_WIN32 + if(PREFS->toolbar_style == 0) + { + gtk_toolbar_unset_style(GTK_TOOLBAR(data->TB_bar)); + gtk_toolbar_unset_style(GTK_TOOLBAR(data->TB_tools)); + } + else + { + gtk_toolbar_set_style(GTK_TOOLBAR(data->TB_bar), PREFS->toolbar_style-1); + gtk_toolbar_set_style(GTK_TOOLBAR(data->TB_tools), PREFS->toolbar_style-1); + } + #endif + + //todo: should move this gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data->CM_minor),GLOBALS->minor); g_object_set_data(G_OBJECT(gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_ope))), "minor", data->CM_minor); // connect signals - data->handler_id[HID_RANGE] = g_signal_connect (data->CY_range , "changed", G_CALLBACK (account_cb_filter_daterange), NULL); - data->handler_id[HID_TYPE] = g_signal_connect (data->CY_type , "changed", G_CALLBACK (account_cb_filter_type), NULL); - data->handler_id[HID_STATUS] = g_signal_connect (data->CY_status, "changed", G_CALLBACK (account_cb_filter_status), NULL); + data->handler_id[HID_RANGE] = g_signal_connect (data->CY_range , "changed", G_CALLBACK (register_panel_cb_filter_daterange), NULL); + data->handler_id[HID_TYPE] = g_signal_connect (data->CY_type , "changed", G_CALLBACK (register_panel_cb_filter_type), NULL); + data->handler_id[HID_STATUS] = g_signal_connect (data->CY_status, "changed", G_CALLBACK (register_panel_cb_filter_status), NULL); - g_signal_connect (data->BT_reset , "clicked", G_CALLBACK (account_cb_filter_reset), NULL); + g_signal_connect (data->BT_reset , "clicked", G_CALLBACK (register_panel_cb_filter_reset), NULL); - g_signal_connect (data->CM_minor , "toggled", G_CALLBACK (account_toggle), NULL); + g_signal_connect (data->CM_minor , "toggled", G_CALLBACK (register_panel_toggle_minor), NULL); - //g_signal_connect (GTK_TREE_VIEW(treeview), "cursor-changed", G_CALLBACK (account_update), (gpointer)2); - g_signal_connect (gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)), "changed", G_CALLBACK (account_selection), NULL); - g_signal_connect (GTK_TREE_VIEW(treeview), "row-activated", G_CALLBACK (account_onRowActivated), GINT_TO_POINTER(2)); + //g_signal_connect (GTK_TREE_VIEW(treeview), "cursor-changed", G_CALLBACK (register_panel_update), (gpointer)2); + g_signal_connect (gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)), "changed", G_CALLBACK (register_panel_selection), NULL); + g_signal_connect (GTK_TREE_VIEW(treeview), "row-activated", G_CALLBACK (register_panel_onRowActivated), GINT_TO_POINTER(2)); //todo: test context menu diff --git a/src/dsp_account.h b/src/dsp_account.h index 73edd2cdd368ca745096db61aa357e4baada4a73..95ab02ac8b0b1ffebc62aa781a10a35b723da83b 100644 --- a/src/dsp_account.h +++ b/src/dsp_account.h @@ -37,13 +37,15 @@ enum { HID_RANGE, HID_TYPE, HID_STATUS, + HID_SEARCH, MAX_HID }; -struct account_data +struct register_panel_data { GtkWidget *window; GtkWidget *TB_bar; + GtkWidget *TB_tools; GtkWidget *CY_range; GtkWidget *CY_type; @@ -52,9 +54,12 @@ struct account_data GtkWidget *BT_reset; GtkWidget *TX_selection; + GtkWidget *ST_search; + GtkWidget *CM_minor; GtkWidget *TX_balance[3]; + GPtrArray *gpatxn; GtkWidget *LV_ope; gint busy; @@ -76,17 +81,18 @@ struct account_data Filter *filter; + guint timer_tag; + gulong handler_id[MAX_HID]; //gint change; /* change shouldbe done directly */ }; +#define DEFAULT_DELAY 750 /* Default delay in ms */ -GtkWidget *create_account_window(guint32 accnum, Account *acc); - +GtkWidget *register_panel_window_new(guint32 accnum, Account *acc); +void register_panel_window_init(GtkWidget *widget, gpointer user_data); -void account_init_window(GtkWidget *widget, gpointer user_data); -void account_busy(GtkWidget *widget, gboolean state); #endif /* __HOMEBANK_DSPACCOUNT_H__ */ diff --git a/src/dsp_mainwindow.c b/src/dsp_mainwindow.c index b4ffdb89fc4be5dcda9bc122dd1344b8fa7b7b84..a4af23d33ac38bcfd17a71deb4858c5fe89166b3 100644 --- a/src/dsp_mainwindow.c +++ b/src/dsp_mainwindow.c @@ -118,7 +118,6 @@ static void ui_mainwindow_action_about(void); static GtkWidget *ui_mainwindow_create_recent_chooser_menu (GtkRecentManager *manager); -static void ui_mainwindow_populate_upcoming(GtkWidget *widget, gpointer user_data); static void ui_mainwindow_populate_topspending(GtkWidget *widget, gpointer user_data); void ui_mainwindow_open(GtkWidget *widget, gpointer user_data); @@ -132,11 +131,12 @@ void ui_mainwindow_clear(GtkWidget *widget, gpointer user_data); gboolean ui_dialog_msg_savechanges(GtkWidget *widget, gpointer user_data); void ui_mainwindow_update(GtkWidget *widget, gpointer user_data); -void ui_mainwindow_check_scheduled(GtkWidget *widget, gpointer user_data); void ui_mainwindow_addtransactions(GtkWidget *widget, gpointer user_data); +void ui_mainwindow_recent_add (struct hbfile_data *data, const gchar *path); +static void ui_mainwindow_scheduled_populate(GtkWidget *widget, gpointer user_data); +void ui_mainwindow_scheduled_postall(GtkWidget *widget, gpointer user_data); -void ui_mainwindow_recent_add (struct hbfile_data *data, const gchar *path); extern gchar *CYA_ACC_TYPE[]; @@ -168,8 +168,8 @@ static GtkActionEntry entries[] = { { "Quit" , GTK_STOCK_QUIT , N_("_Quit") , NULL, N_("Quit homebank"), G_CALLBACK (ui_mainwindow_action_quit) }, /* Exchange */ - { "FileImport" , "hb-file-import" , N_("Import...") , NULL, N_("Open the import assistant"), G_CALLBACK (ui_mainwindow_action_import) }, - { "ExportQIF" , "hb-file-export" , N_("Export...") , NULL, N_("Open the export to QIF assistant"), G_CALLBACK (ui_mainwindow_action_export) }, + { "FileImport" , "hb-file-import" , N_("Import QIF/OFX/CSV...") , NULL, N_("Open the import assistant"), G_CALLBACK (ui_mainwindow_action_import) }, + { "ExportQIF" , "hb-file-export" , N_("Export QIF...") , NULL, N_("Open the export to QIF assistant"), G_CALLBACK (ui_mainwindow_action_export) }, { "Anonymize" , NULL , N_("Anonymize...") , NULL, NULL, G_CALLBACK (ui_mainwindow_action_anonymize) }, /* EditMenu */ @@ -535,7 +535,7 @@ gboolean result; static void ui_mainwindow_action_properties(void) { create_defhbfile_dialog(); - ui_mainwindow_update(GLOBALS->mainwindow, GINT_TO_POINTER(UF_TITLE+UF_SENSITIVE)); + ui_mainwindow_update(GLOBALS->mainwindow, GINT_TO_POINTER(UF_TITLE+UF_SENSITIVE+UF_REFRESHALL)); } static void ui_mainwindow_action_anonymize(void) @@ -597,13 +597,13 @@ GtkTreeModel *model; data = g_object_get_data(G_OBJECT(GLOBALS->mainwindow), "inst_data"); - // upcoming list have direct pointer to the arc (which may have chnaged) + // upcoming list have direct pointer to the arc (which may have changed) model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_upc)); gtk_list_store_clear (GTK_LIST_STORE(model)); ui_arc_manage_dialog(); - ui_mainwindow_populate_upcoming(GLOBALS->mainwindow, NULL); + ui_mainwindow_scheduled_populate(GLOBALS->mainwindow, NULL); ui_mainwindow_update(GLOBALS->mainwindow, GINT_TO_POINTER(UF_TITLE+UF_SENSITIVE)); } @@ -630,7 +630,6 @@ static void ui_mainwindow_action_preferences(void) struct hbfile_data *data = g_object_get_data(G_OBJECT(GLOBALS->mainwindow), "inst_data"); defpref_dialog_new(); - homebank_pref_createformat(); if(!PREFS->euro_active) { GtkToggleAction *action = (GtkToggleAction *)gtk_ui_manager_get_action(data->manager, "/MenuBar/ViewMenu/AsMinor"); @@ -692,8 +691,8 @@ GtkWidget *window; { if( data->acc->window == NULL ) { - window = create_account_window(data->acc->key, data->acc); - account_init_window(window, NULL); + window = register_panel_window_new(data->acc->key, data->acc); + register_panel_window_init(window, NULL); } else { @@ -712,19 +711,19 @@ static void ui_mainwindow_action_addtransactions(void) static void ui_mainwindow_action_checkscheduled(void) { - ui_mainwindow_check_scheduled(GLOBALS->mainwindow, GINT_TO_POINTER(TRUE)); + ui_mainwindow_scheduled_postall(GLOBALS->mainwindow, GINT_TO_POINTER(TRUE)); } static void ui_mainwindow_action_statistic(void) { - create_statistic_window(); + ui_repdist_window_new(); } static void ui_mainwindow_action_trendtime(void) { struct hbfile_data *data = g_object_get_data(G_OBJECT(GLOBALS->mainwindow), "inst_data"); - create_trendtime_window(data->acc != NULL ? data->acc->key : 0); + ui_reptime_window_new(data->acc != NULL ? data->acc->key : 0); } static void ui_mainwindow_action_budget(void) @@ -992,7 +991,7 @@ gboolean file_clear = GPOINTER_TO_INT(user_data); { ui_start_assistant(); ui_mainwindow_populate_accounts(GLOBALS->mainwindow, NULL); - ui_mainwindow_populate_upcoming(GLOBALS->mainwindow, NULL); + ui_mainwindow_scheduled_populate(GLOBALS->mainwindow, NULL); ui_mainwindow_populate_topspending(GLOBALS->mainwindow, NULL); } @@ -1015,7 +1014,7 @@ gint account = 1, count; data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); /* init the transaction */ - date = GLOBALS->today; + date = homebank_app_date_get_julian(); if(data->acc != NULL) account = data->acc->key; @@ -1163,6 +1162,7 @@ gdouble total, other; { guint nbsplit = da_transaction_splits_count(ope); Split *split; + struct tmptop *item; for(i=0;iamount, acc->kcur); trn_amount = split->amount; - if( trn_amount < 0 ) - { - struct tmptop *item; - + //#1297054 if( trn_amount < 0 ) { item = &g_array_index (garray, struct tmptop, pos); item->key = pos; item->value += trn_amount; DB( g_print(" - stored %.2f to item %d\n", trn_amount, pos) ); - } + //} } } else { - Category *catentry = da_cat_get(ope->kcat); - if(catentry) - pos = (catentry->flags & GF_SUB) ? catentry->parent : catentry->key; + Category *catentry = da_cat_get(ope->kcat); + struct tmptop *item; + + if(catentry) + pos = (catentry->flags & GF_SUB) ? catentry->parent : catentry->key; - if( trn_amount < 0 ) - { - struct tmptop *item; - + //#1297054 if( trn_amount < 0 ) { item = &g_array_index (garray, struct tmptop, pos); item->key = pos; item->value += trn_amount; DB( g_print(" - stored %.2f to item %d\n", trn_amount, pos) ); - } + //} } } @@ -1218,12 +1214,16 @@ next1: struct tmptop *item; item = &g_array_index (garray, struct tmptop, i); - total += item->value; + if(item->value < 0) + { + total += item->value; - if(i >= n_items) - other += item->value; + if(i >= n_items) + other += item->value; - DB( g_print(" - %d : k='%d' v='%f' t='%f'\n", i, item->key, item->value, total) ); + DB( g_print(" - %d : k='%d' v='%f' t='%f'\n", i, item->key, item->value, total) ); + + } } model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_top)); @@ -1285,7 +1285,6 @@ next1: gtk_chart_set_datas(GTK_CHART(data->RE_pie), model, LST_TOPSPEND_AMOUNT, NULL); //gtk_chart_show_legend(GTK_CHART(data->RE_pie), FALSE); - /* update info range text */ { gchar *daterange; @@ -1302,74 +1301,152 @@ next1: } -static void ui_mainwindow_populate_upcoming(GtkWidget *widget, gpointer user_data) +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +/* scheduled */ +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +static Archive * +ui_mainwindow_scheduled_get_selected_item(GtkTreeView *treeview) { -struct hbfile_data *data; -GtkTreeModel *model; -GtkTreeIter iter; -GList *list; -gdouble total = 0; -gint count = 0; -//Account *acc; +GtkTreeSelection *treeselection; +GtkTreeModel *model; +GtkTreeIter iter; - DB( g_print("\n[ui-mainwindow] refresh upcoming\n") ); + treeselection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); + if( gtk_tree_selection_get_selected(treeselection, &model, &iter) ) + { + Archive *arc; - data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); + gtk_tree_model_get(GTK_TREE_MODEL(model), &iter, LST_DSPUPC_DATAS, &arc, -1); + return arc; + } - DB( g_print(" - append limit today +%d days\n", archive_add_get_nbdays()) ); + return NULL; +} - model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_upc)); - gtk_list_store_clear (GTK_LIST_STORE(model)); +static void ui_mainwindow_scheduled_post_cb(GtkWidget *widget, gpointer user_data) +{ +struct hbfile_data *data = user_data; - list = g_list_first(GLOBALS->arc_list); - while (list != NULL) + Archive *arc = ui_mainwindow_scheduled_get_selected_item(GTK_TREE_VIEW(data->LV_upc)); + + if( (arc != NULL) ) { - Archive *arc = list->data; - guint decay; + if( scheduled_is_postable(arc) ) + { + Transaction *txn = da_transaction_malloc (); - if((arc->flags & OF_AUTO) && arc->kacc > 0) + da_transaction_init_from_template(txn, arc); + txn->date = scheduled_get_postdate(arc, arc->nextdate); + transaction_add(txn, NULL, 0); + GLOBALS->changes_count++; + + scheduled_date_advance(arc); + + da_transaction_free (txn); + } + else { - count++; - - decay = arc->nextdate - GLOBALS->today; - DB( g_print(" - append '%s' : %d\n", arc->wording, decay) ); + GtkWidget *window = create_deftransaction_window(GTK_WINDOW(data->window), TRANSACTION_EDIT_ADD); + gint result; + Transaction *txn; - gtk_list_store_append (GTK_LIST_STORE(model), &iter); - gtk_list_store_set (GTK_LIST_STORE(model), &iter, - LST_DSPUPC_DATAS, arc, - LST_DSPUPC_WORDING, arc->wording, - LST_DSPUPC_AMOUNT, arc->amount, - LST_DSPUPC_REMAINING, decay, - -1); + /* fill in the transaction */ + txn = da_transaction_malloc(); + da_transaction_init_from_template(txn, arc); + txn->date = scheduled_get_postdate(arc, arc->nextdate); - //acc = da_acc_get(arc->kacc); - //total += to_base_amount(arc->amount, acc->kcur); - total += arc->amount; + deftransaction_set_transaction(window, txn); + + result = gtk_dialog_run (GTK_DIALOG (window)); + + DB( g_print(" -> dialog result is %d\n", result) ); + + if(result == GTK_RESPONSE_ADD || result == GTK_RESPONSE_ACCEPT) + { + deftransaction_get(window, NULL); + transaction_add(txn, NULL, txn->kacc); + GLOBALS->changes_count++; + + scheduled_date_advance(arc); + + DB( g_print(" -> added 1 transaction to %d\n", txn->kacc) ); + } + + da_transaction_free(txn); - DB( g_print(" - total: %f\n", total) ); + deftransaction_dispose(window, NULL); + gtk_widget_destroy (window); + } - list = g_list_next(list); + + ui_mainwindow_update(GLOBALS->mainwindow, GINT_TO_POINTER(UF_REFRESHALL)); + } + - // insert total - if(count > 0 ) + +} + + +static void ui_mainwindow_scheduled_skip_cb(GtkWidget *widget, gpointer user_data) +{ +struct hbfile_data *data = user_data; + + Archive *arc = ui_mainwindow_scheduled_get_selected_item(GTK_TREE_VIEW(data->LV_upc)); + if( (arc != NULL) && (arc->flags & OF_AUTO) ) { - gtk_list_store_append (GTK_LIST_STORE(model), &iter); - gtk_list_store_set (GTK_LIST_STORE(model), &iter, - LST_DSPUPC_DATAS, NULL, - LST_DSPUPC_WORDING, _("Total"), - LST_DSPUPC_AMOUNT, total, - LST_DSPUPC_REMAINING, G_MAXINT32, - -1); + scheduled_date_advance(arc); + + ui_mainwindow_scheduled_populate(GLOBALS->mainwindow, NULL); + } +} + + + +static void ui_mainwindow_scheduled_update(GtkWidget *widget, gpointer user_data) +{ +struct hbfile_data *data; +//gint filter; + + DB( g_print("\n[ui-mainwindow] scheduled update\n") ); + + data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); + + //filter = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_sched_filter)); + + Archive *arc = ui_mainwindow_scheduled_get_selected_item(GTK_TREE_VIEW(data->LV_upc)); + + if(arc) + { + DB( g_print("archive is %s\n", arc->wording) ); + + gtk_widget_set_sensitive(GTK_WIDGET(data->BT_sched_post), TRUE); + gtk_widget_set_sensitive(GTK_WIDGET(data->BT_sched_skip), TRUE); + } + else + { + gtk_widget_set_sensitive(GTK_WIDGET(data->BT_sched_post), FALSE); + gtk_widget_set_sensitive(GTK_WIDGET(data->BT_sched_skip), FALSE); } } + + +static void ui_mainwindow_scheduled_selection_cb(GtkTreeSelection *treeselection, gpointer user_data) +{ + + + ui_mainwindow_scheduled_update(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(UF_SENSITIVE)); +} + + + /* ** called after load, importamiga, on demand */ -void ui_mainwindow_check_scheduled(GtkWidget *widget, gpointer user_data) +void ui_mainwindow_scheduled_postall(GtkWidget *widget, gpointer user_data) { //struct hbfile_data *data; gint count; @@ -1379,7 +1456,7 @@ gint usermode = GPOINTER_TO_INT(user_data); //data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - count = hbfile_insert_scheduled_transactions(); + count = scheduled_post_all_pending(); //inform the user if(usermode == TRUE) @@ -1406,6 +1483,93 @@ gint usermode = GPOINTER_TO_INT(user_data); } +static void ui_mainwindow_scheduled_populate(GtkWidget *widget, gpointer user_data) +{ +struct hbfile_data *data; +GtkTreeModel *model; +GtkTreeIter iter; +GList *list; +gdouble totexp = 0; +gdouble totinc = 0; +gint count = 0; +gchar buffer[256]; +guint32 maxpostdate; +GDate *date; +//Account *acc; + + DB( g_print("\n[ui-mainwindow] scheduled populate list\n") ); + + data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); + + model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_upc)); + gtk_list_store_clear (GTK_LIST_STORE(model)); + + homebank_app_date_get_julian(); + + maxpostdate = scheduled_date_get_post_max(); + + date = g_date_new_julian (maxpostdate); + g_date_strftime (buffer, 256-1, PREFS->date_format, date); + g_date_free(date); + + gtk_label_set_text(GTK_LABEL(data->LB_maxpostdate), buffer); + + + list = g_list_first(GLOBALS->arc_list); + while (list != NULL) + { + Archive *arc = list->data; + guint nbdays, nblate; + + if((arc->flags & OF_AUTO) ) //&& arc->kacc > 0) + { + count++; + nbdays = arc->nextdate - maxpostdate; + nblate = scheduled_get_latepost_count(arc, GLOBALS->today); + + DB( g_print(" - append '%s' : %d\n", arc->wording, nbdays) ); + + gtk_list_store_append (GTK_LIST_STORE(model), &iter); + gtk_list_store_set (GTK_LIST_STORE(model), &iter, + LST_DSPUPC_DATAS, arc, + LST_DSPUPC_WORDING, arc->wording, + LST_DSPUPC_EXPENSE, !(arc->flags & OF_INCOME) ? arc->amount : 0.0, + LST_DSPUPC_INCOME, (arc->flags & OF_INCOME) ? arc->amount : 0.0, + LST_DSPUPC_REMAINING, nbdays, + LST_DSPUPC_NB_LATE, nblate, + -1); + + //acc = da_acc_get(arc->kacc); + //total += to_base_amount(arc->amount, acc->kcur); + if(arc->flags & OF_INCOME) + totinc += arc->amount; + else + totexp += arc->amount; + + } + list = g_list_next(list); + } + + // insert total + if(count > 0 ) + { + gtk_list_store_append (GTK_LIST_STORE(model), &iter); + gtk_list_store_set (GTK_LIST_STORE(model), &iter, + LST_DSPUPC_DATAS, NULL, + LST_DSPUPC_WORDING, _("Total"), + LST_DSPUPC_EXPENSE, totexp, + LST_DSPUPC_INCOME, totinc, + -1); + } + + + ui_mainwindow_scheduled_update(widget, NULL); + +} + + + + /* ** */ @@ -1458,7 +1622,7 @@ gint r; hbfile_file_hasbackup(GLOBALS->xhb_filepath); if(PREFS->appendscheduled) - hbfile_insert_scheduled_transactions(); + scheduled_post_all_pending(); homebank_lastopenedfiles_save(); @@ -1467,7 +1631,7 @@ gint r; ui_mainwindow_recent_add(data, GLOBALS->xhb_filepath); ui_mainwindow_populate_accounts(GLOBALS->mainwindow, NULL); - ui_mainwindow_populate_upcoming(GLOBALS->mainwindow, NULL); + ui_mainwindow_scheduled_populate(GLOBALS->mainwindow, NULL); ui_mainwindow_populate_topspending(GLOBALS->mainwindow, NULL); } else @@ -1585,7 +1749,8 @@ gdouble gtbank, gttoday, gtfuture; while (elt != NULL) { acc = elt->data; - if( !(acc->flags & (AF_CLOSED|AF_NOREPORT|AF_NOSUMMARY)) ) + //#1339572 + if( !(acc->flags & (AF_CLOSED|AF_NOSUMMARY)) ) { DB( g_print(" -> insert %d:%s\n", acc->key, acc->name) ); @@ -1865,10 +2030,6 @@ gint flags; gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (data->LV_acc), PREFS->rules_hint); gtk_tree_view_columns_autosize (GTK_TREE_VIEW(data->LV_acc)); - //homebank_pref_createformat(); - homebank_pref_init_measurement_units(); - - DB( printf(" - show toolbar=%d\n", PREFS->wal_toolbar) ); if(PREFS->wal_toolbar) gtk_widget_show(GTK_WIDGET(data->toolbar)); @@ -1920,6 +2081,7 @@ gint flags; ui_mainwindow_populate_accounts(GLOBALS->mainwindow, NULL); ui_mainwindow_populate_topspending(GLOBALS->mainwindow, NULL); + ui_mainwindow_scheduled_populate(GLOBALS->mainwindow, NULL); } @@ -1982,7 +2144,7 @@ gboolean retval = FALSE; PREFS->wal_vpaned = gtk_paned_get_position(GTK_PANED(data->vpaned)); PREFS->wal_hpaned = gtk_paned_get_position(GTK_PANED(data->hpaned)); - DB( g_print(" -> paned position is %d\n", PREFS->wal_vpaned) ); + DB( g_print(" - vpaned=%d hpaned=%d\n", PREFS->wal_vpaned, PREFS->wal_hpaned) ); //todo if(ui_dialog_msg_savechanges(widget, NULL) == FALSE) @@ -2367,8 +2529,8 @@ GtkWidget *mainvbox, *align, *label, *widget, *sw; mainvbox = gtk_vbox_new (FALSE, 0); - label = make_label(NULL, 0.0, 0.5); - gtk_label_set_markup (GTK_LABEL(label), _("Your accounts")); + label = make_label(_("Your accounts"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); gtk_misc_set_padding (GTK_MISC(label), HB_BOX_SPACING, HB_BOX_SPACING/2); gtk_box_pack_start (GTK_BOX (mainvbox), label, FALSE, FALSE, 0); @@ -2397,9 +2559,9 @@ GtkWidget *label, *align, *widget; mainvbox = gtk_vbox_new (FALSE, 0); data->GR_top = mainvbox; - - label = make_label(NULL, 0.0, 0.5); - gtk_label_set_markup (GTK_LABEL(label), _("Where your money goes")); + + label = make_label(_("Where your money goes"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); gtk_misc_set_padding (GTK_MISC(label), HB_BOX_SPACING, HB_BOX_SPACING/2); gtk_box_pack_start (GTK_BOX (mainvbox), label, FALSE, FALSE, 0); @@ -2429,9 +2591,9 @@ GtkWidget *label, *align, *widget; hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); - widget = gtk_chart_new(CHART_PIE_TYPE); + widget = gtk_chart_new(CHART_TYPE_PIE); data->RE_pie = widget; - gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.suffix_symbol); + gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.symbol); gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); /* @@ -2443,13 +2605,86 @@ GtkWidget *label, *align, *widget; widget = (GtkWidget *)create_list_topspending(); data->LV_top = widget; - + + gtk_chart_show_legend(GTK_CHART(data->RE_pie), TRUE, TRUE); + // gtk_container_add (GTK_CONTAINER (sw), widget); return mainvbox; } +static GtkWidget *ui_mainwindow_scheduled_create(struct hbfile_data *data) +{ +GtkWidget *mainvbox, *hbox, *vbox, *sw, *tbar; +GtkWidget *label, *image, *align, *widget; +GtkToolItem *toolitem; + + mainvbox = gtk_vbox_new (FALSE, 0); + data->GR_upc = mainvbox; + + hbox = gtk_hbox_new (FALSE, HB_BOX_SPACING); + gtk_box_pack_start (GTK_BOX (mainvbox), hbox, FALSE, FALSE, 0); + + label = make_label(_("Scheduled transactions"), 0.0, 0.5); + //gtk_label_set_angle(GTK_LABEL(label), 90.0); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_misc_set_padding (GTK_MISC(label), HB_BOX_SPACING, HB_BOX_SPACING/2); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); + + label = make_label(_("maximum post date"), 0.0, 0.7); + gimp_label_set_attributes (GTK_LABEL (label), PANGO_ATTR_SCALE, PANGO_SCALE_SMALL, -1); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); + + label = make_label(NULL, 0.0, 0.7); + data->LB_maxpostdate = label; + gimp_label_set_attributes (GTK_LABEL (label), PANGO_ATTR_SCALE, PANGO_SCALE_SMALL, -1); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); + + align = gtk_alignment_new(0, 0, 1.0, 1.0); + // top, bottom, left, right + gtk_alignment_set_padding (GTK_ALIGNMENT(align), 0, HB_BOX_SPACING, 2*HB_BOX_SPACING, HB_BOX_SPACING); + gtk_box_pack_start (GTK_BOX (mainvbox), align, TRUE, TRUE, 0); + + vbox = gtk_vbox_new (FALSE, 0); + gtk_container_add (GTK_CONTAINER (align), vbox); + + sw = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_ETCHED_IN); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE, TRUE, 0); + + widget = (GtkWidget *)create_list_upcoming(); + data->LV_upc = widget; + gtk_container_add (GTK_CONTAINER (sw), widget); + + tbar = gtk_toolbar_new(); + gtk_toolbar_set_icon_size (GTK_TOOLBAR(tbar), GTK_ICON_SIZE_MENU); + gtk_toolbar_set_style(GTK_TOOLBAR(tbar), GTK_TOOLBAR_ICONS); + gtk_box_pack_start (GTK_BOX (vbox), tbar, FALSE, FALSE, 0); + + /*widget = gtk_tool_item_new (); + label = gtk_label_new("test"); + gtk_container_add(GTK_CONTAINER(widget), label); + gtk_toolbar_insert(GTK_TOOLBAR(tbar), GTK_TOOL_ITEM(widget), -1);*/ + + image = gtk_image_new_from_icon_name ("media-skip-forward", GTK_ICON_SIZE_MENU); + toolitem = gtk_tool_button_new(image, NULL); + data->BT_sched_skip = toolitem; + gtk_toolbar_insert(GTK_TOOLBAR(tbar), GTK_TOOL_ITEM(toolitem), -1); + gtk_widget_set_tooltip_text(GTK_WIDGET(toolitem), _("Skip")); + + image = gtk_image_new_from_icon_name ("media-playback-start", GTK_ICON_SIZE_MENU); + toolitem = gtk_tool_button_new(image, NULL); + data->BT_sched_post = toolitem; + gtk_toolbar_insert(GTK_TOOLBAR(tbar), GTK_TOOL_ITEM(toolitem), -1); + gtk_widget_set_tooltip_text(GTK_WIDGET(toolitem), _("Post")); + + + + return mainvbox; +} + /* ** the window creation */ @@ -2457,10 +2692,8 @@ GtkWidget *create_hbfile_window(GtkWidget *do_widget) { struct hbfile_data *data; GtkWidget *mainvbox, *vbox, *vpaned, *hpaned; -GtkWidget *label, *widget; -GtkWidget *treeview, *sw; +GtkWidget *widget; GtkWidget *window; -GtkWidget *align; GtkAction *action; DB( g_print("\n[ui-mainwindow] create main window\n") ); @@ -2484,6 +2717,17 @@ GtkAction *action; ui_mainwindow_create_menu_bar_and_toolbar (data, mainvbox); +#if HB_UNSTABLE == TRUE +GtkWidget *bar, *label; + + bar = gtk_info_bar_new (); + gtk_box_pack_start (GTK_BOX (mainvbox), bar, FALSE, FALSE, 0); + gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_WARNING); + label = make_label(NULL, 0.5, 0.5); + gtk_label_set_markup (GTK_LABEL(label), "Unstable Development Version"); + gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE, FALSE, 0); +#endif + /* Add the main area */ vbox = gtk_vbox_new (FALSE, 0); //gtk_container_set_border_width (GTK_CONTAINER(vbox), HB_MAINBOX_SPACING); @@ -2495,38 +2739,16 @@ GtkAction *action; hpaned = gtk_hpaned_new(); data->hpaned = hpaned; - gtk_paned_pack1 (GTK_PANED(vpaned), hpaned, FALSE, FALSE); + gtk_paned_pack1 (GTK_PANED(vpaned), hpaned, TRUE, FALSE); widget = ui_mainwindow_create_youraccounts(data); - gtk_paned_pack1 (GTK_PANED(hpaned), widget, TRUE, FALSE); + gtk_paned_pack1 (GTK_PANED(hpaned), widget, FALSE, FALSE); widget = ui_mainwindow_create_topspending(data); - //gtk_widget_set_size_request (widget, 200, -1); - gtk_paned_pack2 (GTK_PANED(hpaned), widget, FALSE, FALSE); + gtk_paned_pack2 (GTK_PANED(hpaned), widget, TRUE, FALSE); - /* bill book :: échéancier */ - vbox = gtk_vbox_new (FALSE, 0); - data->GR_upc = vbox; - gtk_paned_pack2 (GTK_PANED(vpaned), vbox, FALSE, FALSE); - - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Scheduled transactions (next occurence)")); - gtk_misc_set_padding (GTK_MISC(label), HB_BOX_SPACING, HB_BOX_SPACING/2); - gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - - align = gtk_alignment_new(0, 0, 1.0, 1.0); - // top, bottom, left, right - gtk_alignment_set_padding (GTK_ALIGNMENT(align), 0, HB_BOX_SPACING, 2*HB_BOX_SPACING, HB_BOX_SPACING); - gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0); - - sw = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_ETCHED_IN); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_container_add (GTK_CONTAINER (align), sw); - - treeview = (GtkWidget *)create_list_upcoming(); - data->LV_upc = treeview; - gtk_container_add (GTK_CONTAINER (sw), treeview); + widget = ui_mainwindow_scheduled_create(data); + gtk_paned_pack2 (GTK_PANED(vpaned), widget, FALSE, FALSE); //todo: move this elsewhere @@ -2536,6 +2758,8 @@ GtkAction *action; filter_default_all_set(data->filter); gtk_combo_box_set_active(GTK_COMBO_BOX(data->CY_range), PREFS->date_range_wal); + DB( g_print(" - vpaned=%d hpaned=%d\n", PREFS->wal_vpaned, PREFS->wal_hpaned) ); + if(PREFS->wal_vpaned > 0) gtk_paned_set_position(GTK_PANED(data->vpaned), PREFS->wal_vpaned); if(PREFS->wal_hpaned > 0) @@ -2568,10 +2792,14 @@ GtkAction *action; g_signal_connect (gtk_tree_view_get_selection(GTK_TREE_VIEW(data->LV_acc)), "changed", G_CALLBACK (ui_mainwindow_selection), NULL); + g_signal_connect (GTK_TREE_VIEW(data->LV_acc), "row-activated", G_CALLBACK (ui_mainwindow_onRowActivated), GINT_TO_POINTER(2)); + g_signal_connect (gtk_tree_view_get_selection(GTK_TREE_VIEW(data->LV_upc)), "changed", G_CALLBACK (ui_mainwindow_scheduled_selection_cb), NULL); + g_signal_connect (G_OBJECT (data->BT_sched_post), "clicked", G_CALLBACK (ui_mainwindow_scheduled_post_cb), data); + g_signal_connect (G_OBJECT (data->BT_sched_skip), "clicked", G_CALLBACK (ui_mainwindow_scheduled_skip_cb), data); + g_signal_connect (data->CY_range, "changed", G_CALLBACK (ui_mainwindow_populate_topspending), NULL); - g_signal_connect (GTK_TREE_VIEW(data->LV_acc), "row-activated", G_CALLBACK (ui_mainwindow_onRowActivated), GINT_TO_POINTER(2)); /* GtkWindow events */ g_signal_connect (window, "delete-event", G_CALLBACK (ui_mainwindow_dispose), (gpointer)data); diff --git a/src/dsp_mainwindow.h b/src/dsp_mainwindow.h index 27e6fd95ec151b69494bcfca751e8c76dd2f4e89..7230f4134df49c2f812af83a3b64a920e70246b9 100644 --- a/src/dsp_mainwindow.h +++ b/src/dsp_mainwindow.h @@ -40,6 +40,9 @@ struct hbfile_data GtkWidget *GR_upc; GtkWidget *LV_upc; + GtkWidget *LB_maxpostdate; + GtkToolItem *BT_sched_post; + GtkToolItem *BT_sched_skip; gchar *wintitle; diff --git a/src/enums.h b/src/enums.h index e5c503925f5ca289fee8f5189480c7063a33c1fa..98586a997eda84ab66af7ed43543b25bb48203af 100644 --- a/src/enums.h +++ b/src/enums.h @@ -63,6 +63,8 @@ enum PAYMODE_EPAYMENT, PAYMODE_DEPOSIT, PAYMODE_FEE, + /* 4.6 new paymode */ + PAYMODE_DIRECTDEBIT, // PAYMODE_, NUM_PAYMODE_MAX }; diff --git a/src/gtk-chart-colors.c b/src/gtk-chart-colors.c index 31f9b9ed91fa40719ebae72c99b53e24aa79b871..de98590d6435f47fb5d2616c634aedcb5575e392 100644 --- a/src/gtk-chart-colors.c +++ b/src/gtk-chart-colors.c @@ -239,10 +239,11 @@ struct rgbcol global_colors[] = { { 0, 0, 0}, // black {255, 255, 255}, // white - {239, 239, 239}, // intermediate lines + {239, 239, 239}, // grey1 intermediate lines { 68, 68, 68}, // text { 51, 51, 51}, // x/y axis - + { 0, 0, 0}, // theme base + { 0, 0, 0}, // theme text }; diff --git a/src/gtk-chart-colors.h b/src/gtk-chart-colors.h index 8fabe41c1948b5a7cde4a032b58cfce2cf3497ea..6c31cdd464156085f2b85335dc90ddce0693cd17 100644 --- a/src/gtk-chart-colors.h +++ b/src/gtk-chart-colors.h @@ -52,7 +52,9 @@ enum { WHITE, GREY1, TEXT, - XYLINES + XYLINES, + THBASE, + THTEXT }; enum colmap diff --git a/src/gtk-chart.c b/src/gtk-chart.c index d00dd7893a216bf1124930bc99e7f0efcf716145..3c9b9149a1939c99ae02c363ebc5a7e580f3208f 100644 --- a/src/gtk-chart.c +++ b/src/gtk-chart.c @@ -37,33 +37,39 @@ #define DB(x); #endif -static void gtk_chart_class_init (GtkChartClass *klass); -static void gtk_chart_init (GtkChart *chart); -static void gtk_chart_destroy (GtkObject *chart); +static void gtk_chart_class_intern_init (gpointer); +static void gtk_chart_class_init (GtkChartClass *klass); +static void gtk_chart_init (GtkChart *chart); +static void gtk_chart_destroy (GtkObject *chart); -static gboolean chart_expose( GtkWidget *widget, GdkEventExpose *event, gpointer user_data); -static gboolean chart_motion(GtkWidget *widget, GdkEventMotion *event, gpointer user_data); -static gboolean chart_leave(GtkWidget *widget, GdkEventCrossing *event, gpointer user_data); -static gboolean chart_enter(GtkWidget *widget, GdkEventCrossing *event, gpointer user_data); -static void chart_sizeallocate(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data); -static void chart_tooltip_start_delay(GtkChart *chart); +static gboolean +drawarea_configure_event (GtkWidget *widget, + GdkEventConfigure *event, + gpointer user_data); +static void drawarea_sizeallocate_callback(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data); +static void drawarea_realize_callback(GtkWidget *widget, gpointer user_data); +static gboolean drawarea_draw_callback( GtkWidget *widget, GdkEventExpose *event, gpointer user_data); +static gboolean drawarea_motionnotifyevent_callback(GtkWidget *widget, GdkEventMotion *event, gpointer user_data); +static gboolean drawarea_querytooltip_callback(GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip, gpointer user_data); +static gboolean drawarea_full_redraw(GtkWidget *widget, gpointer user_data); -static void barchart_first_changed( GtkAdjustment *adj, gpointer user_data); +static void chart_calculation(GtkChart *chart); static void chart_clear(GtkChart *chart, gboolean store); -static void barchart_compute_range(GtkChart *chart); -static void barchart_calculation(GtkChart *chart); -static void barchart_scrollbar_setvalues(GtkChart *chart); + +static void colchart_first_changed( GtkAdjustment *adj, gpointer user_data); +static void colchart_compute_range(GtkChart *chart); +static void colchart_calculation(GtkChart *chart); +static void colchart_scrollbar_setvalues(GtkChart *chart); + static void piechart_calculation(GtkChart *chart); -static void chart_tooltip_hide(GtkChart *chart); -static void chart_tooltip_show(GtkChart *chart, gint xpos, gint ypos); + static GdkPixbuf *create_color_pixbuf (GdkColor *col); static GtkWidget *legend_list_new(GtkChart *chart); -static void chart_calculation(GtkChart *chart); -static GtkHBoxClass *parent_class = NULL; +static GtkHBoxClass *gtk_chart_parent_class = NULL; GType @@ -78,7 +84,7 @@ static GType chart_type = 0; sizeof (GtkChartClass), NULL, /* base_init */ NULL, /* base_finalize */ - (GClassInitFunc) gtk_chart_class_init, + (GClassInitFunc) gtk_chart_class_intern_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GtkChart), @@ -95,17 +101,24 @@ static GType chart_type = 0; } static void -gtk_chart_class_init (GtkChartClass * class) +gtk_chart_class_intern_init (gpointer klass) { - //GObjectClass *gobject_class; - GtkObjectClass *object_class; - //GtkWidgetClass *widget_class; + gtk_chart_parent_class = g_type_class_peek_parent (klass); + gtk_chart_class_init ((GtkChartClass *) klass); +} - //gobject_class = (GObjectClass*) class; - object_class = (GtkObjectClass*) class; - //widget_class = (GtkWidgetClass*) class; +static void +gtk_chart_class_init (GtkChartClass * klass) +{ +//GObjectClass *gobject_class; +GtkObjectClass *object_class; +//GtkWidgetClass *widget_class; + + //gobject_class = (GObjectClass*) klass; + object_class = (GtkObjectClass*) klass; + //widget_class = (GtkWidgetClass*) klass; - parent_class = g_type_class_peek_parent (class); + gtk_chart_parent_class = g_type_class_peek_parent (klass); DB( g_print("\n[gtkchart] class_init\n") ); @@ -116,19 +129,17 @@ gtk_chart_class_init (GtkChartClass * class) static void gtk_chart_init (GtkChart * chart) { -GtkWidget *widget, *vbox, *frame, *scrollwin, *treeview; - - DB( g_print("\n[gtkchart] init\n") ); +GtkWidget *widget, *vbox, *frame; +GtkWidget *scrollwin, *treeview; + chart->surface = NULL; chart->nb_items = 0; + chart->items = NULL; chart->title = NULL; - chart->titles = NULL; - chart->datas1 = NULL; - chart->datas2 = NULL; + chart->abs = FALSE; chart->dual = FALSE; chart->barw = GTK_CHART_BARW; - chart->tooltipwin = NULL; chart->active = -1; chart->lastactive = -1; @@ -150,8 +161,11 @@ GtkWidget *widget, *vbox, *frame, *scrollwin, *treeview; gtk_frame_set_shadow_type (GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN); chart->drawarea = gtk_drawing_area_new(); + //gtk_widget_set_double_buffered (GTK_WIDGET(widget), FALSE); + gtk_container_add( GTK_CONTAINER(frame), chart->drawarea ); gtk_widget_set_size_request(chart->drawarea, 150, 150 ); + gtk_widget_set_has_tooltip(chart->drawarea, TRUE); gtk_widget_show(chart->drawarea); #if MYDEBUG == 1 @@ -186,30 +200,29 @@ GtkWidget *widget, *vbox, *frame, *scrollwin, *treeview; gtk_container_add(GTK_CONTAINER(scrollwin), treeview); gtk_box_pack_start (GTK_BOX (widget), scrollwin, FALSE, FALSE, 0); - gtk_widget_set_events(GTK_WIDGET(chart->drawarea), + gtk_widget_add_events(GTK_WIDGET(chart->drawarea), GDK_EXPOSURE_MASK | - GDK_POINTER_MOTION_MASK | - GDK_POINTER_MOTION_HINT_MASK | - GDK_ENTER_NOTIFY_MASK | - GDK_LEAVE_NOTIFY_MASK + //GDK_POINTER_MOTION_MASK | + GDK_POINTER_MOTION_HINT_MASK //GDK_BUTTON_PRESS_MASK | //GDK_BUTTON_RELEASE_MASK ); - g_signal_connect( G_OBJECT(chart->drawarea), "size-allocate", G_CALLBACK(chart_sizeallocate), chart ) ; - //g_signal_connect( G_OBJECT(chart->drawarea), "map-event", G_CALLBACK(chart_map), chart ) ; - g_signal_connect( G_OBJECT(chart->drawarea), "expose-event", G_CALLBACK(chart_expose), chart ) ; + g_signal_connect( G_OBJECT(chart->drawarea),"configure-event", G_CALLBACK (drawarea_configure_event), chart); + g_signal_connect( G_OBJECT(chart->drawarea), "size-allocate", G_CALLBACK(drawarea_sizeallocate_callback), chart ) ; + g_signal_connect( G_OBJECT(chart->drawarea), "realize", G_CALLBACK(drawarea_realize_callback), chart ) ; + g_signal_connect( G_OBJECT(chart->drawarea), "expose-event", G_CALLBACK(drawarea_draw_callback), chart ) ; + g_signal_connect( G_OBJECT(chart->drawarea), "query-tooltip", G_CALLBACK(drawarea_querytooltip_callback), chart ); + g_signal_connect( G_OBJECT(chart->drawarea), "motion-notify-event", G_CALLBACK(drawarea_motionnotifyevent_callback), chart ); - g_signal_connect( G_OBJECT(chart->drawarea), "motion-notify-event", G_CALLBACK(chart_motion), chart ); - g_signal_connect( G_OBJECT(chart->drawarea), "leave-notify-event", G_CALLBACK(chart_leave), chart ); - g_signal_connect( G_OBJECT(chart->drawarea), "enter-notify-event", G_CALLBACK(chart_enter), chart ); + g_signal_connect (G_OBJECT(chart->adjustment), "value_changed", G_CALLBACK (colchart_first_changed), chart); + + //g_signal_connect( G_OBJECT(chart->drawarea), "map-event", G_CALLBACK(chart_map), chart ) ; //g_signal_connect( G_OBJECT(chart->drawarea), "button-press-event", G_CALLBACK(chart_button_press), chart ); //g_signal_connect( G_OBJECT(chart->drawarea), "button-release-event", G_CALLBACK(chart_button_release), chart ); - - g_signal_connect (G_OBJECT(chart->adjustment), "value_changed", G_CALLBACK (barchart_first_changed), chart); - } + /* --- */ GtkWidget * @@ -225,6 +238,7 @@ GtkChart *chart; return GTK_WIDGET(chart); } + static void gtk_chart_destroy (GtkObject * object) { @@ -232,59 +246,22 @@ GtkChart *chart; DB( g_print("\n[gtkchart] destroy\n") ); - g_return_if_fail (GTK_IS_CHART (object)); + g_return_if_fail (GTK_IS_CHART (object)); chart = GTK_CHART (object); chart_clear(chart, FALSE); - chart_tooltip_hide(chart); - - GTK_OBJECT_CLASS (parent_class)->destroy (object); -} - - - - -// --------------------------------------------- -/* -** -*/ -static double GetBase10(double num) -{ -double result; -double cnt; - - for(cnt=0;;cnt++) + if (chart->surface) { - if(floor(num) == 0) break; - num = num / 10; + cairo_surface_destroy (chart->surface); + chart->surface = NULL; } - result = pow(10.0, cnt-1); - return(result); + GTK_OBJECT_CLASS (gtk_chart_parent_class)->destroy (object); } -/* -** -*/ -static double GetUnit(double value) -{ -double truc, base10, unit; - value = ABS(value); - base10 = GetBase10(value); - truc = value / base10; - if(truc > 5) unit = base10; - else - if(truc > 2) unit = 0.5*base10; - else - if(truc > 1) unit = 0.2*base10; - else - unit = 0.1*base10; - - return(unit); -} /* ** print a integer number @@ -293,7 +270,7 @@ static gchar *chart_print_int(GtkChart *chart, gint value) { //mystrfmon(chart->buffer, CHART_BUFFER_LENGTH-1, (gdouble)value, chart->minor); - mystrfmon_int(chart->buffer, CHART_BUFFER_LENGTH-1, (gdouble)value, chart->minor); + mystrfmon_int(chart->buffer1, CHART_BUFFER_LENGTH-1, (gdouble)value, chart->minor); /* if(chart->minor) @@ -306,16 +283,16 @@ static gchar *chart_print_int(GtkChart *chart, gint value) strfmon(chart->buffer, CHART_BUFFER_LENGTH-1, "%.0n", (gdouble)value); */ - return chart->buffer; + return chart->buffer1; } /* ** print a double number */ -static gchar *chart_print_double(GtkChart *chart, gdouble value) +static gchar *chart_print_double(GtkChart *chart, gchar *buffer, gdouble value) { - mystrfmon(chart->buffer, CHART_BUFFER_LENGTH-1, value, chart->minor); + mystrfmon(buffer, CHART_BUFFER_LENGTH-1, value, chart->minor); /* if(chart->minor) @@ -328,16 +305,16 @@ static gchar *chart_print_double(GtkChart *chart, gdouble value) strfmon(chart->buffer, CHART_BUFFER_LENGTH-1, "%n", (gdouble)value); */ - return chart->buffer; + return buffer; } /* ** clear any allocated memory */ -void chart_clear(GtkChart *chart, gboolean store) +static void chart_clear(GtkChart *chart, gboolean store) { -guint i; +gint i; DB( g_print("\n[gtkchart] clear\n") ); @@ -348,26 +325,16 @@ guint i; chart->title = NULL; } - if(chart->titles != NULL) + if(chart->items != NULL) { for(i=0;inb_items;i++) { - g_free(chart->titles[i]); - } - g_free(chart->titles); - chart->titles = NULL; - } - - if(chart->datas1 != NULL) - { - g_free(chart->datas1); - chart->datas1 = NULL; - } + ChartItem *item = &g_array_index(chart->items, ChartItem, i); - if(chart->datas2 != NULL) - { - g_free(chart->datas1); - chart->datas2 = NULL; + g_free(item->legend); + } + g_array_free(chart->items, TRUE); + chart->items = NULL; } if(store == TRUE) @@ -379,9 +346,12 @@ guint i; chart->total = 0; chart->range = 0; - chart->min = 0; - chart->max = 0; - chart->decy_xval = 7; + chart->rawmin = 0; + chart->rawmax = 0; + chart->every_xval = 7; + + chart->active = -1; + chart->lastactive = -1; } @@ -391,7 +361,7 @@ guint i; */ static void chart_setup_with_model(GtkChart *chart, GtkTreeModel *list_store, guint column1, guint column2) { -guint i; +gint i; gboolean valid; GtkTreeIter iter, l_iter; gint color; @@ -400,20 +370,13 @@ GdkColor colour; DB( g_print("\n[gtkchart] setup with model\n") ); chart_clear(chart, TRUE); - chart->nb_items = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(list_store), NULL); - DB( g_print(" nb=%d\n", chart->nb_items) ); + chart->items = g_array_sized_new(FALSE, FALSE, sizeof(ChartItem), chart->nb_items); - chart->titles = g_malloc0(chart->nb_items * sizeof(gchar *)); - chart->datas1 = g_malloc0(chart->nb_items * sizeof(gdouble)); - chart->datas2 = g_malloc0(chart->nb_items * sizeof(gdouble)); + DB( g_print(" nb=%d, struct=%d\n", chart->nb_items, sizeof(ChartItem)) ); - /* dual mode ? */ - if( chart->type == CHART_BAR_TYPE ) - chart->dual = column2 != -1 ? TRUE : FALSE; - else - chart->dual = FALSE; + chart->dual = (column1 == column2) ? FALSE : TRUE; /* Get the first iter in the list */ valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL(list_store), &iter); @@ -421,85 +384,82 @@ GdkColor colour; while (valid) { gint id; - gchar *title; - gdouble value1, value2; - + gchar *label; + gdouble value1, value2; + ChartItem item; + /* column 0: pos (gint) */ /* column 1: key (gint) */ - /* column 2: name (gchar) */ + /* column 2: label (gchar) */ /* column x: values (double) */ - if( !chart->dual ) - { - gtk_tree_model_get (GTK_TREE_MODEL(list_store), &iter, - 0, &id, - 2, &title, - column1, &value1, - -1); - } - else + gtk_tree_model_get (GTK_TREE_MODEL(list_store), &iter, + 0, &id, + 2, &label, + column1, &value1, + column2, &value2, + -1); + + if(chart->dual || chart->abs) { - gtk_tree_model_get (GTK_TREE_MODEL(list_store), &iter, - 0, &id, - 2, &title, - column1, &value1, - column2, &value2, - -1); + value1 = ABS(value1); + value2 = ABS(value2); } + + DB( g_print("%d: '%s' %.2f %2f\n", i, label, value1, value2) ); - /* ignore negative value: total, partial total */ - //todo: remove this (was a test) - if(id < 0) + /* data1 value storage & min, max compute */ + chart->rawmin = MIN(chart->rawmin, value1); + chart->rawmax = MAX(chart->rawmax, value1); + + if( chart->dual ) { - chart->nb_items--; - //DB( g_print ("ignoring Row %d: (%s, %2.f)\n", id, title, value) ); + /* data2 value storage & min, max compute */ + chart->rawmin = MIN(chart->rawmin, value2); + chart->rawmax = MAX(chart->rawmax, value2); } - else - { - chart->titles[i] = title; - /* data1 value storage & min, max compute */ - chart->datas1[i] = (chart->dual) ? ABS(value1) : value1; - chart->min = MIN(chart->min, chart->datas1[i]); - chart->max = MAX(chart->max, chart->datas1[i]); - - if( chart->dual ) - { - /* data2 value storage & min, max compute */ - chart->datas2[i] = (chart->dual) ? ABS(value2) : value2; - chart->min = MIN(chart->min, chart->datas2[i]); - chart->max = MAX(chart->max, chart->datas2[i]); - } + item.label = label; + item.serie1 = value1; + item.serie2 = value2; + g_array_append_vals(chart->items, &item, 1); - /* pie chart total sum */ - chart->total += ABS(chart->datas1[i]); + /* populate our legend list */ - /* Do something with the data */ + color = i % chart->nb_cols; + //color = id % chart->nb_cols; - //populate our legend list - color = i % chart->nb_cols; - //color = id % chart->nb_cols; + //DB( g_print ("Row %d: (%s, %2.f) color %d\n", id, title, value, color) ); - //DB( g_print ("Row %d: (%s, %2.f) color %d\n", id, title, value, color) ); + colour.red = COLTO16(chart->colors[color].r); + colour.green = COLTO16(chart->colors[color].g); + colour.blue = COLTO16(chart->colors[color].b); - colour.red = COLTO16(chart->colors[color].r); - colour.green = COLTO16(chart->colors[color].g); - colour.blue = COLTO16(chart->colors[color].b); + gtk_list_store_append (GTK_LIST_STORE(chart->legend), &l_iter); + gtk_list_store_set (GTK_LIST_STORE(chart->legend), &l_iter, + LST_LEGEND_COLOR, create_color_pixbuf (&colour), + LST_LEGEND_TITLE, label, + LST_LEGEND_AMOUNT, value1, + -1); - gtk_list_store_append (GTK_LIST_STORE(chart->legend), &l_iter); - gtk_list_store_set (GTK_LIST_STORE(chart->legend), &l_iter, - LST_LEGEND_COLOR, create_color_pixbuf (&colour), - LST_LEGEND_TITLE, title, - LST_LEGEND_AMOUNT, value1, - -1); - i++; - } + /* pie chart total sum */ + chart->total += ABS(value1); + valid = gtk_tree_model_iter_next (list_store, &iter); + i++; } // compute rate for legend for bar/pie - if( chart->type != CHART_LINE_TYPE ) + for(i=0;inb_items;i++) + { + ChartItem *item = &g_array_index(chart->items, ChartItem, i); + + item->rate = ABS(item->serie1*100/chart->total); + item->legend = g_markup_printf_escaped("%s (%.2f%%)", item->label, item->rate); + } + + if( chart->type != CHART_TYPE_LINE ) { valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL(chart->legend), &iter); @@ -543,21 +503,21 @@ static void chart_recompute(GtkChart *chart) switch(chart->type) { - case CHART_LINE_TYPE: - case CHART_BAR_TYPE: - barchart_compute_range(chart); + case CHART_TYPE_LINE: + case CHART_TYPE_COL: + colchart_compute_range(chart); - barchart_calculation(chart); + colchart_calculation(chart); gtk_adjustment_set_value(chart->adjustment, 0); - barchart_scrollbar_setvalues(chart); + colchart_scrollbar_setvalues(chart); gtk_widget_show(chart->scrollbar); break; - case CHART_PIE_TYPE: + case CHART_TYPE_PIE: piechart_calculation(chart); gtk_widget_hide(chart->scrollbar); break; } - gtk_widget_queue_draw( chart->drawarea ); + } @@ -565,39 +525,53 @@ static void chart_recompute(GtkChart *chart) /* bar section */ -static void barchart_compute_range(GtkChart *chart) + +static float CalculateStepSize(float range, float targetSteps) { -gint div; + // calculate an initial guess at step size + float tempStep = range/targetSteps; - DB( g_print("\n[gtkchart] bar compute range\n") ); + // get the magnitude of the step size + float mag = (float)floor(log10(tempStep)); + float magPow = (float)pow(10, mag); - chart->range = chart->max - chart->min; + // calculate most significant digit of the new step size + float magMsd = (int)(tempStep/magPow + 0.5); - DB( g_print(" initial: min=%.2f, max=%.2f, range=%.2f\n", chart->min, chart->max, chart->range) ); + // promote the MSD to either 1, 2, or 5 + if (magMsd > 5.0) + magMsd = 10.0f; + else if (magMsd > 2.0) + magMsd = 5.0f; + else if (magMsd >= 1.0) + magMsd = 2.0f; - chart->unit = GetUnit(chart->range); + return magMsd*magPow; +} - div = ceil(chart->max / chart->unit); - chart->max = div * chart->unit; - chart->div = div; - div = ceil(-chart->min / chart->unit); - chart->min = -div * chart->unit; - chart->div += div; +static void colchart_compute_range(GtkChart *chart) +{ +double lobound=chart->rawmin, hibound=chart->rawmax; - chart->range = chart->max - chart->min; + DB( g_print("\n[gtkchart] bar compute range\n") ); - /* - chart->unit = GetUnit(chart->range); - chart->div = (ceil(chart->range / chart->unit)); - chart->min = -chart->unit*ceil(-chart->min/chart->unit); - chart->max = chart->unit*ceil(chart->max/chart->unit); - chart->range = chart->unit*chart->div; - */ + /* comptute max ticks */ + chart->range = chart->rawmax - chart->rawmin; + gint maxticks = MIN(10,floor(chart->graph_height / (chart->font_h * 2))); - DB( g_print(" unit=%.2f, div=%d => %d\n", chart->unit, chart->div, (gint)chart->unit*chart->div) ); - DB( g_print(" min=%.2f, max=%.2f, range=%.2f\n", chart->min, chart->max, chart->range) ); + DB( g_print(" raw :: [%.2f - %.2f] range=%.2f\n", chart->rawmin, chart->rawmax, chart->range) ); + DB( g_print(" raw :: maxticks=%d (%g / (%g*2))\n", maxticks, chart->graph_height, chart->font_h) ); + DB( g_print("\n") ); + chart->unit = CalculateStepSize((hibound-lobound), maxticks); + chart->min = -chart->unit * ceil(-lobound/chart->unit); + chart->max = chart->unit * ceil(hibound/chart->unit); + chart->range = chart->max - chart->min; + chart->div = chart->range / chart->unit; + + DB( g_print(" end :: interval=%.2f, ticks=%d\n", chart->unit, chart->div) ); + DB( g_print(" end :: [%.2f - %.2f], range=%.2f\n", chart->min, chart->max, chart->range) ); } @@ -605,7 +579,14 @@ gint div; static void chart_calculation(GtkChart *chart) { GtkWidget *drawarea = chart->drawarea; +GdkWindow *gdkwindow; +cairo_surface_t *surf = NULL; +cairo_t *cr; +cairo_text_extents_t te; +cairo_font_extents_t fe; GtkAllocation allocation; +gchar *valstr; + DB( g_print("\n[gtkchart] calculation\n") ); @@ -618,36 +599,85 @@ GtkAllocation allocation; chart->w = allocation.width - (CHART_MARGIN*2); chart->h = allocation.height - (CHART_MARGIN*2); - - chart->font_h = CHART_FONT_SIZE_NORMAL; - //DB( g_print(" + text w=%f h=%f\n", te.width, te.height) ); + + gdkwindow = gtk_widget_get_window(chart->drawarea); + if(!gdkwindow) + { + surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, allocation.width, allocation.height); + cr = cairo_create (surf); + } + else + cr = gdk_cairo_create (gdkwindow); // compute title chart->title_zh = 0; if(chart->title != NULL) { - chart->title_zh = CHART_FONT_SIZE_TITLE; - //DB( g_print(" - title: %s w=%f h=%f\n", chart->title, te.width, te.height) ); + cairo_set_font_size(cr, CHART_FONT_SIZE_TITLE); + cairo_font_extents(cr, &fe); + chart->title_zh = fe.height; + } + + // compute subtitle + chart->subtitle_zh = 0; + if(chart->subtitle != NULL) + { + cairo_set_font_size(cr, CHART_FONT_SIZE_PERIOD); + cairo_font_extents(cr, &fe); + chart->subtitle_zh = fe.height; } - chart->graph_x = chart->l; - chart->graph_y = chart->t + chart->title_zh; - chart->graph_width = chart->w; // - chart->legend_w; - chart->graph_height = chart->h - chart->title_zh; + chart->subtitle_y = chart->t + chart->title_zh; + + cairo_set_font_size(cr, CHART_FONT_SIZE_NORMAL); + + // compute amount scale + valstr = chart_print_int(chart, (gint)chart->min); + cairo_text_extents(cr, valstr, &te); + chart->scale_w = te.width; + valstr = chart_print_int(chart, (gint)chart->max); + cairo_text_extents(cr, valstr, &te); + chart->scale_w = MAX(chart->scale_w, te.width); + DB( g_print(" - scale: %g,%g %g,%g\n", chart->l, 0.0, chart->scale_w, 0.0) ); + // compute font height + cairo_font_extents(cr, &fe); + chart->font_h = fe.height; - if(chart->title_zh > 0) + // compute graph region + switch(chart->type) + { + case CHART_TYPE_LINE: + case CHART_TYPE_COL: + chart->graph_x = chart->l + chart->scale_w + 2; + chart->graph_y = chart->t + chart->title_zh + chart->subtitle_zh; + chart->graph_width = chart->w - chart->scale_w - 2; + chart->graph_height = chart->h - chart->title_zh - chart->subtitle_zh; + break; + case CHART_TYPE_PIE: + chart->graph_x = chart->l; + chart->graph_y = chart->t + chart->title_zh + chart->subtitle_zh; + chart->graph_width = chart->w; + chart->graph_height = chart->h - chart->title_zh - chart->subtitle_zh; + break; + } + + if(chart->title_zh > 0 || chart->subtitle_zh > 0) { chart->graph_y += CHART_MARGIN; chart->graph_height -= CHART_MARGIN; } - if(chart->type != CHART_PIE_TYPE && chart->show_xval) - chart->graph_height -= (chart->font_h + CHART_SPACING); + if(chart->type != CHART_TYPE_PIE && chart->show_xval) + chart->graph_height -= (chart->font_h + CHART_SPACING); + + cairo_destroy(cr); + cairo_surface_destroy(surf); + } -static void barchart_calculation(GtkChart *chart) +static void colchart_calculation(GtkChart *chart) { gint blkw; @@ -658,8 +688,8 @@ gint blkw; //chart->barw = MAX(32, (chart->graph_width)/chart->nb_items); //chart->barw = 32; // usr setted or defaut to BARW + // if fixed blkw = chart->barw + 3; - if( chart->dual ) blkw = (chart->barw * 2) + 3; @@ -678,23 +708,23 @@ gint blkw; /* ** draw the scale */ -static void barchart_draw_scale(GtkWidget *widget, gpointer user_data) +static void colchart_draw_scale(GtkWidget *widget, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); -GdkWindow *gdkwindow; double x, y; gdouble curxval; gint i, first; - DB( g_print("----------------------\n(gtkline) draw scale\n") ); + DB( g_print("\n(gtkline) draw scale\n") ); cairo_t *cr; //static const double dashed3[] = {2.0}; - gdkwindow = gtk_widget_get_window(widget); - cr = gdk_cairo_create (gdkwindow); + //gdkwindow = gtk_widget_get_window(widget); + //cr = gdk_cairo_create (gdkwindow); //cr = gdk_cairo_create (widget->window); - + cr = cairo_create (chart->surface); + cairo_set_line_width(cr, 1); /* clip */ @@ -710,9 +740,10 @@ cairo_t *cr; for(i=first; i<(first+chart->visible) ;i++) { - if( !(i % chart->decy_xval) ) + if( !(i % chart->every_xval) ) { - cairo_user_set_rgbcol(cr, &global_colors[GREY1]); + //cairo_user_set_rgbcol(cr, &global_colors[GREY1]); + cairo_user_set_rgbacol(cr, &global_colors[THTEXT], 0.05); cairo_move_to(cr, x, chart->graph_y); cairo_line_to(cr, x, chart->b); @@ -732,7 +763,8 @@ cairo_t *cr; //if(i == 0 || i == chart->div) /* top/bottom line */ //{ //cairo_set_dash(cr, 0, 0, 0); - cairo_user_set_rgbcol(cr, &global_colors[GREY1]); + //cairo_user_set_rgbcol(cr, &global_colors[GREY1]); + cairo_user_set_rgbacol(cr, &global_colors[THTEXT], 0.1); //} //else /* intermediate line (dotted) */ //{ @@ -744,7 +776,7 @@ cairo_t *cr; if( curxval == 0.0 ) { //cairo_set_dash(cr, 0, 0, 0); - cairo_user_set_rgbcol(cr, &global_colors[XYLINES]); + cairo_user_set_rgbacol(cr, &global_colors[THTEXT], 0.8); } y = 0.5 + floor(chart->graph_y + ((i * chart->unit) / chart->range) * chart->graph_height); @@ -763,7 +795,7 @@ cairo_t *cr; } -static void barchart_draw_scale_text(GtkWidget *widget, gpointer user_data) +static void colchart_draw_scale_text(GtkWidget *widget, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); double x, y; @@ -776,12 +808,13 @@ gint i, first; cairo_t *cr; cairo_text_extents_t te; - GdkWindow *gdkwindow; - gdkwindow = gtk_widget_get_window(widget); + //GdkWindow *gdkwindow; + //gdkwindow = gtk_widget_get_window(widget); - cr = gdk_cairo_create (gdkwindow); + //cr = gdk_cairo_create (gdkwindow); //cr = gdk_cairo_create (widget->window); - + cr = cairo_create (chart->surface); + cairo_set_line_width(cr, 1); /* clip */ @@ -793,27 +826,30 @@ cairo_text_extents_t te; /* draw x-legend (items) */ if(chart->show_xval) { - x = chart->ox + 1.5 + (chart->barw/2); - y = chart->oy; + x = chart->graph_x + 1.5 + (chart->barw/2); + y = chart->b - chart->font_h; first = (gint)gtk_adjustment_get_value(GTK_ADJUSTMENT(chart->adjustment)); for(i=first; i<(first+chart->visible) ;i++) { - if( !(i % chart->decy_xval) ) + ChartItem *item = &g_array_index(chart->items, ChartItem, i); + + if( !(i % chart->every_xval) ) { - valstr = chart->titles[i]; + valstr = item->label; cairo_text_extents(cr, valstr, &te); DB( g_print("%s w=%f h=%f\n", valstr, te.width, te.height) ); - cairo_user_set_rgbcol(cr, &global_colors[BLACK]); - cairo_move_to(cr, x + 2, y + 2 + chart->font_h); + cairo_user_set_rgbacol(cr, &global_colors[THTEXT], 0.78); + //cairo_move_to(cr, x - (te.width/2), y - te.y_bearing); + cairo_move_to(cr, x, y - te.y_bearing); cairo_show_text(cr, valstr); - cairo_user_set_rgbcol(cr, &global_colors[TEXT]); + /*cairo_user_set_rgbcol(cr, &global_colors[TEXT]); cairo_move_to(cr, x, y); cairo_line_to(cr, x, y + te.height); - cairo_stroke(cr); + cairo_stroke(cr);*/ } x += chart->blkw; @@ -836,24 +872,11 @@ cairo_text_extents_t te; //DB( g_print("'%s', %f %f %f %f %f %f\n", valstr, te.x_bearing, te.y_bearing, te.width, te.height, te.x_advance, te.y_advance) ); - // draw white background - cairo_set_line_width (cr, 2); - cairo_user_set_rgbacol (cr, &global_colors[WHITE], 0.66); - cairo_move_to(cr, chart->l, y + 2 + te.height + 0.5); - cairo_text_path (cr, valstr); - cairo_stroke (cr); - - cairo_move_to(cr, chart->r - te.width -4, y + 2 + te.height + 0.5); - cairo_text_path (cr, valstr); - cairo_stroke (cr); - // draw texts - cairo_move_to(cr, chart->l, y + 2 + te.height); - cairo_user_set_rgbcol (cr, &global_colors[TEXT]); + cairo_move_to(cr, chart->graph_x - te.x_bearing - te.width - 2, y + (( te.height)/2)); + cairo_user_set_rgbacol (cr, &global_colors[THTEXT], 0.78); cairo_show_text(cr, valstr); - cairo_move_to(cr, chart->r - te.width -4, y + 2 + te.height); - cairo_show_text(cr, valstr); } curxval -= chart->unit; @@ -865,10 +888,9 @@ cairo_text_extents_t te; /* ** draw all visible bars */ -static void barchart_draw_bars(GtkWidget *widget, gpointer user_data) +static void colchart_draw_bars(GtkWidget *widget, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); -GdkWindow *gdkwindow; cairo_t *cr; double x, x2, y2, h; gint i, first; @@ -878,10 +900,8 @@ gint i, first; x = chart->graph_x; first = (gint)gtk_adjustment_get_value(GTK_ADJUSTMENT(chart->adjustment)); - - gdkwindow = gtk_widget_get_window(widget); - cr = gdk_cairo_create (gdkwindow); - + cr = gdk_cairo_create (gtk_widget_get_window(widget)); + //cr = cairo_create (chart->surface); #if HELPDRAW == 1 x2 = x + 0.5; @@ -891,13 +911,15 @@ gint i, first; { cairo_move_to(cr, x2, chart->graph_y); cairo_line_to(cr, x2, chart->graph_x + chart->graph_height); - cairo_stroke(cr); + x2 += chart->blkw; } + cairo_stroke(cr); #endif for(i=first; i<(first+chart->visible) ;i++) { + ChartItem *item = &g_array_index(chart->items, ChartItem, i); gint color; gint barw = chart->barw; @@ -907,12 +929,12 @@ gint i, first; cairo_user_set_rgbcol_over(cr, &chart->colors[color], i == chart->active); - if(chart->datas1[i]) + if(item->serie1) { x2 = x; - h = floor((chart->datas1[i] / chart->range) * chart->graph_height); + h = floor((item->serie1 / chart->range) * chart->graph_height); y2 = chart->oy - h; - if(chart->datas1[i] < 0.0) + if(item->serie1 < 0.0) y2 += 1; //DB( g_print(" + i=%d :: y2=%f h=%f (%f / %f) * %f\n", i, y2, h, chart->datas1[i], chart->range, chart->graph_height ) ); @@ -923,11 +945,11 @@ gint i, first; } - if( chart->dual && chart->datas2[i]) + if( chart->dual && item->serie2) { x2 = x + barw + 1; - h = floor((chart->datas2[i] / chart->range) * chart->graph_height); + h = floor((item->serie2 / chart->range) * chart->graph_height); y2 = chart->oy - h; cairo_rectangle(cr, x2+2, y2, barw, h); @@ -949,7 +971,7 @@ gint i, first; /* ** get the bar under the mouse pointer */ -static gint barchart_get_active(GtkWidget *widget, gint x, gint y, gpointer user_data) +static gint colchart_get_active(GtkWidget *widget, gint x, gint y, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); gint retval; @@ -971,7 +993,7 @@ gint index, first, px; return(retval); } -static void barchart_first_changed( GtkAdjustment *adj, gpointer user_data) +static void colchart_first_changed( GtkAdjustment *adj, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); //gint first; @@ -989,6 +1011,8 @@ GtkChart *chart = GTK_CHART(user_data); /* Set the number of decimal places to which adj->value is rounded */ //gtk_scale_set_digits (GTK_SCALE (hscale), (gint) adj->value); //gtk_scale_set_digits (GTK_SCALE (vscale), (gint) adj->value); + + drawarea_full_redraw (chart->drawarea, chart); gtk_widget_queue_draw(chart->drawarea); } @@ -996,7 +1020,7 @@ GtkChart *chart = GTK_CHART(user_data); /* ** scrollbar set values for upper, page size, and also show/hide */ -static void barchart_scrollbar_setvalues(GtkChart *chart) +static void colchart_scrollbar_setvalues(GtkChart *chart) { GtkAdjustment *adj = chart->adjustment; gint first; @@ -1005,28 +1029,25 @@ gint first; DB( g_print("\n[gtkchart] sb_set_values\n") ); - //if(visible < entries) - //{ - first = gtk_adjustment_get_value(GTK_ADJUSTMENT(adj)); + first = gtk_adjustment_get_value(GTK_ADJUSTMENT(adj)); - DB( g_print(" entries=%d, visible=%d\n", chart->nb_items, chart->visible) ); - DB( g_print(" first=%d, upper=%d, pagesize=%d\n", first, chart->nb_items, chart->visible) ); + DB( g_print(" entries=%d, visible=%d\n", chart->nb_items, chart->visible) ); + DB( g_print(" first=%d, upper=%d, pagesize=%d\n", first, chart->nb_items, chart->visible) ); - gtk_adjustment_set_upper(adj, (gdouble)chart->nb_items); - gtk_adjustment_set_page_size(adj, (gdouble)chart->visible); - gtk_adjustment_set_page_increment(adj, (gdouble)chart->visible); - - if(first+chart->visible > chart->nb_items) - { - gtk_adjustment_set_value(adj, (gdouble)chart->nb_items - chart->visible); - } - gtk_adjustment_changed (adj); + gtk_adjustment_set_upper(adj, (gdouble)chart->nb_items); + gtk_adjustment_set_page_size(adj, (gdouble)chart->visible); + gtk_adjustment_set_page_increment(adj, (gdouble)chart->visible); - //gtk_widget_show(GTK_WIDGET(scrollbar)); - //} - //else - //gtk_widget_hide(GTK_WIDGET(scrollbar)); + if(first+chart->visible > chart->nb_items) + { + gtk_adjustment_set_value(adj, (gdouble)chart->nb_items - chart->visible); + } + gtk_adjustment_changed (adj); + if( chart->visible < chart->nb_items ) + gtk_widget_hide(GTK_WIDGET(chart->scrollbar)); + else + gtk_widget_show(GTK_WIDGET(chart->scrollbar)); } @@ -1039,7 +1060,7 @@ static void linechart_draw_plot(cairo_t *cr, double x, double y, double r, GtkCh { cairo_set_line_width(cr, r / 2); - cairo_user_set_rgbcol(cr, &global_colors[WHITE]); + cairo_user_set_rgbcol(cr, &global_colors[THBASE]); cairo_arc(cr, x, y, r, 0, 2*M_PI); cairo_stroke_preserve(cr); @@ -1063,12 +1084,9 @@ gint first, i; y = chart->oy; first = (gint)gtk_adjustment_get_value(GTK_ADJUSTMENT(chart->adjustment)); - GdkWindow *gdkwindow; - gdkwindow = gtk_widget_get_window(widget); - - cr = gdk_cairo_create (gdkwindow); - //cr = gdk_cairo_create (widget->window); - + cr = gdk_cairo_create (gtk_widget_get_window(widget)); + //cr = cairo_create (chart->surface); + /* clip */ //cairo_rectangle(cr, CHART_MARGIN, 0, chart->w, chart->h + CHART_MARGIN); //cairo_clip(cr); @@ -1101,8 +1119,10 @@ gint first, i; for(i=first; i<(first+chart->visible) ;i++) { + ChartItem *item = &g_array_index(chart->items, ChartItem, i); + x2 = x + (chart->blkw)/2; - y2 = chart->oy - (chart->datas1[i] / chart->range) * chart->graph_height; + y2 = chart->oy - (item->serie1 / chart->range) * chart->graph_height; if( i == first) { firstx = x2; @@ -1139,8 +1159,10 @@ gint first, i; // draw plots for(i=first; i<(first+chart->visible) ;i++) { + ChartItem *item = &g_array_index(chart->items, ChartItem, i); + x2 = x + (chart->blkw)/2; - y2 = chart->oy - (chart->datas1[i] / chart->range) * chart->graph_height; + y2 = chart->oy - (item->serie1 / chart->range) * chart->graph_height; linechart_draw_plot(cr, x2, y2, i == chart->active ? linew+1 : linew, chart); x += chart->blkw; } @@ -1240,16 +1262,15 @@ cairo_t *cr; double sum = 0.0; gint color; - GdkWindow *gdkwindow; - gdkwindow = gtk_widget_get_window(widget); - - cr = gdk_cairo_create (gdkwindow); - //cr = gdk_cairo_create (widget->window); + cr = gdk_cairo_create (gtk_widget_get_window(widget)); + //cr = cairo_create (chart->surface); for(i=0; i< chart->nb_items ;i++) { + ChartItem *item = &g_array_index(chart->items, ChartItem, i); + a1 = ((360 * (sum / chart->total)) - 90) * (M_PI / 180); - sum += ABS(chart->datas1[i]); + sum += ABS(item->serie1); a2 = ((360 * (sum / chart->total)) - 90) * (M_PI / 180); if(i < chart->nb_items-1) a2 += 0.0175; @@ -1318,7 +1339,7 @@ cairo_t *cr; radius = (gint)((chart->rayon/3) * (1 / PHI)); cairo_arc(cr, cx, cy, radius, a1, a2); - cairo_user_set_rgbcol(cr, &global_colors[WHITE]); + cairo_user_set_rgbcol(cr, &global_colors[THBASE]); cairo_fill(cr); @@ -1359,7 +1380,9 @@ double h; gdouble cumul = 0; for(index=0; index< chart->nb_items ;index++) { - cumul += (ABS(chart->datas1[index])/chart->total)*360; + ChartItem *item = &g_array_index(chart->items, ChartItem, index); + + cumul += ABS(item->serie1/chart->total)*360; if( cumul > angle ) { retval = index; @@ -1375,70 +1398,18 @@ double h; /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ - - - - -static void chart_sizeallocate(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data) +static gboolean drawarea_full_redraw(GtkWidget *widget, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); - - DB( g_print("\n[gtkchart] sizeallocate\n") ); - DB( g_print("w=%d h=%d\n", allocation->width, allocation->height) ); - - chart_calculation(chart); - - if(chart->nb_items == 0) - return; - - - //here we will compute any widget size dependend values - switch(chart->type) - { - case CHART_BAR_TYPE: - case CHART_LINE_TYPE: - barchart_calculation(chart); - barchart_scrollbar_setvalues(chart); - break; - case CHART_PIE_TYPE: - piechart_calculation(chart); - break; - } - -} - - -/* global widget function */ - -/* -static gboolean chart_map( GtkWidget *widget, GdkEvent *event, gpointer user_data) -{ -//GtkChart *chart = GTK_CHART(user_data); - - DB( g_print("\n[gtkchart] map\n") ); - - // our colors - //chart_setup_colors(widget, chart); - - DB( g_print("** end map\n") ); - - return TRUE; -} -*/ - -static gboolean chart_expose( GtkWidget *widget, GdkEventExpose *event, gpointer user_data) -{ -GtkChart *chart = GTK_CHART(user_data); -cairo_t *cr; cairo_text_extents_t te; +cairo_font_extents_t fe; +cairo_t *cr; - DB( g_print("\n[gtkchart] expose %d\n", chart->type) ); + DB( g_print("\n[gtkchart] drawarea full redraw\n") ); - GdkWindow *gdkwindow; - gdkwindow = gtk_widget_get_window(widget); - cr = gdk_cairo_create (gdkwindow); - //cr = gdk_cairo_create (widget->window); + + cr = cairo_create (chart->surface); #if MYDEBUG == 1 cairo_font_face_t *ff; @@ -1456,7 +1427,6 @@ cairo_scaled_font_t *sf; //cairo_set_font_face(cr, ff); - #endif @@ -1464,7 +1434,9 @@ cairo_scaled_font_t *sf; /* fillin the back in white */ - cairo_user_set_rgbcol(cr, &global_colors[WHITE]); + //cairo_user_set_rgbcol(cr, &global_colors[WHITE]); + cairo_user_set_rgbcol(cr, &global_colors[THBASE]); + cairo_paint(cr); /* taken from scrolled window @@ -1492,36 +1464,45 @@ cairo_scaled_font_t *sf; // draw title cairo_set_font_size(cr, CHART_FONT_SIZE_TITLE); + cairo_font_extents(cr, &fe); cairo_text_extents(cr, chart->title, &te); +#if HELPDRAW == 1 + double dashlength; + cairo_set_source_rgb(cr, 0.0, 0.0, 1.0); //blue + dashlength = 3; + cairo_set_dash (cr, &dashlength, 1, 0); + cairo_move_to(cr, chart->l, chart->t); + cairo_rectangle(cr, chart->l + te.x_bearing, chart->t, te.width, fe.height); + cairo_stroke(cr); +#endif + //center title //cairo_move_to(cr, chart->l + (chart->w/2) - ((te.width - te.x_bearing) / 2), chart->t - te.y_bearing); cairo_move_to(cr, chart->l, chart->t - te.y_bearing); - cairo_user_set_rgbcol(cr, &global_colors[BLACK]); + //cairo_user_set_rgbcol(cr, &global_colors[BLACK]); + cairo_user_set_rgbcol(cr, &global_colors[THTEXT]); cairo_show_text(cr, chart->title); cairo_destroy(cr); - if (event->count > 0) - return FALSE; - if(chart->nb_items == 0) return FALSE; switch(chart->type) { - case CHART_BAR_TYPE: - barchart_draw_scale(widget, chart); - barchart_draw_bars(widget, chart); - barchart_draw_scale_text(widget, chart); + case CHART_TYPE_COL: + colchart_draw_scale(widget, chart); + //colchart_draw_bars(widget, chart); + colchart_draw_scale_text(widget, chart); break; - case CHART_LINE_TYPE: - barchart_draw_scale(widget, chart); - linechart_draw_lines(widget, chart); - barchart_draw_scale_text(widget, chart); + case CHART_TYPE_LINE: + colchart_draw_scale(widget, chart); + //linechart_draw_lines(widget, chart); + colchart_draw_scale_text(widget, chart); break; - case CHART_PIE_TYPE: - piechart_draw_slices(widget, chart); + case CHART_TYPE_PIE: + //piechart_draw_slices(widget, chart); break; } @@ -1529,335 +1510,252 @@ cairo_scaled_font_t *sf; } -static gboolean chart_motion(GtkWidget *widget, GdkEventMotion *event, gpointer user_data) +static gboolean +drawarea_configure_event (GtkWidget *widget, + GdkEventConfigure *event, + gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); -gint x, y; -GdkModifierType state; - - if(chart->nb_items == 0) - return FALSE; - - //DB( g_print("\n[gtkchart] motion\n") ); - - GdkWindow *gdkwindow; - gdkwindow = gtk_widget_get_window(widget); - - //todo see this - if(event->is_hint) - { - //DB( g_print("is hint\n") ); - - gdk_window_get_pointer(gdkwindow, &x, &y, &state); - } - else - { - x = event->x; - y = event->y; - state = event->state; - } - - //DB( g_print(" x=%d, y=%d, time=%d\n", x, y, event->time) ); - - switch(chart->type) - { - case CHART_BAR_TYPE: - chart->active = barchart_get_active(widget, x, y, chart); - break; - case CHART_LINE_TYPE: - chart->active = linechart_get_active(widget, x, y, chart); - break; - case CHART_PIE_TYPE: - chart->active = piechart_get_active(widget, x, y, chart); - break; - } - - // rollover redraw ? - DB( g_print(" active: last=%d, curr=%d\n", chart->lastactive, chart->active) ); +GtkAllocation allocation; +GtkStyle *style; +GdkColor *color; - if(chart->lastactive != chart->active) - { - DB( g_print(" motion rollover redraw :: active=%d\n", chart->active) ); + DB( g_print("\n[gtkchart] drawarea configure \n") ); - //set_info(active); - gtk_widget_queue_draw( widget ); -// chart_tooltip_start_delay(chart); - } + DB( g_print("w=%d h=%d\n", allocation.width, allocation.height) ); - chart->lastactive = chart->active; + gtk_widget_get_allocation (widget, &allocation); - // hide the tooltip ? - if( (x != chart->lastpress_x || y != chart->lastpress_y) ) - { - //DB( g_print("hide tooltip\n") ); - chart_tooltip_hide(chart); - - } + chart_recompute(chart); + + if (chart->surface) + cairo_surface_destroy (chart->surface); + + chart->surface = gdk_window_create_similar_surface (gtk_widget_get_window (widget), + CAIRO_CONTENT_COLOR, + allocation.width, + allocation.height); + + + // get theme color + style = gtk_widget_get_style (widget); + //style = gtk_widget_get_style (chart->treeview); + //style = gtk_widget_get_default_style(); + + //get text color + color = &style->text[GTK_STATE_NORMAL]; + struct rgbcol *tcol = &global_colors[THTEXT]; + tcol->r = color->red; + tcol->g = color->green; + tcol->b = color->blue; + DB( g_print(" - theme text col: %x %x %x\n", tcol->r, tcol->g, tcol->b) ); + + // get base color + color = &style->base[GTK_STATE_NORMAL]; + tcol = &global_colors[THBASE]; + tcol->r = color->red; + tcol->g = color->green; + tcol->b = color->blue; + DB( g_print(" - theme base col: %x %x %x\n", tcol->r, tcol->g, tcol->b) ); - if (chart->timer_tag == 0) - { - chart_tooltip_start_delay(chart); - } + + drawarea_full_redraw(widget, user_data); - return TRUE; + + /* We've handled the configure event, no need for further processing. */ + return TRUE; } -static gboolean chart_enter(GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) +static void drawarea_sizeallocate_callback(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data) { GtkChart *chart = GTK_CHART(user_data); -gint x, y; - - if(chart->nb_items == 0) - return FALSE; + + DB( g_print("\n[gtkchart] drawarea sizeallocate\n") ); + DB( g_print("w=%d h=%d\n", allocation->width, allocation->height) ); - DB( g_print("++++++++++++++++\n[gtkchart] enter\n") ); + //g_print("\n[gtkchart] drawarea sizeallocate\n") ; + //g_print("w=%d h=%d\n", allocation->width, allocation->height) ; - x = event->x; - y = event->y; - switch(chart->type) + if( gtk_widget_get_realized(widget)) { - case CHART_BAR_TYPE: - chart->active = barchart_get_active(widget, x, y, chart); - break; - case CHART_LINE_TYPE: - chart->active = linechart_get_active(widget, x, y, chart); - break; - case CHART_PIE_TYPE: - chart->active = piechart_get_active(widget, x, y, chart); - break; + chart_recompute(chart); } - DB( g_print(" active is %d\n", chart->active) ); - - return TRUE; } -static gboolean chart_leave(GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) -{ -GtkChart *chart = GTK_CHART(user_data); - - if(chart->nb_items == 0) - return FALSE; - chart->active = -1; - chart->lastactive = -1; - - DB( g_print("\n[gtkchart] leave\n") ); - DB( g_print(" active is %d\n", chart->active) ); - - if (chart->timer_tag) - { - g_source_remove (chart->timer_tag); - chart->timer_tag = 0; - } +static void drawarea_realize_callback(GtkWidget *widget, gpointer user_data) +{ +//GtkChart *chart = GTK_CHART(user_data); + + DB( g_print("\n[gtkchart] drawarea realize\n") ); - chart_tooltip_hide(chart); + //chart_recompute(chart); - gtk_widget_queue_draw(chart->drawarea); +} - DB( g_print("----------------\n") ); - return TRUE; -} -static gboolean -chart_tooltip_paint_window (GtkWidget *window) +static gboolean drawarea_draw_callback( GtkWidget *widget, GdkEventExpose *event, gpointer user_data) { -GdkWindow *gdkwindow; -gdkwindow = gtk_widget_get_window(window); -GtkStyle *style = gtk_widget_get_style(GTK_WIDGET(window)); - - gtk_paint_flat_box (style, - gdkwindow, - GTK_STATE_NORMAL, - GTK_SHADOW_OUT, - NULL, - window, - "tooltip", - 0, 0, - gdk_window_get_width(gdkwindow), - gdk_window_get_height(gdkwindow)); - - return FALSE; -} +GtkChart *chart = GTK_CHART(user_data); +cairo_t *cr; -static gint chart_tooltip_timeout (gpointer data) -{ -GtkChart *chart = GTK_CHART(data); -gint x, y, wx, wy; -GdkModifierType state; -GtkWidget *widget = GTK_WIDGET(chart); + DB( g_print("\n[gtkchart] drawarea expose\n") ); - GDK_THREADS_ENTER (); + DB( g_print(" type=%d regionempty=%d\n", event->type, cairo_region_is_empty(event->region)) ); - DB( g_print("\n[gtkchart] SHOULD TOOLTIP %x\n", (int)chart) ); + + + cr = gdk_cairo_create (gtk_widget_get_window (widget)); - GdkWindow *gdkwindow; - gdkwindow = gtk_widget_get_window(widget); + cairo_set_source_surface (cr, chart->surface, 0, 0); + //gdk_cairo_rectangle (cr, &event->area); + cairo_paint (cr); - //debug - gdk_window_get_origin (gdkwindow, &wx, &wy); + /* here draw only line, bar, slices */ + if(chart->nb_items == 0) + return FALSE; - gdk_window_get_pointer(gdkwindow, &x, &y, &state); - chart_tooltip_show(chart, wx+x, wy+y); - chart->timer_tag = 0; + switch(chart->type) + { + case CHART_TYPE_COL: + colchart_draw_bars(widget, chart); + break; + case CHART_TYPE_LINE: + linechart_draw_lines(widget, chart); + break; + case CHART_TYPE_PIE: + piechart_draw_slices(widget, chart); + break; + } + - GDK_THREADS_LEAVE (); + + cairo_destroy (cr); return FALSE; } -static void chart_tooltip_start_delay(GtkChart *chart) +static gboolean drawarea_querytooltip_callback(GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip, gpointer user_data) { +GtkChart *chart = GTK_CHART(user_data); +gchar *strval, *strval2, *buffer; +gboolean retval = FALSE; + + DB( g_print("\n[gtkchart] drawarea querytooltip\n") ); - DB( g_print("\n[gtkchart] start delay %x\n", (int)chart) ); - - if(chart->timer_tag == 0 ) - chart->timer_tag = g_timeout_add( DEFAULT_DELAY, chart_tooltip_timeout, (gpointer)chart); - -} - -static void chart_tooltip_hide(GtkChart *chart) -{ - DB( g_print("\n[gtkchart] tooltip hide\n") ); - - DB( g_print(" - timertag=%d\n", chart->timer_tag) ); - - if(chart->tooltipwin != NULL) - gtk_widget_hide(chart->tooltipwin); -} - - -static void chart_tooltip_show(GtkChart *chart, gint xpos, gint ypos) -{ -GtkWidget *window, *vbox, *label; -GtkRequisition req; -gint active; -gchar *strval, *buffer; -GtkWidget *alignment; - - DB( g_print("\n[gtkchart] tooltip show\n") ); - DB( g_print(" x=%d, y=%d\n", xpos, ypos) ); - - if(!chart->tooltipwin) + DB( g_print(" x=%d, y=%d kbm=%d\n", x, y, keyboard_mode) ); + if(chart->lastactive != chart->active) { - window = gtk_window_new (GTK_WINDOW_POPUP); - gtk_window_set_type_hint (GTK_WINDOW (window), - GDK_WINDOW_TYPE_HINT_TOOLTIP); - gtk_widget_set_app_paintable (window, TRUE); - gtk_window_set_resizable (GTK_WINDOW (window), FALSE); - gtk_widget_set_name (window, "gtk-tooltip"); - - alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0); - /*gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), - window->style->ythickness, - window->style->ythickness, - window->style->xthickness, - window->style->xthickness);*/ - gtk_container_add (GTK_CONTAINER (window), alignment); - gtk_widget_show (alignment); - - g_signal_connect_swapped (window, "expose_event", - G_CALLBACK (chart_tooltip_paint_window), window); - - //frame = gtk_frame_new(NULL); - //gtk_frame_set_shadow_type (GTK_FRAME(frame), GTK_SHADOW_OUT); - //gtk_container_add (GTK_CONTAINER (window), frame); - //gtk_container_set_border_width (GTK_CONTAINER (frame), 4); - //gtk_widget_show(frame); - - //vbox = gtk_vbox_new (FALSE, window->style->xthickness); - vbox = gtk_vbox_new (FALSE, 0); - //gtk_container_add( GTK_CONTAINER(frame), vbox); - gtk_container_add (GTK_CONTAINER (alignment), vbox); - gtk_widget_show(vbox); - - label = gtk_label_new ("tooltip"); - gtk_widget_show(label); - chart->ttlabel= label; - gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - //gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); - gtk_misc_set_padding(GTK_MISC(label), 2, 2); - gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT); - gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0); - - //gtk_widget_reset_rc_styles (tooltipwin); - - chart->tooltipwin = window; - + goto end; } - - /* create tooltip text */ - active = chart->active; - - if( active >= 0 ) + + if(chart->active >= 0) { + ChartItem *item = &g_array_index(chart->items, ChartItem, chart->active); + strval = chart_print_double(chart, chart->buffer1, item->serie1); if( !chart->dual ) { - strval = chart_print_double(chart, chart->datas1[active]); - if( chart->type == CHART_PIE_TYPE ) - buffer = g_markup_printf_escaped("%s\n%s\n%.2f%%", chart->titles[active], strval, ABS(chart->datas1[active])*100/chart->total); + if( chart->type == CHART_TYPE_PIE ) + buffer = g_markup_printf_escaped("%s\n%s\n%.2f%%", item->label, strval, item->rate); else - buffer = g_markup_printf_escaped("%s\n%s", chart->titles[active], strval); + buffer = g_markup_printf_escaped("%s\n%s", item->label, strval); - gtk_label_set_markup(GTK_LABEL(chart->ttlabel), buffer); - g_free(buffer); } else { - gchar *buf1; - - strval = chart_print_double(chart, chart->datas1[active]); - buf1 = g_strdup(strval); - strval = chart_print_double(chart, chart->datas2[active]); + strval2 = chart_print_double(chart, chart->buffer2, item->serie2); + buffer = g_markup_printf_escaped("%s\n+%s\n%s", item->label, strval2, strval); + } + + gtk_tooltip_set_text(tooltip, buffer); + //gtk_label_set_markup(GTK_LABEL(chart->ttlabel), buffer); + g_free(buffer); + retval = TRUE; + } +end: + chart->lastactive = chart->active; + + return retval; +} - buffer = g_markup_printf_escaped("%s\n-%s\n+%s", - chart->titles[active], - buf1, - strval - ); - gtk_label_set_markup(GTK_LABEL(chart->ttlabel), buffer); - g_free(buf1); - g_free(buffer); - } +static gboolean drawarea_motionnotifyevent_callback(GtkWidget *widget, GdkEventMotion *event, gpointer user_data) +{ +GtkChart *chart = GTK_CHART(user_data); +gboolean retval = TRUE; +gint x, y; + if(chart->nb_items == 0) + return FALSE; - /* - } - else - { - gtk_label_set_text(GTK_LABEL(chart->ttlabel), "Please move to:\na bar,\na slice\nor a point."); + DB( g_print("\n[gtkchart] drawarea motion\n") ); + x = event->x; + y = event->y; - } - */ + //todo see this + if(event->is_hint) + { + DB( g_print(" is hint\n") ); - /* position and show our tooltip */ - //gtk_widget_queue_resize(chart->tooltipwin); - gtk_widget_size_request (chart->tooltipwin, &req); + //gdk_window_get_device_position(event->window, event->device, &x, &y, NULL); + gdk_window_get_pointer(event->window, &x, &y, NULL); + //return FALSE; + } - //DB( g_print("size is: w%d h%d :: xpos=%d ypos=%d\n", req.width, req.height, xpos,ypos) ); + switch(chart->type) + { + case CHART_TYPE_COL: + chart->active = colchart_get_active(widget, x, y, chart); + break; + case CHART_TYPE_LINE: + chart->active = linechart_get_active(widget, x, y, chart); + break; + case CHART_TYPE_PIE: + chart->active = piechart_get_active(widget, x, y, chart); + break; + } - gtk_window_move(GTK_WINDOW(chart->tooltipwin), xpos - (req.width/2), ypos - req.height); + // rollover redraw ? + DB( g_print(" active: last=%d, curr=%d\n", chart->lastactive, chart->active) ); - gtk_widget_show(chart->tooltipwin); + if(chart->lastactive != chart->active) + { + DB( g_print(" rollover redraw :: active=%d\n", chart->active) ); + //chart->drawmode = CHART_DRAW_OVERCHANGE; + //gtk_widget_queue_draw_area(widget, chart->graph_x, chart->graph_y, chart->graph_width, chart->graph_height); + gtk_widget_queue_draw( widget ); + //retval = FALSE; } -} + DB( g_print(" x=%d, y=%d, time=%d\n", x, y, event->time) ); + DB( g_print(" trigger tooltip query\n") ); -/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ + gtk_tooltip_trigger_tooltip_query(gtk_widget_get_display(chart->drawarea)); + + return retval; +} /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ /* public functions */ /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +void gtk_chart_queue_redraw(GtkChart *chart) +{ + chart_recompute(chart); + drawarea_full_redraw(chart->drawarea, chart); + gtk_widget_queue_draw( chart->drawarea ); +} + + /* ** change the model and/or column */ @@ -1867,10 +1765,13 @@ void gtk_chart_set_datas(GtkChart *chart, GtkTreeModel *model, guint column, gch if( GTK_IS_TREE_MODEL(model) ) { - chart_setup_with_model(chart, model, column, -1); + chart_setup_with_model(chart, model, column, column); if(title != NULL) chart->title = g_strdup(title); - chart_recompute(chart); + + + + gtk_chart_queue_redraw(chart); } else { @@ -1890,7 +1791,10 @@ void gtk_chart_set_dualdatas(GtkChart *chart, GtkTreeModel *model, guint column1 chart_setup_with_model(chart, model, column1, column2 ); if(title != NULL) chart->title = g_strdup(title); - chart_recompute(chart); + + + + gtk_chart_queue_redraw(chart); } else { @@ -1911,7 +1815,8 @@ void gtk_chart_set_type(GtkChart * chart, gint type) chart->type = type; chart->dual = FALSE; - chart_recompute(chart); + + gtk_chart_queue_redraw(chart); } /* = = = = = = = = = = parameters = = = = = = = = = = */ @@ -1970,6 +1875,13 @@ void gtk_chart_set_minor_prefs(GtkChart * chart, gdouble rate, gchar *symbol) } +void gtk_chart_set_absolute(GtkChart * chart, gboolean abs) +{ + g_return_if_fail (GTK_IS_CHART (chart)); + + chart->abs = abs; +} + /* void gtk_chart_set_currency(GtkChart * chart, guint32 kcur) { @@ -1988,22 +1900,24 @@ void gtk_chart_set_overdrawn(GtkChart * chart, gdouble minimum) chart->minimum = minimum; - if(chart->type == CHART_LINE_TYPE) - chart_recompute(chart); + //if(chart->type == CHART_TYPE_LINE) + // chart_recompute(chart); } /* -** set the decy_xval +** set the every_xval */ -void gtk_chart_set_decy_xval(GtkChart * chart, gint decay) +void gtk_chart_set_every_xval(GtkChart * chart, gint gap) { g_return_if_fail (GTK_IS_CHART (chart)); - chart->decy_xval = decay; + chart->every_xval = gap; - if(chart->type != CHART_PIE_TYPE) - chart_recompute(chart); + //if(chart->type != CHART_TYPE_PIE) + // chart_recompute(chart); } + + /* ** set the barw */ @@ -2013,8 +1927,8 @@ void gtk_chart_set_barw(GtkChart * chart, gdouble barw) chart->barw = barw; - if(chart->type != CHART_PIE_TYPE) - chart_recompute(chart); + if(chart->type != CHART_TYPE_PIE) + gtk_chart_queue_redraw(chart); } @@ -2023,14 +1937,24 @@ void gtk_chart_set_barw(GtkChart * chart, gdouble barw) /* ** change the legend visibility */ -void gtk_chart_show_legend(GtkChart * chart, gboolean visible) +void gtk_chart_show_legend(GtkChart * chart, gboolean visible, gboolean showextracol) { +GtkTreeViewColumn *column; + g_return_if_fail (GTK_IS_CHART (chart)); if(visible == TRUE) gtk_widget_show(chart->scrollwin); else gtk_widget_hide(chart->scrollwin); + + /* manage column visibility */ + column = gtk_tree_view_get_column (GTK_TREE_VIEW(chart->treeview), 1); //amount + gtk_tree_view_column_set_visible (column, showextracol); + + column = gtk_tree_view_get_column (GTK_TREE_VIEW(chart->treeview), 2); //percent + gtk_tree_view_column_set_visible (column, showextracol); + } /* @@ -2042,8 +1966,8 @@ void gtk_chart_show_xval(GtkChart * chart, gboolean visible) chart->show_xval = visible; - if(chart->type != CHART_PIE_TYPE) - chart_recompute(chart); + //if(chart->type != CHART_TYPE_PIE) + // chart_recompute(chart); } /* @@ -2055,8 +1979,8 @@ void gtk_chart_show_overdrawn(GtkChart * chart, gboolean visible) chart->show_over = visible; - if(chart->type == CHART_LINE_TYPE) - chart_recompute(chart); + //if(chart->type == CHART_TYPE_LINE) + // chart_recompute(chart); } @@ -2069,8 +1993,8 @@ void gtk_chart_show_minor(GtkChart * chart, gboolean minor) chart->minor = minor; - if(chart->type != CHART_PIE_TYPE) - chart_recompute(chart); + if(chart->type != CHART_TYPE_PIE) + gtk_chart_queue_redraw(chart); gtk_tree_view_columns_autosize (GTK_TREE_VIEW(chart->treeview)); } @@ -2213,7 +2137,7 @@ GtkTreeViewColumn *column; g_object_unref(store); #if MYDEBUG == 1 - GtkStyle *style; +/* GtkStyle *style; PangoFontDescription *font_desc; g_print("legend_list_new font\n"); @@ -2223,7 +2147,7 @@ GtkTreeViewColumn *column; g_print("family: %s\n", pango_font_description_get_family(font_desc) ); g_print("size: %d (%d)\n", pango_font_description_get_size (font_desc), pango_font_description_get_size (font_desc )/PANGO_SCALE ); - +*/ #endif // change the font size to a smaller one @@ -2259,7 +2183,8 @@ GtkTreeViewColumn *column; //gtk_tree_view_column_set_spacing( column, 16 ); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - + gtk_tree_view_column_set_visible (column, FALSE); + // column 3 column = gtk_tree_view_column_new(); //gtk_tree_view_column_set_title(column, "%"); @@ -2268,19 +2193,16 @@ GtkTreeViewColumn *column; gtk_tree_view_column_pack_start(column, renderer, TRUE); //gtk_tree_view_column_add_attribute(column, renderer, "text", id); gtk_tree_view_column_set_cell_data_func(column, renderer, legend_list_rate_cell_data_function, GINT_TO_POINTER(3), NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE); //gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); + gtk_tree_view_column_set_visible (column, FALSE); gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(view)), GTK_SELECTION_NONE); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW(view), FALSE); //gtk_tree_view_set_reorderable (GTK_TREE_VIEW(view), TRUE); - //g_object_set(view, "vertical-separator", 1); - - //g_object_set(view, "vertical-separator", 0, NULL); - //g_object_set(view, "horizontal-separator", 0, NULL); - /* GValue value = { 0, }; g_value_init (&value, G_TYPE_INT); diff --git a/src/gtk-chart.h b/src/gtk-chart.h index f12bdf75c528cfe894ae40ceeff442af6957b102..0c4d56e06704b6e953ccf24e5996ba1f8869e5d9 100644 --- a/src/gtk-chart.h +++ b/src/gtk-chart.h @@ -38,6 +38,7 @@ typedef struct _GtkChart GtkChart; typedef struct _GtkChartClass GtkChartClass; //typedef struct _GtkChartPrivate GtkChartPrivate; +typedef struct _ChartItem ChartItem; typedef gchar (* GtkChartPrintIntFunc) (gint value, gboolean minor); typedef gchar (* GtkChartPrintDoubleFunc) (gdouble value, gboolean minor); @@ -51,20 +52,19 @@ typedef gchar (* GtkChartPrintDoubleFunc) (gdouble value, gboolean minor); /* default zoomx for charts */ -#define GTK_CHART_BARW 24 -#define GTK_CHART_MINBARW 8 -#define GTK_CHART_MAXBARW 64 - -#define CHART_BUFFER_LENGTH 128 +#define GTK_CHART_BARW 24 +#define GTK_CHART_MINBARW 8 +#define GTK_CHART_MAXBARW 64 +#define GTK_CHART_MINRADIUS 64 -#define DEFAULT_DELAY 500 /* Default delay in ms */ +#define CHART_BUFFER_LENGTH 128 // for cairo pie #define PIE_LINE_SLICE 0 #define SOFT_LIGHT 0 #define GRADIENT 0 -#define CHART_PIE_DONUT 0 +#define CHART_PIE_DONUT 1 /* new stuff */ @@ -76,13 +76,12 @@ typedef gchar (* GtkChartPrintDoubleFunc) (gdouble value, gboolean minor); enum { - CHART_BAR_TYPE, - CHART_LINE_TYPE, - CHART_PIE_TYPE, + CHART_TYPE_COL, + CHART_TYPE_PIE, + CHART_TYPE_LINE, CHART_TYPE_MAX }; -/* end */ enum { @@ -95,10 +94,30 @@ enum }; -/* you should access only the entry and list fields directly */ +struct _ChartItem +{ + /* data part */ + gchar *label; + gdouble serie1; + gdouble serie2; + gdouble rate; + + /* cairo part */ + gchar *legend; + double angle2; /* rate for pie */ + double height; /* for column */ +}; + + struct _GtkChart { + //own widget here + /*< private >*/ + //GtkChartPrivate *priv; + + + /* all below should be in priv normally */ GtkHBox hbox; GtkWidget *drawarea; @@ -109,22 +128,20 @@ struct _GtkChart GtkWidget *treeview; GtkTreeModel *legend; - GtkWidget *tooltipwin; - GtkWidget *ttlabel; - /* data storage */ - guint nb_items; + gint nb_items; + GArray *items; + gchar *title; - gchar **titles; - gdouble *datas1; - gdouble *datas2; + gchar *subtitle; /* chart properties */ gint type; gboolean dual; + gboolean abs; gboolean show_over; gboolean show_xval; - gint decy_xval; + gint every_xval; //guint32 kcur; gboolean minor; gdouble minor_rate; @@ -133,15 +150,19 @@ struct _GtkChart /* color datas */ struct rgbcol *colors; gint nb_cols; - gint cs_red, cs_green, cs_blue; + gint cs_red, cs_green, cs_blue, cs_yellow; - - double l, t, b, r, w, h; + /* buffer surface */ + cairo_surface_t *surface; + + /* draw area coordinates */ + double l, t, b, r, w, h; /* our drawing rectangle with margin */ double legend_w; /* zones height */ double title_zh; + double subtitle_zh, subtitle_y; double ox, oy; @@ -155,19 +176,22 @@ struct _GtkChart gint rayon, left, top; /* bar specifics */ - double range, min, max, unit, minimum; + double rawmin, rawmax, range, min, max, unit, minimum; gint div; gint visible; double font_h; + double scale_x, scale_y, scale_w, scale_h; double graph_x, graph_y, graph_width, graph_height; //graph dimension double barw, blkw, posbarh, negbarh; - gchar buffer[CHART_BUFFER_LENGTH]; + gchar buffer1[CHART_BUFFER_LENGTH]; + gchar buffer2[CHART_BUFFER_LENGTH]; }; -struct _GtkChartClass { +struct _GtkChartClass +{ GtkHBoxClass parent_class; /* Padding for future expansion */ @@ -185,6 +209,8 @@ GtkWidget *gtk_chart_new(gint type); void gtk_chart_set_type(GtkChart *chart, gint type); void gtk_chart_set_color_scheme(GtkChart * chart, gint colorscheme); +void gtk_chart_queue_redraw(GtkChart *chart); + void gtk_chart_set_datas(GtkChart *chart, GtkTreeModel *model, guint column, gchar *title); void gtk_chart_set_dualdatas(GtkChart *chart, GtkTreeModel *model, guint column1, guint column2, gchar *title); @@ -192,13 +218,14 @@ void gtk_chart_set_minor_prefs(GtkChart * chart, gdouble rate, gchar *symbol); //void gtk_chart_set_currency(GtkChart * chart, guint32 kcur); void gtk_chart_set_overdrawn(GtkChart * chart, gdouble minimum); -void gtk_chart_set_decy_xval(GtkChart * chart, gint decay); +void gtk_chart_set_every_xval(GtkChart * chart, gint decay); void gtk_chart_set_barw(GtkChart * chart, gdouble barw); -void gtk_chart_show_legend(GtkChart * chart, gboolean visible); +void gtk_chart_show_legend(GtkChart * chart, gboolean visible, gboolean showextracol); void gtk_chart_show_overdrawn(GtkChart * chart, gboolean visible); void gtk_chart_show_xval(GtkChart * chart, gboolean visible); void gtk_chart_show_minor(GtkChart * chart, gboolean minor); +void gtk_chart_set_absolute(GtkChart * chart, gboolean abs); G_END_DECLS #endif /* __GTK_CHART_H__ */ diff --git a/src/hb-account.c b/src/hb-account.c index 4efa0b71456d8360dc3e189b8731cf590e441e27..da1f30a853285a2d3dbf1183c933559f2b55390e 100644 --- a/src/hb-account.c +++ b/src/hb-account.c @@ -312,18 +312,7 @@ da_acc_debug_list(void) static gint account_glist_name_compare_func(Account *a, Account *b) { -gint retval = 0; - - if (a->name == NULL || b->name == NULL) - { - retval = (a->name == NULL) ? -1 : 1; - } - else - { - retval = g_utf8_collate(a->name, b->name); - } - - return retval; + return hb_string_utf8_compare(a->name, b->name); } diff --git a/src/hb-archive.c b/src/hb-archive.c index 4322f78aabfebdb4dcce5795775128ddd4596c46..0ede27030cce95f71fb29d1ef1f7c0f67da9a627 100644 --- a/src/hb-archive.c +++ b/src/hb-archive.c @@ -81,7 +81,7 @@ GList *tmplist = g_list_first(list); static gint da_archive_glist_compare_func(Archive *a, Archive *b) { - return (g_utf8_collate(a->wording, b->wording)); + return hb_string_utf8_compare(a->wording, b->wording); } @@ -135,18 +135,146 @@ Payee *pay; /* = = = = = = = = = = = = = = = = = = = = */ -/* return the nb of days from today scheduled transaction can be inserted */ -guint archive_add_get_nbdays(void) +static guint32 _sched_date_get_next_post(Archive *arc, guint32 nextdate) +{ +GDate *tmpdate; +guint32 nextpostdate = nextdate; + + tmpdate = g_date_new_julian(nextpostdate); + switch(arc->unit) + { + case AUTO_UNIT_DAY: + g_date_add_days(tmpdate, arc->every); + break; + case AUTO_UNIT_WEEK: + g_date_add_days(tmpdate, 7 * arc->every); + break; + case AUTO_UNIT_MONTH: + g_date_add_months(tmpdate, arc->every); + break; + case AUTO_UNIT_YEAR: + g_date_add_years(tmpdate, arc->every); + break; + } + + /* get the final post date and free */ + nextpostdate = g_date_get_julian(tmpdate); + g_date_free(tmpdate); + + /* check limit, update and maybe break */ + if(arc->flags & OF_LIMIT) + { + arc->limit--; + if(arc->limit <= 0) + { + arc->flags ^= (OF_LIMIT | OF_AUTO); // invert flags + nextpostdate = 0; + } + } + + return nextpostdate; +} + + +gboolean scheduled_is_postable(Archive *arc) +{ +gdouble value; + + value = arrondi(arc->amount, 2); + if( (arc->flags & OF_AUTO) && (arc->kacc > 0) && (value != 0.0) ) + return TRUE; + + return FALSE; +} + + +guint32 scheduled_get_postdate(Archive *arc, guint32 postdate) +{ +GDate *tmpdate; +GDateWeekday wday; +guint32 finalpostdate; +gint shift; + + finalpostdate = postdate; + + tmpdate = g_date_new_julian(finalpostdate); + /* manage weekend exception */ + if( arc->weekend > 0 ) + { + wday = g_date_get_weekday(tmpdate); + + DB( g_print(" %s wday=%d\n", arc->wording, wday) ); + + if( wday >= G_DATE_SATURDAY ) + { + switch(arc->weekend) + { + case 1: /* shift before : sun 7-5=+2 , sat 6-5=+1 */ + shift = wday - G_DATE_FRIDAY; + DB( g_print("sub=%d\n", shift) ); + g_date_subtract_days (tmpdate, shift); + break; + + case 2: /* shift after : sun 8-7=1 , sat 8-6=2 */ + shift = 8 - wday; + DB( g_print("add=%d\n", shift) ); + g_date_add_days (tmpdate, shift); + break; + } + } + } + + /* get the final post date and free */ + finalpostdate = g_date_get_julian(tmpdate); + g_date_free(tmpdate); + + return finalpostdate; +} + + + + + +guint32 scheduled_get_latepost_count(Archive *arc, guint32 jrefdate) +{ +guint32 nbpost = 0; +guint32 curdate = arc->nextdate; + + while(curdate <= jrefdate) + { + curdate = _sched_date_get_next_post(arc, curdate); + nbpost++; + // break at 11 max (to display +10) + if(nbpost >= 11) + break; + } + + return nbpost; +} + + +/* return 0 is max number of post is reached */ +guint32 scheduled_date_advance(Archive *arc) +{ + arc->nextdate = _sched_date_get_next_post(arc, arc->nextdate); + return arc->nextdate; +} + + +/* + * return the maximum date a scheduled txn can be posted to + */ +guint32 scheduled_date_get_post_max(void) { guint nbdays; GDate *today, *maxdate; - DB( g_print("(archive_add_get_nbdays)") ); + DB( g_print("\n[scheduled] date_get_post_max\n") ); //add until xx of the next month (excluded) if(GLOBALS->auto_smode == 0) { - DB( g_print("- set to %d of next month", GLOBALS->auto_weekday) ); + DB( g_print(" - max is %d of next month\n", GLOBALS->auto_weekday) ); today = g_date_new_julian(GLOBALS->today); @@ -166,7 +294,75 @@ GDate *today, *maxdate; nbdays = GLOBALS->auto_nbdays; } - return nbdays; + DB( hb_print_date(GLOBALS->today, "today") ); + DB( g_print(" - %d nbdays\n", nbdays) ); + DB( hb_print_date(GLOBALS->today + nbdays, "maxpostdate") ); + + return GLOBALS->today + nbdays; } +gint scheduled_post_all_pending(void) +{ +GList *list; +gint count; +guint32 maxpostdate; +Transaction *txn; + + DB( g_print("\n[scheduled] post_all_pending\n") ); + + count = 0; + + maxpostdate = scheduled_date_get_post_max(); + + txn = da_transaction_malloc(); + + list = g_list_first(GLOBALS->arc_list); + while (list != NULL) + { + Archive *arc = list->data; + + DB( g_print("\n eval %d for '%s'\n", scheduled_is_postable(arc), arc->wording) ); + + if(scheduled_is_postable(arc) == TRUE) + { + DB( g_print(" - every %d limit %d (to %d)\n", arc->every, arc->flags & OF_LIMIT, arc->limit) ); + DB( hb_print_date(arc->nextdate, "next post") ); + + if(arc->nextdate < maxpostdate) + { + guint32 mydate = arc->nextdate; + + while(mydate < maxpostdate) + { + DB( hb_print_date(mydate, arc->wording) ); + + da_transaction_init_from_template(txn, arc); + txn->date = scheduled_get_postdate(arc, mydate); + /* todo: ? fill in cheque number */ + + transaction_add(txn, NULL, 0); + GLOBALS->changes_count++; + count++; + + da_transaction_clean(txn); + + mydate = scheduled_date_advance(arc); + + //DB( hb_print_date(mydate, "next on") ); + + if(mydate == 0) + goto nextarchive; + } + + } + } +nextarchive: + list = g_list_next(list); + } + + da_transaction_free (txn); + + return count; +} + diff --git a/src/hb-archive.h b/src/hb-archive.h index 10de9492385b07028bfb5a266e72d08e7b1d2e9e..c46c1bde47c7d670c36080742ec5643d790fbd95 100644 --- a/src/hb-archive.h +++ b/src/hb-archive.h @@ -37,6 +37,7 @@ struct _archive gushort every; gushort unit; gushort limit; + gushort weekend; }; @@ -50,5 +51,13 @@ guint da_archive_length(void); void da_archive_consistency(Archive *item); +gboolean scheduled_is_postable(Archive *arc); +guint32 scheduled_get_postdate(Archive *arc, guint32 postdate); +guint32 scheduled_get_latepost_count(Archive *arc, guint32 jrefdate); +guint32 scheduled_date_advance(Archive *arc); +guint32 scheduled_date_get_post_max(void); +gint scheduled_post_all_pending(void); + + #endif diff --git a/src/hb-assign.h b/src/hb-assign.h index 5e926dffdad830ca9cb9124fa56d4d0d228ab132..7ecdf714efdd6d208ee8ea750008b054f7ab5bc4 100644 --- a/src/hb-assign.h +++ b/src/hb-assign.h @@ -27,14 +27,18 @@ typedef struct _assign Assign; struct _assign { guint32 key; + gushort flags; + gushort field; gchar *name; - gboolean exact; guint32 kpay; guint32 kcat; +}; - /* unsaved datas */ -}; +#define ASGF_EXACT (1<<0) +#define ASGF_DOPAY (1<<1) +#define ASGF_DOCAT (1<<2) + void da_asg_free(Assign *item); diff --git a/src/hb-category.c b/src/hb-category.c index 5feb4351f268c010b97ca8cf9d56ecd9b530837b..3d9b15a18903f9cf13fafd470412e239911c7d4f 100644 --- a/src/hb-category.c +++ b/src/hb-category.c @@ -410,7 +410,7 @@ da_cat_append_ifnew_by_fullname(gchar *fullname, gboolean imported) { struct fullcatcontext ctx; gchar **typestr; -Category *newcat, *item, *retcat = NULL; +Category *newcat, *item, *retval = NULL; guint32 *new_key; DB( g_print("da_cat_append_ifnew_by_fullname\n") ); @@ -472,10 +472,10 @@ guint32 *new_key; g_hash_table_insert(GLOBALS->h_cat, new_key, newcat); - retcat = newcat; + retval = newcat; } else - retcat = item; + retval = item; } /* this a single category : aaaa */ else @@ -500,17 +500,17 @@ guint32 *new_key; g_hash_table_insert(GLOBALS->h_cat, new_key, newcat); - retcat = newcat; + retval = newcat; } else - retcat = item; + retval = item; } g_strfreev(typestr); } - return retcat; + return retval; } @@ -583,14 +583,25 @@ gboolean category_is_used(guint32 key) { GList *lrul, *list; +guint i, nbsplit; - //todo: add budget use here list = g_list_first(GLOBALS->ope_list); while (list != NULL) { Transaction *entry = list->data; if( key == entry->kcat ) return TRUE; + + // check split category #1340142 + nbsplit = da_transaction_splits_count(entry); + for(i=0;isplits[i]; + + if( key == split->kcat ) + return TRUE; + } + list = g_list_next(list); } @@ -603,6 +614,8 @@ GList *lrul, *list; list = g_list_next(list); } + //todo: add budget use here + lrul = list = g_hash_table_get_values(GLOBALS->h_rul); while (list != NULL) { @@ -621,6 +634,7 @@ void category_move(guint32 key1, guint32 key2) { GList *lrul, *list; +guint i, nbsplit; list = g_list_first(GLOBALS->ope_list); while (list != NULL) @@ -631,6 +645,20 @@ GList *lrul, *list; entry->kcat = key2; entry->flags |= OF_CHANGED; } + + // move split category #1340142 + nbsplit = da_transaction_splits_count(entry); + for(i=0;isplits[i]; + + if( split->kcat == key1 ) + { + split->kcat = key2; + entry->flags |= OF_CHANGED; + } + } + list = g_list_next(list); } @@ -713,20 +741,19 @@ gboolean retval; static gint category_glist_name_compare_func(Category *c1, Category *c2) { gchar *name1, *name2; -gint ret = 0; +gint retval = 0; if( c1 != NULL && c2 != NULL ) { name1 = da_cat_get_fullname(c1); name2 = da_cat_get_fullname(c2); - if(name1 != NULL && name2 != NULL) - ret = g_utf8_collate(name1, name2); + retval = hb_string_utf8_compare(name1, name2); g_free(name2); g_free(name1); } - return ret; + return retval; } diff --git a/src/hb-filter.c b/src/hb-filter.c index ebe48d347dab9ab25a14d4de84d367d22f422f96..18c57774fc779c3be15aad00ddca1052bbf9d8c3 100644 --- a/src/hb-filter.c +++ b/src/hb-filter.c @@ -99,6 +99,7 @@ guint i; flt->wording = NULL; flt->tag = NULL; + flt->last_tab = 0; } @@ -197,16 +198,35 @@ guint32 refjuliandate, month, year, qnum; break; case FLT_RANGE_THISYEAR: - g_date_set_dmy(date, 1, 1, year); - flt->mindate = g_date_get_julian(date); - g_date_set_dmy(date, 31, 12, year); + g_date_set_dmy(date, PREFS->fisc_year_day, PREFS->fisc_year_month, year); + if( refjuliandate >= g_date_get_julian (date)) + { + flt->mindate = g_date_get_julian(date); + } + else + { + g_date_set_dmy(date, PREFS->fisc_year_day, PREFS->fisc_year_month, year-1); + flt->mindate = g_date_get_julian(date); + } + g_date_add_years (date, 1); + g_date_subtract_days (date, 1); flt->maxdate = g_date_get_julian(date); break; case FLT_RANGE_LASTYEAR: - g_date_set_dmy(date, 1, 1, year-1); - flt->mindate = g_date_get_julian(date); - g_date_set_dmy(date, 31, 12, year-1); + g_date_set_dmy(date, PREFS->fisc_year_day, PREFS->fisc_year_month, year); + if( refjuliandate >= g_date_get_julian (date)) + { + g_date_set_dmy(date, PREFS->fisc_year_day, PREFS->fisc_year_month, year-1); + flt->mindate = g_date_get_julian(date); + } + else + { + g_date_set_dmy(date, PREFS->fisc_year_day, PREFS->fisc_year_month, year-2); + flt->mindate = g_date_get_julian(date); + } + g_date_add_years (date, 1); + g_date_subtract_days (date, 1); flt->maxdate = g_date_get_julian(date); break; @@ -302,12 +322,110 @@ GList *lcat, *list; case FLT_STATUS_UNRECONCILED: flt->option[FILTER_STATUS] = 2; flt->reconciled = TRUE; + //#1336882 + flt->reminded = FALSE; break; } } +static gint filter_text_compare(gchar *txntext, gchar *searchtext, gboolean exact) +{ +gint retval = 0; + + if( exact ) + { + if( g_strstr_len(txntext, -1, searchtext) != NULL ) + { + DB( g_print(" found case '%s'\n", searchtext) ); + retval = 1; + } + } + else + { + gchar *word = g_utf8_casefold(txntext, -1); + gchar *needle = g_utf8_casefold(searchtext, -1); + + if( g_strrstr(word, needle) != NULL ) + { + DB( g_print(" found nocase '%s'\n", needle) ); + retval = 1; + } + + g_free(word); + g_free(needle); + } + return retval; +} + + +/* used for quicksearch text into transaction */ +gboolean filter_txn_search_match(gchar *needle, Transaction *txn, gint flags) +{ +gboolean retval = FALSE; +Payee *payitem; +Category *catitem; +gchar *tags; + + if(flags & FLT_QSEARCH_MEMO) + { + if(txn->wording) + { + retval |= filter_text_compare(txn->wording, needle, FALSE); + } + if(retval) goto end; + } + + if(flags & FLT_QSEARCH_INFO) + { + if(txn->info) + { + retval |= filter_text_compare(txn->info, needle, FALSE); + } + if(retval) goto end; + } + + if(flags & FLT_QSEARCH_PAYEE) + { + payitem = da_pay_get(txn->kpay); + if(payitem) + { + retval |= filter_text_compare(payitem->name, needle, FALSE); + } + if(retval) goto end; + } + + if(flags & FLT_QSEARCH_CATEGORY) + { + catitem = da_cat_get(txn->kcat); + if(catitem) + { + gchar *fullname = da_cat_get_fullname (catitem); + + retval |= filter_text_compare(fullname, needle, FALSE); + g_free(fullname); + } + if(retval) goto end; + } + + if(flags & FLT_QSEARCH_TAGS) + { + tags = transaction_tags_tostring(txn); + if(tags) + { + retval |= filter_text_compare(tags, needle, FALSE); + } + g_free(tags); + //if(retval) goto end; + } + + +end: + return retval; +} + + gint filter_test(Filter *flt, Transaction *txn) { Account *accitem; @@ -368,14 +486,17 @@ gint insert; count = da_transaction_splits_count(txn); for(i=0;isplits[i]; catitem = da_cat_get(split->kcat); if(catitem) { - insert |= ( catitem->filter == TRUE ) ? 1 : 0; + tmpinsert = ( catitem->filter == TRUE ) ? 1 : 0; + if(flt->option[FILTER_CATEGORY] == 2) tmpinsert ^= 1; } + insert |= tmpinsert; } - if(flt->option[FILTER_CATEGORY] == 2) insert ^= 1; } else { @@ -422,14 +543,14 @@ gint insert; if(flt->option[FILTER_TEXT]) { gchar *tags; - gint insert1 = 0, insert2 = 0, insert3 = 0; + gint insert1, insert2, insert3; + insert1 = insert2 = insert3 = 0; if(flt->info) { if(txn->info) { - if( g_strstr_len(txn->info, -1, flt->info) != NULL ) - insert1 = 1; + insert1 = filter_text_compare(txn->info, flt->info, flt->exact); } } else @@ -439,8 +560,7 @@ gint insert; { if(txn->wording) { - if( g_strstr_len(txn->wording, -1, flt->wording) != NULL ) - insert2 = 1; + insert2 = filter_text_compare(txn->wording, flt->wording, flt->exact); } } else @@ -451,9 +571,7 @@ gint insert; tags = transaction_tags_tostring(txn); if(tags) { - if( g_strstr_len(tags, -1, flt->tag) != NULL ) - insert3 = 1; - + insert3 = filter_text_compare(tags, flt->tag, flt->exact); } g_free(tags); } diff --git a/src/hb-filter.h b/src/hb-filter.h index b8911fd56707b80e2e11046cfe7dc369461bb761..54bb425373913fcdcad7312f3913c35d97c455b5 100644 --- a/src/hb-filter.h +++ b/src/hb-filter.h @@ -75,6 +75,17 @@ enum FLT_STATUS_ALL = 3 }; + +enum +{ + FLT_QSEARCH_MEMO = 1<<0, + FLT_QSEARCH_INFO = 1<<1, + FLT_QSEARCH_PAYEE = 1<<2, + FLT_QSEARCH_CATEGORY = 1<<3, + FLT_QSEARCH_TAGS = 1<<4 +}; + + typedef struct _filter Filter; struct _filter @@ -91,6 +102,7 @@ struct _filter gboolean forcechg; gboolean paymode[NUM_PAYMODE_MAX]; gdouble minamount, maxamount; + gboolean exact; gchar *info; gchar *wording; gchar *tag; @@ -106,6 +118,7 @@ void filter_preset_daterange_set(Filter *flt, gint range); void filter_preset_type_set(Filter *flt, gint value); void filter_preset_status_set(Filter *flt, gint value); gchar *filter_daterange_text_get(Filter *flt); +gboolean filter_txn_search_match(gchar *needle, Transaction *txn, gint flags); gint filter_test(Filter *flt, Transaction *ope); diff --git a/src/hb-hbfile.c b/src/hb-hbfile.c index 61db90e496b7f205ee086d64f15e838de1357674..fe64d4b00b34dbc74796c82fbf3e26d087745f3b 100644 --- a/src/hb-hbfile.c +++ b/src/hb-hbfile.c @@ -78,125 +78,6 @@ static void hbfile_file_load_backup_xhb(void) } */ -gint hbfile_insert_scheduled_transactions(void) -{ -GList *list; -gint count; -guint32 maxdate; -gint nb_days; - - DB( g_print("\n[hbfile] insert_scheduled_transactions\n") ); - - count = 0; - nb_days = archive_add_get_nbdays(); - - maxdate = GLOBALS->today + nb_days; - - list = g_list_first(GLOBALS->arc_list); - while (list != NULL) - { - Archive *arc = list->data; - - if((arc->flags & OF_AUTO) && arc->kacc > 0) - { - - /*#if MYDEBUG == 1 - gchar buffer1[128]; GDate *date; - date = g_date_new_julian(arc->nextdate); - g_date_strftime (buffer1, 128-1, "%x", date); - g_date_free(date); - //g_print(" -> '%s' - every %d %s - next %s limit %d\n", arc->wording, arc->every, CYA_UNIT[arc->unit], buffer1, arc->limit); - #endif*/ - - if(arc->nextdate < maxdate) - { - guint32 mydate = arc->nextdate; - - while(mydate < maxdate) - { - Transaction ope; - - /*#if MYDEBUG == 1 - gchar buffer1[128]; GDate *date; - date = g_date_new_julian(mydate); - g_date_strftime (buffer1, 128-1, "%x", date); - g_date_free(date); - //g_print(" -> adding '%s' on %s\n", arc->wording, buffer1); - #endif*/ - - /* fill in the transaction */ - memset(&ope, 0, sizeof(ope)); - ope.date = mydate; - ope.amount = arc->amount; - ope.kacc = arc->kacc; - ope.paymode = arc->paymode; - ope.flags = arc->flags | OF_ADDED; - ope.kpay = arc->kpay; - ope.kcat = arc->kcat; - ope.kxferacc = arc->kxferacc; - ope.wording = g_strdup(arc->wording); - ope.info = NULL; - - /* todo: ? fill in cheque number */ - - transaction_add(&ope, NULL, 0); - GLOBALS->changes_count++; - count++; - - /* compute next occurence */ - switch(arc->unit) - { - case AUTO_UNIT_DAY: - mydate += arc->every; - break; - case AUTO_UNIT_WEEK: - mydate += (7*arc->every); - break; - case AUTO_UNIT_MONTH: - { - GDate *date = g_date_new_julian(mydate); - g_date_add_months(date, (gint)arc->every); - mydate = g_date_get_julian(date); - g_date_free(date); - } - break; - case AUTO_UNIT_YEAR: - mydate += (365*arc->every); - break; - } - - /* check limit, update and maybe break */ - if(arc->flags & OF_LIMIT) - { - arc->limit--; - if(arc->limit <= 0) - { - arc->flags ^= (OF_LIMIT | OF_AUTO); // invert flags - goto nextarchive; - } - } - - - - } - - /* store next occurence */ - arc->nextdate = mydate; - - } - - - } -nextarchive: - - list = g_list_next(list); - - - } - - - return count; -} /* @@ -511,9 +392,9 @@ void hbfile_setup(gboolean file_clear) GLOBALS->vehicle_category = 0; + GLOBALS->auto_smode = 1; GLOBALS->auto_nbdays = 0; GLOBALS->auto_weekday = 1; - GLOBALS->auto_smode = 0; GLOBALS->changes_count = 0; diff --git a/src/hb-hbfile.h b/src/hb-hbfile.h index aa92ef85c297c81b79e3e79e7db5f369a4523d88..c2b3b7d9176ac7f5ab46ad1d4b8f677b5afba132 100644 --- a/src/hb-hbfile.h +++ b/src/hb-hbfile.h @@ -22,7 +22,6 @@ gboolean hbfile_file_hasbackup(gchar *filepath); -gint hbfile_insert_scheduled_transactions(void); void hbfile_change_owner(gchar *owner); void hbfile_change_filepath(gchar *filepath); diff --git a/src/hb-misc.c b/src/hb-misc.c index 067123f95f82b3dedf23df259528ec70f6909f1c..57aee6862567087a4ad45776e224e0fddac9391a 100644 --- a/src/hb-misc.c +++ b/src/hb-misc.c @@ -44,12 +44,12 @@ gdouble fi; static unsigned dix_puissance_n(unsigned n) { - unsigned i, res = 1; + unsigned i, retval = 1; for(i = 0; i < n; i++) - res *= 10; + retval *= 10; - return res; + return retval; } double arrondi(const double x, unsigned n) @@ -333,7 +333,7 @@ gint size; -/* end obsolste call */ +/* end obsolete call */ gchar *get_normal_color_amount(gdouble value) @@ -528,6 +528,37 @@ guint month, year, qnum; ** String utility */ + +/* + * compare 2 utf8 string + */ +gint hb_string_utf8_compare(gchar *s1, gchar *s2) +{ +gint retval = 0; +gchar *ns1, *ns2; + + if (s1 == NULL || s2 == NULL) + { + if (s1 == NULL && s2 == NULL) + goto end; + + retval = (s1 == NULL) ? -1 : 1; + } + else + { + //#1325969 + //retval = g_utf8_collate(s1 != NULL ? s1 : "", s2 != NULL ? s2 : ""); + ns1 = g_utf8_normalize(s1, -1, G_NORMALIZE_DEFAULT); + ns2 = g_utf8_normalize(s2, -1, G_NORMALIZE_DEFAULT); + retval = strcasecmp(ns1, ns2); + g_free(ns2); + g_free(ns1); + } +end: + return retval; +} + + void hb_string_strip_crlf(gchar *str) { gchar *p = str; @@ -838,6 +869,18 @@ csvend: } +void hb_print_date(guint32 jdate, gchar *label) +{ +gchar buffer1[128]; +GDate *date; + + date = g_date_new_julian(jdate); + g_date_strftime (buffer1, 128-1, "%x", date); + g_date_free(date); + g_print(" - %s %s\n", label != NULL ? label:"date is", buffer1); +} + + /* ** parse a string an retrieve an iso date (dd-mm-yy(yy) or dd/mm/yy(yy)) diff --git a/src/hb-misc.h b/src/hb-misc.h index 69dfebaacc3cdce216faf1201a76c699a80f7630..0674a054f8576c8da617749f7bc3a588dc527afd 100644 --- a/src/hb-misc.h +++ b/src/hb-misc.h @@ -44,6 +44,8 @@ void hb_label_set_colvaluecurr(GtkLabel *label, gdouble value, guint32 currkey); //void get_period_minmax(guint month, guint year, guint32 *mindate, guint32 *maxdate); //void get_range_minmax(guint32 refdate, gint range, guint32 *mindate, guint32 *maxdate); +gint hb_string_utf8_compare(gchar *s1, gchar *s2); + void hb_string_strip_crlf(gchar *str); gchar* hb_strdup_nobrackets (const gchar *str); @@ -51,6 +53,8 @@ gboolean hb_string_csv_valid(gchar *str, guint nbcolumns, gint *csvtype); guint32 hb_date_get_julian(gchar *string, gint datefmt); +void hb_print_date(guint32 jdate, gchar *label); + void hex_dump(guchar *ptr, guint length); diff --git a/src/hb-payee.c b/src/hb-payee.c index 986589c5086a4eee76c6dc1583a12467f521ed6c..4a99bb33f2d0136a412e2de00cebc13f3501ca58 100644 --- a/src/hb-payee.c +++ b/src/hb-payee.c @@ -384,11 +384,12 @@ GList *lrul, *list; { entry->kpay = key2; } - list = g_list_next(lrul); + list = g_list_next(list); } - g_list_free(list); + g_list_free(lrul); } + gboolean payee_rename(Payee *item, const gchar *newname) { @@ -453,18 +454,7 @@ Payee *item; static gint payee_glist_name_compare_func(Payee *a, Payee *b) { -gint retval = 0; - - if (a->name == NULL || b->name == NULL) - { - retval = (a->name == NULL) ? -1 : 1; - } - else - { - retval = g_utf8_collate(a->name, b->name); - } - - return retval; + return hb_string_utf8_compare(a->name, b->name); } diff --git a/src/hb-preferences.c b/src/hb-preferences.c index 8ae9ce2308d995538c3da0dda7413e262c988a9d..6fead0dbdc6e2b2b12ce51cd8cff998d160fa602 100644 --- a/src/hb-preferences.c +++ b/src/hb-preferences.c @@ -72,29 +72,29 @@ struct lconv *lc = localeconv(); /* ok assign */ - + if( lc->p_cs_precedes || lc->n_cs_precedes ) { - PREFS->base_cur.prefix_symbol = g_strdup(lc->currency_symbol); - PREFS->base_cur.suffix_symbol = NULL; //g_strdup(""); + PREFS->base_cur.symbol = g_strdup(lc->currency_symbol); + PREFS->base_cur.is_prefix = TRUE; DB( g_print("locale mon cs is a prefix\n") ); } else { - PREFS->base_cur.prefix_symbol = NULL; //g_strdup(""); - PREFS->base_cur.suffix_symbol = g_strdup(lc->currency_symbol); + PREFS->base_cur.symbol = g_strdup(lc->currency_symbol); + PREFS->base_cur.is_prefix = FALSE; } - PREFS->base_cur.decimal_char = g_strdup(lc->mon_decimal_point); - - PREFS->base_cur.grouping_char = g_strdup(lc->mon_thousands_sep); - + PREFS->base_cur.decimal_char = g_strdup(lc->mon_decimal_point); + + PREFS->base_cur.grouping_char = g_strdup(lc->mon_thousands_sep); + //todo:fix //PREFS->base_cur.grouping_char = g_locale_to_utf8(lc->mon_thousands_sep, -1, NULL, NULL, NULL); //PREFS->base_cur.grouping_char = g_convert (lc->mon_thousands_sep, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); - + DB( g_print(" -> grouping_char: '%s'\n", PREFS->base_cur.grouping_char) ); - + PREFS->base_cur.frac_digits = lc->frac_digits; //fix 378992/421228 @@ -117,31 +117,39 @@ struct lconv *lc = localeconv(); //see g_locale_to_utf8 here iResult = GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SCURRENCY, wcBuffer, BUFFER_SIZE); - DB( g_print("LOCALE_SCURRENCY='%s'\n", buffer) ); - PREFS->base_cur.suffix_symbol = g_locale_to_utf8(buffer, -1, NULL, &toto, NULL); + if(iResult > 0) + { + DB( g_print("LOCALE_SCURRENCY='%s'\n", buffer) ); + PREFS->base_cur.symbol = g_locale_to_utf8(buffer, -1, NULL, &toto, NULL); + } iResult = GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, wcBuffer, BUFFER_SIZE); - DB( g_print("LOCALE_SDECIMAL='%s'\n", buffer) ); - PREFS->base_cur.decimal_char = g_locale_to_utf8(buffer, -1, NULL, &toto, NULL); + if(iResult > 0) + { + DB( g_print("LOCALE_SDECIMAL='%s'\n", buffer) ); + PREFS->base_cur.decimal_char = g_locale_to_utf8(buffer, -1, NULL, &toto, NULL); + } iResult = GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, wcBuffer, BUFFER_SIZE); - DB( g_print("LOCALE_STHOUSAND='%s'\n", buffer) ); - PREFS->base_cur.grouping_char = g_locale_to_utf8(buffer, -1, NULL, &toto, NULL); + if(iResult > 0) + { + DB( g_print("LOCALE_STHOUSAND='%s'\n", buffer) ); + PREFS->base_cur.grouping_char = g_locale_to_utf8(buffer, -1, NULL, &toto, NULL); + } + + PREFS->base_cur.frac_digits = 2; - PREFS->base_cur.prefix_symbol = NULL; //g_strdup(""); - //PREFS->base_cur.suffix_symbol = NULL; //g_strdup(""); - //PREFS->base_cur.decimal_char = g_strdup("."); - //PREFS->base_cur.grouping_char = NULL; //g_strdup(""); - PREFS->base_cur.frac_digits = 2; #else + PREFS->base_cur.prefix_symbol = NULL; //g_strdup(""); PREFS->base_cur.suffix_symbol = NULL; //g_strdup(""); PREFS->base_cur.decimal_char = g_strdup("."); PREFS->base_cur.grouping_char = NULL; //g_strdup(""); PREFS->base_cur.frac_digits = 2; + #endif #endif - + } @@ -156,38 +164,93 @@ static void homebank_pref_init_wingeometry(struct WinGeometry *wg, gint l, gint } -void homebank_pref_init_measurement_units(void) +/* +** create the format string for monetary strfmon (major/minor) +*/ +static void _homebank_pref_createformat(void) { +struct CurrencyFmt *cur; - if(PREFS->imperial_unit == TRUE) - { - ////TRANSLATORS: carcost for distance (Miles) - PREFS->vehicle_unit_dist = "%d m."; + DB( g_print("\n[preferences] pref create format\n") ); - ////TRANSLATORS: vehiclecost for volume (Galons) - PREFS->vehicle_unit_vol = "%.2f gal"; +/* + if(PREFS->base_cur.grouping_char != NULL) + g_snprintf(GLOBALS->fmt_maj_number, 15, "%%^.%dn", PREFS->base_cur.frac_digits); + else + g_snprintf(GLOBALS->fmt_maj_number, 15, "%%.%dn", PREFS->base_cur.frac_digits); - ////TRANSLATORS: vehiclecost label for '100 miles' - PREFS->vehicle_unit_100 = "100 miles"; + DB( g_print("+ major is: '%s'\n", GLOBALS->fmt_maj_number) ); - ////TRANSLATORS: vehiclecost label for 'miles/gal' - PREFS->vehicle_unit_distbyvol = "miles/gal"; - } + if(PREFS->minor_cur.grouping_char != NULL) + g_snprintf(GLOBALS->fmt_min_number, 15, "%s %%!^.%dn %s", + PREFS->minor_cur.prefix_symbol, + PREFS->minor_cur.frac_digits, + PREFS->minor_cur.suffix_symbol + ); else - { - ////TRANSLATORS: vehiclecost for distance (Kilometer) - PREFS->vehicle_unit_dist = "%d km"; + g_snprintf(GLOBALS->fmt_min_number, 15, "%s %%!.%dn %s", + PREFS->minor_cur.prefix_symbol, + PREFS->minor_cur.frac_digits, + PREFS->minor_cur.suffix_symbol + ); - ////TRANSLATORS: vehiclecost for volume (Liters) - PREFS->vehicle_unit_vol = "%.2f L"; + DB( g_print("+ minor is: '%s'\n", GLOBALS->fmt_min_number) ); +*/ - ////TRANSLATORS: vehiclecost label for '100 km' - PREFS->vehicle_unit_100 = "100 Km"; + /* base mon format */ + cur = &PREFS->base_cur; + g_snprintf(cur->format , 8-1, "%%.%df", cur->frac_digits); + g_snprintf(cur->monfmt, 32-1, (cur->is_prefix) ? "%s %%s" : "%%s %s", cur->symbol); + DB( g_print(" - format: '%s'\n", cur->format) ); + DB( g_print(" - monfmt: '%s'\n", cur->monfmt) ); - ////TRANSLATORS: vehiclecost label for 'km/l' - PREFS->vehicle_unit_distbyvol = "Km/L"; + /* minor mon format */ + cur = &PREFS->minor_cur; + g_snprintf(cur->format , 8-1, "%%.%df", cur->frac_digits); + g_snprintf(cur->monfmt, 32-1, (cur->is_prefix) ? "%s %%s" : "%%s %s", cur->symbol); + DB( g_print(" - format: '%s'\n", cur->format) ); + DB( g_print(" - monfmt: '%s'\n", cur->monfmt) ); +} + + +//vehicle_unit_100 +//vehicle_unit_distbyvol +//=> used for column title + +static void _homebank_pref_init_measurement_units(void) +{ + // unit is kilometer + if(!PREFS->vehicle_unit_ismile) + { + PREFS->vehicle_unit_dist = "%d km"; + PREFS->vehicle_unit_100 = "100 km"; + } + // unit is miles + else + { + PREFS->vehicle_unit_dist = "%d m."; + PREFS->vehicle_unit_100 = "100 miles"; + } + + // unit is Liters + if(!PREFS->vehicle_unit_isgal) + { + PREFS->vehicle_unit_vol = "%.2f L"; + if(!PREFS->vehicle_unit_ismile) + PREFS->vehicle_unit_distbyvol = "km/L"; + else + PREFS->vehicle_unit_distbyvol = "miles/gal"; + } + // unit is gallon + else + { + PREFS->vehicle_unit_vol = "%.2f gal"; + if(!PREFS->vehicle_unit_ismile) + PREFS->vehicle_unit_distbyvol = "km/gal"; + else + PREFS->vehicle_unit_distbyvol = "miles/gal"; } } @@ -211,15 +274,13 @@ void homebank_pref_free(void) g_free(PREFS->language); - g_free(PREFS->base_cur.prefix_symbol); - g_free(PREFS->base_cur.suffix_symbol); - g_free(PREFS->base_cur.decimal_char); - g_free(PREFS->base_cur.grouping_char); + g_free(PREFS->base_cur.symbol); + g_free(PREFS->base_cur.decimal_char); + g_free(PREFS->base_cur.grouping_char); - g_free(PREFS->minor_cur.prefix_symbol); - g_free(PREFS->minor_cur.suffix_symbol); - g_free(PREFS->minor_cur.decimal_char); - g_free(PREFS->minor_cur.grouping_char); + g_free(PREFS->minor_cur.symbol); + g_free(PREFS->minor_cur.decimal_char); + g_free(PREFS->minor_cur.grouping_char); memset(PREFS, 0, sizeof(struct Preferences)); } @@ -234,7 +295,7 @@ gint i; homebank_pref_free(); PREFS->language = NULL; - + PREFS->date_format = g_strdup(DEFAULT_FORMAT_DATE); PREFS->path_hbfile = g_strdup_printf("%s", g_get_home_dir ()); @@ -244,7 +305,7 @@ gint i; PREFS->showsplash = TRUE; PREFS->loadlast = TRUE; - PREFS->appendscheduled = TRUE; + PREFS->appendscheduled = FALSE; PREFS->heritdate = FALSE; PREFS->hidereconciled = FALSE; @@ -256,6 +317,10 @@ gint i; PREFS->color_warn = g_strdup(DEFAULT_WARN_COLOR); PREFS->rules_hint = FALSE; + /* fiscal year */ + PREFS->fisc_year_day = 1; + PREFS->fisc_year_month = 1; + /* windows position/size */ homebank_pref_init_wingeometry(&PREFS->wal_wg, 0, 0, 1024, 600); homebank_pref_init_wingeometry(&PREFS->acc_wg, 0, 0, 1024, 600); @@ -272,7 +337,7 @@ gint i; PREFS->wal_upcoming = TRUE; PREFS->wal_vpaned = 600/2; PREFS->wal_hpaned = 1024/2; - + i = 0; @@ -329,81 +394,14 @@ gint i; PREFS->chart_legend = FALSE; + PREFS->vehicle_unit_ismile = FALSE; + PREFS->vehicle_unit_isgal = FALSE; - + _homebank_pref_createformat(); + _homebank_pref_init_measurement_units(); } -/* -** create the format string for monetary strfmon (major/minor) -*/ -void homebank_pref_createformat(void) -{ -struct CurrencyFmt *cur; -gchar *ptr; - - DB( g_print("\n[preferences] pref create format\n") ); - -/* - if(PREFS->base_cur.grouping_char != NULL) - g_snprintf(GLOBALS->fmt_maj_number, 15, "%%^.%dn", PREFS->base_cur.frac_digits); - else - g_snprintf(GLOBALS->fmt_maj_number, 15, "%%.%dn", PREFS->base_cur.frac_digits); - - DB( g_print("+ major is: '%s'\n", GLOBALS->fmt_maj_number) ); - - - if(PREFS->minor_cur.grouping_char != NULL) - g_snprintf(GLOBALS->fmt_min_number, 15, "%s %%!^.%dn %s", - PREFS->minor_cur.prefix_symbol, - PREFS->minor_cur.frac_digits, - PREFS->minor_cur.suffix_symbol - ); - else - g_snprintf(GLOBALS->fmt_min_number, 15, "%s %%!.%dn %s", - PREFS->minor_cur.prefix_symbol, - PREFS->minor_cur.frac_digits, - PREFS->minor_cur.suffix_symbol - ); - - DB( g_print("+ minor is: '%s'\n", GLOBALS->fmt_min_number) ); -*/ - /* base format */ - cur = &PREFS->base_cur; - - g_snprintf(cur->format , 8-1, "%%.%df", cur->frac_digits); - - ptr = cur->monfmt; - if(cur->prefix_symbol != NULL) - { - ptr = g_stpcpy(ptr, cur->prefix_symbol); - ptr = g_stpcpy(ptr, " "); - } - ptr = g_stpcpy(ptr, "%s"); - if(cur->suffix_symbol != NULL) - { - ptr = g_stpcpy(ptr, " "); - ptr = g_stpcpy(ptr, cur->suffix_symbol); - } - - cur = &PREFS->minor_cur; - - g_snprintf(cur->format , 8-1, "%%.%df", cur->frac_digits); - - ptr = cur->monfmt; - if(cur->prefix_symbol != NULL) - { - ptr = g_stpcpy(ptr, cur->prefix_symbol); - ptr = g_stpcpy(ptr, " "); - } - ptr = g_stpcpy(ptr, "%s"); - if(cur->suffix_symbol != NULL) - { - ptr = g_stpcpy(ptr, " "); - ptr = g_stpcpy(ptr, cur->suffix_symbol); - } - -} /* ** load preference from homedir/.homebank (HB_DATA_PATH) @@ -533,6 +531,22 @@ gchar *string; } +static void homebank_pref_currfmt_convert(struct CurrencyFmt *cur, gchar *prefix, gchar *suffix) +{ + + if( (prefix != NULL) && (strlen(prefix) > 0) ) + { + cur->symbol = g_strdup(prefix); + cur->is_prefix = TRUE; + } + else if( (suffix != NULL) ) + { + cur->symbol = g_strdup(suffix); + cur->is_prefix = FALSE; + } +} + + gboolean homebank_pref_load(void) { GKeyFile *keyfile; @@ -565,11 +579,11 @@ GError *error = NULL; gdouble v = g_key_file_get_double (keyfile, group, "Version", NULL); version = (guint32)(v * 10); } - + DB( g_print(" - version: %d\n", version) ); homebank_pref_get_string(keyfile, group, "Language", &PREFS->language); - + homebank_pref_get_short(keyfile, group, "BarStyle" , &PREFS->toolbar_style); if(version <= 6 && PREFS->toolbar_style == 0) // force system to text beside @@ -664,7 +678,7 @@ GError *error = NULL; } } - + g_free(src); } @@ -675,6 +689,9 @@ GError *error = NULL; DB( g_print(" - set sort to %d %d\n", PREFS->lst_ope_sort_id, PREFS->lst_ope_sort_order) ); + homebank_pref_get_short(keyfile, group, "FiscYearDay", &PREFS->fisc_year_day); + homebank_pref_get_short(keyfile, group, "FiscYearMonth", &PREFS->fisc_year_month); + group = "Windows"; @@ -718,8 +735,22 @@ GError *error = NULL; } else { - homebank_pref_get_string(keyfile, group, "PreSymbol", &PREFS->base_cur.prefix_symbol); - homebank_pref_get_string(keyfile, group, "SufSymbol", &PREFS->base_cur.suffix_symbol); + if(version < 460) + { + gchar *prefix = NULL; + gchar *suffix = NULL; + + homebank_pref_get_string(keyfile, group, "PreSymbol", &prefix); + homebank_pref_get_string(keyfile, group, "SufSymbol", &suffix); + homebank_pref_currfmt_convert(&PREFS->base_cur, prefix, suffix); + g_free(prefix); + g_free(suffix); + } + else + { + homebank_pref_get_string(keyfile, group, "Symbol", &PREFS->base_cur.symbol); + homebank_pref_get_boolean(keyfile, group, "IsPrefix", &PREFS->base_cur.is_prefix); + } homebank_pref_get_string(keyfile, group, "DecChar" , &PREFS->base_cur.decimal_char); homebank_pref_get_string(keyfile, group, "GroupChar", &PREFS->base_cur.grouping_char); homebank_pref_get_short(keyfile, group, "FracDigits", &PREFS->base_cur.frac_digits); @@ -729,7 +760,20 @@ GError *error = NULL; PREFS->base_cur.frac_digits = MAX_FRAC_DIGIT; } - homebank_pref_get_boolean(keyfile, group, "UKUnits", &PREFS->imperial_unit); + if(version < 460) + { + gboolean useimperial; + + homebank_pref_get_boolean(keyfile, group, "UKUnits", &useimperial); + if(useimperial) + { + PREFS->vehicle_unit_ismile = TRUE; + PREFS->vehicle_unit_isgal = TRUE; + } + } + + homebank_pref_get_boolean(keyfile, group, "UnitIsMile", &PREFS->vehicle_unit_ismile); + homebank_pref_get_boolean(keyfile, group, "UnitIsGal", &PREFS->vehicle_unit_isgal); group = "Filter"; @@ -742,7 +786,7 @@ GError *error = NULL; if(version <= 7) { - // decay date range >= 5, since we intraduced the 5 value + // shift date range >= 5, since we inserted a new one at position 5 if(PREFS->date_range_wal >= FLT_RANGE_LASTYEAR) PREFS->date_range_wal++; if(PREFS->date_range_txn >= FLT_RANGE_LASTYEAR) @@ -750,7 +794,7 @@ GError *error = NULL; if(PREFS->date_range_rep >= FLT_RANGE_LASTYEAR) PREFS->date_range_rep++; } - + group = "Euro"; @@ -766,7 +810,7 @@ GError *error = NULL; if(version <= 1) { - homebank_pref_get_string(keyfile, group, "Symbol", &PREFS->minor_cur.suffix_symbol); + homebank_pref_get_string(keyfile, group, "Symbol", &PREFS->minor_cur.symbol); PREFS->minor_cur.frac_digits = g_key_file_get_integer (keyfile, group, "NBDec", NULL); //PREFS->euro_nbdec = g_key_file_get_integer (keyfile, group, "NBDec", NULL); @@ -775,8 +819,22 @@ GError *error = NULL; } else { - homebank_pref_get_string(keyfile, group, "PreSymbol", &PREFS->minor_cur.prefix_symbol); - homebank_pref_get_string(keyfile, group, "SufSymbol", &PREFS->minor_cur.suffix_symbol); + if(version < 460) + { + gchar *prefix = NULL; + gchar *suffix = NULL; + + homebank_pref_get_string(keyfile, group, "PreSymbol", &prefix); + homebank_pref_get_string(keyfile, group, "SufSymbol", &suffix); + homebank_pref_currfmt_convert(&PREFS->minor_cur, prefix, suffix); + g_free(prefix); + g_free(suffix); + } + else + { + homebank_pref_get_string(keyfile, group, "Symbol", &PREFS->minor_cur.symbol); + homebank_pref_get_boolean(keyfile, group, "IsPrefix", &PREFS->minor_cur.is_prefix); + } homebank_pref_get_string(keyfile, group, "DecChar" , &PREFS->minor_cur.decimal_char); homebank_pref_get_string(keyfile, group, "GroupChar", &PREFS->minor_cur.grouping_char); homebank_pref_get_short(keyfile, group, "FracDigits", &PREFS->minor_cur.frac_digits); @@ -785,14 +843,14 @@ GError *error = NULL; if( PREFS->minor_cur.frac_digits > MAX_FRAC_DIGIT ) PREFS->minor_cur.frac_digits = MAX_FRAC_DIGIT; - } + } //PREFS->euro_symbol = g_locale_to_utf8(tmpstr, -1, NULL, NULL, NULL); group = "Report"; DB( g_print(" -> ** Report\n") ); - + homebank_pref_get_boolean(keyfile, group, "StatByAmount", &PREFS->stat_byamount); homebank_pref_get_boolean(keyfile, group, "StatDetail", &PREFS->stat_showdetail); homebank_pref_get_boolean(keyfile, group, "StatRate", &PREFS->stat_showrate); @@ -823,6 +881,9 @@ GError *error = NULL; } g_free(filename); g_key_file_free (keyfile); + + _homebank_pref_createformat(); + _homebank_pref_init_measurement_units(); } return retval; @@ -896,6 +957,9 @@ gsize length; g_key_file_set_integer (keyfile, group, "OpeSortId" , PREFS->lst_ope_sort_id); g_key_file_set_integer (keyfile, group, "OpeSortOrder" , PREFS->lst_ope_sort_order); + g_key_file_set_integer (keyfile, group, "FiscYearDay" , PREFS->fisc_year_day); + g_key_file_set_integer (keyfile, group, "FiscYearMonth" , PREFS->fisc_year_month); + // added v3.4 DB( g_print(" -> ** windows\n") ); @@ -920,13 +984,16 @@ gsize length; group = "Format"; homebank_pref_set_string (keyfile, group, "DateFmt" , PREFS->date_format); - homebank_pref_set_string (keyfile, group, "PreSymbol" , PREFS->base_cur.prefix_symbol); - homebank_pref_set_string (keyfile, group, "SufSymbol" , PREFS->base_cur.suffix_symbol); + homebank_pref_set_string (keyfile, group, "Symbol" , PREFS->base_cur.symbol); + g_key_file_set_boolean (keyfile, group, "IsPrefix" , PREFS->base_cur.is_prefix); homebank_pref_set_string (keyfile, group, "DecChar" , PREFS->base_cur.decimal_char); homebank_pref_set_string (keyfile, group, "GroupChar" , PREFS->base_cur.grouping_char); g_key_file_set_integer (keyfile, group, "FracDigits", PREFS->base_cur.frac_digits); - g_key_file_set_boolean (keyfile, group, "UKUnits" , PREFS->imperial_unit); + //g_key_file_set_boolean (keyfile, group, "UKUnits" , PREFS->imperial_unit); + g_key_file_set_boolean (keyfile, group, "UnitIsMile" , PREFS->vehicle_unit_ismile); + g_key_file_set_boolean (keyfile, group, "UnitIsGal" , PREFS->vehicle_unit_isgal); + DB( g_print(" -> ** filter\n") ); @@ -939,9 +1006,9 @@ gsize length; //euro options group = "Euro"; - + //homebank_pref_set_string(keyfile, group, "DefCurrency" , PREFS->curr_default); - + g_key_file_set_boolean (keyfile, group, "Active" , PREFS->euro_active); if( PREFS->euro_active ) { @@ -949,8 +1016,8 @@ gsize length; gchar ratestr[64]; g_ascii_dtostr(ratestr, 63, PREFS->euro_value); homebank_pref_set_string (keyfile, group, "ChangeRate", ratestr); - homebank_pref_set_string (keyfile, group, "PreSymbol" , PREFS->minor_cur.prefix_symbol); - homebank_pref_set_string (keyfile, group, "SufSymbol" , PREFS->minor_cur.suffix_symbol); + homebank_pref_set_string (keyfile, group, "Symbol" , PREFS->minor_cur.symbol); + g_key_file_set_boolean (keyfile, group, "IsPrefix" , PREFS->minor_cur.is_prefix); homebank_pref_set_string (keyfile, group, "DecChar" , PREFS->minor_cur.decimal_char); homebank_pref_set_string (keyfile, group, "GroupChar" , PREFS->minor_cur.grouping_char); g_key_file_set_integer (keyfile, group, "FracDigits", PREFS->minor_cur.frac_digits); @@ -1004,6 +1071,9 @@ gsize length; g_key_file_free (keyfile); } + _homebank_pref_createformat(); + _homebank_pref_init_measurement_units(); + return retval; } diff --git a/src/hb-preferences.h b/src/hb-preferences.h index 2d75827182c084b6e737f6757463d9ad89bb4807..938a1ec59e22494c7b0b13ce8573647a992c55df 100644 --- a/src/hb-preferences.h +++ b/src/hb-preferences.h @@ -44,8 +44,10 @@ */ struct CurrencyFmt { - gchar *prefix_symbol; /* max symbol is 3 digits in unicode */ - gchar *suffix_symbol; /* but mostly is 1 digit */ + //gchar *prefix_symbol; /* max symbol is 3 digits in unicode */ + //gchar *suffix_symbol; /* but mostly is 1 digit, and most are prefix ~100 */ + gchar *symbol; + gboolean is_prefix; gchar *decimal_char; gchar *grouping_char; gshort frac_digits; @@ -77,6 +79,9 @@ struct Preferences gint date_range_wal; gint date_range_txn; gint date_range_rep; + + gshort fisc_year_day; + gshort fisc_year_month; //interface gshort toolbar_style; @@ -93,7 +98,7 @@ struct Preferences //gshort num_nbdecimal; //gboolean num_separator; - gboolean imperial_unit; + //gboolean imperial_unit; //help system //gboolean show_tooltips; @@ -130,7 +135,8 @@ struct Preferences gboolean chart_legend; - /* internal */ + + /* internal : not saved*/ gint lst_ope_columns[NUM_LST_DSPOPE+1]; gint lst_ope_sort_id; @@ -152,11 +158,14 @@ struct Preferences gint wal_vpaned; gint wal_hpaned; - //vehiclecost units (mile/gal or km/liters - gchar *vehicle_unit_dist; - gchar *vehicle_unit_vol; - gchar *vehicle_unit_100; - gchar *vehicle_unit_distbyvol; + //vehiclecost units (mile/gal or km/liters) + gboolean vehicle_unit_ismile; // true is unit is mile, default Km + gboolean vehicle_unit_isgal; // true is unit is gallon, default Liter + + gchar *vehicle_unit_dist; + gchar *vehicle_unit_vol; + gchar *vehicle_unit_100; + gchar *vehicle_unit_distbyvol; }; diff --git a/src/hb-report.h b/src/hb-report.h index 59f7e1b7f7e8205753e26948521f866468d174b3..1e1e2bb6d1891653fe11aa4058aec2820ada1036 100644 --- a/src/hb-report.h +++ b/src/hb-report.h @@ -25,7 +25,9 @@ typedef struct _carcost CarCost; struct _carcost { - Transaction *ope; + guint32 date; + gchar *wording; + gdouble amount; gboolean partial; guint meter; gdouble fuel; diff --git a/src/hb-tag.c b/src/hb-tag.c index b4c5f84536d01817dda5a3e061bf7946dc651949..8554cfa3ad747d884431f24675b585c9bd0af383 100644 --- a/src/hb-tag.c +++ b/src/hb-tag.c @@ -260,18 +260,7 @@ da_tag_debug_list(void) static gint tag_glist_name_compare_func(Tag *a, Tag *b) { -gint retval = 0; - - if (a->name == NULL || b->name == NULL) - { - retval = (a->name == NULL) ? -1 : 1; - } - else - { - retval = g_utf8_collate(a->name, b->name); - } - - return retval; + return hb_string_utf8_compare(a->name, b->name); } diff --git a/src/hb-transaction.c b/src/hb-transaction.c index df4824ec76ce6e9780c8258cd0dc207a0d17bacf..3a5f6cfa7676fa649827765995f74e6c0d829a1e 100644 --- a/src/hb-transaction.c +++ b/src/hb-transaction.c @@ -165,7 +165,7 @@ gint i, count; /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ -static void +void da_transaction_clean(Transaction *item) { if(item != NULL) @@ -225,7 +225,7 @@ guint count; da_transaction_clean (dst_txn); - g_memmove(dst_txn, src_txn, sizeof(Transaction)); + memmove(dst_txn, src_txn, sizeof(Transaction)); //duplicate the string dst_txn->wording = g_strdup(src_txn->wording); @@ -242,6 +242,24 @@ guint count; return dst_txn; } + +Transaction *da_transaction_init_from_template(Transaction *txn, Archive *arc) +{ + //txn->date = 0; + txn->amount = arc->amount; + txn->kacc = arc->kacc; + txn->paymode = arc->paymode; + txn->flags = arc->flags | OF_ADDED; + txn->kpay = arc->kpay; + txn->kcat = arc->kcat; + txn->kxferacc = arc->kxferacc; + txn->wording = g_strdup(arc->wording); + txn->info = NULL; + + return txn; +} + + Transaction *da_transaction_clone(Transaction *src_item) { Transaction *new_item = g_memdup(src_item, sizeof(Transaction)); @@ -338,9 +356,9 @@ GList *tmplist = g_list_first(GLOBALS->ope_list); // nota: this is called only when loading xml file -gboolean da_transaction_append(Transaction *item) +gboolean da_transaction_prepend(Transaction *item) { - GLOBALS->ope_list = g_list_append(GLOBALS->ope_list, item); + GLOBALS->ope_list = g_list_prepend(GLOBALS->ope_list, item); da_transaction_insert_memo(item); return TRUE; } @@ -396,6 +414,7 @@ void da_transaction_consistency(Transaction *item) Account *acc; Category *cat; Payee *pay; +guint i, nbsplit; // check account exists acc = da_acc_get(item->kacc); @@ -413,6 +432,19 @@ Payee *pay; item->kcat = 0; } + // check split category #1340142 + nbsplit = da_transaction_splits_count(item); + for(i=0;isplits[i]; + cat = da_cat_get(split->kcat); + if(cat == NULL) + { + g_warning("txn consistency: fixed invalid split cat %d", split->kcat); + split->kcat = 0; + } + } + // check payee exists pay = da_pay_get(item->kpay); if(pay == NULL) @@ -425,10 +457,16 @@ Payee *pay; if( item->paymode != PAYMODE_INTXFER ) item->kxferacc = 0; -} - + //#1295877 ensure income flag is correctly set + item->flags &= ~(OF_INCOME); + if( item->amount > 0) + item->flags |= (OF_INCOME); + //#1308745 ensure remind flag unset if reconciled + if( item->flags & OF_VALID ) + item->flags &= ~(OF_REMIND); +} /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ @@ -634,6 +672,10 @@ void transaction_xfer_sync_child(Transaction *s_txn, Transaction *child) child->date = s_txn->date; child->amount = -s_txn->amount; child->flags = child->flags | OF_CHANGED; + //#1295877 + child->flags &= ~(OF_INCOME); + if( child->amount > 0) + child->flags |= (OF_INCOME); child->kpay = s_txn->kpay; child->kcat = s_txn->kcat; if(child->wording) @@ -874,7 +916,13 @@ GList *list; gchar *text; text = txn->wording; - if( misc_text_match(text, rul->name, rul->exact)) + if(rul->field == 1) //payee + { + Payee *pay = da_pay_get(txn->kpay); + if(pay) + text = pay->name; + } + if( misc_text_match(text, rul->name, rul->flags & ASGF_EXACT)) rule = rul; list = g_list_next(list); @@ -896,9 +944,11 @@ GList *list; { Assign *rul = list->data; - if( misc_text_match(text, rul->name, rul->exact)) - rule = rul; - + if( rul->field == 0 ) //memo + { + if( misc_text_match(text, rul->name, rul->flags & ASGF_EXACT)) + rule = rul; + } list = g_list_next(list); } @@ -933,13 +983,13 @@ gint changes = 0; rul = transaction_auto_assign_eval_txn(l_rul, ope); if( rul != NULL ) { - if( ope->kpay == 0 ) + if( ope->kpay == 0 && (rul->flags & ASGF_DOPAY) ) { ope->kpay = rul->kpay; ope->flags |= OF_CHANGED; changes++; } - if( ope->kcat == 0 ) + if( ope->kcat == 0 && (rul->flags & ASGF_DOCAT) ) { ope->kcat = rul->kcat; ope->flags |= OF_CHANGED; diff --git a/src/hb-transaction.h b/src/hb-transaction.h index e8348ce4f80d627b90d5b65f0bbb4ed15423a4eb..ca6666ee146e5d243fdc1234dc6a49647c06f70b 100644 --- a/src/hb-transaction.h +++ b/src/hb-transaction.h @@ -20,6 +20,8 @@ #ifndef __HB_TRANSACTION_H__ #define __HB_TRANSACTION_H__ +#include "hb-archive.h" + #define TXN_MAX_SPLIT 10 typedef struct _split Split; @@ -71,14 +73,16 @@ struct _transaction Transaction *da_transaction_malloc(void); Transaction *da_transaction_copy(Transaction *src_txn, Transaction *dst_txn); +Transaction *da_transaction_init_from_template(Transaction *txn, Archive *arc); Transaction *da_transaction_clone(Transaction *src_item); +void da_transaction_clean(Transaction *item); void da_transaction_free(Transaction *item); GList *da_transaction_new(void); void da_transaction_destroy(GList *list); GList *da_transaction_sort(GList *list); -gboolean da_transaction_append(Transaction *item); +gboolean da_transaction_prepend(Transaction *item); gboolean da_transaction_insert_sorted(Transaction *item); guint32 da_transaction_get_max_kxfer(void); diff --git a/src/hb-xml.c b/src/hb-xml.c index 1cab71f9c83b9ba8eaab6d006441ca3a4e922ef7..d859c3510c8353ea9e7c6b90967382a2d61d04d0 100644 --- a/src/hb-xml.c +++ b/src/hb-xml.c @@ -52,6 +52,7 @@ static void homebank_upgrade_to_v05(void); static void homebank_upgrade_lower_v06(void); static void homebank_upgrade_to_v06(void); static void homebank_upgrade_to_v07(void); +static void homebank_upgrade_to_v08(void); static void start_element_handler (GMarkupParseContext *context, @@ -138,17 +139,29 @@ gint i, j; else if(!strcmp (element_name, "asg")) { Assign *entry = da_asg_malloc(); + gint exact = 0; for (i = 0; attribute_names[i] != NULL; i++) { //DB( g_print(" att=%s val=%s\n", attribute_names[i], attribute_values[i]) ); if(!strcmp (attribute_names[i], "key" )) { entry->key = atoi(attribute_values[i]); } + else if(!strcmp (attribute_names[i], "flags" )) { entry->flags = atoi(attribute_values[i]); } + else if(!strcmp (attribute_names[i], "field" )) { entry->field = atoi(attribute_values[i]); } else if(!strcmp (attribute_names[i], "name" )) { if(strcmp(attribute_values[i],"(null)") && attribute_values[i] != NULL) entry->name = g_strdup(attribute_values[i]); } - else if(!strcmp (attribute_names[i], "exact" )) { entry->exact = g_ascii_strtod(attribute_values[i], NULL); } - else if(!strcmp (attribute_names[i], "payee" )) { entry->kpay = atoi(attribute_values[i]); } - else if(!strcmp (attribute_names[i], "category" )) { entry->kcat = atoi(attribute_values[i]); } + else if(!strcmp (attribute_names[i], "payee" )) { entry->kpay = atoi(attribute_values[i]); } + else if(!strcmp (attribute_names[i], "category")) { entry->kcat = atoi(attribute_values[i]); } + //else if(!strcmp (attribute_names[i], "paymode" )) { entry->paymode = atoi(attribute_values[i]); } + // prior v08 + else if(!strcmp (attribute_names[i], "exact" )) { exact = atoi(attribute_values[i]); } + } + /* in v08 exact moved to flag */ + if( ctx->version <= 0.7) + { + entry->flags = (ASGF_DOCAT|ASGF_DOPAY); + if( exact > 0 ) + entry->flags |= ASGF_EXACT; } //all attribute loaded: append @@ -299,6 +312,7 @@ gint i, j; else if(!strcmp (attribute_names[i], "every" )) { entry->every = atoi(attribute_values[i]); } else if(!strcmp (attribute_names[i], "unit" )) { entry->unit = atoi(attribute_values[i]); } else if(!strcmp (attribute_names[i], "limit" )) { entry->limit = atoi(attribute_values[i]); } + else if(!strcmp (attribute_names[i], "weekend" )) { entry->weekend = atoi(attribute_values[i]); } } @@ -363,7 +377,8 @@ gint i, j; } //all attribute loaded: append - da_transaction_append(entry); + // we use prepend here, the list will be reversed later for perf reason + da_transaction_prepend(entry); } } break; @@ -476,6 +491,10 @@ gboolean rc; g_markup_parse_context_free (context); g_free (buffer); + //reverse the glist (see g_list append idiom to perf for reason + // we use prepend and then reverse + GLOBALS->ope_list = g_list_reverse(GLOBALS->ope_list); + DB( g_print("- end parse : %f sec\n", g_timer_elapsed(t, NULL)) ); DB( g_timer_destroy (t) ); @@ -498,6 +517,10 @@ gboolean rc; homebank_upgrade_to_v07(); hbfile_sanity_check(); } + if( version <= 0.7 ) + homebank_upgrade_to_v08(); + if( version <= 0.8 ) + hbfile_sanity_check(); // next ? @@ -643,6 +666,24 @@ GList *lacc, *list; } +static void homebank_upgrade_to_v08(void) +{ +GList *list; + + DB( g_print("\n[hb-xml] homebank_upgrade_to_v08\n") ); + + list = g_list_first(GLOBALS->ope_list); + while (list != NULL) + { + Transaction *entry = list->data; + da_transaction_consistency(entry); + list = g_list_next(list); + } + + +} + + // v0.6 to v0.7 : assign a default currency /* static void homebank_upgrade_to_v08(void) @@ -760,11 +801,16 @@ static void hb_xml_append_txt(GString *gstring, gchar *attrname, gchar *value) } } +static void hb_xml_append_int0(GString *gstring, gchar *attrname, guint32 value) +{ + g_string_append_printf(gstring, "%s=\"%d\" ", attrname, value); +} + static void hb_xml_append_int(GString *gstring, gchar *attrname, guint32 value) { if(value != 0) { - g_string_append_printf(gstring, "%s=\"%d\" ", attrname, value); + hb_xml_append_int0(gstring, attrname, value); } } @@ -794,7 +840,7 @@ GString *node; hb_xml_append_txt(node, "title", title); hb_xml_append_int(node, "car_category", GLOBALS->vehicle_category); - hb_xml_append_int(node, "auto_smode", GLOBALS->auto_smode); + hb_xml_append_int0(node, "auto_smode", GLOBALS->auto_smode); hb_xml_append_int(node, "auto_weekday", GLOBALS->auto_weekday); hb_xml_append_int(node, "auto_nbdays", GLOBALS->auto_nbdays); @@ -998,30 +1044,37 @@ gchar *tmpstr; static void homebank_save_xml_asg(GIOChannel *io) { GList *lasg, *list; -gchar *tmpstr; +GString *node; - lasg = list = g_hash_table_get_values(GLOBALS->h_rul); + node = g_string_sized_new(255); + + lasg = list = assign_glist_sorted(0); while (list != NULL) { Assign *item = list->data; - tmpstr = g_markup_printf_escaped("\n", - item->key, - item->name, - item->exact, - item->kpay, - item->kcat - ); + g_string_assign(node, "key); + hb_xml_append_int(node, "flags" , item->flags); + hb_xml_append_int(node, "field" , item->field); + hb_xml_append_txt(node, "name" , item->name); + hb_xml_append_int(node, "payee" , item->kpay); + hb_xml_append_int(node, "category", item->kcat); + //hb_xml_append_int(node, "paymode" , item->paymode); - g_io_channel_write_chars(io, tmpstr, -1, NULL, NULL); - g_free(tmpstr); + g_string_append(node, "/>\n"); + + g_io_channel_write_chars(io, node->str, -1, NULL, NULL); list = g_list_next(list); } g_list_free(lasg); + g_string_free(node, TRUE); } + /* ** XML archive save */ @@ -1038,7 +1091,7 @@ GString *node; Archive *item = list->data; g_string_assign(node, "amount); hb_xml_append_int(node, "account", item->kacc); hb_xml_append_int(node, "dst_account", item->kxferacc); @@ -1051,6 +1104,7 @@ GString *node; hb_xml_append_int(node, "every", item->every); hb_xml_append_int(node, "unit", item->unit); hb_xml_append_int(node, "limit", item->limit); + hb_xml_append_int(node, "weekend", item->weekend); g_string_append(node, "/>\n"); diff --git a/src/homebank.c b/src/homebank.c index 9dc8e9d737a9321888ad91a5e478a66662db7496..1c7f7fa634ae16041cac4936856ef1fb2987a043 100644 --- a/src/homebank.c +++ b/src/homebank.c @@ -273,7 +273,7 @@ gchar **str_array; static gboolean homebank_util_url_show_win32 (const gchar *url) { -gint retval; +int retval; gchar *errmsg; /* win32 API call */ @@ -513,7 +513,7 @@ homebank_register_stock_icons() GtkIconFactory *factory; GtkIconSet *icon_set; GtkIconSource *icon_source; - int i; + guint i; const char *icon_theme_items[] = { @@ -530,6 +530,7 @@ homebank_register_stock_icons() "pm-epayment", "pm-deposit", "pm-fifee", + "pm-directdebit", "flt-inactive", "flt-include", "flt-exclude", @@ -547,7 +548,7 @@ homebank_register_stock_icons() factory = gtk_icon_factory_new (); - for (i = 0; i < (int) G_N_ELEMENTS (icon_theme_items); i++) + for (i = 0; i < G_N_ELEMENTS (icon_theme_items); i++) { icon_source = gtk_icon_source_new (); gtk_icon_source_set_icon_name (icon_source, icon_theme_items[i]); @@ -670,7 +671,7 @@ build_package_paths (void) { g_free (help_dir); help_dir = g_build_filename ("/usr", "share", "doc", "homebank-data", "help", NULL); - } + } #endif DB( g_print("- config_dir : %s\n", config_dir) ); @@ -683,7 +684,16 @@ build_package_paths (void) } - +guint32 homebank_app_date_get_julian(void) +{ +GDate *date; + //init global default value + date = g_date_new(); + g_date_set_time_t(date, time(NULL)); + GLOBALS->today = g_date_get_julian(date); + g_date_free(date); + return GLOBALS->today; +} static gboolean homebank_check_app_dir_migrate_file(gchar *srcdir, gchar *dstdir, gchar *filename) @@ -826,7 +836,6 @@ static void homebank_cleanup() */ static gboolean homebank_setup() { -GDate *date; DB( g_print("\n[homebank] setup\n") ); @@ -840,8 +849,6 @@ GDate *date; homebank_pref_setdefault(); homebank_pref_load(); - homebank_pref_createformat(); - homebank_pref_init_measurement_units(); hbfile_setup(TRUE); @@ -852,11 +859,8 @@ GDate *date; load_nainex_icons(); load_pref_icons(); - //init global default value - date = g_date_new(); - g_date_set_time_t(date, time(NULL)); - GLOBALS->today = g_date_get_julian(date); - g_date_free(date); + homebank_app_date_get_julian(); + #if MYDEBUG == 1 @@ -1063,7 +1067,7 @@ gboolean openlast; } else gtk_window_maximize(GTK_WINDOW(mainwin)); - + //todo: pause on splash if( PREFS->showsplash == TRUE ) { @@ -1075,7 +1079,7 @@ gboolean openlast; gtk_widget_show_all (mainwin); #if HB_UNSTABLE == TRUE - GtkWidget *dialog = gtk_message_dialog_new (GTK_WINDOW(mainwin), +/* GtkWidget *dialog = gtk_message_dialog_new (GTK_WINDOW(mainwin), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, @@ -1095,7 +1099,7 @@ gboolean openlast; ); gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); + gtk_widget_destroy (dialog);*/ #endif if(GLOBALS->first_run) diff --git a/src/homebank.h b/src/homebank.h index ab1cad6c618570135d1d055ab3b16d10a56d6af8..2d86fb63572a02f4cf13d9f34b45a95937e8392a 100644 --- a/src/homebank.h +++ b/src/homebank.h @@ -70,9 +70,9 @@ /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =*/ #define HB_UNSTABLE FALSE -#define HB_VERSION "4.5.6" -#define FILE_VERSION 0.7 -#define PREF_VERSION 456 +#define HB_VERSION "4.6.2" +#define FILE_VERSION 0.9 +#define PREF_VERSION 460 #if HB_UNSTABLE == FALSE #define PROGNAME "HomeBank" @@ -103,9 +103,9 @@ #define HB_MAINBOX_SPACING 12 #define HB_BOX_SPACING 6 -#define HB_HSPACE_SPACING 18 +#define HB_HSPACE_SPACING 18 /* used to separate dialog block */ #define HB_TABROW_SPACING 6 -#define HB_TABCOL_SPACING 12 +#define HB_TABCOL_SPACING 6 /* widget minimum width */ #define HB_MINWIDTH_LIST 161 @@ -220,7 +220,7 @@ const gchar *homebank_app_get_pixmaps_dir (void); const gchar *homebank_app_get_locale_dir (void); const gchar *homebank_app_get_help_dir (void); const gchar *homebank_app_get_datas_dir (void); - +guint32 homebank_app_date_get_julian(void); /* - - - - obsolete things - - - - */ diff --git a/src/import.c b/src/import.c index b3f98fb1118a1f7e13af19a00329d7c664e592b1..b4fc496880f0499a5aae30fc2987fed88ddfe15d 100644 --- a/src/import.c +++ b/src/import.c @@ -769,7 +769,7 @@ static void import_find_duplicate_transactions(struct import_data *data) GList *tmplist, *implist; Transaction *item; guint32 mindate; -guint decay; +guint maxgap; DB( g_print("\n[import] find duplicate\n") ); @@ -780,7 +780,7 @@ guint decay; tmplist = g_list_first(data->ictx.trans_list); item = tmplist->data; mindate = item->date; - decay = gtk_spin_button_get_value(GTK_SPIN_BUTTON(data->NB_decay)); + maxgap = gtk_spin_button_get_value(GTK_SPIN_BUTTON(data->NB_maxgap)); /* clear any previous same txn */ implist = g_list_first(data->ictx.trans_list); @@ -825,7 +825,7 @@ guint decay; if( (acckey == ope->kacc) && (impope->amount == ope->amount) && - (ope->date <= impope->date+decay) && (ope->date >= impope->date-decay) + (ope->date <= (impope->date + maxgap)) && (ope->date >= (impope->date - maxgap)) ) { //DB( g_print(" found %d: %s\n", impope->date, impope->wording) ); @@ -1764,7 +1764,6 @@ static void import_acc_affect_onRowActivated (GtkTreeView *treeview, } - /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ /** @@ -1950,8 +1949,8 @@ gint row; /* file informations */ - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("File to import")); + label = make_label(_("File to import"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); gtk_box_pack_start (GTK_BOX (container), label, FALSE, FALSE, 0); @@ -1997,8 +1996,8 @@ gint row; data->GR_options = vbox; gtk_box_pack_start (GTK_BOX (container), vbox, FALSE, FALSE, 0); - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Import options")); + label = make_label(_("Import options"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); hbox = gtk_hbox_new (FALSE, HB_BOX_SPACING); @@ -2157,7 +2156,7 @@ GtkWidget *mainbox, *vbox, *align, *hbox, *label, *sw, *widget, *expander; label = make_label(_("Date _tolerance:"), 0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); widget = make_numeric(label, 0.0, 14.0); - data->NB_decay = widget; + data->NB_maxgap = widget; gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); //TRANSLATORS: there is a spinner on the left of this label, and so you have 0....x days of date tolerance @@ -2278,8 +2277,8 @@ gint row; gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); row = 0; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Accounts")); + label = make_label(_("Accounts"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); /* acc update */ @@ -2302,8 +2301,8 @@ gint row; gtk_table_attach_defaults (GTK_TABLE (table), label, 2, 3, row, row+1); row++; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Transactions")); + label = make_label(_("Transactions"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); /* trn import */ @@ -2522,7 +2521,7 @@ gchar *name; gtk_tree_model_get(model, iter, 0, &entry, -1); name = NULL; if(entry->imp_key == 0) - name = _("Create new"); + name = _("Create new"); else name = _("Import into"); diff --git a/src/import.h b/src/import.h index 8b9d4c33c44e64232c2dbad1071f9e38707257d5..6ef596a420dc8bce7d4a08cc5281afae8e638572 100644 --- a/src/import.h +++ b/src/import.h @@ -23,8 +23,6 @@ #define QIF_UNKNOW_ACCOUNT_NAME "(unknown)" - - enum { PAGE_INTRO, @@ -36,6 +34,15 @@ enum }; +typedef struct _OfxContext OfxContext; +struct _OfxContext +{ + GList *trans_list; + Account *curr_acc; + gboolean curr_acc_isnew; +}; + + typedef struct _ImportContext ImportContext; struct _ImportContext { @@ -52,16 +59,6 @@ struct _ImportContext }; -typedef struct _OfxContext OfxContext; -struct _OfxContext -{ - GList *trans_list; - Account *curr_acc; - gboolean curr_acc_isnew; -}; - - - struct import_data { GtkWidget *assistant; @@ -87,7 +84,7 @@ struct import_data GtkWidget *GR_duplicate; // GtkWidget *LA_acc; - GtkWidget *NB_decay; + GtkWidget *NB_maxgap; GtkWidget *BT_refresh; GtkWidget *CY_dateorder; diff --git a/src/list_account.c b/src/list_account.c index 4305532f8fc744f227676781fad3bb5c330a224e..3e4fb824f5926bb694d365e12c6908096ec972de 100644 --- a/src/list_account.c +++ b/src/list_account.c @@ -250,7 +250,7 @@ GtkCellRenderer *renderer; static gint list_account_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { -gint result = 0; +gint retval = 0; gint dt1, dt2; Account *entry1, *entry2; //gchar *name1, *name2; @@ -268,15 +268,10 @@ Account *entry1, *entry2; if( dt1 == DSPACC_TYPE_NORMAL && dt2 == DSPACC_TYPE_NORMAL ) { - result = entry1->pos - entry2->pos; + retval = entry1->pos - entry2->pos; } -/* if( dt1 == DSPACC_TYPE_HEADER && dt2 == DSPACC_TYPE_HEADER ) - { - result = g_utf8_collate(name1, name2); - }*/ - - return result; + return retval; } @@ -391,7 +386,7 @@ GtkTreeViewColumn *column; gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - /* disbale selection for level 1 of the tree */ + /* disable selection for level 1 of the tree */ gtk_tree_selection_set_select_function(gtk_tree_view_get_selection(GTK_TREE_VIEW(view)), list_account_selectionfunc, NULL, NULL); diff --git a/src/list_operation.c b/src/list_operation.c index a353406ba69797b1c48aee92123ff9e0d1b1c418..14ced53b0c3218d84eec8bf8131ee65b21ce8712 100644 --- a/src/list_operation.c +++ b/src/list_operation.c @@ -47,11 +47,7 @@ extern GdkPixbuf *paymode_icons[]; static gint ope_sort_iter_compare_strings(gchar *s1, gchar *s2) { -gint ret = 0; - - ret = g_utf8_collate(s1 != NULL ? s1 : "", s2 != NULL ? s2 : ""); - - return ret; + return hb_string_utf8_compare(s1, s2); } @@ -62,7 +58,7 @@ static gint gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); - gint ret = 0; + gint retval = 0; Transaction *ope1, *ope2; gdouble tmpval = 0; @@ -72,19 +68,19 @@ static gint switch (sortcol) { case LST_DSPOPE_STATUS: - if(!(ret = (ope1->flags & OF_VALID) - (ope2->flags & OF_VALID) ) ) + if(!(retval = (ope1->flags & OF_VALID) - (ope2->flags & OF_VALID) ) ) { - ret = (ope1->flags & OF_REMIND) - (ope2->flags & OF_REMIND); + retval = (ope1->flags & OF_REMIND) - (ope2->flags & OF_REMIND); } break; case LST_DSPOPE_DATE: - if(! (ret = ope1->date - ope2->date) ) + if(! (retval = ope1->date - ope2->date) ) { //g_print("sort on balance d1=%d, d2=%d %f %f\n", ope1->date, ope2->date, ope1->balance , ope2->balance); tmpval = ope1->pos - ope2->pos; - ret = tmpval > 0 ? 1 : -1; + retval = tmpval > 0 ? 1 : -1; } //g_print("ret=%d\n", ret); break; @@ -97,15 +93,15 @@ static gint a2 = da_acc_get(ope2->kacc); if( a1 != NULL && a2 != NULL ) { - ret = ope_sort_iter_compare_strings(a1->name, a2->name); + retval = ope_sort_iter_compare_strings(a1->name, a2->name); } } break; case LST_DSPOPE_INFO: - if(!(ret = ope1->paymode - ope2->paymode)) + if(!(retval = ope1->paymode - ope2->paymode)) { - ret = ope_sort_iter_compare_strings(ope1->info, ope2->info); + retval = ope_sort_iter_compare_strings(ope1->info, ope2->info); } break; @@ -117,20 +113,20 @@ static gint p2 = da_pay_get(ope2->kpay); if( p1 != NULL && p2 != NULL ) { - ret = ope_sort_iter_compare_strings(p1->name, p2->name); + retval = ope_sort_iter_compare_strings(p1->name, p2->name); } } break; case LST_DSPOPE_WORDING: - ret = ope_sort_iter_compare_strings(ope1->wording, ope2->wording); + retval = ope_sort_iter_compare_strings(ope1->wording, ope2->wording); break; case LST_DSPOPE_AMOUNT: case LST_DSPOPE_EXPENSE: case LST_DSPOPE_INCOME: tmpval = ope1->amount - ope2->amount; - ret = tmpval > 0 ? 1 : -1; + retval = tmpval > 0 ? 1 : -1; break; case LST_DSPOPE_CATEGORY: @@ -144,7 +140,7 @@ static gint { name1 = da_cat_get_fullname(c1); name2 = da_cat_get_fullname(c2); - ret = ope_sort_iter_compare_strings(name1, name2); + retval = ope_sort_iter_compare_strings(name1, name2); g_free(name2); g_free(name1); } @@ -157,7 +153,7 @@ static gint t1 = transaction_tags_tostring(ope1); t2 = transaction_tags_tostring(ope2); - ret = ope_sort_iter_compare_strings(t1, t2); + retval = ope_sort_iter_compare_strings(t1, t2); g_free(t1); g_free(t2); } @@ -167,7 +163,7 @@ static gint g_return_val_if_reached(0); } - return ret; + return retval; } /* @@ -224,6 +220,8 @@ Account *acc; { g_object_set(renderer, "text", acc->name, NULL); } + else + g_object_set(renderer, "text", "", NULL); } /* @@ -284,6 +282,8 @@ Payee *pay; pay = da_pay_get(ope->kpay); if(pay != NULL) g_object_set(renderer, "text", pay->name, NULL); + else + g_object_set(renderer, "text", "", NULL); } /* @@ -395,6 +395,9 @@ gchar *fullname; g_object_set(renderer, "text", fullname, NULL); g_free(fullname); } + else + g_object_set(renderer, "text", "", NULL); + } } @@ -550,27 +553,51 @@ gint id; return column; } + +guint list_transaction_get_quicksearch_column_mask(GtkTreeView *treeview) +{ +GtkTreeViewColumn *column; +guint n, mask; +gint id; + + mask = 0; + for(n=0; n < NUM_LST_DSPOPE-1 ; n++ ) // -1 cause account not to be processed + { + column = gtk_tree_view_get_column (treeview, n); + if(column == NULL) + continue; + + if( gtk_tree_view_column_get_visible(column) ) + { + id = gtk_tree_view_column_get_sort_column_id (column); + switch(id) + { + case LST_DSPOPE_WORDING: mask |= FLT_QSEARCH_MEMO; break; + case LST_DSPOPE_INFO: mask |= FLT_QSEARCH_INFO; break; + case LST_DSPOPE_PAYEE: mask |= FLT_QSEARCH_PAYEE; break; + case LST_DSPOPE_CATEGORY: mask |= FLT_QSEARCH_CATEGORY; break; + case LST_DSPOPE_TAGS: mask |= FLT_QSEARCH_TAGS; break; + } + } + } + + return mask; +} + + /* todo: something simpler to sort ? */ void list_transaction_sort_force(GtkTreeSortable *sortable, gpointer user_data) { -gint id; +gint sort_column_id; GtkSortType order; - gtk_tree_sortable_get_sort_column_id(sortable, &id, &order); + DB( g_print("list_transaction_sort_force\n") ); - DB( g_print("list_transaction_sort_force %d %d\n", id, order) ); + gtk_tree_sortable_get_sort_column_id(sortable, &sort_column_id, &order); + DB( g_print(" - id %d order %d\n", sort_column_id, order) ); - //sort revert - if(order == GTK_SORT_ASCENDING) - { - gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sortable), id, GTK_SORT_DESCENDING); - } - else - { - gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sortable), id, GTK_SORT_ASCENDING); - } - - gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sortable), id, order); + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sortable), GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID, order); + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sortable), sort_column_id, order); } diff --git a/src/list_operation.h b/src/list_operation.h index 78a19aa996e8cdc5ed1380f2e3376ee8a3ff059b..f9d0e50bd1f023072e33bb89ffbad3d04704a5eb 100644 --- a/src/list_operation.h +++ b/src/list_operation.h @@ -35,6 +35,7 @@ struct list_transaction_data GtkWidget *create_list_transaction(gint type, gboolean *pref_columns); void list_transaction_sort_force(GtkTreeSortable *sortable, gpointer user_data); +guint list_transaction_get_quicksearch_column_mask(GtkTreeView *treeview); GtkWidget *create_list_import_transaction(void); #endif diff --git a/src/list_upcoming.c b/src/list_upcoming.c index 19d61cda3ad27b3920c75466968014fcf6d9eb7c..fa370a4738508d19c9902bf887b51fc77c876ec7 100644 --- a/src/list_upcoming.c +++ b/src/list_upcoming.c @@ -25,6 +25,99 @@ extern struct HomeBank *GLOBALS; extern struct Preferences *PREFS; + +static void +sched_lateicon_cell_data_function (GtkTreeViewColumn *col, + GtkCellRenderer *renderer, + GtkTreeModel *model, + GtkTreeIter *iter, + gpointer user_data) +{ +gint nblate; + + gtk_tree_model_get(model, iter, + LST_DSPUPC_NB_LATE, &nblate, + -1); + + if( nblate > 0 ) + { + g_object_set(renderer, "pixbuf", GLOBALS->lst_pixbuf[LST_PIXBUF_WARNING], NULL, NULL); + } + else + g_object_set(renderer, "pixbuf", NULL, NULL); + +} + + + +/* +** remaining cell function +*/ +static void sched_latetext_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data) +{ +Archive *arc; +gchar *markuptxt; +gchar *color; +gint nblate; +//gint weight; + + gtk_tree_model_get(model, iter, + LST_DSPUPC_DATAS, &arc, + LST_DSPUPC_NB_LATE, &nblate, + -1); + + if(arc && nblate > 0) + { + markuptxt = g_strdup_printf(nblate < 10 ? "%d" : "+10", nblate); + + color = NULL; + //weight = PANGO_WEIGHT_NORMAL; + + if(nblate > 0 && PREFS->custom_colors == TRUE) + { + color = PREFS->color_warn; + } + + g_object_set(renderer, + //"weight", weight, + "foreground", color, + "text", markuptxt, + NULL); + + g_free(markuptxt); + } + else + g_object_set(renderer, "text", NULL, NULL); + +} + +/* +** remaining cell function +*/ + +/*static void remaining_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data) +{ +Archive *arc; +gchar *markuptxt; +guint remaining; + + gtk_tree_model_get(model, iter, + LST_DSPUPC_DATAS, &arc, + LST_DSPUPC_REMAINING, &remaining, + -1); + + if(arc && remaining > 0) + { + markuptxt = g_strdup_printf("%d", remaining); + g_object_set(renderer, "markup", markuptxt, NULL); + g_free(markuptxt); + } + else + g_object_set(renderer, "text", NULL, NULL); + +}*/ + + /* ** date cell function */ @@ -106,41 +199,39 @@ gint weight; static void amount_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data) { Archive *arc; -gdouble amount; +gdouble expense, income, amount; gchar buf[G_ASCII_DTOSTR_BUF_SIZE]; +gint column = GPOINTER_TO_INT(user_data); gchar *color; gint weight; + gtk_tree_model_get(model, iter, + LST_DSPUPC_DATAS, &arc, + LST_DSPUPC_EXPENSE, &expense, + LST_DSPUPC_INCOME, &income, + -1); - gtk_tree_model_get(model, iter, LST_DSPUPC_AMOUNT, &amount, LST_DSPUPC_DATAS, &arc, -1); + amount = column == -1 ? expense : income; + + if( amount != 0.0) + { + //hb_strfmon(buf, G_ASCII_DTOSTR_BUF_SIZE-1, amount, kcur); + mystrfmon(buf, G_ASCII_DTOSTR_BUF_SIZE-1, amount, GLOBALS->minor); + color = get_normal_color_amount(amount); - //bugfix here - //if(arc == NULL) - // return; + weight = arc == NULL ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL; - color = get_normal_color_amount(amount); - - if(arc == NULL) - { - weight = PANGO_WEIGHT_BOLD; - //kcur = GLOBALS->kcur; + g_object_set(renderer, + "weight", weight, + "foreground", color, + "text", buf, + NULL); } else { - //Account *acc; - weight = PANGO_WEIGHT_NORMAL; - //acc = da_acc_get(arc->kacc); - //kcur = acc->kcur; + g_object_set(renderer, "text", NULL, NULL); } - //hb_strfmon(buf, G_ASCII_DTOSTR_BUF_SIZE-1, amount, kcur); - mystrfmon(buf, G_ASCII_DTOSTR_BUF_SIZE-1, amount, GLOBALS->minor); - - g_object_set(renderer, - "weight", weight, - "foreground", color, - "text", buf, - NULL); } /* @@ -150,6 +241,7 @@ static void account_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer { Archive *arc; Account *acc; +gchar *name = NULL; gtk_tree_model_get(model, iter, LST_DSPUPC_DATAS, &arc, -1); if(arc) @@ -157,45 +249,37 @@ Account *acc; acc = da_acc_get(arc->kacc); if( acc ) { - g_object_set(renderer, "text", acc->name, NULL); + name = acc->name; } } - else - g_object_set(renderer, "text", NULL, NULL); + + g_object_set(renderer, "text", name, NULL); } -/* -** remaining cell function -*/ -static void remaining_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data) +static +gboolean list_account_selectionfunc( +GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer data) { +GtkTreeIter iter; Archive *arc; -gchar *markuptxt; -guint decay; - gtk_tree_model_get(model, iter, - LST_DSPUPC_DATAS, &arc, - -1); - - if(arc) + if(gtk_tree_model_get_iter(model, &iter, path)) { + gtk_tree_model_get(model, &iter, + LST_DSPUPC_DATAS, &arc, + -1); - decay = arc->nextdate - GLOBALS->today; - - markuptxt = g_strdup_printf("%d %s", decay, _("days")); - - - g_object_set(renderer, "markup", markuptxt, NULL); - g_free(markuptxt); + if( arc == NULL ) + return FALSE; } - else - g_object_set(renderer, "text", NULL, NULL); + return TRUE; } + GtkWidget *create_list_upcoming(void) { GtkListStore *store; @@ -209,10 +293,12 @@ GtkTreeViewColumn *column; G_TYPE_POINTER, G_TYPE_BOOLEAN, /* payee */ G_TYPE_STRING, /* wording */ - G_TYPE_DOUBLE, /* amount */ + G_TYPE_DOUBLE, /* expense */ + G_TYPE_DOUBLE, /* income */ G_TYPE_BOOLEAN, /* account */ G_TYPE_BOOLEAN, /* next on */ - G_TYPE_INT /* remaining */ + G_TYPE_INT, /* remaining */ + G_TYPE_INT /* nb late */ ); //treeview @@ -225,6 +311,50 @@ GtkTreeViewColumn *column; gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(view)), GTK_SELECTION_SINGLE); + /* column : Late */ + column = gtk_tree_view_column_new(); + gtk_tree_view_column_set_title(column, _("Late")); + + renderer = gtk_cell_renderer_pixbuf_new (); + gtk_cell_renderer_set_fixed_size(renderer, GLOBALS->lst_pixbuf_maxwidth, -1); + gtk_tree_view_column_pack_start(column, renderer, TRUE); + gtk_tree_view_column_set_cell_data_func(column, renderer, sched_lateicon_cell_data_function, NULL, NULL); + + renderer = gtk_cell_renderer_text_new (); + g_object_set(renderer, "xalign", 1.0, NULL); + gtk_tree_view_column_pack_start(column, renderer, TRUE); + gtk_tree_view_column_set_cell_data_func(column, renderer, sched_latetext_cell_data_function, NULL, NULL); + + //gtk_tree_view_column_set_sort_column_id (column, LST_DSPUPC_NB_LATE); + //gtk_tree_view_column_set_resizable(column, TRUE); + gtk_tree_view_column_set_alignment (column, 0.5); + gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); + + /* column : Remaining */ + /*column = gtk_tree_view_column_new(); + gtk_tree_view_column_set_title(column, _("In")); + + renderer = gtk_cell_renderer_text_new (); + g_object_set(renderer, "xalign", 1.0, NULL); + gtk_tree_view_column_pack_start(column, renderer, TRUE); + gtk_tree_view_column_set_cell_data_func(column, renderer, remaining_cell_data_function, NULL, NULL); + //gtk_tree_view_column_set_sort_column_id (column, LST_DSPUPC_REMAINING); + //gtk_tree_view_column_set_resizable(column, TRUE); + gtk_tree_view_column_set_alignment (column, 0.5); + gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); + */ + + /* column: Next on */ + column = gtk_tree_view_column_new(); + gtk_tree_view_column_set_title(column, _("Next date")); + renderer = gtk_cell_renderer_text_new (); + gtk_tree_view_column_pack_start(column, renderer, TRUE); + gtk_tree_view_column_set_cell_data_func(column, renderer, date_cell_data_function, NULL, NULL); + //gtk_tree_view_column_set_sort_column_id (column, LST_DSPUPC_DATE); + gtk_tree_view_column_set_resizable(column, TRUE); + gtk_tree_view_column_set_alignment (column, 0.5); + gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); + /* column: Payee */ column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _("Payee")); @@ -251,57 +381,51 @@ GtkTreeViewColumn *column; /* column: Amount */ column = gtk_tree_view_column_new(); - gtk_tree_view_column_set_title(column, _("Amount")); + gtk_tree_view_column_set_title(column, _("Expense")); renderer = gtk_cell_renderer_text_new (); g_object_set(renderer, "xalign", 1.0, NULL); gtk_tree_view_column_pack_start(column, renderer, TRUE); - gtk_tree_view_column_set_cell_data_func(column, renderer, amount_cell_data_function, NULL, NULL); + gtk_tree_view_column_set_cell_data_func(column, renderer, amount_cell_data_function, GINT_TO_POINTER(-1), NULL); //gtk_tree_view_column_set_sort_column_id (column, LST_DSPACC_NAME); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - /* column: Account */ - column = gtk_tree_view_column_new(); - gtk_tree_view_column_set_title(column, _("Account")); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_column_pack_start(column, renderer, TRUE); - gtk_tree_view_column_set_cell_data_func(column, renderer, account_cell_data_function, NULL, NULL); - //gtk_tree_view_column_set_sort_column_id (column, LST_DSPOPE_DATE); - gtk_tree_view_column_set_resizable(column, TRUE); - gtk_tree_view_column_set_alignment (column, 0.5); - gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - - /* column: Next on */ + /* column: Amount */ column = gtk_tree_view_column_new(); - gtk_tree_view_column_set_title(column, _("Next on")); + gtk_tree_view_column_set_title(column, _("Income")); renderer = gtk_cell_renderer_text_new (); g_object_set(renderer, "xalign", 1.0, NULL); gtk_tree_view_column_pack_start(column, renderer, TRUE); - gtk_tree_view_column_set_cell_data_func(column, renderer, date_cell_data_function, NULL, NULL); + gtk_tree_view_column_set_cell_data_func(column, renderer, amount_cell_data_function, GINT_TO_POINTER(1), NULL); //gtk_tree_view_column_set_sort_column_id (column, LST_DSPACC_NAME); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - /* column: Next on */ + /* column: Account */ column = gtk_tree_view_column_new(); - gtk_tree_view_column_set_title(column, _("Remaining")); + gtk_tree_view_column_set_title(column, _("Account")); renderer = gtk_cell_renderer_text_new (); g_object_set(renderer, "xalign", 1.0, NULL); gtk_tree_view_column_pack_start(column, renderer, TRUE); - gtk_tree_view_column_set_cell_data_func(column, renderer, remaining_cell_data_function, NULL, NULL); - gtk_tree_view_column_set_sort_column_id (column, LST_DSPUPC_REMAINING); + gtk_tree_view_column_set_cell_data_func(column, renderer, account_cell_data_function, NULL, NULL); + //gtk_tree_view_column_set_sort_column_id (column, LST_DSPOPE_DATE); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); + + /* column: empty */ column = gtk_tree_view_column_new(); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); + gtk_tree_selection_set_select_function(gtk_tree_view_get_selection(GTK_TREE_VIEW(view)), list_account_selectionfunc, NULL, NULL); + + /* set initial sort order */ gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), LST_DSPUPC_REMAINING, GTK_SORT_ASCENDING); diff --git a/src/list_upcoming.h b/src/list_upcoming.h index b49c1887e4f83f76d3651fb1f76cf88216130d8e..d720ac53cd956c5512563de877e6aa8ad63a3be9 100644 --- a/src/list_upcoming.h +++ b/src/list_upcoming.h @@ -27,10 +27,12 @@ enum LST_DSPUPC_DATAS, LST_DSPUPC_PAYEE, LST_DSPUPC_WORDING, - LST_DSPUPC_AMOUNT, + LST_DSPUPC_EXPENSE, + LST_DSPUPC_INCOME, LST_DSPUPC_ACCOUNT, - LST_DSPUPC_NEXTON, + LST_DSPUPC_DATE, LST_DSPUPC_REMAINING, + LST_DSPUPC_NB_LATE, NUM_LST_DSPUPC }; diff --git a/src/rep_balance.c b/src/rep_balance.c index a8045ee1879903461b0a42587b6eb39d5f274935..b50e9940d21e283035e7cc47f3004ee597b12e6a 100644 --- a/src/rep_balance.c +++ b/src/rep_balance.c @@ -694,7 +694,7 @@ Account *acc; repbalance_update_info(widget, NULL); - gtk_chart_show_legend(GTK_CHART(data->RE_line), FALSE); + gtk_chart_show_legend(GTK_CHART(data->RE_line), FALSE, FALSE); gtk_chart_show_xval(GTK_CHART(data->RE_line), TRUE); gtk_chart_set_overdrawn(GTK_CHART(data->RE_line), data->minimum); gtk_chart_show_overdrawn(GTK_CHART(data->RE_line), !selectall); @@ -799,7 +799,7 @@ GtkWidget *repbalance_window_new(gint accnum) struct repbalance_data *data; struct WinGeometry *wg; GtkWidget *window, *mainvbox, *hbox, *vbox, *notebook, *treeview; -GtkWidget *label, *widget, *table, *alignment, *vbar; +GtkWidget *label, *widget, *table, *alignment; gint row; GtkUIManager *ui; GtkActionGroup *actions; @@ -836,7 +836,7 @@ GError *error = NULL; gtk_box_pack_start (GTK_BOX (mainvbox), hbox, TRUE, TRUE, 0); //control part - table = gtk_table_new (6, 2, FALSE); + table = gtk_table_new (6, 3, FALSE); // gtk_alignment_new(xalign, yalign, xscale, yscale) alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0); gtk_container_add(GTK_CONTAINER(alignment), table); @@ -848,68 +848,67 @@ GError *error = NULL; row = 0; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Display")); - gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, row, row+1); + label = make_label(_("Display"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); row++; label = make_label(_("A_ccount:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = ui_acc_comboboxentry_new(label); data->PO_acc = widget; gtk_widget_set_size_request (widget, 10, -1); - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 2, 3, row, row+1); row++; widget = gtk_check_button_new_with_mnemonic (_("Select _all")); data->CM_selectall = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 3, row, row+1); row++; widget = gtk_check_button_new_with_mnemonic (_("Each _day")); //gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(widget), TRUE); data->CM_eachday = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 3, row, row+1); + row++; + widget = gtk_check_button_new_with_mnemonic (_("_Minor currency")); + data->CM_minor = widget; + gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 3, row, row+1); row++; label = make_label(_("_Zoom X:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = make_scale(label); data->RG_zoomx = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); - - row++; - widget = gtk_check_button_new_with_mnemonic (_("_Minor currency")); - data->CM_minor = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 2, 3, row, row+1); row++; widget = gtk_hseparator_new(); - gtk_table_attach_defaults (GTK_TABLE (table), widget, 0, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 0, 3, row, row+1); row++; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Date filter")); - gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, row, row+1); + label = make_label(_("Date filter"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); row++; label = make_label(_("_Range:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->CY_range = make_daterange(label, FALSE); - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_range, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_range, 2, 3, row, row+1); row++; label = make_label(_("_From:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->PO_mindate = gtk_dateentry_new(); - gtk_table_attach_defaults (GTK_TABLE (table), data->PO_mindate, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->PO_mindate, 2, 3, row, row+1); row++; label = make_label(_("_To:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->PO_maxdate = gtk_dateentry_new(); - gtk_table_attach_defaults (GTK_TABLE (table), data->PO_maxdate, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->PO_maxdate, 2, 3, row, row+1); //part: info + report @@ -978,10 +977,6 @@ GError *error = NULL; data->TX_info = label; gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); - - notebook = gtk_notebook_new(); data->GR_result = notebook; gtk_widget_show(notebook); @@ -1018,7 +1013,7 @@ GError *error = NULL; //page: 2d lines - widget = gtk_chart_new(CHART_LINE_TYPE); + widget = gtk_chart_new(CHART_TYPE_LINE); data->RE_line = widget; //gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.suffix_symbol); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL); diff --git a/src/rep_budget.c b/src/rep_budget.c index 8bfae5d34f2169caeac5700cc358ed5a5c4e66c2..5d27090b8310523e3d9839788fa8a07a235b87d8 100644 --- a/src/rep_budget.c +++ b/src/rep_budget.c @@ -110,7 +110,7 @@ gchar *CYA_BUDGSELECT[] = { N_("Category"), N_("Subcategory"), NULL }; gchar *CYA_KIND[] = { N_("Exp. & Inc."), N_("Expense"), N_("Income"), NULL }; -gchar *CYA_BUDGETSELECT[] = { N_("Spent & Budget"), N_("Spent"), N_("Budget"), N_("Decay"), NULL }; +gchar *CYA_BUDGETSELECT[] = { N_("Spent & Budget"), N_("Spent"), N_("Budget"), N_("Result"), NULL }; //extern gchar *CYA_FLT_SELECT[]; @@ -161,7 +161,7 @@ enum LST_BUDGET_NAME, LST_BUDGET_SPENT, LST_BUDGET_BUDGET, - LST_BUDGET_DECAY, + LST_BUDGET_RESULT, NUM_LST_BUDGET }; @@ -266,16 +266,16 @@ gint nbmonth; return(nbmonth); } -static gdouble budget_compute_decay(gdouble budget, gdouble spent) +static gdouble budget_compute_result(gdouble budget, gdouble spent) { -gdouble decay; +gdouble retval; //original formula - //decay = ABS(budget) - ABS(spent); + //result = ABS(budget) - ABS(spent); - decay = spent - budget; + retval = spent - budget; - return decay; + return retval; } @@ -374,32 +374,36 @@ struct repbudget_data *data; data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - DB( g_print("(repbudget) toggle detail\n") ); + DB( g_print("(repbudget) update detail\n") ); - if(data->detail) + if(GTK_IS_TREE_VIEW(data->LV_report)) { - GtkTreeSelection *treeselection; - GtkTreeModel *model; - GtkTreeIter iter; - guint key; + if(data->detail) + { + GtkTreeSelection *treeselection; + GtkTreeModel *model; + GtkTreeIter iter; + guint key; - treeselection = gtk_tree_view_get_selection (GTK_TREE_VIEW(data->LV_report)); + treeselection = gtk_tree_view_get_selection (GTK_TREE_VIEW(data->LV_report)); - if (gtk_tree_selection_get_selected(treeselection, &model, &iter)) - { - gtk_tree_model_get(model, &iter, LST_BUDGET_KEY, &key, -1); + if (gtk_tree_selection_get_selected(treeselection, &model, &iter)) + { + gtk_tree_model_get(model, &iter, LST_BUDGET_KEY, &key, -1); - //DB( g_print(" - active is %d\n", pos) ); + //DB( g_print(" - active is %d\n", pos) ); - repbudget_detail(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(key)); - } + repbudget_detail(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(key)); + } + gtk_widget_show(data->GR_detail); + } + else + gtk_widget_hide(data->GR_detail); - gtk_widget_show(data->GR_detail); + } - else - gtk_widget_hide(data->GR_detail); } static void repbudget_detail(GtkWidget *widget, gpointer user_data) @@ -810,11 +814,11 @@ next1: if(tmp_budget[pos] || entry->flags & GF_FORCED /*|| tmp_spent[pos]*/) { - gdouble decay; + gdouble result; - decay = budget_compute_decay(tmp_budget[pos], tmp_spent[pos]); + result = budget_compute_result(tmp_budget[pos], tmp_spent[pos]); - DB( g_print(" inserting %i, %s, %.2f %.2f %.2f\n", i, name, tmp_spent[pos], tmp_budget[pos], decay) ); + DB( g_print(" inserting %i, %s, %.2f %.2f %.2f\n", i, name, tmp_spent[pos], tmp_budget[pos], result) ); gtk_list_store_append (GTK_LIST_STORE(model), &iter); gtk_list_store_set (GTK_LIST_STORE(model), &iter, @@ -823,7 +827,7 @@ next1: LST_BUDGET_NAME, name, LST_BUDGET_SPENT, tmp_spent[pos], LST_BUDGET_BUDGET, tmp_budget[pos], - LST_BUDGET_DECAY, decay, + LST_BUDGET_RESULT, result, -1); data->total_spent += tmp_spent[pos]; @@ -887,11 +891,11 @@ struct repbudget_data *data; /* hb_label_set_colvaluecurr(GTK_LABEL(data->TX_total[0]), data->total_spent, GLOBALS->kcur); hb_label_set_colvaluecurr(GTK_LABEL(data->TX_total[1]), data->total_budget, GLOBALS->kcur); - hb_label_set_colvaluecurr(GTK_LABEL(data->TX_total[2]), budget_compute_decay(data->total_budget, data->total_spent), GLOBALS->kcur); + hb_label_set_colvaluecurr(GTK_LABEL(data->TX_total[2]), budget_compute_result(data->total_budget, data->total_spent), GLOBALS->kcur); */ hb_label_set_colvalue(GTK_LABEL(data->TX_total[0]), data->total_spent, GLOBALS->minor); hb_label_set_colvalue(GTK_LABEL(data->TX_total[1]), data->total_budget, GLOBALS->minor); - hb_label_set_colvalue(GTK_LABEL(data->TX_total[2]), budget_compute_decay(data->total_budget, data->total_spent), GLOBALS->minor); + hb_label_set_colvalue(GTK_LABEL(data->TX_total[2]), budget_compute_result(data->total_budget, data->total_spent), GLOBALS->minor); } @@ -943,7 +947,7 @@ struct repbudget_data *data; //active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data->CM_legend)); data->legend ^= 1; - gtk_chart_show_legend(GTK_CHART(data->RE_bar), data->legend); + gtk_chart_show_legend(GTK_CHART(data->RE_bar), data->legend, FALSE); } @@ -1068,7 +1072,7 @@ GtkWidget *repbudget_window_new(void) struct repbudget_data *data; struct WinGeometry *wg; GtkWidget *window, *mainvbox, *hbox, *vbox, *notebook, *treeview; -GtkWidget *label, *widget, *table, *alignment, *vbar, *entry; +GtkWidget *label, *widget, *table, *alignment, *entry; gint row; GtkUIManager *ui; GtkActionGroup *actions; @@ -1106,7 +1110,7 @@ GError *error = NULL; gtk_box_pack_start (GTK_BOX (mainvbox), hbox, TRUE, TRUE, 0); //control part - table = gtk_table_new (9, 2, FALSE); + table = gtk_table_new (9, 3, FALSE); // gtk_alignment_new(xalign, yalign, xscale, yscale) alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0); gtk_container_add(GTK_CONTAINER(alignment), table); @@ -1117,70 +1121,70 @@ GError *error = NULL; gtk_table_set_col_spacings (GTK_TABLE (table), HB_TABCOL_SPACING); row = 0; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Display")); - gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, row, row+1); + label = make_label(_("Display"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); row++; label = make_label(_("_For:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = make_cycle(label, CYA_BUDGSELECT); data->CY_for = widget; - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_for, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_for, 2, 3, row, row+1); row++; label = make_label(_("_Kind:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = make_cycle(label, CYA_KIND); data->CY_kind = widget; - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_kind, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_kind, 2, 3, row, row+1); row++; label = make_label(_("_View:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = make_cycle(label, CYA_BUDGETSELECT); data->CY_view = widget; - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_view, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_view, 2, 3, row, row+1); + + row++; + widget = gtk_check_button_new_with_mnemonic (_("_Minor currency")); + data->CM_minor = widget; + gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 3, row, row+1); row++; label = make_label(_("_Zoom X:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = make_scale(label); data->RG_zoomx = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); - - row++; - widget = gtk_check_button_new_with_mnemonic (_("_Minor currency")); - data->CM_minor = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 2, 3, row, row+1); row++; widget = gtk_hseparator_new(); - gtk_table_attach_defaults (GTK_TABLE (table), widget, 0, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 0, 3, row, row+1); row++; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Date filter")); - gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, row, row+1); + label = make_label(_("Date filter"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); row++; label = make_label(_("_Range:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->CY_range = make_daterange(label, FALSE); - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_range, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_range, 2, 3, row, row+1); row++; label = make_label(_("_From:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->PO_mindate = gtk_dateentry_new(); - gtk_table_attach_defaults (GTK_TABLE (table), data->PO_mindate, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->PO_mindate, 2, 3, row, row+1); row++; label = make_label(_("_To:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->PO_maxdate = gtk_dateentry_new(); - gtk_table_attach_defaults (GTK_TABLE (table), data->PO_maxdate, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->PO_maxdate, 2, 3, row, row+1); //part: info + report @@ -1246,30 +1250,21 @@ GError *error = NULL; entry = gtk_label_new(NULL); data->TX_total[2] = entry; gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); - label = gtk_label_new(_("Decay:")); + label = gtk_label_new(_("Result:")); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); - entry = gtk_label_new(NULL); data->TX_total[1] = entry; gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); label = gtk_label_new(_("Budget:")); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); - entry = gtk_label_new(NULL); data->TX_total[0] = entry; gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); label = gtk_label_new(_("Spent:")); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); - notebook = gtk_notebook_new(); data->GR_result = notebook; @@ -1304,7 +1299,7 @@ GError *error = NULL; gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 0); //page: 2d bar - widget = gtk_chart_new(CHART_BAR_TYPE); + widget = gtk_chart_new(CHART_TYPE_COL); data->RE_bar = widget; //gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.suffix_symbol); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL); @@ -1430,7 +1425,7 @@ gint column_id = GPOINTER_TO_INT(user_data); mystrfmon(buf, G_ASCII_DTOSTR_BUF_SIZE-1, value, GLOBALS->minor); //hb_strfmon(buf, G_ASCII_DTOSTR_BUF_SIZE-1, value, GLOBALS->kcur); - if( column_id == LST_BUDGET_DECAY) + if( column_id == LST_BUDGET_RESULT) color = get_minimum_color_amount (value, 0.0); else color = get_normal_color_amount(value); @@ -1510,8 +1505,8 @@ GtkTreeViewColumn *column; column = amount_list_budget_column(_("Budget"), LST_BUDGET_BUDGET); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - /* column: Balance */ - column = amount_list_budget_column(_("Decay"), LST_BUDGET_DECAY); + /* column: Result */ + column = amount_list_budget_column(_("Result"), LST_BUDGET_RESULT); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); /* column last: empty */ @@ -1523,7 +1518,7 @@ GtkTreeViewColumn *column; gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_BUDGET_POS , stat_list_compare_func, GINT_TO_POINTER(LST_BUDGET_POS), NULL); gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_BUDGET_SPENT , stat_list_compare_func, GINT_TO_POINTER(LST_BUDGET_SPENT), NULL); gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_BUDGET_BUDGET, stat_list_compare_func, GINT_TO_POINTER(LST_BUDGET_BUDGET), NULL); - gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_BUDGET_DECAY , stat_list_compare_func, GINT_TO_POINTER(LST_BUDGET_DECAY), NULL); + gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_BUDGET_RESULT , stat_list_compare_func, GINT_TO_POINTER(LST_BUDGET_RESULT), NULL); */ return(view); diff --git a/src/rep_stats.c b/src/rep_stats.c index 7863040f55c4306f9c08e6698329094459de6a59..ebc3b87abbd79563a86821c7af17fa8fc503c347 100644 --- a/src/rep_stats.c +++ b/src/rep_stats.c @@ -47,101 +47,49 @@ extern struct HomeBank *GLOBALS; extern struct Preferences *PREFS; -enum { - HID_MINDATE, - HID_MAXDATE, - HID_RANGE, - HID_VIEW, - MAX_HID -}; - -struct statistic_data -{ - GtkWidget *window; - - gint busy; - - GtkUIManager *ui; - GtkActionGroup *actions; - - GtkWidget *TB_bar; - - GtkWidget *TX_info; - GtkWidget *CM_minor; - GtkWidget *CY_for; - GtkWidget *CY_view; - GtkWidget *RG_zoomx; - GtkWidget *LV_report; - GtkWidget *CM_byamount; - - GtkWidget *PO_mindate, *PO_maxdate; - - GtkWidget *CY_range; - GtkWidget *GR_result; - - GtkWidget *TX_daterange; - GtkWidget *TX_total[3]; - - GtkWidget *RE_bar; - GtkWidget *RE_pie; - - GtkWidget *GR_detail; - GtkWidget *LV_detail; - - gdouble total_expense; - gdouble total_income; - - gboolean detail; - gboolean legend; - gboolean rate; - - gulong handler_id[MAX_HID]; - - Filter *filter; - -}; /* prototypes */ -static void statistic_action_viewlist(GtkAction *action, gpointer user_data); -static void statistic_action_viewbar(GtkAction *action, gpointer user_data); -static void statistic_action_viewpie(GtkAction *action, gpointer user_data); -static void statistic_action_detail(GtkAction *action, gpointer user_data); -static void statistic_action_legend(GtkAction *action, gpointer user_data); -static void statistic_action_rate(GtkAction *action, gpointer user_data); -static void statistic_action_filter(GtkAction *action, gpointer user_data); -static void statistic_action_refresh(GtkAction *action, gpointer user_data); -static void statistic_action_export(GtkAction *action, gpointer user_data); +static void ui_repdist_action_viewlist(GtkAction *action, gpointer user_data); +static void ui_repdist_action_viewbar(GtkAction *action, gpointer user_data); +static void ui_repdist_action_viewpie(GtkAction *action, gpointer user_data); +static void ui_repdist_action_detail(GtkAction *action, gpointer user_data); +static void ui_repdist_action_legend(GtkAction *action, gpointer user_data); +static void ui_repdist_action_rate(GtkAction *action, gpointer user_data); +static void ui_repdist_action_filter(GtkAction *action, gpointer user_data); +static void ui_repdist_action_refresh(GtkAction *action, gpointer user_data); +static void ui_repdist_action_export(GtkAction *action, gpointer user_data); static GtkActionEntry entries[] = { - { "List" , "hb-view-list" , N_("List") , NULL, N_("View results as list"), G_CALLBACK (statistic_action_viewlist) }, - { "Bar" , "hb-view-bar" , N_("Bar") , NULL, N_("View results as bars"), G_CALLBACK (statistic_action_viewbar) }, - { "Pie" , "hb-view-pie" , N_("Pie") , NULL, N_("View results as pies"), G_CALLBACK (statistic_action_viewpie) }, + { "List" , "hb-view-list" , N_("List") , NULL, N_("View results as list"), G_CALLBACK (ui_repdist_action_viewlist) }, + { "Bar" , "hb-view-bar" , N_("Bar") , NULL, N_("View results as bars"), G_CALLBACK (ui_repdist_action_viewbar) }, + { "Pie" , "hb-view-pie" , N_("Pie") , NULL, N_("View results as pies"), G_CALLBACK (ui_repdist_action_viewpie) }, - { "Filter" , "hb-filter" , N_("Filter") , NULL, N_("Edit the filter"), G_CALLBACK (statistic_action_filter) }, - { "Refresh" , GTK_STOCK_REFRESH , N_("Refresh"), NULL, N_("Refresh results"), G_CALLBACK (statistic_action_refresh) }, + { "Filter" , "hb-filter" , N_("Filter") , NULL, N_("Edit the filter"), G_CALLBACK (ui_repdist_action_filter) }, + { "Refresh" , GTK_STOCK_REFRESH , N_("Refresh"), NULL, N_("Refresh results"), G_CALLBACK (ui_repdist_action_refresh) }, - { "Export" , "hb-file-export", N_("Export") , NULL, N_("Export as CSV"), G_CALLBACK (statistic_action_export) }, + { "Export" , "hb-file-export", N_("Export") , NULL, N_("Export as CSV"), G_CALLBACK (ui_repdist_action_export) }, }; static guint n_entries = G_N_ELEMENTS (entries); + static GtkToggleActionEntry toggle_entries[] = { { "Detail", "hb-ope-show", /* name, stock id */ N_("Detail"), NULL, /* label, accelerator */ N_("Toggle detail"), /* tooltip */ - G_CALLBACK (statistic_action_detail), + G_CALLBACK (ui_repdist_action_detail), FALSE }, /* is_active */ { "Legend", "hb-legend", /* name, stock id */ N_("Legend"), NULL, /* label, accelerator */ N_("Toggle legend"), /* tooltip */ - G_CALLBACK (statistic_action_legend), + G_CALLBACK (ui_repdist_action_legend), TRUE }, /* is_active */ { "Rate", "hb-rate", /* name, stock id */ N_("Rate"), NULL, /* label, accelerator */ N_("Toggle rate"), /* tooltip */ - G_CALLBACK (statistic_action_rate), + G_CALLBACK (ui_repdist_action_rate), FALSE }, /* is_active */ }; @@ -167,48 +115,26 @@ static const gchar *ui_info = " " ""; -/* list stat */ -enum -{ - LST_STAT_POS, - LST_STAT_KEY, - LST_STAT_NAME, - LST_STAT_EXPENSE, - LST_STAT_EXPRATE, - LST_STAT_INCOME, - LST_STAT_INCRATE, - LST_STAT_BALANCE, - LST_STAT_BALRATE, - NUM_LST_STAT -}; -static void statistic_date_change(GtkWidget *widget, gpointer user_data); -static void statistic_range_change(GtkWidget *widget, gpointer user_data); -static void statistic_detail(GtkWidget *widget, gpointer user_data); -static void statistic_update(GtkWidget *widget, gpointer user_data); -static void statistic_update_total(GtkWidget *widget, gpointer user_data); -static void statistic_export_csv(GtkWidget *widget, gpointer user_data); -static void statistic_compute(GtkWidget *widget, gpointer user_data); -static void statistic_sensitive(GtkWidget *widget, gpointer user_data); -static void statistic_toggle_detail(GtkWidget *widget, gpointer user_data); -static void statistic_toggle_legend(GtkWidget *widget, gpointer user_data); -static void statistic_toggle_minor(GtkWidget *widget, gpointer user_data); -static void statistic_toggle_rate(GtkWidget *widget, gpointer user_data); -static GtkWidget *stat_list_create(void); -static void statistic_update_daterange(GtkWidget *widget, gpointer user_data); - -static gint stat_list_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); - -enum -{ - STAT_CATEGORY, - STAT_SUBCATEGORY, - STAT_PAYEE, - STAT_TAG, - STAT_MONTH, - STAT_YEAR, -}; +static void ui_repdist_date_change(GtkWidget *widget, gpointer user_data); +static void ui_repdist_range_change(GtkWidget *widget, gpointer user_data); +static void ui_repdist_detail(GtkWidget *widget, gpointer user_data); +static void ui_repdist_update(GtkWidget *widget, gpointer user_data); +static void ui_repdist_update_total(GtkWidget *widget, gpointer user_data); +static void ui_repdist_export_csv(GtkWidget *widget, gpointer user_data); +static void ui_repdist_compute(GtkWidget *widget, gpointer user_data); +static void ui_repdist_sensitive(GtkWidget *widget, gpointer user_data); +static void ui_repdist_toggle_detail(GtkWidget *widget, gpointer user_data); +static void ui_repdist_toggle_legend(GtkWidget *widget, gpointer user_data); +static void ui_repdist_toggle_minor(GtkWidget *widget, gpointer user_data); +static void ui_repdist_toggle_rate(GtkWidget *widget, gpointer user_data); +static GtkWidget *ui_list_repdist_create(void); +static void ui_repdist_update_daterange(GtkWidget *widget, gpointer user_data); + +static gint ui_list_repdist_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); + + gchar *CYA_STATSELECT[] = { N_("Category"), @@ -233,7 +159,6 @@ gchar *CYA_KIND2[] = { gchar *CYA_MONTHS[] = { -NULL, N_("January"), N_("February"), N_("March"), @@ -246,93 +171,97 @@ N_("September"), N_("October"), N_("November"), N_("December"), +NULL }; /* action functions -------------------- */ -static void statistic_action_viewlist(GtkAction *action, gpointer user_data) +static void ui_repdist_action_viewlist(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; gtk_notebook_set_current_page(GTK_NOTEBOOK(data->GR_result), 0); - statistic_sensitive(data->window, NULL); + ui_repdist_sensitive(data->window, NULL); } -static void statistic_action_viewbar(GtkAction *action, gpointer user_data) +static void ui_repdist_action_viewbar(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; gtk_notebook_set_current_page(GTK_NOTEBOOK(data->GR_result), 1); - statistic_sensitive(data->window, NULL); + gtk_chart_set_type (GTK_CHART(data->RE_chart), CHART_TYPE_COL); + ui_repdist_sensitive(data->window, NULL); } -static void statistic_action_viewpie(GtkAction *action, gpointer user_data) +static void ui_repdist_action_viewpie(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; gint tmpview; - gtk_notebook_set_current_page(GTK_NOTEBOOK(data->GR_result), 2); - statistic_sensitive(data->window, NULL); + gtk_notebook_set_current_page(GTK_NOTEBOOK(data->GR_result), 1); + + gtk_chart_set_type (GTK_CHART(data->RE_chart), CHART_TYPE_PIE); + ui_repdist_sensitive(data->window, NULL); tmpview = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_view)); // ensure not exp & inc for piechart if( tmpview == 0 ) { - //g_signal_handler_block(data->CY_view, data->handler_id[HID_VIEW]); + //g_signal_handler_block(data->CY_view, data->handler_id[HID_REPDIST_VIEW]); gtk_combo_box_set_active(GTK_COMBO_BOX(data->CY_view), 1); - //g_signal_handler_unblock(data->CY_view, data->handler_id[HID_VIEW]); + //g_signal_handler_unblock(data->CY_view, data->handler_id[HID_REPDIST_VIEW]); } } -static void statistic_action_detail(GtkAction *action, gpointer user_data) +static void ui_repdist_action_detail(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; - statistic_toggle_detail(data->window, NULL); + ui_repdist_toggle_detail(data->window, NULL); } -static void statistic_action_legend(GtkAction *action, gpointer user_data) +static void ui_repdist_action_legend(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; - statistic_toggle_legend(data->window, NULL); + ui_repdist_toggle_legend(data->window, NULL); } -static void statistic_action_rate(GtkAction *action, gpointer user_data) +static void ui_repdist_action_rate(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; - statistic_toggle_rate(data->window, NULL); + ui_repdist_toggle_rate(data->window, NULL); } -static void statistic_action_filter(GtkAction *action, gpointer user_data) +static void ui_repdist_action_filter(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; //debug //create_deffilter_window(data->filter, TRUE); if(ui_flt_manage_dialog_new(data->filter, TRUE) != GTK_RESPONSE_REJECT) { - statistic_compute(data->window, NULL); - statistic_update_daterange(data->window, NULL); + ui_repdist_compute(data->window, NULL); + ui_repdist_update_daterange(data->window, NULL); } } -static void statistic_action_refresh(GtkAction *action, gpointer user_data) +static void ui_repdist_action_refresh(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; - statistic_compute(data->window, NULL); + ui_repdist_compute(data->window, NULL); } -static void statistic_action_export(GtkAction *action, gpointer user_data) +static void ui_repdist_action_export(GtkAction *action, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; - statistic_export_csv(data->window, NULL); + ui_repdist_export_csv(data->window, NULL); } @@ -393,11 +322,11 @@ gint year_from, year_ope, pos; return(pos); } -static void statistic_date_change(GtkWidget *widget, gpointer user_data) +static void ui_repdist_date_change(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; - DB( g_print("(statistic) date change\n") ); + DB( g_print("\n[repdist] date change\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -408,24 +337,24 @@ struct statistic_data *data; gtk_dateentry_set_maxdate(GTK_DATE_ENTRY(data->PO_mindate), data->filter->maxdate); gtk_dateentry_set_mindate(GTK_DATE_ENTRY(data->PO_maxdate), data->filter->mindate); - g_signal_handler_block(data->CY_range, data->handler_id[HID_RANGE]); + g_signal_handler_block(data->CY_range, data->handler_id[HID_REPDIST_RANGE]); gtk_combo_box_set_active(GTK_COMBO_BOX(data->CY_range), FLT_RANGE_OTHER); - g_signal_handler_unblock(data->CY_range, data->handler_id[HID_RANGE]); + g_signal_handler_unblock(data->CY_range, data->handler_id[HID_REPDIST_RANGE]); - statistic_compute(widget, NULL); - statistic_update_daterange(widget, NULL); + ui_repdist_compute(widget, NULL); + ui_repdist_update_daterange(widget, NULL); } -static void statistic_range_change(GtkWidget *widget, gpointer user_data) +static void ui_repdist_range_change(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; gint range; - DB( g_print("(statistic) range change\n") ); + DB( g_print("\n[repdist] range change\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -435,53 +364,53 @@ gint range; { filter_preset_daterange_set(data->filter, range); - g_signal_handler_block(data->PO_mindate, data->handler_id[HID_MINDATE]); - g_signal_handler_block(data->PO_maxdate, data->handler_id[HID_MAXDATE]); + g_signal_handler_block(data->PO_mindate, data->handler_id[HID_REPDIST_MINDATE]); + g_signal_handler_block(data->PO_maxdate, data->handler_id[HID_REPDIST_MAXDATE]); gtk_dateentry_set_date(GTK_DATE_ENTRY(data->PO_mindate), data->filter->mindate); gtk_dateentry_set_date(GTK_DATE_ENTRY(data->PO_maxdate), data->filter->maxdate); - g_signal_handler_unblock(data->PO_mindate, data->handler_id[HID_MINDATE]); - g_signal_handler_unblock(data->PO_maxdate, data->handler_id[HID_MAXDATE]); + g_signal_handler_unblock(data->PO_mindate, data->handler_id[HID_REPDIST_MINDATE]); + g_signal_handler_unblock(data->PO_maxdate, data->handler_id[HID_REPDIST_MAXDATE]); - statistic_compute(widget, NULL); - statistic_update_daterange(widget, NULL); + ui_repdist_compute(widget, NULL); + ui_repdist_update_daterange(widget, NULL); } else { if(ui_flt_manage_dialog_new(data->filter, TRUE) != GTK_RESPONSE_REJECT) { - statistic_compute(data->window, NULL); - statistic_update_daterange(widget, NULL); + ui_repdist_compute(data->window, NULL); + ui_repdist_update_daterange(widget, NULL); } } } -static gint statistic_result_get_pos(gint tmpfor, guint from, Transaction *ope) +static gint ui_repdist_result_get_pos(gint tmpfor, guint from, Transaction *ope) { gint pos = 0; switch(tmpfor) { - case STAT_CATEGORY: + case BY_REPDIST_CATEGORY: { Category *catentry = da_cat_get(ope->kcat); if(catentry) pos = (catentry->flags & GF_SUB) ? catentry->parent : catentry->key; } break; - case STAT_SUBCATEGORY: + case BY_REPDIST_SUBCATEGORY: pos = ope->kcat; break; - case STAT_PAYEE: + case BY_REPDIST_PAYEE: pos = ope->kpay; break; - case STAT_MONTH: + case BY_REPDIST_MONTH: pos = DateInPer(from, ope->date); break; - case STAT_YEAR: + case BY_REPDIST_YEAR: pos = DateInYear(from, ope->date); break; } @@ -491,9 +420,9 @@ gint pos = 0; -static void statistic_detail(GtkWidget *widget, gpointer user_data) +static void ui_repdist_detail(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; guint active = GPOINTER_TO_INT(user_data); guint tmpfor; GList *list; @@ -502,7 +431,7 @@ GtkTreeIter iter; data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - DB( g_print("(statistic) detail\n") ); + DB( g_print("\n[repdist] detail\n") ); /* clear and detach our model */ model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_detail)); @@ -510,7 +439,7 @@ GtkTreeIter iter; if(data->detail) { - tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_for)); + tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_by)); g_object_ref(model); /* Make sure the model stays with us after the tree view unrefs it */ gtk_tree_view_set_model(GTK_TREE_VIEW(data->LV_detail), NULL); /* Detach model from view */ @@ -535,9 +464,9 @@ GtkTreeIter iter; { guint i, pos = 0; - if( tmpfor != STAT_TAG ) + if( tmpfor != BY_REPDIST_TAG ) { - if( (tmpfor == STAT_CATEGORY || tmpfor == STAT_SUBCATEGORY) && ope->flags & OF_SPLIT ) + if( (tmpfor == BY_REPDIST_CATEGORY || tmpfor == BY_REPDIST_SUBCATEGORY) && ope->flags & OF_SPLIT ) { guint nbsplit = da_transaction_splits_count(ope); Split *split; @@ -547,14 +476,14 @@ GtkTreeIter iter; split = ope->splits[i]; switch(tmpfor) { - case STAT_CATEGORY: + case BY_REPDIST_CATEGORY: { Category *catentry = da_cat_get(split->kcat); if(catentry) pos = (catentry->flags & GF_SUB) ? catentry->parent : catentry->key; } break; - case STAT_SUBCATEGORY: + case BY_REPDIST_SUBCATEGORY: pos = split->kcat; break; } @@ -574,7 +503,7 @@ GtkTreeIter iter; } else { - pos = statistic_result_get_pos(tmpfor, data->filter->mindate, ope); + pos = ui_repdist_result_get_pos(tmpfor, data->filter->mindate, ope); if( pos == active ) { @@ -632,23 +561,23 @@ next1: } -static void statistic_update(GtkWidget *widget, gpointer user_data) +static void ui_repdist_update(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; gboolean byamount; GtkTreeModel *model; gint page, tmpfor, tmpkind, column; gboolean xval; gchar *title; - DB( g_print("(statistic) update\n") ); + DB( g_print("\n[repdist] update\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); model = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_report)); byamount = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data->CM_byamount)); - tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_for)); + tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_by)); tmpkind = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_view)); // ensure not exp & inc for piechart @@ -656,9 +585,9 @@ gchar *title; if( page == 2 && tmpkind == 0 ) { - g_signal_handler_block(data->CY_view, data->handler_id[HID_VIEW]); + g_signal_handler_block(data->CY_view, data->handler_id[HID_REPDIST_VIEW]); gtk_combo_box_set_active(GTK_COMBO_BOX(data->CY_view), 1); - g_signal_handler_unblock(data->CY_view, data->handler_id[HID_VIEW]); + g_signal_handler_unblock(data->CY_view, data->handler_id[HID_REPDIST_VIEW]); tmpkind = 1; } @@ -666,74 +595,68 @@ gchar *title; DB( g_print(" tmpkind %d\n\n", tmpkind) ); - column = byamount ? LST_STAT_EXPENSE+(tmpkind-1)*2 : LST_STAT_POS; + column = byamount ? LST_REPDIST_EXPENSE+(tmpkind-1)*2 : LST_REPDIST_POS; //#833614 sort category/payee by name - //if(!byamount && tmpkind <= STAT_PAYEE) - // column = LST_STAT_NAME; + //if(!byamount && tmpkind <= BY_REPDIST_PAYEE) + // column = LST_REPDIST_NAME; DB( g_print(" sort on column %d\n\n", column) ); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), column, GTK_SORT_DESCENDING); - column = LST_STAT_EXPENSE+(tmpkind-1)*2; + column = LST_REPDIST_EXPENSE+(tmpkind-1)*2; /* set chart color scheme */ - gtk_chart_set_color_scheme(GTK_CHART(data->RE_bar), PREFS->report_color_scheme); - gtk_chart_set_color_scheme(GTK_CHART(data->RE_pie), PREFS->report_color_scheme); + gtk_chart_set_color_scheme(GTK_CHART(data->RE_chart), PREFS->report_color_scheme); /* set chart title */ - title = g_strdup_printf("%s - %s", _(CYA_STATSELECT[tmpfor]), _(CYA_KIND2[tmpkind]) ); + ////TRANSLATORS: example 'Expense by Category' + title = g_strdup_printf(_("%s by %s"), _(CYA_KIND2[tmpkind]), _(CYA_STATSELECT[tmpfor]) ); + + /* update absolute or not */ + gboolean abs = (tmpkind == 1 || tmpkind == 2) ? TRUE : FALSE; + gtk_chart_set_absolute(GTK_CHART(data->RE_chart), abs); + /* update bar chart */ DB( g_print(" set bar to %d %s\n\n", column, _(CYA_KIND2[tmpkind])) ); if( tmpkind == 0 ) - gtk_chart_set_dualdatas(GTK_CHART(data->RE_bar), model, LST_STAT_EXPENSE, LST_STAT_INCOME, title); + gtk_chart_set_dualdatas(GTK_CHART(data->RE_chart), model, LST_REPDIST_EXPENSE, LST_REPDIST_INCOME, title); else - gtk_chart_set_datas(GTK_CHART(data->RE_bar), model, column, title); + gtk_chart_set_datas(GTK_CHART(data->RE_chart), model, column, title); /* show xval for month/year and no by amount display */ xval = FALSE; - if( !byamount && (tmpfor == STAT_MONTH || tmpfor == STAT_YEAR) ) + if( !byamount && (tmpfor == BY_REPDIST_MONTH || tmpfor == BY_REPDIST_YEAR) ) { xval = TRUE; switch( tmpfor) { - case STAT_MONTH: - gtk_chart_set_decy_xval(GTK_CHART(data->RE_bar), 4); + case BY_REPDIST_MONTH: + gtk_chart_set_every_xval(GTK_CHART(data->RE_chart), 4); break; - case STAT_YEAR: - gtk_chart_set_decy_xval(GTK_CHART(data->RE_bar), 2); + case BY_REPDIST_YEAR: + gtk_chart_set_every_xval(GTK_CHART(data->RE_chart), 2); break; - } - - } - gtk_chart_show_xval(GTK_CHART(data->RE_bar), xval); - - /* update pie chart */ - - DB( g_print(" set pie to %d %s\n\n", column, _(CYA_KIND2[tmpkind])) ); - if( tmpkind != 0 ) - gtk_chart_set_datas(GTK_CHART(data->RE_pie), model, column, title); - else - gtk_chart_set_datas(GTK_CHART(data->RE_pie), NULL, 0, NULL); + gtk_chart_show_xval(GTK_CHART(data->RE_chart), xval); g_free(title); } -static void statistic_update_daterange(GtkWidget *widget, gpointer user_data) +static void ui_repdist_update_daterange(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; gchar *daterange; - DB( g_print("(statistic) update daterange\n") ); + DB( g_print("\n[repdist] update daterange\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -742,12 +665,12 @@ gchar *daterange; g_free(daterange); } -static void statistic_update_total(GtkWidget *widget, gpointer user_data) +static void ui_repdist_update_total(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; //gboolean minor; - DB( g_print("(statistic) update total\n") ); + DB( g_print("\n[repdist] update total\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -766,9 +689,9 @@ struct statistic_data *data; } -static void statistic_export_csv(GtkWidget *widget, gpointer user_data) +static void ui_repdist_export_csv(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; GtkTreeModel *model; GtkTreeIter iter; gboolean valid; @@ -777,11 +700,11 @@ GIOChannel *io; gchar *outstr, *name; gint tmpfor; - DB( g_print("(statistic) export csv\n") ); + DB( g_print("\n[repdist] export csv\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_for)); + tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_by)); name = g_strdup_printf("hb-stat_%s.csv", CYA_STATSELECT[tmpfor]); @@ -804,11 +727,11 @@ gint tmpfor; gdouble exp, inc, bal; gtk_tree_model_get (model, &iter, - //LST_STAT_KEY, i, - LST_STAT_NAME , &name, - LST_STAT_EXPENSE, &exp, - LST_STAT_INCOME , &inc, - LST_STAT_BALANCE, &bal, + //LST_REPDIST_KEY, i, + LST_REPDIST_NAME , &name, + LST_REPDIST_EXPENSE, &exp, + LST_REPDIST_INCOME , &inc, + LST_REPDIST_BALANCE, &bal, -1); outstr = g_strdup_printf("%s;%.2f;%.2f;%.2f\n", name, exp, inc, bal); @@ -833,9 +756,9 @@ gint tmpfor; } -static void statistic_compute(GtkWidget *widget, gpointer user_data) +static void ui_repdist_compute(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; gint tmpfor, tmpkind; guint32 from, to; GtkTreeModel *model; @@ -847,11 +770,11 @@ GDate *date1, *date2; gdouble *tmp_income, *tmp_expense; gdouble exprate, incrate, balrate; - DB( g_print("(statistic) compute\n") ); + DB( g_print("\n[repdist] compute\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_for)); + tmpfor = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_by)); tmpkind = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_view)); @@ -870,27 +793,27 @@ gdouble exprate, incrate, balrate; /* count number or results */ switch(tmpfor) { - case STAT_CATEGORY: - case STAT_SUBCATEGORY: + case BY_REPDIST_CATEGORY: + case BY_REPDIST_SUBCATEGORY: n_result = da_cat_get_max_key() + 1; tmplist = category_glist_sorted(1); break; - case STAT_PAYEE: + case BY_REPDIST_PAYEE: n_result = da_pay_get_max_key() + 1; tmplist = payee_glist_sorted(1); break; - case STAT_TAG: + case BY_REPDIST_TAG: n_result = da_tag_length(); tmplist = tag_glist_sorted(1); break; - case STAT_MONTH: + case BY_REPDIST_MONTH: date1 = g_date_new_julian(from); date2 = g_date_new_julian(to); n_result = ((g_date_get_year(date2) - g_date_get_year(date1)) * 12) + g_date_get_month(date2) - g_date_get_month(date1) + 1; g_date_free(date2); g_date_free(date1); break; - case STAT_YEAR: + case BY_REPDIST_YEAR: date1 = g_date_new_julian(from); date2 = g_date_new_julian(to); n_result = g_date_get_year(date2) - g_date_get_year(date1) + 1; @@ -934,48 +857,62 @@ gdouble exprate, incrate, balrate; //trn_amount = to_base_amount(ope->amount, acc->kcur); trn_amount = ope->amount; - if( tmpfor != STAT_TAG ) + if( tmpfor != BY_REPDIST_TAG ) { - if( (tmpfor == STAT_CATEGORY || tmpfor == STAT_SUBCATEGORY) && ope->flags & OF_SPLIT ) + if( (tmpfor == BY_REPDIST_CATEGORY || tmpfor == BY_REPDIST_SUBCATEGORY) && ope->flags & OF_SPLIT ) { guint nbsplit = da_transaction_splits_count(ope); Split *split; - + Category *catentry; + gint sinsert; + for(i=0;isplits[i]; - switch(tmpfor) - { - case STAT_CATEGORY: - { - Category *catentry = da_cat_get(split->kcat); - if(catentry) - pos = (catentry->flags & GF_SUB) ? catentry->parent : catentry->key; - } - break; - case STAT_SUBCATEGORY: - pos = split->kcat; - break; - } + catentry = da_cat_get(split->kcat); + if(!catentry) continue; + sinsert = ( catentry->filter == TRUE ) ? 1 : 0; + if(data->filter->option[FILTER_CATEGORY] == 2) sinsert ^= 1; - //trn_amount = to_base_amount(split->amount, acc->kcur); - trn_amount = split->amount; - - if(trn_amount > 0.0) - { - tmp_income[pos] += trn_amount; - data->total_income += trn_amount; - } - else + DB( g_print(" split '%s' insert=%d\n",catentry->name, sinsert) ); + + if( (data->filter->option[FILTER_CATEGORY] == 0) || sinsert) { - tmp_expense[pos] += trn_amount; - data->total_expense += trn_amount; + switch(tmpfor) + { + case BY_REPDIST_CATEGORY: + { + if(catentry) + pos = (catentry->flags & GF_SUB) ? catentry->parent : catentry->key; + } + break; + case BY_REPDIST_SUBCATEGORY: + pos = split->kcat; + break; + } + + //trn_amount = to_base_amount(split->amount, acc->kcur); + trn_amount = split->amount; + + if(trn_amount > 0.0) + { + tmp_income[pos] += trn_amount; + data->total_income += trn_amount; + } + else + { + tmp_expense[pos] += trn_amount; + data->total_expense += trn_amount; + } + } + // end insert + } } else { - pos = statistic_result_get_pos(tmpfor, from, ope); + pos = ui_repdist_result_get_pos(tmpfor, from, ope); if(trn_amount > 0.0) { tmp_income[pos] += trn_amount; @@ -1056,7 +993,7 @@ next1: /* filter empty results */ - if(tmpfor == STAT_CATEGORY || tmpfor == STAT_SUBCATEGORY || tmpfor == STAT_PAYEE || tmpfor == STAT_TAG) + if(tmpfor == BY_REPDIST_CATEGORY || tmpfor == BY_REPDIST_SUBCATEGORY || tmpfor == BY_REPDIST_PAYEE || tmpfor == BY_REPDIST_TAG) { if( tmpkind == 1 && !tmp_expense[i] ) continue; if( tmpkind == 2 && !tmp_income[i] ) continue; @@ -1066,7 +1003,7 @@ next1: /* get the result name */ switch(tmpfor) { - case STAT_CATEGORY: + case BY_REPDIST_CATEGORY: { Category *entry = da_cat_get(i); @@ -1079,7 +1016,7 @@ next1: } break; - case STAT_SUBCATEGORY: + case BY_REPDIST_SUBCATEGORY: { Category *entry = da_cat_get(i); if(entry != NULL) @@ -1099,7 +1036,7 @@ next1: } break; - case STAT_PAYEE: + case BY_REPDIST_PAYEE: { Payee *entry = da_pay_get(i); if(entry != NULL) @@ -1110,7 +1047,7 @@ next1: } break; - case STAT_TAG: + case BY_REPDIST_TAG: { Tag *entry = da_tag_get(i+1); name = entry->name; @@ -1118,16 +1055,16 @@ next1: } break; - case STAT_MONTH: + case BY_REPDIST_MONTH: date = g_date_new_julian(from); g_date_add_months(date, i); //g_snprintf(buffer, 63, "%d-%02d", g_date_get_year(date), g_date_get_month(date)); - g_snprintf(buffer, 63, "%d-%s", g_date_get_year(date), _(CYA_MONTHS[g_date_get_month(date)])); + g_snprintf(buffer, 63, "%d-%s", g_date_get_year(date), _(CYA_MONTHS[g_date_get_month(date)-1])); g_date_free(date); name = buffer; break; - case STAT_YEAR: + case BY_REPDIST_YEAR: date = g_date_new_julian(from); g_date_add_years(date, i); g_snprintf(buffer, 63, "%d", g_date_get_year(date)); @@ -1144,25 +1081,26 @@ next1: balrate = 0.0; if( data->total_expense ) - exprate = (ABS(tmp_expense[i]) * 100 / data->total_expense); + exprate = ABS((tmp_expense[i] * 100 / data->total_expense)); if( data->total_income ) incrate = (tmp_income[i] * 100 / data->total_income); - if( (data->total_expense + data->total_income) ) - balrate = (ABS(tmp_expense[i]) + tmp_income[i]) * 100 / (data->total_expense + data->total_income); + data->total_balance = ABS(data->total_expense) + data->total_income; + if( data->total_balance ) + balrate = (ABS(tmp_expense[i]) + tmp_income[i]) * 100 / data->total_balance; gtk_list_store_append (GTK_LIST_STORE(model), &iter); gtk_list_store_set (GTK_LIST_STORE(model), &iter, - LST_STAT_POS, sortid++, - LST_STAT_KEY, i, - LST_STAT_NAME, name, - LST_STAT_EXPENSE, tmp_expense[i], - LST_STAT_INCOME , tmp_income[i], - LST_STAT_BALANCE, tmp_expense[i] + tmp_income[i], - LST_STAT_EXPRATE, exprate, - LST_STAT_INCRATE, incrate, - LST_STAT_BALRATE, balrate, + LST_REPDIST_POS, sortid++, + LST_REPDIST_KEY, i, + LST_REPDIST_NAME, name, + LST_REPDIST_EXPENSE, tmp_expense[i], + LST_REPDIST_INCOME , tmp_income[i], + LST_REPDIST_BALANCE, tmp_expense[i] + tmp_income[i], + LST_REPDIST_EXPRATE, exprate, + LST_REPDIST_INCRATE, incrate, + LST_REPDIST_BALRATE, balrate, -1); g_free(fullcatname); @@ -1182,9 +1120,9 @@ next1: /* free tmplist (sort cat/pay) */ g_list_free(tmplist); - statistic_update_total(widget,NULL); + ui_repdist_update_total(widget,NULL); - statistic_update(widget, user_data); + ui_repdist_update(widget, user_data); } @@ -1195,14 +1133,14 @@ next1: /* ** update sensitivity */ -static void statistic_sensitive(GtkWidget *widget, gpointer user_data) +static void ui_repdist_sensitive(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; gboolean active; gboolean sensitive; gint page; - DB( g_print("(statistic) sensitive\n") ); + DB( g_print("\n[repdist] sensitive\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -1229,82 +1167,83 @@ gint page; } -static void statistic_update_detail(GtkWidget *widget, gpointer user_data) +static void ui_repdist_update_detail(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); - if(data->detail) + if(GTK_IS_TREE_VIEW(data->LV_report)) { - GtkTreeSelection *treeselection; - GtkTreeModel *model; - GtkTreeIter iter; - guint key; + if(data->detail) + { + GtkTreeSelection *treeselection; + GtkTreeModel *model; + GtkTreeIter iter; + guint key; - treeselection = gtk_tree_view_get_selection (GTK_TREE_VIEW(data->LV_report)); + treeselection = gtk_tree_view_get_selection (GTK_TREE_VIEW(data->LV_report)); - if (gtk_tree_selection_get_selected(treeselection, &model, &iter)) - { - gtk_tree_model_get(model, &iter, LST_STAT_KEY, &key, -1); + if (gtk_tree_selection_get_selected(treeselection, &model, &iter)) + { + gtk_tree_model_get(model, &iter, LST_REPDIST_KEY, &key, -1); - DB( g_print(" - active is %d\n", key) ); + DB( g_print(" - active is %d\n", key) ); + + ui_repdist_detail(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(key)); + } - statistic_detail(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(key)); - } + gtk_widget_show(data->GR_detail); + } + else + gtk_widget_hide(data->GR_detail); - gtk_widget_show(data->GR_detail); } - else - gtk_widget_hide(data->GR_detail); } -static void statistic_toggle_detail(GtkWidget *widget, gpointer user_data) +static void ui_repdist_toggle_detail(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); data->detail ^= 1; - DB( printf("(stats) toggledetail to %d\n", data->detail) ); + DB( printf("\n[repdist] toggledetail to %d\n", data->detail) ); - statistic_update_detail(widget, user_data); + ui_repdist_update_detail(widget, user_data); } /* ** change the chart legend visibility */ -static void statistic_toggle_legend(GtkWidget *widget, gpointer user_data) +static void ui_repdist_toggle_legend(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; //gint active; - DB( g_print("(statistic) legend\n") ); + DB( g_print("\n[repdist] toggle legend\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); data->legend ^= 1; - //active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data->CM_legend)); - - gtk_chart_show_legend(GTK_CHART(data->RE_bar), data->legend); - gtk_chart_show_legend(GTK_CHART(data->RE_pie), data->legend); + gtk_chart_show_legend(GTK_CHART(data->RE_chart), data->legend, FALSE); } -static void statistic_zoomx_callback(GtkWidget *widget, gpointer user_data) +static void ui_repdist_zoomx_callback(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; gdouble value; - DB( g_print("(statistic) zoomx\n") ); + DB( g_print("\n[repdist] zoomx\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); @@ -1312,7 +1251,7 @@ gdouble value; DB( g_print(" + scale is %.2f\n", value) ); - gtk_chart_set_barw(GTK_CHART(data->RE_bar), value); + gtk_chart_set_barw(GTK_CHART(data->RE_chart), value); } @@ -1320,61 +1259,64 @@ gdouble value; /* ** change the chart rate columns visibility */ -static void statistic_toggle_rate(GtkWidget *widget, gpointer user_data) +static void ui_repdist_toggle_rate(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; GtkTreeViewColumn *column; - DB( g_print("(statistic) toggle rate\n") ); + DB( g_print("\n[repdist] toggle rate\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); data->rate ^= 1; - column = gtk_tree_view_get_column (GTK_TREE_VIEW(data->LV_report), 2); - gtk_tree_view_column_set_visible(column, data->rate); + if(GTK_IS_TREE_VIEW(data->LV_report)) + { - column = gtk_tree_view_get_column (GTK_TREE_VIEW(data->LV_report), 4); - gtk_tree_view_column_set_visible(column, data->rate); + column = gtk_tree_view_get_column (GTK_TREE_VIEW(data->LV_report), 2); + gtk_tree_view_column_set_visible(column, data->rate); - column = gtk_tree_view_get_column (GTK_TREE_VIEW(data->LV_report), 6); - gtk_tree_view_column_set_visible(column, data->rate); + column = gtk_tree_view_get_column (GTK_TREE_VIEW(data->LV_report), 4); + gtk_tree_view_column_set_visible(column, data->rate); + column = gtk_tree_view_get_column (GTK_TREE_VIEW(data->LV_report), 6); + gtk_tree_view_column_set_visible(column, data->rate); + } } -static void statistic_toggle_minor(GtkWidget *widget, gpointer user_data) +static void ui_repdist_toggle_minor(GtkWidget *widget, gpointer user_data) { -struct statistic_data *data; +struct ui_repdist_data *data; - DB( g_print("(statistic) toggle\n") ); + DB( g_print("\n[repdist] toggle minor\n") ); data = g_object_get_data(G_OBJECT(gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW)), "inst_data"); GLOBALS->minor = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data->CM_minor)); - statistic_update_total(widget,NULL); + ui_repdist_update_total(widget,NULL); //hbfile_update(data->LV_acc, (gpointer)4); gtk_tree_view_columns_autosize (GTK_TREE_VIEW(data->LV_report)); - gtk_chart_show_minor(GTK_CHART(data->RE_bar), GLOBALS->minor); - gtk_chart_show_minor(GTK_CHART(data->RE_pie), GLOBALS->minor); + gtk_chart_show_minor(GTK_CHART(data->RE_chart), GLOBALS->minor); + } /* ** */ -static void statistic_setup(struct statistic_data *data) +static void ui_repdist_setup(struct ui_repdist_data *data) { - DB( g_print("(statistic) setup\n") ); + DB( g_print("\n[repdist] setup\n") ); data->detail = PREFS->stat_showdetail; data->legend = 1; data->rate = PREFS->stat_showrate^1; - statistic_toggle_rate(data->window, NULL); + ui_repdist_toggle_rate(data->window, NULL); data->filter = da_filter_malloc(); @@ -1386,49 +1328,49 @@ static void statistic_setup(struct statistic_data *data) filter_preset_daterange_set(data->filter, PREFS->date_range_rep); - g_signal_handler_block(data->PO_mindate, data->handler_id[HID_MINDATE]); - g_signal_handler_block(data->PO_maxdate, data->handler_id[HID_MAXDATE]); + g_signal_handler_block(data->PO_mindate, data->handler_id[HID_REPDIST_MINDATE]); + g_signal_handler_block(data->PO_maxdate, data->handler_id[HID_REPDIST_MAXDATE]); gtk_dateentry_set_date(GTK_DATE_ENTRY(data->PO_mindate), data->filter->mindate); gtk_dateentry_set_date(GTK_DATE_ENTRY(data->PO_maxdate), data->filter->maxdate); - g_signal_handler_unblock(data->PO_mindate, data->handler_id[HID_MINDATE]); - g_signal_handler_unblock(data->PO_maxdate, data->handler_id[HID_MAXDATE]); + g_signal_handler_unblock(data->PO_mindate, data->handler_id[HID_REPDIST_MINDATE]); + g_signal_handler_unblock(data->PO_maxdate, data->handler_id[HID_REPDIST_MAXDATE]); } -static void statistic_selection(GtkTreeSelection *treeselection, gpointer user_data) +static void ui_repdist_selection(GtkTreeSelection *treeselection, gpointer user_data) { GtkTreeModel *model; GtkTreeIter iter; guint key = -1; - DB( g_print("(statistic) selection\n") ); + DB( g_print("\n[repdist] selection\n") ); if (gtk_tree_selection_get_selected(treeselection, &model, &iter)) { - gtk_tree_model_get(model, &iter, LST_STAT_KEY, &key, -1); + gtk_tree_model_get(model, &iter, LST_REPDIST_KEY, &key, -1); } DB( g_print(" - active is %d\n", key) ); - statistic_detail(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(key)); - statistic_sensitive(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), NULL); + ui_repdist_detail(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), GINT_TO_POINTER(key)); + ui_repdist_sensitive(GTK_WIDGET(gtk_tree_selection_get_tree_view (treeselection)), NULL); } /* ** */ -static gboolean statistic_dispose(GtkWidget *widget, GdkEvent *event, gpointer user_data) +static gboolean ui_repdist_dispose(GtkWidget *widget, GdkEvent *event, gpointer user_data) { -struct statistic_data *data = user_data; +struct ui_repdist_data *data = user_data; struct WinGeometry *wg; - DB( g_print("(statistic) dispose\n") ); + DB( g_print("\n[repdist] dispose\n") ); da_filter_free(data->filter); @@ -1451,19 +1393,22 @@ struct WinGeometry *wg; } // the window creation -GtkWidget *create_statistic_window(void) +GtkWidget *ui_repdist_window_new(void) { -struct statistic_data *data; +struct ui_repdist_data *data; struct WinGeometry *wg; GtkWidget *window, *mainvbox, *hbox, *vbox, *notebook, *treeview; -GtkWidget *label, *widget, *table, *alignment, *vbar, *entry; +GtkWidget *label, *widget, *table, *alignment, *entry; gint row; GtkUIManager *ui; GtkActionGroup *actions; GtkAction *action; GError *error = NULL; - data = g_malloc0(sizeof(struct statistic_data)); + DB( g_print("\n[repdist] new\n") ); + + + data = g_malloc0(sizeof(struct ui_repdist_data)); if(!data) return NULL; //disable define windows @@ -1492,7 +1437,7 @@ GError *error = NULL; gtk_box_pack_start (GTK_BOX (mainvbox), hbox, TRUE, TRUE, 0); //control part - table = gtk_table_new (6, 2, FALSE); + table = gtk_table_new (6, 3, FALSE); // gtk_alignment_new(xalign, yalign, xscale, yscale) alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0); gtk_container_add(GTK_CONTAINER(alignment), table); @@ -1503,40 +1448,42 @@ GError *error = NULL; gtk_table_set_col_spacings (GTK_TABLE (table), HB_TABCOL_SPACING); row = 0; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Display")); - gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, row, row+1); - - row++; - label = make_label(_("_For:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); - widget = make_cycle(label, CYA_STATSELECT); - data->CY_for = widget; - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_for, 1, 2, row, row+1); + label = make_label(_("Display"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); row++; label = make_label(_("_View:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); widget = make_cycle(label, CYA_KIND2); data->CY_view = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 2, 3, row, row+1); row++; - label = make_label(_("_Zoom X:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); - widget = make_scale(label); - data->RG_zoomx = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + label = make_label(_("_By:"), 0, 0.5); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + widget = make_cycle(label, CYA_STATSELECT); + data->CY_by = widget; + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_by, 2, 3, row, row+1); row++; widget = gtk_check_button_new_with_mnemonic (_("By _amount")); data->CM_byamount = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 3, row, row+1); row++; widget = gtk_check_button_new_with_mnemonic (_("_Minor currency")); data->CM_minor = widget; - gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 1, 3, row, row+1); + + + row++; + label = make_label(_("_Zoom X:"), 0, 0.5); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + widget = make_scale(label); + data->RG_zoomx = widget; + gtk_table_attach_defaults (GTK_TABLE (table), widget, 2, 3, row, row+1); + /* row++; @@ -1546,30 +1493,30 @@ GError *error = NULL; */ row++; widget = gtk_hseparator_new(); - gtk_table_attach_defaults (GTK_TABLE (table), widget, 0, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), widget, 0, 3, row, row+1); row++; - label = make_label(NULL, 0.0, 0.0); - gtk_label_set_markup (GTK_LABEL(label), _("Date filter")); - gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, row, row+1); + label = make_label(_("Date filter"), 0.0, 0.5); + gimp_label_set_attributes(GTK_LABEL(label), PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD, -1); + gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 3, row, row+1); row++; label = make_label(_("_Range:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->CY_range = make_daterange(label, TRUE); - gtk_table_attach_defaults (GTK_TABLE (table), data->CY_range, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->CY_range, 2, 3, row, row+1); row++; label = make_label(_("_From:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->PO_mindate = gtk_dateentry_new(); - gtk_table_attach_defaults (GTK_TABLE (table), data->PO_mindate, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->PO_mindate, 2, 3, row, row+1); row++; label = make_label(_("_To:"), 0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); + gtk_table_attach (GTK_TABLE (table), label, 1, 2, row, row+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); data->PO_maxdate = gtk_dateentry_new(); - gtk_table_attach_defaults (GTK_TABLE (table), data->PO_maxdate, 1, 2, row, row+1); + gtk_table_attach_defaults (GTK_TABLE (table), data->PO_maxdate, 2, 3, row, row+1); //part: info + report vbox = gtk_vbox_new (FALSE, 0); @@ -1646,17 +1593,12 @@ GError *error = NULL; label = gtk_label_new(_("Balance:")); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); - entry = gtk_label_new(NULL); data->TX_total[1] = entry; gtk_box_pack_end (GTK_BOX (hbox), entry, FALSE, FALSE, 0); label = gtk_label_new(_("Income:")); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); entry = gtk_label_new(NULL); data->TX_total[0] = entry; @@ -1664,9 +1606,8 @@ GError *error = NULL; label = gtk_label_new(_("Expense:")); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - vbar = gtk_vseparator_new(); - gtk_box_pack_end (GTK_BOX (hbox), vbar, FALSE, FALSE, 0); + /* report area */ notebook = gtk_notebook_new(); data->GR_result = notebook; gtk_widget_show(notebook); @@ -1682,7 +1623,7 @@ GError *error = NULL; //gtk_scrolled_window_set_placement(GTK_SCROLLED_WINDOW (widget), GTK_CORNER_TOP_RIGHT); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (widget), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (widget), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - treeview = stat_list_create(); + treeview = ui_list_repdist_create(); data->LV_report = treeview; gtk_container_add (GTK_CONTAINER(widget), treeview); gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 0); @@ -1700,22 +1641,14 @@ GError *error = NULL; gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 0); - //page: 2d bar - widget = gtk_chart_new(CHART_BAR_TYPE); - data->RE_bar = widget; - gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.suffix_symbol); - //gtk_chart_set_currency(GTK_CHART(widget), GLOBALS->kcur); - gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL); - - //page: 2d pie - widget = gtk_chart_new(CHART_PIE_TYPE); - data->RE_pie = widget; - gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.suffix_symbol); + //page: 2d bar/pie + widget = gtk_chart_new(CHART_TYPE_COL); + data->RE_chart = widget; + gtk_chart_set_minor_prefs(GTK_CHART(widget), PREFS->euro_value, PREFS->minor_cur.symbol); //gtk_chart_set_currency(GTK_CHART(widget), GLOBALS->kcur); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL); - - //todo:should move this + //todo: setup should move this gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data->CM_minor), GLOBALS->minor); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data->CM_byamount), PREFS->stat_byamount); @@ -1726,28 +1659,28 @@ GError *error = NULL; g_object_set_data(G_OBJECT(gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_detail))), "minor", (gpointer)data->CM_minor); /* signal connect */ - g_signal_connect (window, "delete-event", G_CALLBACK (statistic_dispose), (gpointer)data); + g_signal_connect (window, "delete-event", G_CALLBACK (ui_repdist_dispose), (gpointer)data); - g_signal_connect (data->CM_minor, "toggled", G_CALLBACK (statistic_toggle_minor), NULL); + g_signal_connect (data->CM_minor, "toggled", G_CALLBACK (ui_repdist_toggle_minor), NULL); - data->handler_id[HID_MINDATE] = g_signal_connect (data->PO_mindate, "changed", G_CALLBACK (statistic_date_change), (gpointer)data); - data->handler_id[HID_MAXDATE] = g_signal_connect (data->PO_maxdate, "changed", G_CALLBACK (statistic_date_change), (gpointer)data); + data->handler_id[HID_REPDIST_MINDATE] = g_signal_connect (data->PO_mindate, "changed", G_CALLBACK (ui_repdist_date_change), (gpointer)data); + data->handler_id[HID_REPDIST_MAXDATE] = g_signal_connect (data->PO_maxdate, "changed", G_CALLBACK (ui_repdist_date_change), (gpointer)data); - data->handler_id[HID_RANGE] = g_signal_connect (data->CY_range, "changed", G_CALLBACK (statistic_range_change), NULL); + data->handler_id[HID_REPDIST_RANGE] = g_signal_connect (data->CY_range, "changed", G_CALLBACK (ui_repdist_range_change), NULL); - g_signal_connect (data->CY_for, "changed", G_CALLBACK (statistic_compute), (gpointer)data); - data->handler_id[HID_VIEW] = g_signal_connect (data->CY_view, "changed", G_CALLBACK (statistic_compute), (gpointer)data); + g_signal_connect (data->CY_by, "changed", G_CALLBACK (ui_repdist_compute), (gpointer)data); + data->handler_id[HID_REPDIST_VIEW] = g_signal_connect (data->CY_view, "changed", G_CALLBACK (ui_repdist_compute), (gpointer)data); - g_signal_connect (data->RG_zoomx, "value-changed", G_CALLBACK (statistic_zoomx_callback), NULL); + g_signal_connect (data->RG_zoomx, "value-changed", G_CALLBACK (ui_repdist_zoomx_callback), NULL); - g_signal_connect (data->CM_byamount, "toggled", G_CALLBACK (statistic_update), NULL); + g_signal_connect (data->CM_byamount, "toggled", G_CALLBACK (ui_repdist_update), NULL); - g_signal_connect (gtk_tree_view_get_selection(GTK_TREE_VIEW(data->LV_report)), "changed", G_CALLBACK (statistic_selection), NULL); + g_signal_connect (gtk_tree_view_get_selection(GTK_TREE_VIEW(data->LV_report)), "changed", G_CALLBACK (ui_repdist_selection), NULL); //setup, init and show window - statistic_setup(data); + ui_repdist_setup(data); /* toolbar */ if(PREFS->toolbar_style == 0) @@ -1775,15 +1708,15 @@ GError *error = NULL; - statistic_sensitive(window, NULL); - statistic_update_detail(window, NULL); + ui_repdist_sensitive(window, NULL); + ui_repdist_update_detail(window, NULL); DB( g_print("range: %d\n", PREFS->date_range_rep) ); if( PREFS->date_range_rep != 0) gtk_combo_box_set_active(GTK_COMBO_BOX(data->CY_range), PREFS->date_range_rep); else - statistic_compute(window, NULL); + ui_repdist_compute(window, NULL); return window; @@ -1793,7 +1726,7 @@ GError *error = NULL; ** ============================================================================ */ -static void stat_list_rate_cell_data_function (GtkTreeViewColumn *col, +static void ui_list_repdist_rate_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, @@ -1821,7 +1754,7 @@ static void stat_list_rate_cell_data_function (GtkTreeViewColumn *col, } -static void stat_list_amount_cell_data_function (GtkTreeViewColumn *col, +static void ui_list_repdist_amount_cell_data_function (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, @@ -1851,7 +1784,7 @@ gchar buf[G_ASCII_DTOSTR_BUF_SIZE]; } -static GtkTreeViewColumn *stat_list_amount_column(gchar *name, gint id) +static GtkTreeViewColumn *ui_list_repdist_amount_column(gchar *name, gint id) { GtkTreeViewColumn *column; GtkCellRenderer *renderer; @@ -1861,13 +1794,13 @@ GtkCellRenderer *renderer; renderer = gtk_cell_renderer_text_new (); g_object_set(renderer, "xalign", 1.0, NULL); gtk_tree_view_column_pack_start(column, renderer, TRUE); - gtk_tree_view_column_set_cell_data_func(column, renderer, stat_list_amount_cell_data_function, GINT_TO_POINTER(id), NULL); + gtk_tree_view_column_set_cell_data_func(column, renderer, ui_list_repdist_amount_cell_data_function, GINT_TO_POINTER(id), NULL); gtk_tree_view_column_set_alignment (column, 0.5); //gtk_tree_view_column_set_sort_column_id (column, id); return column; } -static GtkTreeViewColumn *stat_list_rate_column(gint id) +static GtkTreeViewColumn *ui_list_repdist_rate_column(gint id) { GtkTreeViewColumn *column; GtkCellRenderer *renderer; @@ -1879,7 +1812,7 @@ GtkCellRenderer *renderer; gtk_tree_view_column_pack_start(column, renderer, TRUE); //gtk_tree_view_column_add_attribute(column, renderer, "text", id); - gtk_tree_view_column_set_cell_data_func(column, renderer, stat_list_rate_cell_data_function, GINT_TO_POINTER(id), NULL); + gtk_tree_view_column_set_cell_data_func(column, renderer, ui_list_repdist_rate_cell_data_function, GINT_TO_POINTER(id), NULL); gtk_tree_view_column_set_alignment (column, 0.5); //gtk_tree_view_column_set_sort_column_id (column, id); @@ -1891,7 +1824,7 @@ GtkCellRenderer *renderer; /* ** create our statistic list */ -static GtkWidget *stat_list_create(void) +static GtkWidget *ui_list_repdist_create(void) { GtkListStore *store; GtkWidget *view; @@ -1900,7 +1833,7 @@ GtkTreeViewColumn *column; /* create list store */ store = gtk_list_store_new( - NUM_LST_STAT, + NUM_LST_REPDIST, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, @@ -1924,28 +1857,28 @@ GtkTreeViewColumn *column; renderer = gtk_cell_renderer_text_new (); gtk_tree_view_column_pack_start(column, renderer, TRUE); //gtk_tree_view_column_set_cell_data_func(column, renderer, ope_result_cell_data_function, NULL, NULL); - gtk_tree_view_column_add_attribute(column, renderer, "text", LST_STAT_NAME); - //gtk_tree_view_column_set_sort_column_id (column, LST_STAT_NAME); + gtk_tree_view_column_add_attribute(column, renderer, "text", LST_REPDIST_NAME); + //gtk_tree_view_column_set_sort_column_id (column, LST_REPDIST_NAME); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_alignment (column, 0.5); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); /* column: Expense */ - column = stat_list_amount_column(_("Expense"), LST_STAT_EXPENSE); + column = ui_list_repdist_amount_column(_("Expense"), LST_REPDIST_EXPENSE); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - column = stat_list_rate_column(LST_STAT_EXPRATE); + column = ui_list_repdist_rate_column(LST_REPDIST_EXPRATE); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); /* column: Income */ - column = stat_list_amount_column(_("Income"), LST_STAT_INCOME); + column = ui_list_repdist_amount_column(_("Income"), LST_REPDIST_INCOME); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - column = stat_list_rate_column(LST_STAT_INCRATE); + column = ui_list_repdist_rate_column(LST_REPDIST_INCRATE); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); /* column: Balance */ - column = stat_list_amount_column(_("Balance"), LST_STAT_BALANCE); + column = ui_list_repdist_amount_column(_("Balance"), LST_REPDIST_BALANCE); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); - column = stat_list_rate_column(LST_STAT_BALRATE); + column = ui_list_repdist_rate_column(LST_REPDIST_BALRATE); gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); /* column last: empty */ @@ -1953,43 +1886,43 @@ GtkTreeViewColumn *column; gtk_tree_view_append_column (GTK_TREE_VIEW(view), column); /* sort */ - gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_STAT_POS , stat_list_compare_func, GINT_TO_POINTER(LST_STAT_POS), NULL); - gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_STAT_EXPENSE, stat_list_compare_func, GINT_TO_POINTER(LST_STAT_EXPENSE), NULL); - gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_STAT_INCOME , stat_list_compare_func, GINT_TO_POINTER(LST_STAT_INCOME), NULL); - gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_STAT_BALANCE, stat_list_compare_func, GINT_TO_POINTER(LST_STAT_BALANCE), NULL); + gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_REPDIST_POS , ui_list_repdist_compare_func, GINT_TO_POINTER(LST_REPDIST_POS), NULL); + gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_REPDIST_EXPENSE, ui_list_repdist_compare_func, GINT_TO_POINTER(LST_REPDIST_EXPENSE), NULL); + gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_REPDIST_INCOME , ui_list_repdist_compare_func, GINT_TO_POINTER(LST_REPDIST_INCOME), NULL); + gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), LST_REPDIST_BALANCE, ui_list_repdist_compare_func, GINT_TO_POINTER(LST_REPDIST_BALANCE), NULL); return(view); } -static gint stat_list_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) +static gint ui_list_repdist_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); -gint ret = 0; +gint retval = 0; gint pos1, pos2; gdouble val1, val2; gtk_tree_model_get(model, a, - LST_STAT_POS, &pos1, + LST_REPDIST_POS, &pos1, sortcol, &val1, -1); gtk_tree_model_get(model, b, - LST_STAT_POS, &pos2, + LST_REPDIST_POS, &pos2, sortcol, &val2, -1); switch(sortcol) { - case LST_STAT_POS: - ret = pos2 - pos1; + case LST_REPDIST_POS: + retval = pos2 - pos1; break; default: - ret = (ABS(val1) - ABS(val2)) > 0 ? 1 : -1; + retval = (ABS(val1) - ABS(val2)) > 0 ? 1 : -1; break; } //DB( g_print(" sort %d=%d or %.2f=%.2f :: %d\n", pos1,p