dokvok-0.1.3/ 777 764 144 0 7070117401 6072 5dokvok-0.1.3/Makefile.in 644 764 144 32214 7070117351 10161 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ SUBDIRS = dokvok po EXTRA_DIST = dokvok.kdevprj AUTHORS COPYING ChangeLog INSTALL README TODO dokvok.lsm ####### kdevelop will overwrite this part!!! (end)############ # not a GNU package. You can remove this line, if # have all needed files, that a GNU package needs AUTOMAKE_OPTIONS = foreign ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \ Makefile.am Makefile.in TODO acconfig.h acinclude.m4 aclocal.m4 \ config.guess config.h.bot config.h.in config.sub configure configure.in \ install-sh ltconfig ltmain.sh missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status $(ACLOCAL_M4): configure.in acinclude.m4 cd $(srcdir) && $(ACLOCAL) config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) config.h: stamp-h @if test ! -f $@; then \ rm -f stamp-h; \ $(MAKE) stamp-h; \ else :; fi stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ $(SHELL) ./config.status @echo timestamp > stamp-h 2> /dev/null $(srcdir)/config.h.in: $(srcdir)/stamp-h.in @if test ! -f $@; then \ rm -f $(srcdir)/stamp-h.in; \ $(MAKE) $(srcdir)/stamp-h.in; \ else :; fi $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h config.h.bot cd $(top_srcdir) && $(AUTOHEADER) @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null mostlyclean-hdr: clean-hdr: distclean-hdr: -rm -f config.h maintainer-clean-hdr: # 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. @SET_MAKE@ all-recursive install-data-recursive install-exec-recursive \ installdirs-recursive install-recursive uninstall-recursive \ check-recursive installcheck-recursive info-recursive dvi-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ rev="$$subdir $$rev"; \ test "$$subdir" = "." && dot_seen=yes; \ done; \ test "$$dot_seen" = "no" && 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist -rm -rf $(distdir) GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz mkdir $(distdir)/=build mkdir $(distdir)/=inst dc_install_base=`cd $(distdir)/=inst && pwd`; \ cd $(distdir)/=build \ && ../configure --srcdir=.. --prefix=$$dc_install_base \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) dist -rm -rf $(distdir) @banner="$(distdir).tar.gz is ready for distribution"; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes" dist: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) dist-all: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) distdir: $(DISTFILES) -rm -rf $(distdir) mkdir $(distdir) -chmod 777 $(distdir) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done for subdir in $(SUBDIRS); do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook info-am: info: info-recursive dvi-am: dvi: dvi-recursive check-am: all-am check: check-recursive installcheck-am: installcheck: installcheck-recursive all-recursive-am: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive install-exec-am: install-exec: install-exec-recursive install-data-am: install-data: install-data-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-recursive uninstall-am: uninstall: uninstall-recursive all-am: Makefile config.h all-redirect: all-recursive-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: installdirs-recursive installdirs-am: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-recursive clean-am: clean-hdr clean-tags clean-generic mostlyclean-am clean: clean-recursive distclean-am: distclean-hdr distclean-tags distclean-generic clean-am -rm -f libtool distclean: distclean-recursive -rm -f config.status maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \ maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-recursive -rm -f config.status .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ install-data-recursive uninstall-data-recursive install-exec-recursive \ uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ all-recursive check-recursive installcheck-recursive info-recursive \ dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ install-exec-am install-exec install-data-am install-data install-am \ install uninstall-am uninstall all-redirect all-am all installdirs-am \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean dist-hook: -perl automoc # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/README 644 764 144 1 7027146011 6656 dokvok-0.1.3/stamp-h.in 644 764 144 12 7066762223 7735 timestamp dokvok-0.1.3/AUTHORS 644 764 144 65 7027146011 7100 Friedrich W. H. Kossebau dokvok-0.1.3/COPYING 644 764 144 35433 7027146011 7152 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS dokvok-0.1.3/ChangeLog 644 764 144 0 7027146011 7547 dokvok-0.1.3/INSTALL 644 764 144 15472 7027146011 7151 Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Type `make install' to install the programs and any data files and documentation. 4. You can remove the program binaries and object files from the source code directory by typing `make clean'. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. dokvok-0.1.3/Makefile.am 644 764 144 610 7066761424 10116 ####### kdevelop will overwrite this part!!! (begin)########## dist-hook: -perl automoc SUBDIRS = dokvok po EXTRA_DIST = dokvok.kdevprj AUTHORS COPYING ChangeLog INSTALL README TODO dokvok.lsm ####### kdevelop will overwrite this part!!! (end)############ # not a GNU package. You can remove this line, if # have all needed files, that a GNU package needs AUTOMAKE_OPTIONS = foreign dokvok-0.1.3/TODO 644 764 144 0 7066443332 6476 dokvok-0.1.3/acconfig.h 644 764 144 1334 6622554340 10022 /* Define if the C++ compiler supports BOOL */ #undef HAVE_BOOL #undef VERSION #undef PACKAGE /* defines if having libgif (always 1) */ #undef HAVE_LIBGIF /* defines if having libjpeg (always 1) */ #undef HAVE_LIBJPEG /* defines if having libtiff */ #undef HAVE_LIBTIFF /* defines if having libpng */ #undef HAVE_LIBPNG /* defines which to take for ksize_t */ #undef ksize_t /* define if you have setenv */ #undef HAVE_FUNC_SETENV /* Define to 1 if NLS is requested. */ #undef ENABLE_NLS /* Define as 1 if you have the stpcpy function. */ #undef HAVE_STPCPY /* Define if your locale.h file contains LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define if you need the GNU extensions to compile */ #undef _GNU_SOURCE dokvok-0.1.3/acinclude.m4 644 764 144 221212 6715613260 10330 ## -*- shell-script -*- ## This file is part of the KDE libraries/packages ## Copyright (C) 1997 Janos Farkas (chexum@shadow.banki.hu) ## (C) 1997 Stephan Kulow (coolo@kde.org) ## This file is free software; you can redistribute it and/or ## modify it under the terms of the GNU Library General Public ## License as published by the Free Software Foundation; either ## version 2 of the License, or (at your option) any later version. ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Library General Public License for more details. ## You should have received a copy of the GNU Library General Public License ## along with this library; see the file COPYING.LIB. If not, write to ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, ## Boston, MA 02111-1307, USA. ## IMPORTANT NOTE: ## Please do not modify this file unless you expect your modifications to be ## carried into every other module in the repository. If you decide that you ## really want to modify it, contact coolo@kde.org mentioning that you have ## and that the modified file should be committed to every module. ## ## Single-module modifications are best placed in configure.in for kdelibs ## and kdebase or configure.in.1 if present. ## ------------------------------------------------------------------------ ## Find a file (or one of more files in a list of dirs) ## ------------------------------------------------------------------------ ## AC_DEFUN(AC_FIND_FILE, [ $3=NO for i in $2; do for j in $1; do if test -r "$i/$j"; then $3=$i break 2 fi done done ]) AC_DEFUN(KDE_FIND_PATH, [ AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(kde_cv_path_$1, [ kde_cv_path_$1="NONE" if test -n "$$2"; then kde_cv_path_$1="$$2"; else dirs="$3" kde_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$kde_save_IFS for dir in $dirs; do if test -x "$dir/$1"; then if test -n "$5" then evalstr="$dir/$1 $5 2>&1 " if eval $evalstr; then kde_cv_path_$1="$dir/$1" break fi else kde_cv_path_$1="$dir/$1" break fi fi done fi ]) if test -z "$kde_cv_path_$1" || test "$kde_cv_path_$1" = "NONE"; then AC_MSG_RESULT(not found) $4 else AC_MSG_RESULT($kde_cv_path_$1) $2=$kde_cv_path_$1 fi ]) AC_DEFUN(KDE_MOC_ERROR_MESSAGE, [ AC_MSG_ERROR([No Qt meta object compiler (moc) found! Please check whether you installed Qt correctly. You need to have a running moc binary. configure tried to run $ac_cv_path_moc and the test didn't succeed. If configure shouldn't have tried this one, set the environment variable MOC to the right one before running configure. ]) ]) dnl ------------------------------------------------------------------------ dnl Find the meta object compiler in the PATH, in $QTDIR/bin, and some dnl more usual places dnl ------------------------------------------------------------------------ dnl AC_DEFUN(AC_PATH_QT_MOC, [ KDE_FIND_PATH(moc, MOC, [$ac_qt_bindir $QTDIR/bin \ /usr/bin /usr/X11R6/bin /usr/lib/qt/bin \ /usr/local/qt/bin], [KDE_MOC_ERROR_MESSAGE]) if test -z "$MOC"; then if test -n "$ac_cv_path_moc"; then output=`eval "$ac_cv_path_moc --help 2>&1 | sed -e '1q' | grep Qt"` fi echo "configure:__oline__: tried to call $ac_cv_path_moc --help 2>&1 | sed -e '1q' | grep Qt" >&AC_FD_CC echo "configure:__oline__: moc output: $output" >&AC_FD_CC if test -z "$output"; then KDE_MOC_ERROR_MESSAGE fi fi AC_SUBST(MOC) ]) AC_DEFUN(KDE_REPLACE_ROOT, $1=`echo "$$1" | sed -e "s#^/#\$\{install_root\}/#"` ) AC_DEFUN(AC_CREATE_KFSSTND, [ AC_REQUIRE([AC_CHECK_RPATH]) AC_REQUIRE([AC_CHECK_BOOL]) if test "$1" = "default"; then AC_MSG_CHECKING(for KDE paths) if test -z "$kde_htmldir"; then kde_htmldir="\$(prefix)/share/doc/HTML" fi if test -z "$kde_appsdir"; then kde_appsdir="\$(prefix)/share/applnk" fi if test -z "$kde_icondir"; then kde_icondir="\$(prefix)/share/icons" fi if test -z "$kde_sounddir"; then kde_sounddir="\$(prefix)/share/sounds" fi if test -z "$kde_datadir"; then kde_datadir="\$(prefix)/share/apps" fi if test -z "$kde_locale"; then kde_locale="\$(prefix)/share/locale" fi if test -z "$kde_cgidir"; then kde_cgidir="\$(exec_prefix)/cgi-bin" fi if test -z "$kde_confdir"; then kde_confdir="\$(prefix)/share/config" fi if test -z "$kde_mimedir"; then kde_mimedir="\$(prefix)/share/mimelnk" fi if test -z "$kde_toolbardir"; then kde_toolbardir="\$(prefix)/share/toolbar" fi if test -z "$kde_wallpaperdir"; then kde_wallpaperdir="\$(prefix)/share/wallpapers" fi if test -z "$kde_bindir"; then kde_bindir="\$(exec_prefix)/bin" fi if test -z "$kde_partsdir"; then kde_partsdir="\$(exec_prefix)/parts" fi AC_MSG_RESULT(defaults) else AC_CACHE_VAL(kde_cv_all_paths, [ AC_MSG_CHECKING([for kde headers installed]) AC_LANG_CPLUSPLUS cat > conftest.$ac_ext < #include "confdefs.h" #include "config.h.bot" #include int main() { printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data()); printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data()); printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data()); printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data()); printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data()); printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data()); printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data()); printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data()); printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data()); printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data()); printf("kde_wallpaperdir=\\"%s\\"\n", KApplication::kde_wallpaperdir().data()); printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data()); printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data()); return 0; } EOF if test -n "$kde_libraries"; then KDE_TEST_RPATH="-rpath $kde_libraries" fi if test -n "$qt_libraries"; then KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $qt_libraries" fi if test -n "$x_libraries"; then KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $x_libraries" fi KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH" ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext' if AC_TRY_EVAL(ac_compile); then AC_MSG_RESULT(yes) else AC_MSG_ERROR([your system is not able to compile a small KDE application! Check, if you installed the KDE header files correctly.]) fi AC_MSG_CHECKING([for kde libraries installed]) ac_link='/bin/sh ./libtool --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore -lqt -lXext -lX11 $LIBSOCKET $KDE_TEST_RPATH 1>&5' if AC_TRY_EVAL(ac_link) && test -s conftest; then AC_MSG_RESULT(yes) else AC_MSG_ERROR([your system fails at linking a small KDE application! Check, if your compiler is installed correctly and if you have used the same compiler to compile Qt and kdelibs as you did use now]) fi AC_MSG_CHECKING([for KDE paths]) if eval `./conftest 2>&5`; then AC_MSG_RESULT(done) else AC_MSG_RESULT(problems) fi ./conftest 2> /dev/null >&5 # make an echo for config.log kde_have_all_paths=yes AC_LANG_CPLUSPLUS if test "$kde_have_all_paths" = "yes"; then kde_cv_all_paths="kde_have_all_paths=\"yes\" \ kde_htmldir=\"$kde_htmldir\" \ kde_appsdir=\"$kde_appsdir\" \ kde_icondir=\"$kde_icondir\" \ kde_sounddir=\"$kde_sounddir\" \ kde_datadir=\"$kde_datadir\" \ kde_locale=\"$kde_locale\" \ kde_cgidir=\"$kde_cgidir\" \ kde_confdir=\"$kde_confdir\" \ kde_mimedir=\"$kde_mimedir\" \ kde_toolbardir=\"$kde_toolbardir\" \ kde_wallpaperdir=\"$kde_wallpaperdir\" \ kde_bindir=\"$kde_bindir\" \ kde_partsdir=\"$kde_partsdir\"" fi rm -fr conftest* ]) eval "$kde_cv_all_paths" if test -z "$kde_htmldir" || test -z "$kde_appsdir" || test -z "$kde_icondir" || test -z "$kde_sounddir" || test -z "$kde_datadir" || test -z "$kde_locale" || test -z "$kde_cgidir" || test -z "$kde_confdir" || test -z "$kde_mimedir" || test -z "$kde_toolbardir" || test -z "$kde_wallpaperdir" || test -z "$kde_bindir" || test -z "$kde_partsdir" || test "$kde_have_all_paths" != "yes"; then kde_have_all_paths=no AC_MSG_ERROR([configure could not run a little KDE program to test the environment. Since it had compiled and linked before, it must be a strange problem on your system. Look at config.log for details. If you are not able to fix this, please contact Stephan Kulow .]) fi if test -n "$install_root"; then KDE_REPLACE_ROOT(kde_htmldir) KDE_REPLACE_ROOT(kde_appsdir) KDE_REPLACE_ROOT(kde_icondir) KDE_REPLACE_ROOT(kde_sounddir) KDE_REPLACE_ROOT(kde_datadir) KDE_REPLACE_ROOT(kde_locale) KDE_REPLACE_ROOT(kde_cgidir) KDE_REPLACE_ROOT(kde_confdir) KDE_REPLACE_ROOT(kde_mimedir) KDE_REPLACE_ROOT(kde_toolbardir) KDE_REPLACE_ROOT(kde_wallpaperdir) KDE_REPLACE_ROOT(kde_bindir) KDE_REPLACE_ROOT(kde_partsdir) AC_SUBST(install_root) fi fi bindir=$kde_bindir ]) AC_DEFUN(AC_SUBST_KFSSTND, [ AC_SUBST(kde_htmldir) AC_SUBST(kde_appsdir) AC_SUBST(kde_icondir) AC_SUBST(kde_sounddir) kde_minidir="$kde_icondir/mini" AC_SUBST(kde_minidir) AC_SUBST(kde_datadir) AC_SUBST(kde_locale) AC_SUBST(kde_cgidir) AC_SUBST(kde_confdir) AC_SUBST(kde_mimedir) AC_SUBST(kde_toolbardir) AC_SUBST(kde_wallpaperdir) AC_SUBST(kde_bindir) AC_SUBST(kde_partsdir) ]) AC_DEFUN(KDE_MISC_TESTS, [ AC_LANG_C dnl Checks for libraries. AC_CHECK_LIB(compat, main, [LIBCOMPAT="-lcompat"]) dnl for FreeBSD AC_SUBST(LIBCOMPAT) AC_CHECK_LIB(crypt, main, [LIBCRYPT="-lcrypt"]) dnl for BSD AC_SUBST(LIBCRYPT) AC_CHECK_KSIZE_T AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) if test $ac_cv_lib_dnet_dnet_ntoa = no; then AC_CHECK_LIB(dnet_stub, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) fi AC_CHECK_FUNC(gethostbyname) if test $ac_cv_func_gethostbyname = no; then AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") fi AC_CHECK_FUNC(connect) if test $ac_cv_func_connect = no; then AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , $X_EXTRA_LIBS) fi AC_CHECK_FUNC(remove) if test $ac_cv_func_remove = no; then AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. AC_CHECK_FUNC(shmat) if test $ac_cv_func_shmat = no; then AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") fi LIBSOCKET=$X_EXTRA_LIBS AC_SUBST(LIBSOCKET) AC_SUBST(X_EXTRA_LIBS) AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4 AC_SUBST(LIBUCB) case $host in dnl this *is* LynxOS specific *-*-lynxos* ) AC_MSG_CHECKING([LynxOS header file wrappers]) [CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"] AC_MSG_RESULT(disabled) AC_CHECK_LIB(bsd, gethostbyname, [LIBSOCKET="-lbsd"]) dnl for LynxOS ;; esac ]) ## ------------------------------------------------------------------------ ## Find the header files and libraries for X-Windows. Extended the ## macro AC_PATH_X ## ------------------------------------------------------------------------ ## AC_DEFUN(K_PATH_X, [ AC_MSG_CHECKING(for X) AC_CACHE_VAL(ac_cv_have_x, [# One or both of the vars are not set, and there is no cached value. ac_x_includes=NO ac_x_libraries=NO AC_PATH_X_DIRECT AC_PATH_X_XMKMF if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then AC_MSG_ERROR([Can't find X includes. Please check your installation and add the correct paths!]) else # Record where we found X for the cache. ac_cv_have_x="have_x=yes \ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" fi])dnl eval "$ac_cv_have_x" if test "$have_x" != yes; then AC_MSG_RESULT($have_x) no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes \ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" AC_MSG_RESULT([libraries $x_libraries, headers $x_includes]) fi if test -z "$x_includes" || test "x$x_includes" = xNONE; then X_INCLUDES="" x_includes="."; dnl better than nothing :- else X_INCLUDES="-I$x_includes" fi if test -z "$x_libraries" || test "x$x_libraries" = xNONE; then X_LDFLAGS="" x_libraries="/usr/lib"; dnl better than nothing :- else X_LDFLAGS="-L$x_libraries" fi all_includes="$all_includes $X_INCLUDES" all_libraries="$all_libraries $X_LDFLAGS" AC_SUBST(X_INCLUDES) AC_SUBST(X_LDFLAGS) AC_SUBST(x_libraries) AC_SUBST(x_includes) ]) AC_DEFUN(KDE_PRINT_QT_PROGRAM, [ AC_LANG_CPLUSPLUS cat > conftest.$ac_ext < #include int main() { QMovie m; m.setSpeed(20); return 0; } EOF ]) AC_DEFUN(KDE_CHECK_QT_DIRECT, [ AC_MSG_CHECKING([if Qt compiles without flags]) AC_CACHE_VAL(kde_cv_qt_direct, [ ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH ac_LIBRARY_PATH="$LIBRARY_PATH" ac_cxxflags_safe="$CXXFLAGS" ac_ldflags_safe="$LDFLAGS" ac_libs_safe="$LIBS" CXXFLAGS="$CXXFLAGS -I$qt_includes" LDFLAGS="$X_LDFLAGS" LIBS="-lqt -lXext -lX11 $LIBSOCKET" LD_LIBRARY_PATH= export LD_LIBRARY_PATH LIBRARY_PATH= export LIBRARY_PATH KDE_PRINT_QT_PROGRAM if AC_TRY_EVAL(ac_link) && test -s conftest; then kde_cv_qt_direct="yes" else kde_cv_qt_direct="no" echo "configure: failed program was:" >&AC_FD_CC cat conftest.$ac_ext >&AC_FD_CC fi rm -f conftest* CXXFLAGS="$ac_cxxflags_safe" LDFLAGS="$ac_ldflags_safe" LIBS="$ac_libs_safe" LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe" export LD_LIBRARY_PATH LIBRARY_PATH="$ac_LIBRARY_PATH" export LIBRARY_PATH ]) if test "$kde_cv_qt_direct" = "yes"; then AC_MSG_RESULT(yes) $1 else AC_MSG_RESULT(no) $2 fi ]) ## ------------------------------------------------------------------------ ## Try to find the Qt headers and libraries. ## $(QT_LDFLAGS) will be -Lqtliblocation (if needed) ## and $(QT_INCLUDES) will be -Iqthdrlocation (if needed) ## ------------------------------------------------------------------------ ## AC_DEFUN(AC_PATH_QT_1_3, [ AC_REQUIRE([K_PATH_X]) AC_MSG_CHECKING([for Qt]) ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO qt_libraries="" qt_includes="" AC_ARG_WITH(qt-dir, [ --with-qt-dir where the root of qt is installed ], [ ac_qt_includes="$withval"/include ac_qt_libraries="$withval"/lib ac_qt_bindir="$withval"/bin ]) AC_ARG_WITH(qt-includes, [ --with-qt-includes where the Qt includes are. ], [ ac_qt_includes="$withval" ]) kde_qt_libs_given=no AC_ARG_WITH(qt-libraries, [ --with-qt-libraries where the Qt library is installed.], [ ac_qt_libraries="$withval" kde_qt_libs_given=yes ]) if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then AC_CACHE_VAL(ac_cv_have_qt, [#try to guess Qt locations qt_incdirs="$ac_qt_includes /usr/lib/qt/include /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt $x_includes $QTINC" test -n "$QTDIR" && qt_incdirs="$QTDIR/include $QTDIR $qt_incdirs" AC_FIND_FILE(qmovie.h, $qt_incdirs, qt_incdir) ac_qt_includes="$qt_incdir" if test ! "$ac_qt_libraries" = "NO"; then qt_libdirs="$ac_qt_libraries" fi qt_libdirs="$qt_libdirs /usr/lib/qt/lib /usr/X11R6/lib /usr/lib /usr/local/qt/lib /usr/lib/qt $x_libraries $QTLIB" test -n "$QTDIR" && qt_libdirs="$QTDIR/lib $QTDIR $qt_libdirs" test=NONE qt_libdir=NONE for dir in $qt_libdirs; do try="ls -1 $dir/libqt*" if test=`eval $try 2> /dev/null`; then qt_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi done dnl AC_FIND_FILE(libqt.so libqt.so.1.40 libqt.so.1.41 libqt.so.1 libqt.a libqt.sl, $qt_libdirs, qt_libdir) ac_qt_libraries="$qt_libdir" ac_cxxflags_safe="$CXXFLAGS" ac_ldflags_safe="$LDFLAGS" ac_libs_safe="$LIBS" CXXFLAGS="$CXXFLAGS -I$qt_incdir" LDFLAGS="-L$qt_libdir $X_LDFLAGS" LIBS="$LIBS -lqt -lXext -lX11 $LIBSOCKET" KDE_PRINT_QT_PROGRAM if AC_TRY_EVAL(ac_link) && test -s conftest; then rm -f conftest* else echo "configure: failed program was:" >&AC_FD_CC cat conftest.$ac_ext >&AC_FD_CC ac_qt_libraries="NO" fi rm -f conftest* CXXFLAGS="$ac_cxxflags_safe" LDFLAGS="$ac_ldflags_safe" LIBS="$ac_libs_safe" if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then ac_cv_have_qt="have_qt=no" ac_qt_notfound="" if test "$ac_qt_includes" = NO; then if test "$ac_qt_libraries" = NO; then ac_qt_notfound="(headers and libraries)"; else ac_qt_notfound="(headers)"; fi else ac_qt_notfound="(libraries)"; fi AC_MSG_ERROR([Qt-1.4 $ac_qt_notfound not found. Please check your installation! ]); else have_qt="yes" fi ]) else have_qt="yes" fi eval "$ac_cv_have_qt" if test "$have_qt" != yes; then AC_MSG_RESULT([$have_qt]); else ac_cv_have_qt="have_qt=yes \ ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries" AC_MSG_RESULT([libraries $ac_qt_libraries, headers $ac_qt_includes]) qt_libraries="$ac_qt_libraries" qt_includes="$ac_qt_includes" fi if test ! "$kde_qt_libs_given" = "yes"; then KDE_CHECK_QT_DIRECT(qt_libraries= ,[]) fi AC_SUBST(qt_libraries) AC_SUBST(qt_includes) if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then QT_INCLUDES=""; else QT_INCLUDES="-I$qt_includes" all_includes="$QT_INCLUDES $all_includes" fi if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then QT_LDFLAGS="" else QT_LDFLAGS="-L$qt_libraries" all_libraries="$QT_LDFLAGS $all_libraries" fi AC_SUBST(QT_INCLUDES) AC_SUBST(QT_LDFLAGS) AC_PATH_QT_MOC ]) AC_DEFUN(AC_PATH_QT, [ AC_PATH_QT_1_3 ]) ## ------------------------------------------------------------------------ ## Now, the same with KDE ## $(KDE_LDFLAGS) will be the kdeliblocation (if needed) ## and $(kde_includes) will be the kdehdrlocation (if needed) ## ------------------------------------------------------------------------ ## AC_DEFUN(AC_BASE_PATH_KDE, [ AC_REQUIRE([KDE_MISC_TESTS]) AC_REQUIRE([AC_PATH_QT])dnl AC_MSG_CHECKING([for KDE]) if test "${prefix}" != NONE; then kde_includes=${prefix}/include ac_kde_includes=$prefix/include if test "${exec_prefix}" != NONE; then kde_libraries=${exec_prefix}/lib ac_kde_libraries=$exec_prefix/lib else kde_libraries=${prefix}/lib ac_kde_libraries=$prefix/lib fi else ac_kde_includes= ac_kde_libraries= kde_libraries="" kde_includes="" fi AC_CACHE_VAL(ac_cv_have_kde, [#try to guess kde locations if test -z "$1"; then kde_incdirs="$ac_kde_includes /usr/lib/kde/include /usr/local/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde/include $x_includes $qt_includes" test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR $kde_incdirs" AC_FIND_FILE(ksock.h, $kde_incdirs, kde_incdir) ac_kde_includes="$kde_incdir" if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/ksock.h"; then AC_MSG_ERROR([ in the prefix, you've chosen, are no kde headers installed. This will fail. So, check this please and use another prefix!]) fi kde_libdirs="$ac_kde_libraries /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib /usr/X11R6/kde/lib" test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs" AC_FIND_FILE(libkdecore.la, $kde_libdirs, kde_libdir) if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/libkdecore.la"; then AC_MSG_ERROR([ in the prefix, you've chosen, are no kde libraries installed. This will fail. So, check this please and use another prefix!]) fi ac_kde_libraries="$kde_libdir" if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then ac_cv_have_kde="have_kde=no" else ac_cv_have_kde="have_kde=yes \ ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" fi else dnl test -z $1 ac_cv_have_kde="have_kde=no" fi ])dnl eval "$ac_cv_have_kde" if test "$have_kde" != "yes"; then if test "${prefix}" = NONE; then ac_kde_prefix="$ac_default_prefix" else ac_kde_prefix="$prefix" fi if test "$exec_prefix" = NONE; then ac_kde_exec_prefix="$ac_kde_prefix" AC_MSG_RESULT([will be installed in $ac_kde_prefix]) else ac_kde_exec_prefix="$exec_prefix" AC_MSG_RESULT([will be installed in $ac_kde_prefix and $ac_kde_exec_prefix]) fi kde_libraries="${ac_kde_exec_prefix}/lib" kde_includes=${ac_kde_prefix}/include else ac_cv_have_kde="have_kde=yes \ ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" AC_MSG_RESULT([libraries $ac_kde_libraries, headers $ac_kde_includes]) kde_libraries="$ac_kde_libraries" kde_includes="$ac_kde_includes" fi AC_SUBST(kde_libraries) AC_SUBST(kde_includes) if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then KDE_INCLUDES="" else KDE_INCLUDES="-I$kde_includes" all_includes="$KDE_INCLUDES $all_includes" fi if test "$kde_libraries" = "$x_libraries" || test "$kde_libraries" = "$qt_libraries" ; then KDE_LDFLAGS="" else KDE_LDFLAGS="-L$kde_libraries" all_libraries="$KDE_LDFLAGS $all_libraries" fi AC_SUBST(KDE_LDFLAGS) AC_SUBST(KDE_INCLUDES) KDE_CHECK_EXTRA_LIBS AC_SUBST(all_includes) AC_SUBST(all_libraries) ]) AC_DEFUN(KDE_CHECK_EXTRA_LIBS, [ AC_MSG_CHECKING(for extra includes) AC_ARG_WITH(extra-includes, [ --with-extra-includes adds non standard include paths], kde_use_extra_includes="$withval", kde_use_extra_includes=NONE ) if test -n "$kde_use_extra_includes" && \ test "$kde_use_extra_includes" != "NONE"; then ac_save_ifs=$IFS IFS=':' for dir in $kde_use_extra_includes; do all_includes="$all_includes -I$dir" USER_INCLUDES="$USER_INCLUDES -I$dir" done IFS=$ac_save_ifs kde_use_extra_includes="added" else kde_use_extra_includes="no" fi AC_MSG_RESULT($kde_use_extra_includes) AC_MSG_CHECKING(for extra libs) AC_ARG_WITH(extra-libs, [ --with-extra-libs adds non standard library paths], kde_use_extra_libs=$withval, kde_use_extra_libs=NONE ) if test -n "$kde_use_extra_libs" && \ test "$kde_use_extra_libs" != "NONE"; then ac_save_ifs=$IFS IFS=':' for dir in $kde_use_extra_libs; do all_libraries="$all_libraries -L$dir" KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -rpath $dir" USER_LDFLAGS="$USER_LDFLAGS -L$dir" done IFS=$ac_save_ifs kde_use_extra_libs="added" else kde_use_extra_libs="no" fi AC_MSG_RESULT($kde_use_extra_libs) ]) AC_DEFUN(KDE_CHECK_KIMGIO, [ AC_REQUIRE([AC_FIND_TIFF]) AC_REQUIRE([AC_FIND_JPEG]) AC_REQUIRE([AC_FIND_PNG]) LIB_KIMGIO='-lkimgio $(LIBJPEG) $(LIBTIFF) $(LIBPNG) -lm' AC_SUBST(LIB_KIMGIO) LIB_KHTMLW='-lkhtmlw $(LIB_KIMGIO) -ljscript' AC_SUBST(LIB_KHTMLW) LIB_KHTML='-lkhtml $(LIB_KIMGIO) -ljscript' AC_SUBST(LIB_KHTML) ]) AC_DEFUN(KDE_CREATE_LIBS_ALIASES, [ AC_REQUIRE([KDE_MISC_TESTS]) LIB_X11='-lX11 $(LIBSOCKET)' AC_SUBST(LIB_X11) LIB_QT='-lqt $(LIB_X11)' AC_SUBST(LIB_QT) LIB_KDECORE='-lkdecore -lXext $(LIB_QT)' AC_SUBST(LIB_KDECORE) LIB_KDEUI='-lkdeui $(LIB_KDECORE)' AC_SUBST(LIB_KDEUI) LIB_KFM='-lkfm $(LIB_KDECORE)' AC_SUBST(LIB_KFM) LIB_KFILE='-lkfile $(LIB_KFM) $(LIB_KDEUI)' AC_SUBST(LIB_KFILE) ]) AC_DEFUN(AC_PATH_KDE, [ AC_BASE_PATH_KDE AC_ARG_ENABLE(path-check, [ --disable-path-check don't try to find out, where to install], [ if test "$enableval" = "no"; then ac_use_path_checking="default" else ac_use_path_checking="" fi ], [ac_use_path_checking=""] ) AC_ARG_WITH(install-root, [ --with-install-root the root, where to install to [default=/]], [ if test "$withval" = "no"; then kde_install_root=""; else kde_install_root=$withval; fi ], [kde_install_root=""] ) if test -n "$kde_install_root"; then install_root="$kde_install_root" else install_root= fi AC_CREATE_KFSSTND($ac_use_path_checking) AC_SUBST_KFSSTND KDE_CREATE_LIBS_ALIASES ]) dnl slightly changed version of AC_CHECK_FUNC(setenv) AC_DEFUN(AC_CHECK_SETENV, [AC_MSG_CHECKING([for setenv]) AC_CACHE_VAL(ac_cv_func_setenv, [AC_LANG_C AC_TRY_LINK( dnl Don't include because on OSF/1 3.0 it includes dnl which includes which contains a prototype for dnl select. Similarly for bzero. [#include ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus extern "C" #endif ])dnl [/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ #include ], [ /* 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_$1) || defined (__stub___$1) choke me #else setenv("TEST", "alle", 1); #endif ], eval "ac_cv_func_setenv=yes", eval "ac_cv_func_setenv=no")]) if test "$ac_cv_func_setenv" = "yes"; then AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_FUNC_SETENV) else AC_MSG_RESULT(no) fi ]) AC_DEFUN(AC_CHECK_GETDOMAINNAME, [ AC_LANG_CPLUSPLUS save_CXXFLAGS="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="$CXXFLAGS -pedantic-errors" fi AC_MSG_CHECKING(for getdomainname) AC_CACHE_VAL(ac_cv_func_getdomainname, [ AC_TRY_COMPILE([ #include #include ], [ char buffer[200]; getdomainname(buffer, 200); ], ac_cv_func_getdomainname=yes, ac_cv_func_getdomainname=no) ]) AC_MSG_RESULT($ac_cv_func_getdomainname) if eval "test \"`echo `$ac_cv_func_getdomainname\" = yes"; then AC_DEFINE(HAVE_GETDOMAINNAME) fi CXXFLAGS="$save_CXXFLAGS" ]) AC_DEFUN(AC_CHECK_GETHOSTNAME, [ AC_LANG_CPLUSPLUS save_CXXFLAGS="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="$CXXFLAGS -pedantic-errors" fi AC_MSG_CHECKING([for gethostname]) AC_CACHE_VAL(ac_cv_func_gethostname, [ AC_TRY_COMPILE([ #include #include ], [ char buffer[200]; gethostname(buffer, 200); ], ac_cv_func_gethostname=yes, ac_cv_func_gethostname=no) ]) AC_MSG_RESULT($ac_cv_func_gethostname) if eval "test \"`echo `$ac_cv_func_gethostname\" = yes"; then AC_DEFINE(HAVE_GETHOSTNAME) fi CXXFLAGS="$save_CXXFLAGS" ]) AC_DEFUN(AC_CHECK_USLEEP, [ AC_LANG_CPLUSPLUS AC_MSG_CHECKING([for usleep]) AC_CACHE_VAL(ac_cv_func_usleep, [ ac_libs_safe="$LIBS" LIBS="$LIBS $LIBUCB" AC_TRY_LINK([ #include #include ], [ usleep(200); ], ac_cv_func_usleep=yes, ac_cv_func_usleep=no) ]) AC_MSG_RESULT($ac_cv_func_usleep) if eval "test \"`echo `$ac_cv_func_usleep\" = yes"; then AC_DEFINE(HAVE_USLEEP) fi LIBS="$ac_libs_safe" ]) AC_DEFUN(AC_FIND_GIF, [AC_MSG_CHECKING([for giflib]) AC_CACHE_VAL(ac_cv_lib_gif, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lgif -lX11 $LIBSOCKET" AC_TRY_LINK(dnl [ #ifdef __cplusplus extern "C" { #endif int GifLastError(void); #ifdef __cplusplus } #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ ], [return GifLastError();], eval "ac_cv_lib_gif=yes", eval "ac_cv_lib_gif=no") LIBS="$ac_save_LIBS" ])dnl if eval "test \"`echo $ac_cv_lib_gif`\" = yes"; then AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_LIBGIF) else AC_MSG_ERROR(You need giflib23. Please install the kdesupport package) fi ]) AC_DEFUN(AC_FIND_JPEG, [AC_MSG_CHECKING([for jpeglib]) AC_CACHE_VAL(ac_cv_lib_jpeg, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -ljpeg -lm" AC_TRY_LINK( [/* Override any gcc2 internal prototype to avoid an error. */ struct jpeg_decompress_struct; typedef struct jpeg_decompress_struct * j_decompress_ptr; typedef int size_t; #ifdef __cplusplus extern "C" { #endif void jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize); #ifdef __cplusplus } #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ ], [jpeg_CreateDecompress(0L, 0, 0);], eval "ac_cv_lib_jpeg=-ljpeg", eval "ac_cv_lib_jpeg=no") LIBS="$ac_save_LIBS" dnl what to do, if the normal way fails: if eval "test \"`echo $ac_cv_lib_jpeg`\" = no"; then if test -f "$kde_libraries/libjpeg.so"; then test -f ./libjpegkde.so || $LN_S $kde_libraries/libjpeg.so ./libjpegkde.so ac_cv_lib_jpeg="-L\${topdir} -ljpegkde" else if test -f "$kde_libraries/libjpeg.sl"; then test -f ./libjpegkde.sl ||$LN_S $kde_libraries/libjpeg.sl ./libjpegkde.sl ac_cv_lib_jpeg="-L\${topdir} -ljpegkde" else if test -f "$kde_libraries/libjpeg.a"; then test -f ./libjpegkde.a || $LN_S $kde_libraries/libjpeg.a ./libjpegkde.a ac_cv_lib_jpeg="-L\${topdir} -ljpegkde" else AC_MSG_ERROR([ You need jpeglib6a. Please install the kdesupport package. If you have already installed kdesupport, you may have an old libjpeg somewhere. In this case copy $KDEDIR/lib/libjpeg* to /usr/lib. ]) fi fi fi fi ])dnl if eval "test ! \"`echo $ac_cv_lib_jpeg`\" = no"; then LIBJPEG="$ac_cv_lib_jpeg" AC_SUBST(LIBJPEG) AC_MSG_RESULT($ac_cv_lib_jpeg) AC_DEFINE_UNQUOTED(HAVE_LIBJPEG) fi ]) AC_DEFUN(AC_FIND_ZLIB, [ AC_MSG_CHECKING([for libz]) AC_CACHE_VAL(ac_cv_lib_z, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lz $LIBSOCKET" AC_TRY_LINK(dnl [ #include ], [return (zlibVersion() == ZLIB_VERSION); ], eval "ac_cv_lib_z='-lz'", eval "ac_cv_lib_z=no") LIBS="$ac_save_LIBS" ])dnl if eval "test ! \"`echo $ac_cv_lib_z`\" = no"; then dnl AC_DEFINE_UNQUOTED(HAVE_LIBZ) LIBZ="$ac_cv_lib_z" AC_SUBST(LIBZ) AC_MSG_RESULT($ac_cv_lib_z) else AC_MSG_RESULT(no) LIBZ="" AC_SUBST(LIBZ) fi ]) AC_DEFUN(AC_FIND_TIFF, [ AC_REQUIRE([AC_FIND_ZLIB]) AC_REQUIRE([AC_FIND_JPEG]) AC_MSG_CHECKING([for libtiff]) AC_CACHE_VAL(ac_cv_lib_tiff, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -ltiff $LIBJPEG $LIBZ -lX11 $LIBSOCKET" AC_TRY_LINK(dnl [ #include ], [return (TIFFOpen( "", "r") == 0); ], eval "ac_cv_lib_tiff='-ltiff $LIBJPEG $LIBZ'", eval "ac_cv_lib_tiff=no") LIBS="$ac_save_LIBS" ])dnl if eval "test ! \"`echo $ac_cv_lib_tiff`\" = no"; then AC_DEFINE_UNQUOTED(HAVE_LIBTIFF) LIBTIFF="$ac_cv_lib_tiff" AC_SUBST(LIBTIFF) AC_MSG_RESULT($ac_cv_lib_tiff) else AC_MSG_RESULT(no) LIBTIFF="" AC_SUBST(LIBTIFF) fi ]) AC_DEFUN(AC_FIND_PNG, [ AC_REQUIRE([AC_FIND_ZLIB]) AC_MSG_CHECKING([for libpng]) AC_CACHE_VAL(ac_cv_lib_png, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lpng $LIBZ -lm -lX11 $LIBSOCKET" AC_LANG_C AC_TRY_LINK(dnl [ #include ], [ png_structp png_ptr = png_create_read_struct( // image ptr PNG_LIBPNG_VER_STRING, 0, 0, 0 ); return( png_ptr != 0 ); ], eval "ac_cv_lib_png='-lpng $LIBZ -lm'", eval "ac_cv_lib_png=no") LIBS="$ac_save_LIBS" ])dnl if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then AC_DEFINE_UNQUOTED(HAVE_LIBPNG) LIBPNG="$ac_cv_lib_png" AC_SUBST(LIBPNG) AC_MSG_RESULT($ac_cv_lib_png) else AC_MSG_RESULT(no) LIBPNG="" AC_SUBST(LIBPNG) fi ]) AC_DEFUN(AC_CHECK_BOOL, [ AC_MSG_CHECKING([for bool]) AC_CACHE_VAL(ac_cv_have_bool, [ AC_LANG_CPLUSPLUS AC_TRY_COMPILE([], [bool aBool = true;], [ac_cv_have_bool="yes"], [ac_cv_have_bool="no"]) ]) dnl end AC_CHECK_VAL AC_MSG_RESULT($ac_cv_have_bool) if test "$ac_cv_have_bool" = "yes"; then AC_DEFINE(HAVE_BOOL) fi ]) AC_DEFUN(AC_CHECK_GNU_EXTENSIONS, [ AC_MSG_CHECKING(if you need GNU extensions) AC_CACHE_VAL(ac_cv_gnu_extensions, [ cat > conftest.c << EOF #include #ifdef __GNU_LIBRARY__ yes #endif EOF if (eval "$ac_cpp conftest.c") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* ac_cv_gnu_extensions=yes else ac_cv_gnu_extensions=no fi ]) AC_MSG_RESULT($ac_cv_gnu_extensions) if test "$ac_cv_gnu_extensions" = "yes"; then AC_DEFINE_UNQUOTED(_GNU_SOURCE) fi ]) AC_DEFUN(AC_CHECK_COMPILERS, [ dnl this is somehow a fat lie, but prevents other macros from double checking AC_PROVIDE([AC_PROG_CC]) AC_PROVIDE([AC_PROG_CPP]) AC_ARG_ENABLE(debug,[ --enable-debug creates debugging code [default=no]], [ if test $enableval = "no"; dnl then ac_use_debug_code="no" else ac_use_debug_code="yes" fi ], [ac_use_debug_code="no"]) AC_ARG_ENABLE(strict,[ --enable-strict compiles with strict compiler options (may not work!)], [ if test $enableval = "no"; then ac_use_strict_options="no" else ac_use_strict_options="yes" fi ], [ac_use_strict_options="no"]) dnl this was AC_PROG_CC. I had to include it manualy, since I had to patch it AC_MSG_CHECKING(for a C-Compiler) dnl if there is one, print out. if not, don't matter AC_MSG_RESULT($CC) if test -z "$CC"; then AC_CHECK_PROG(CC, gcc, gcc) fi if test -z "$CC"; then AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) fi if test -z "$CC"; then AC_CHECK_PROG(CC, xlc, xlc) fi test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) AC_PROG_CC_WORKS AC_PROG_CC_GNU if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi if test -z "$CFLAGS"; then if test "$ac_use_debug_code" = "yes"; then AC_PROG_CC_G if test $ac_cv_prog_cc_g = yes; then CFLAGS="-g" fi else if test "$GCC" = "yes"; then CFLAGS="-O2" else CFLAGS="" fi fi if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall" if test "$ac_use_strict_options" = "yes"; then CFLAGS="$CFLAGS -W -ansi -pedantic" fi fi fi case "$host" in *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";; esac if test -z "$LDFLAGS" && test "$ac_use_debug_code" = "no" && test "$GCC" = "yes"; then LDFLAGS="-s" fi dnl this is AC_PROG_CPP. I had to include it here, since autoconf checks dnl dependecies between AC_PROG_CPP and AC_PROG_CC (or is it automake?) AC_MSG_CHECKING(how to run the C preprocessor) # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then AC_CACHE_VAL(ac_cv_prog_CPP, [ # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. dnl Use a header file that comes with gcc, so configuring glibc dnl with a fresh cross-compiler works. AC_TRY_CPP([#include Syntax Error], , CPP="${CC-cc} -E -traditional-cpp" AC_TRY_CPP([#include Syntax Error], , CPP=/lib/cpp)) ac_cv_prog_CPP="$CPP"])dnl CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi AC_MSG_RESULT($CPP) AC_SUBST(CPP)dnl AC_MSG_CHECKING(for a C++-Compiler) dnl if there is one, print out. if not, don't matter AC_MSG_RESULT($CXX) if test -z "$CXX"; then AC_CHECK_PROG(CXX, g++, g++) fi if test -z "$CXX"; then AC_CHECK_PROG(CXX, CC, CC) fi if test -z "$CXX"; then AC_CHECK_PROG(CXX, xlC, xlC) fi if test -z "$CXX"; then AC_CHECK_PROG(CXX, DCC, DCC) fi test -z "$CXX" && AC_MSG_ERROR([no acceptable C++-compiler found in \$PATH]) AC_PROG_CXX_WORKS AC_PROG_CXX_GNU if test $ac_cv_prog_gxx = yes; then GXX=yes else AC_MSG_CHECKING(whether we are using SPARC CC) GXX= cat > conftest.C << EOF #ifdef __SUNPRO_CC yes; #endif EOF ac_try="$CXX -E conftest.C" if { (eval echo configure:__online__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_CC=yes else ac_cv_prog_CC=no fi AC_MSG_RESULT($ac_cv_prog_CC) fi if test -z "$CXXFLAGS"; then if test "$ac_use_debug_code" = "yes"; then AC_PROG_CXX_G if test $ac_cv_prog_cxx_g = yes; then CXXFLAGS="-g" fi if test "$ac_cv_prog_CC" = "yes"; then CXXFLAGS="$CXXFLAGS -pto" fi else if test "$GXX" = "yes"; then CXXFLAGS="-O2" else if test "$ac_cv_prog_CC" = "yes"; then CXXFLAGS="-pto -O2" else CXXFLAGS="" fi fi fi if test "$GXX" = "yes"; then CXXFLAGS="$CXXFLAGS -Wall" if test "$ac_use_strict_options" = "yes"; then CXXFLAGS="$CXXFLAGS -W -ansi -Wtraditional -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Woverloaded-virtual -Wbad-function-cast -Wsynth" fi if test "$kde_very_strict" = "yes"; then CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wshadow -Wredundant-decls -Wconversion" fi fi fi case "$host" in *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";; esac ]) dnl just a wrapper to clean up configure.in AC_DEFUN(KDE_PROG_LIBTOOL, [ AC_REQUIRE([AM_ENABLE_SHARED]) AC_REQUIRE([AM_ENABLE_STATIC]) dnl libtool is only for C, so I must force him dnl to find the correct flags for C++ ac_save_cc=$CC ac_save_cflags="$CFLAGS" CC=$CXX CFLAGS="$CXXFLAGS" AM_PROG_LIBTOOL dnl for libraries CC=$ac_save_cc CFLAGS="$ac_save_cflags" ]) AC_DEFUN(KDE_DO_IT_ALL, [ AC_CANONICAL_SYSTEM AC_ARG_PROGRAM AM_INIT_AUTOMAKE($1, $2) AM_DISABLE_LIBRARIES AC_PREFIX_DEFAULT(${KDEDIR:-/usr/local/kde}) AC_CHECK_COMPILERS KDE_PROG_LIBTOOL AM_KDE_WITH_NLS AC_PATH_KDE ]) AC_DEFUN(AC_CHECK_RPATH, [ AC_MSG_CHECKING(for rpath) AC_ARG_ENABLE(rpath, [ --disable-rpath do not use the rpath feature of ld], USE_RPATH=$enableval, USE_RPATH=yes) if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then KDE_RPATH="-rpath \$(kde_libraries)" if test -n "$qt_libraries"; then KDE_RPATH="$KDE_RPATH -rpath \$(qt_libraries)" fi dnl $x_libraries is set to /usr/lib in case if test -n "$X_LDFLAGS"; then KDE_RPATH="$KDE_RPATH -rpath \$(x_libraries)" fi if test -n "$KDE_EXTRA_RPATH"; then KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)" fi fi AC_SUBST(KDE_EXTRA_RPATH) AC_SUBST(KDE_RPATH) AC_MSG_RESULT($USE_RPATH) ]) dnl Check for the type of the third argument of getsockname AC_DEFUN(AC_CHECK_KSIZE_T, [AC_MSG_CHECKING(for the third argument of getsockname) AC_LANG_CPLUSPLUS AC_CACHE_VAL(ac_cv_ksize_t, [AC_TRY_COMPILE([ #include #include ],[ socklen_t a=0; getsockname(0,(struct sockaddr*)0, &a); ], ac_cv_ksize_t=socklen_t, ac_cv_ksize_t=) if test -z "$ac_cv_ksize_t"; then ac_safe_cxxflags="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="-Werror $CXXFLAGS" fi AC_TRY_COMPILE([ #include #include ],[ int a=0; getsockname(0,(struct sockaddr*)0, &a); ], ac_cv_ksize_t=int, ac_cv_ksize_t=size_t) CXXFLAGS="$ac_safe_cxxflags" fi ]) if test -z "$ac_cv_ksize_t"; then ac_cv_ksize_t=int fi AC_MSG_RESULT($ac_cv_ksize_t) AC_DEFINE_UNQUOTED(ksize_t, $ac_cv_ksize_t) ]) dnl This is a merge of some macros out of the gettext aclocal.m4 dnl since we don't need anything, I took the things we need AC_DEFUN(AM_KDE_WITH_NLS, [AC_MSG_CHECKING([whether NLS is requested]) AC_LANG_CPLUSPLUS 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) dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then AC_DEFINE(ENABLE_NLS) AM_PATH_PROG_WITH_TEST_KDE(MSGFMT, msgfmt, [test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"], msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) if test -z "`$MSGFMT --version 2>&1 | grep 'GNU gettext'`"; then AC_MSG_RESULT([found msgfmt program is not GNU msgfmt; ignore it]) msgfmt=":" fi AC_SUBST(MSGFMT) AM_PATH_PROG_WITH_TEST_KDE(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext programs is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi AC_SUBST(XGETTEXT) fi ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # serial 1 # Stephan Kulow: I appended a _KDE against name conflicts dnl AM_PATH_PROG_WITH_TEST_KDE(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST_KDE, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # serial 1 AC_DEFUN(AM_LC_MESSAGES, [if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES) fi fi]) dnl From Jim Meyering. dnl FIXME: migrate into libit. AC_DEFUN(AM_FUNC_OBSTACK, [AC_CACHE_CHECK([for obstacks], am_cv_func_obstack, [AC_TRY_LINK([#include "obstack.h"], [struct obstack *mem;obstack_free(mem,(char *) 0)], am_cv_func_obstack=yes, am_cv_func_obstack=no)]) if test $am_cv_func_obstack = yes; then AC_DEFINE(HAVE_OBSTACK) else LIBOBJS="$LIBOBJS obstack.o" fi ]) dnl From Jim Meyering. Use this if you use the GNU error.[ch]. dnl FIXME: Migrate into libit AC_DEFUN(AM_FUNC_ERROR_AT_LINE, [AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line, [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");], am_cv_lib_error_at_line=yes, am_cv_lib_error_at_line=no)]) if test $am_cv_lib_error_at_line = no; then LIBOBJS="$LIBOBJS error.o" fi AC_SUBST(LIBOBJS)dnl ]) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # serial 1 # Stephan Kulow: I put a KDE in it to avoid name conflicts AC_DEFUN(AM_KDE_GNU_GETTEXT, [AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([AM_KDE_WITH_NLS])dnl AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h values.h alloca.h]) AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ __argz_count __argz_stringify __argz_next stpcpy]) AM_LC_MESSAGES if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi ]) AC_DEFUN(AC_HAVE_XPM, [AC_REQUIRE_CPP()dnl test -z "$XPM_LDFLAGS" && XPM_LDFLAGS= test -z "$XPM_INCLUDE" && XPM_INCLUDE= AC_ARG_WITH(xpm, [ --without-xpm disable color pixmap XPM tests], xpm_test=$withval, xpm_test="yes") if test "x$xpm_test" = xno; then ac_cv_have_xpm=no else AC_MSG_CHECKING(for XPM) AC_CACHE_VAL(ac_cv_have_xpm, [ AC_LANG_C ac_save_ldflags="$LDFLAGS" ac_save_cflags="$CFLAGS" LDFLAGS="$LDFLAGS $XPM_LDFLAGS $all_libraries -lXpm -lX11 -lXext $LIBSOCKET" CFLAGS="$CFLAGS $X_INCLUDES" test ! -z "$XPM_INCLUDE" && CFLAGS="-I$XPM_INCLUDE $CFLAGS" AC_TRY_LINK([#include ],[], ac_cv_have_xpm="yes",ac_cv_have_xpm="no") LDFLAGS="$ac_save_ldflags" CFLAGS="$ac_save_cflags" ])dnl if test "$ac_cv_have_xpm" = no; then AC_MSG_RESULT(no) XPM_LDFLAGS="" XPMINC="" $2 else AC_DEFINE(HAVE_XPM) if test "$XPM_LDFLAGS" = ""; then XPMLIB="-lXpm" else XPMLIB="-L$XPM_LDFLAGS -lXpm" fi if test "$XPM_INCLUDE" = ""; then XPMINC="" else XPMINC="-I$XPM_INCLUDE" fi AC_MSG_RESULT(yes) $1 fi fi AC_SUBST(XPMINC) AC_SUBST(XPMLIB) ]) AC_DEFUN(AC_HAVE_GL, [AC_REQUIRE_CPP()dnl test -z "$GL_LDFLAGS" && GL_LDFLAGS= test -z "$GL_INCLUDE" && GL_INCLUDE= AC_ARG_WITH(gl, [ --without-gl disable 3D GL modes], gl_test=$withval, gl_test="yes") if test "x$gl_test" = xno; then ac_cv_have_gl=no else AC_MSG_CHECKING(for GL) AC_CACHE_VAL(ac_cv_have_gl, [ AC_LANG_C ac_save_ldflags="$LDFLAGS" ac_save_cflags="$CFLAGS" LDFLAGS="$LDFLAGS $GL_LDFLAGS $all_libraries -lMesaGL -lMesaGLU -lX11 -lXext -lm $LIBSOCKET" CFLAGS="$CFLAGS $X_INCLUDES" test ! -z "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS" AC_TRY_LINK([],[], ac_cv_have_gl="yes",ac_cv_have_gl="no") LDFLAGS="$ac_save_ldflags" CFLAGS="$ac_save_cflags" ])dnl if test "$ac_cv_have_gl" = no; then AC_MSG_RESULT(no) GL_LDFLAGS="" GLINC="" $2 else AC_DEFINE(HAVE_GL) if test "$GL_LDFLAGS" = ""; then GLLIB="-lMesaGL -lMesaGLU" else GLLIB="-L$GL_LDFLAGS -lMesaGL -lMesaGLU" fi if test "$GL_INCLUDE" = ""; then GLINC="" else GLINC="-I$GL_INCLUDE" fi AC_MSG_RESULT(yes) $1 fi fi AC_SUBST(GLINC) AC_SUBST(GLLIB) ]) dnl PAM pam dnl Should test for PAM (Pluggable Authentication Modules) AC_DEFUN(AC_PATH_PAM_DIRECT, [ test -z "$pam_direct_test_library" && pam_direct_test_library=pam test -z "$pam_direct_test_include" && pam_direct_test_include=security/pam_appl.h for ac_dir in \ \ /usr/local/include \ /usr/include \ /usr/unsupported/include \ /opt/include \ /usr/pam/include \ /usr/local/pam/include \ /usr/lib/pam/include \ \ $extra_include \ ; \ do if test -r "$ac_dir/$pam_direct_test_include"; then no_pam= ac_pam_includes=$ac_dir break fi done # First see if replacing the include by lib works. for ac_dir in `echo "$ac_pam_includes" | sed s/include/lib/` \ \ /lib \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /lib/security \ /usr/security/lib \ $extra_lib \ ; \ do for ac_extension in a so sl; do if test -r $ac_dir/lib${pam_direct_test_library}.$ac_extension; then no_pam= ac_pam_libraries=$ac_dir break 2 fi done done ]) AC_DEFUN(AC_PATH_PAM, [AC_REQUIRE_CPP()dnl AC_CHECK_LIB(pam_misc, main, [PAM_MISC_LIB="-lpam_misc"], [], [-lpam -ldl]) AC_MSG_CHECKING(for PAM) AC_ARG_WITH(pam, [ --with-pam[=ARG] enable support for PAM: ARG=[yes|no|service name]], [ if test "x$withval" = "xyes"; then no_pam= default_pam=yes elif test "x$withval" = "xno"; then no_pam=yes else no_pam= pam_service="$withval" if test -z "$pam_service"; then default_pam=yes else default_pam= fi fi ], no_pam=yes ) if test ! "$no_pam" = yes; then AC_CACHE_VAL(ac_cv_path_pam, [ ac_pam_includes=NONE ac_pam_libraries=NONE if test -z "$pam_libraries"; then pam_libraries=NONE fi if test -z "$pam_includes"; then pam_includes=NONE fi AC_PATH_PAM_DIRECT test "x$pam_includes" = xNONE && pam_includes=$ac_pam_includes test "x$pam_libraries" = xNONE && pam_libraries=$ac_pam_libraries if test ! "x$pam_includes" = xNONE && test ! "x$pam_libraries" = xNONE; then ac_pam_libs="-lpam $PAM_MISC_LIB -ldl" ac_cv_path_pam="no_pam= ac_pam_includes=$ac_pam_includes ac_pam_libraries=$ac_pam_libraries ac_pam_libs=\"$ac_pam_libs\"" else ac_cv_path_pam="no_pam=yes" fi ]) eval "$ac_cv_path_pam" fi if test "$no_pam" = yes; then AC_MSG_RESULT(no) else AC_DEFINE(HAVE_PAM) PAMLIBS="$ac_pam_libs" test "x$pam_includes" = xNONE && pam_includes=$ac_pam_includes test "x$pam_libraries" = xNONE && pam_libraries=$ac_pam_libraries AC_MSG_RESULT([libraries $pam_libraries, headers $pam_includes]) if test "$default_pam" = yes; then AC_MSG_RESULT(["default pam service name will be used"]) else AC_DEFINE_UNQUOTED(KDE_PAM_SERVICE,"$pam_service") AC_MSG_RESULT(["pam service name will be: " $pam_service]) fi dnl test whether struct pam_message is const (Linux) or not (Sun) pam_appl_h="$ac_pam_includes/security/pam_appl.h" AC_MSG_CHECKING(for const pam_message) AC_EGREP_HEADER([struct pam_message], $pam_appl_h, [ AC_EGREP_HEADER([const struct pam_message], $pam_appl_h, [AC_MSG_RESULT(["const: Linux-type PAM"]) ], [AC_MSG_RESULT(["nonconst: Sun-type PAM"]) AC_DEFINE(PAM_MESSAGE_NONCONST)] )], [AC_MSG_RESULT(["not found - assume const, Linux-type PAM"])] ) fi if test "x$pam_libraries" != x && test "x$pam_libraries" != xNONE ; then PAMLIBPATHS="-L$pam_libraries" fi if test "x$pam_includes" != x && test "x$pam_includes" != xNONE ; then PAMINC="-I$pam_includes" fi AC_SUBST(PAMINC) AC_SUBST(PAMLIBS) AC_SUBST(PAMLIBPATHS) ]) AC_DEFUN(KDE_CHECK_LIBDL, [ AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ac_cv_have_dlfcn=yes ]) AC_CHECK_LIB(dld, shl_unload, [ LIBDL="-ldld" ac_cv_have_shload=yes ]) AC_SUBST(LIBDL) ]) AC_DEFUN(KDE_CHECK_DLOPEN, [ KDE_CHECK_LIBDL AC_CHECK_HEADERS(dlfcn.h dl.h) if test "$ac_cv_header_dlfcn_h" = "no"; then ac_cv_have_dlfcn=no fi if test "$ac_cv_header_dl_h" = "no"; then ac_cv_have_shload=no fi enable_dlopen=no AC_ARG_ENABLE(dlopen, [ --disable-dlopen link staticly [default=no]] , [if test "$enableval" = yes; then enable_dlopen=yes fi], enable_dlopen=yes) # override the user's opinion, if we know it better ;) if test "$ac_cv_have_dlfcn" = "no" && test "$ac_cv_have_shload" = "no"; then enable_dlopen=no fi if test "$ac_cv_have_dlfcn" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_DLFCN) fi if test "$ac_cv_have_shload" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_SHLOAD) fi if test "$enable_dlopen" = no ; then test -n "$1" && eval $1 else test -n "$2" && eval $2 fi ]) AC_DEFUN(KDE_CHECK_DYNAMIC_LOADING, [ KDE_CHECK_DLOPEN(libtool_enable_shared=no, libtool_enable_static=no) KDE_PROG_LIBTOOL AC_MSG_CHECKING([dynamic loading]) eval "`egrep '^build_libtool_libs=' libtool`" if test "$build_libtool_libs" = "yes" && test "$enable_dlopen" = "yes"; then dynamic_loading=yes AC_DEFINE_UNQUOTED(HAVE_DYNAMIC_LOADING) else dynamic_loading=no fi AC_MSG_RESULT($dynamic_loading) if test "$dynamic_loading" = "yes"; then $1 else $2 fi ]) AC_DEFUN(KDE_ADD_INCLUDES, [ if test -z "$1"; then test_include="Pix.h" else test_include="$1" fi AC_MSG_CHECKING([for libg++ ($test_include)]) AC_CACHE_VAL(kde_cv_libgpp_includes, [ kde_cv_libgpp_includes=no for ac_dir in \ \ /usr/include/g++ \ /usr/include \ /usr/unsupported/include \ /opt/include \ $extra_include \ ; \ do if test -r "$ac_dir/$test_include"; then kde_cv_libgpp_includes=$ac_dir break fi done ]) AC_MSG_RESULT($kde_cv_libgpp_includes) if test "$kde_cv_libgpp_includes" != "no"; then all_includes="-I$kde_cv_libgpp_includes $all_includes" fi ]) ]) AC_DEFUN(KDE_CHECK_MICO, [ AC_REQUIRE([KDE_CHECK_LIBDL]) AC_MSG_CHECKING(for MICO) AC_ARG_WITH(micodir, [ --with-micodir=micodir where mico is installed ], kde_micodir=$withval, kde_micodir=/usr/local ) AC_MSG_RESULT($kde_micodir) if test ! -r $kde_micodir/include/CORBA.h; then AC_MSG_ERROR([No CORBA.h found, specify another micodir]) fi MICO_INCLUDES=-I$kde_micodir/include AC_SUBST(MICO_INCLUDES) MICO_LDFLAGS=-L$kde_micodir/lib AC_SUBST(MICO_LDFLAGS) AC_MSG_CHECKING([for MICO version]) AC_CACHE_VAL(kde_cv_mico_version, [ AC_LANG_C cat >conftest.$ac_ext < #include int main() { printf("MICO_VERSION=%s\n",MICO_VERSION); return (0); } EOF ac_compile='${CC-gcc} $CFLAGS $MICO_INCLUDES conftest.$ac_ext -o conftest' if AC_TRY_EVAL(ac_compile); then if eval `./conftest 2>&5`; then kde_cv_mico_version=$MICO_VERSION else AC_MSG_ERROR([your system is not able to execute a small application to find MICO version! Check $kde_micodir/include/mico/version.h]) fi else AC_MSG_ERROR([your system is not able to compile a small application to find MICO version! Check $kde_micodir/include/mico/version.h]) fi ]) dnl installed MICO version mico_v_maj=`echo $kde_cv_mico_version | sed -e 's/^\(.*\)\..*\..*$/\1/'` mico_v_mid=`echo $kde_cv_mico_version | sed -e 's/^.*\.\(.*\)\..*$/\1/'` mico_v_min=`echo $kde_cv_mico_version | sed -e 's/^.*\..*\.\(.*\)$/\1/'` dnl required MICO version req_v_maj=`echo $1 | sed -e 's/^\(.*\)\..*\..*$/\1/'` req_v_mid=`echo $1 | sed -e 's/^.*\.\(.*\)\..*$/\1/'` req_v_min=`echo $1 | sed -e 's/^.*\..*\.\(.*\)$/\1/'` if test "$mico_v_maj" -lt "$req_v_maj" || \ ( test "$mico_v_maj" -eq "$req_v_maj" && \ test "$mico_v_mid" -lt "$req_v_mid" ) || \ ( test "$mico_v_mid" -eq "$req_v_mid" && \ test "$mico_v_min" -lt "$req_v_min" ) then AC_MSG_ERROR([found MICO version $kde_cv_mico_version but version $1 \ at least is required. You should upgrade MICO.]) else AC_MSG_RESULT([$kde_cv_mico_version (minimum version $1, ok)]) fi LIBMICO="-lmico$kde_cv_mico_version $LIBDL" AC_SUBST(LIBMICO) IDL=$kde_micodir/bin/idl AC_SUBST(IDL) ]) AC_DEFUN(KDE_CHECK_MINI_STL, [ AC_REQUIRE([KDE_CHECK_MICO]) AC_MSG_CHECKING(if we use mico's mini-STL) AC_CACHE_VAL(kde_cv_have_mini_stl, [ AC_LANG_CPLUSPLUS kde_save_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $MICO_INCLUDES" AC_TRY_COMPILE( [ #include ], [ #ifdef HAVE_MINI_STL #error "nothing" #endif ], kde_cv_have_mini_stl=no, kde_cv_have_mini_stl=yes) CXXFLAGS="$kde_save_cxxflags" ]) AC_MSG_RESULT($kde_cv_have_mini_stl) if test "$kde_cv_have_mini_stl" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_MINI_STL) fi ]) ]) AC_DEFUN(KDE_CHECK_LIBPTHREAD, [ AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"], LIBPTHREAD= ) AC_SUBST(LIBPTHREAD) ]) AC_DEFUN(KDE_TRY_LINK_PYTHON, [ AC_CACHE_VAL(kde_cv_try_link_python_$1, [ kde_save_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $PYTHONINC" kde_save_libs="$LIBS" LIBS="$LIBS $LIBPYTHON $2 $LIBDL $LIBSOCKET" kde_save_ldflags="$LDFLAGS" LDFLAGS="$LDFLAGS $PYTHONLIB" AC_TRY_LINK( [ #include ],[ PySys_SetArgv(1, 0); ], [kde_cv_try_link_python_$1=yes], [kde_cv_try_link_python_$1=no] ) CXXFLAGS="$kde_save_cxxflags" LIBS="$kde_save_libs" LDFLAGS="$kde_save_ldflags" ]) if test "$kde_cv_try_link_python_$1" = "yes"; then $3 else $4 fi ]) AC_DEFUN(KDE_CHECK_PYTHON, [ AC_REQUIRE([KDE_CHECK_LIBDL]) AC_REQUIRE([KDE_CHECK_LIBPTHREAD]) if test -z "$1"; then version="1.5" else version="$1" fi AC_MSG_CHECKING([for Python$version]) AC_ARG_WITH(pythondir, [ --with-pythondir=pythondir use python installed in pythondir ], [ ac_python_dir=$withval ], ac_python_dir=/usr/local ) python_incdirs="$ac_python_dir/include/python$version /usr/include/python$version /usr/local/include/python$version /usr/local/include" AC_FIND_FILE(Python.h, $python_incdirs, python_incdir) if test ! -r $python_incdir/Python.h; then AC_MSG_ERROR(Python.h not found.) fi PYTHONINC=-I$python_incdir python_libdirs="$ac_python_dir/lib/python$version/config /usr/lib/python$version/config /usr/local/python$version/config" AC_FIND_FILE(libpython$version.a, $python_libdirs, python_libdir) if test ! -r $python_libdir/libpython$version.a; then AC_MSG_ERROR(libpython$version.a not found.) fi PYTHONLIB=-L$python_libdir LIBPYTHON=-lpython$version AC_MSG_RESULT(header $python_incdir library $python_libdir) dnl Note: this test is very weak AC_MSG_CHECKING(if an Python application links) KDE_TRY_LINK_PYTHON(normal, "", AC_MSG_RESULT(yes), [ AC_MSG_RESULT(no) AC_MSG_CHECKING(if Python depends on -lpthread) KDE_TRY_LINK_PYTHON(pthread, "$LIBPTHREAD", [ AC_MSG_RESULT(yes) LIBPYTHON="$LIBPYTHON $LIBPTHREAD $LIBDL" ], [ AC_MSG_RESULT(no) AC_MSG_CHECKING(if Python depeds on -ltcl) KDE_TRY_LINK_PYTHON(tcl, "-ltcl", [ AC_MSG_RESULT(yes) LIBPYTHON="$LIBPYTHON -ltcl" ], [ AC_MSG_RESULT(no) AC_MSG_WARN([it seems, Python depends on another library. Pleae use \"make LIBPTYHON='-lpython$version -lotherlib'\" to fix this and contact the authors to let them know about this problem]) ]) ]) ]) AC_SUBST(PYTHONINC) AC_SUBST(PYTHONLIB) AC_SUBST(LIBPYTHON) ]) AC_DEFUN(KDE_CHECK_STL_SGI, [ AC_MSG_CHECKING([if STL implementation is SGI like]) AC_CACHE_VAL(kde_cv_stl_type_sgi, [ AC_TRY_COMPILE([ #include ],[ string astring="Hallo Welt."; astring.erase(0, 6); // now astring is "Welt" return 0; ], kde_cv_stl_type_sgi=yes, kde_cv_stl_type_sgi=no) ]) AC_MSG_RESULT($kde_cv_stl_type_sgi) if test "$kde_cv_stl_type_sgi" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_SGI_STL) fi ]) AC_DEFUN(KDE_CHECK_STL_HP, [ AC_MSG_CHECKING([if STL implementation is HP like]) AC_CACHE_VAL(kde_cv_stl_type_hp, [ AC_TRY_COMPILE([ #include ],[ string astring="Hello World"; astring.remove(0, 6); // now astring is "World" return 0; ], kde_cv_stl_type_hp=yes, kde_cv_stl_type_hp=no) ]) AC_MSG_RESULT($kde_cv_stl_type_hp) if test "$kde_cv_stl_type_hp" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_HP_STL) fi ]) AC_DEFUN(KDE_CHECK_STL, [ KDE_CHECK_STL_SGI if test "$kde_cv_stl_type_sgi" = "no"; then KDE_CHECK_STL_HP if test "$kde_cv_stl_type_hp" = "no"; then AC_MSG_ERROR("no known STL type found") fi fi ]) AC_DEFUN(AC_FIND_QIMGIO, [AC_REQUIRE([AC_FIND_JPEG]) AC_MSG_CHECKING([for qimgio]) AC_CACHE_VAL(ac_cv_lib_qimgio, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lqimgio -lpng -lz -lqt $LIBJPEG -lX11 $LIBSOCKET" AC_TRY_LINK(dnl [ void qInitImageIO (); ], [qInitImageIO();], eval "ac_cv_lib_qimgio=yes", eval "ac_cv_lib_qimgio=no") LIBS="$ac_save_LIBS" ])dnl if eval "test \"`echo $ac_cv_lib_qimgio`\" = yes"; then LIBQIMGIO="-lqimgio -lpng -lz $LIBJPEG" AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_QIMGIO) AC_SUBST(LIBQIMGIO) else AC_MSG_RESULT(not found) fi ]) AC_DEFUN(KDE_CHECK_ANSI, [ AC_MSG_CHECKING([for strdup]) AC_CACHE_VAL(kde_cv_stl_type_sgi, [ AC_LANG_CPLUSPLUS save_CXXFLAGS="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="$CXXFLAGS -pedantic-errors" fi AC_TRY_COMPILE([ #include ],[ char buffer[] = "Hallo"; strdup(buffer) ], kde_cv_has_strdup=yes, kde_cv_has_strdup=no) CXXFLAGS="$save_CXXFLAGS" ]) AC_MSG_RESULT($kde_cv_has_strdup) if test "$kde_cv_has_strdup" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_STRDUP) fi ]) AC_DEFUN(KDE_CHECK_INSURE, [ AC_ARG_ENABLE(insure, [ --enable-insure use insure++ for debugging [default=no]], [ if test $enableval = "no"; dnl then ac_use_insure="no" else ac_use_insure="yes" fi ], [ac_use_insure="no"]) AC_MSG_CHECKING(if we will use Insure++ to debug) AC_MSG_RESULT($ac_use_insure) if test "$ac_use_insure" = "yes"; dnl then CC="insure"; CXX="insure"; dnl CFLAGS="$CLAGS -fno-rtti -fno-exceptions "???? fi ]) dnl this is for kdm: AC_DEFUN(AC_CHECK_KDM, [ AC_CHECK_FUNCS(getsecretkey) dnl checks for X server AC_PATH_PROG(X_SERVER, X) if test ! -z "$X_SERVER"; then X_SERVER=`echo $X_SERVER | sed -e 's+/X$++'` AC_DEFINE_UNQUOTED(XBINDIR,$X_SERVER) XBINDIR=$X_SERVER AC_SUBST(XBINDIR) fi dnl This one tries to find XDMDIR for config files AC_ARG_WITH(xdmdir, [ --with-xdmdir If the xdm config dir can't be found automaticly], [ ac_xdmdir=$withval], [ ac_xdmdir="no"]) AC_MSG_CHECKING([for xdm configuration dir]) if test "$ac_xdmdir" = "no"; then rm -fr conftestdir if mkdir conftestdir; then cd conftestdir cat > Imakefile <<'EOF' acfindxdm: @echo 'ac_xdmdir="$(XDMDIR)";' EOF if (xmkmf) > /dev/null 2> /dev/null && test -f Makefile; then eval `${MAKE-make} acfindxdm 2>/dev/null 2>/dev/null | grep -v make` fi cd .. rm -fr conftestdir dnl Check if Imake was right if test -f $ac_xdmdir/xdm-config; then AC_MSG_RESULT($ac_xdmdir) else dnl Here we must do something else dnl Maybe look for xdm-config in standard places, and dnl if that fails use a fresh copy in $KDEDIR/config/kdm/ AC_FIND_FILE(xdm-config,/etc/X11/xdm /var/X11/xdm /usr/openwin/xdm /usr/X11R6/lib/X11/xdm,ac_xdmdir) if test -f $ac_xdmdir/xdm-config; then AC_MSG_RESULT($ac_xdmdir) else if test "${prefix}" = NONE; then ac_xdmdir=$ac_default_prefix/config/kdm else ac_xdmdir=$prefix/config/kdm fi AC_MSG_RESULT([xdm config dir not found, installing defaults in $ac_xdmdir]) xdmconfigsubdir=xdmconfig AC_SUBST(xdmconfigsubdir) fi fi fi else if test -f $ac_xdmdir/xdm-config; then AC_MSG_RESULT($ac_xdmdir) else AC_MSG_RESULT([xdm config dir not found, installing defaults in $ac_xdmdir]) xdmconfigsubdir=xdmconfig AC_SUBST(xdmconfigsubdir) fi fi AC_DEFINE_UNQUOTED(XDMDIR,"$ac_xdmdir") AC_SUBST(ac_xdmdir) AC_PATH_PAM if test "x$no_pam" = "xyes"; then pam_support="no" else pam_support="yes" shadow_support="no" # if pam is installed, use it. We can't savely # test, if it works *sigh* fi AC_ARG_WITH(shadow, [ --with-shadow If you want shadow password support ], [ if test "$withval" = "yes"; then shadow_support="yes" else shadow_support="no" fi if test "$pam_support" = "yes" && test "$shadow_support=yes"; then AC_MSG_WARN("You can not define both pam AND shadow") fi ], [ if test -z "$shadow_support"; then shadow_support="no"; fi ] ) if test "$pam_support" = "yes"; then AC_CHECK_LIB(pam, main, [PASSWDLIB="-lpam -ldl" AC_DEFINE_UNQUOTED(HAVE_PAM_LIB)], [],-ldl) fi if test -z "$PASSWDLIB" && test "$shadow_support" = "yes"; then AC_CHECK_LIB(shadow, main, [ PASSWDLIB="-lshadow" AC_DEFINE_UNQUOTED(HAVE_SHADOW_LIB) ]) fi AC_SUBST(PASSWDLIB) AC_CHECK_LIB(util, main, [LIBUTIL="-lutil"]) dnl for FreeBSD AC_SUBST(LIBUTIL) AC_CHECK_LIB(s, main, [LIB_LIBS="-ls"]) dnl for AIX AC_SUBST(LIB_LIBS) AC_CHECK_LIB(Xdmcp, main, [LIBXDMCP="-lXdmcp"], , $X_LDFLAGS -lX11) dnl for Unixware AC_SUBST(LIBXDMCP) if test -n "$LIBXDMCP"; then ac_cpp_safe=$ac_cpp ac_cpp='$CXXCPP $CPPFLAGS $X_INCLUDES' AC_CHECK_HEADERS(X11/Xdmcp.h) ac_cpp=$ac_cpp_safe fi ]) ## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*- ## Copyright (C) 1996-1998 Free Software Foundation, Inc. ## Gordon Matzigkeit , 1996 ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## ## As a special exception to the GNU General Public License, if you ## distribute this file as part of a program that contains a ## configuration script generated by Autoconf, you may include it under ## the same distribution terms that you use for the rest of that program. # serial 24 AM_PROG_LIBTOOL AC_DEFUN(AM_PROG_LIBTOOL, [AC_REQUIRE([AM_ENABLE_SHARED])dnl AC_REQUIRE([AM_ENABLE_STATIC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AM_PROG_LD])dnl AC_REQUIRE([AM_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl dnl # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' AC_SUBST(LIBTOOL)dnl # Check for any special flags to pass to ltconfig. libtool_flags= test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" test "$silent" = yes && libtool_flags="$libtool_flags --silent" test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" # Some flags need to be propagated to the compiler or linker for good # libtool support. case "$host" in *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. CFLAGS="$CFLAGS -belf" ;; esac # Actually configure libtool. ac_aux_dir is where install-sh is found. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ || AC_MSG_ERROR([libtool configure failed]) ]) # AM_ENABLE_SHARED - implement the --enable-shared flag # Usage: AM_ENABLE_SHARED[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN(AM_ENABLE_SHARED_EX, [define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_PROVIDE(AM_ENABLE_SHARED) AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT] changequote([, ])dnl [ --enable-shared=PKGS only build shared libraries if the current package appears as an element in the PKGS list], [p=${PACKAGE-default} case "$enableval" in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$ac_save_ifs" ;; esac], enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl ]) AC_DEFUN(AM_ENABLE_SHARED, [define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT], changequote([, ])dnl [ if test "$enableval" = no; then enable_shared=no else enable_shared=yes fi ], enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl ]) # AM_DISABLE_SHARED - set the default shared flag to --disable-shared AC_DEFUN(AM_DISABLE_SHARED, [AM_ENABLE_SHARED(no)]) # AM_DISABLE_STATIC - set the default static flag to --disable-static AC_DEFUN(AM_DISABLE_STATIC, [AM_ENABLE_STATIC(no)]) # AM_ENABLE_STATIC - implement the --enable-static flag # Usage: AM_ENABLE_STATIC[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN(AM_ENABLE_STATIC_EX, [define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_PROVIDE(AM_ENABLE_STATIC) AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT] changequote([, ])dnl [ --enable-static=PKGS only build shared libraries if the current package appears as an element in the PKGS list], [p=${PACKAGE-default} case "$enableval" in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$ac_save_ifs" ;; esac], enable_static=AM_ENABLE_STATIC_DEFAULT)dnl ]) AC_DEFUN(AM_ENABLE_STATIC, [define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT], changequote([, ])dnl [if test "$enableval" = no; then enable_static=no else enable_static=yes fi], enable_static=AM_ENABLE_STATIC_DEFAULT)dnl ]) AC_DEFUN(AM_DISABLE_LIBRARIES, [ AC_PROVIDE([AM_ENABLE_STATIC]) AC_PROVIDE([AM_ENABLE_SHARED]) enable_static=no enable_shared=no ]) # AM_PROG_LD - find the path to the GNU or non-GNU linker AC_DEFUN(AM_PROG_LD, [AC_ARG_WITH(gnu-ld, [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC]) ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(ac_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog"; then ac_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" else ac_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$ac_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_SUBST(LD) AM_PROG_LD_GNU ]) AC_DEFUN(AM_PROG_LD_GNU, [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then ac_cv_prog_gnu_ld=yes else ac_cv_prog_gnu_ld=no fi]) ]) # AM_PROG_NM - find the path to a BSD-compatible name lister AC_DEFUN(AM_PROG_NM, [AC_MSG_CHECKING([for BSD-compatible nm]) AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -B" elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -p" else ac_cv_path_NM="$ac_dir/nm" fi break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm ;; esac]) NM="$ac_cv_path_NM" AC_MSG_RESULT([$NM]) AC_SUBST(NM) ]) dokvok-0.1.3/aclocal.m4 644 764 144 222524 7066761444 10016 dnl aclocal.m4 generated automatically by aclocal 1.4 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. AC_DEFUN(AC_FIND_FILE, [ $3=NO for i in $2; do for j in $1; do if test -r "$i/$j"; then $3=$i break 2 fi done done ]) AC_DEFUN(KDE_FIND_PATH, [ AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(kde_cv_path_$1, [ kde_cv_path_$1="NONE" if test -n "$$2"; then kde_cv_path_$1="$$2"; else dirs="$3" kde_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$kde_save_IFS for dir in $dirs; do if test -x "$dir/$1"; then if test -n "$5" then evalstr="$dir/$1 $5 2>&1 " if eval $evalstr; then kde_cv_path_$1="$dir/$1" break fi else kde_cv_path_$1="$dir/$1" break fi fi done fi ]) if test -z "$kde_cv_path_$1" || test "$kde_cv_path_$1" = "NONE"; then AC_MSG_RESULT(not found) $4 else AC_MSG_RESULT($kde_cv_path_$1) $2=$kde_cv_path_$1 fi ]) AC_DEFUN(KDE_MOC_ERROR_MESSAGE, [ AC_MSG_ERROR([No Qt meta object compiler (moc) found! Please check whether you installed Qt correctly. You need to have a running moc binary. configure tried to run $ac_cv_path_moc and the test didn't succeed. If configure shouldn't have tried this one, set the environment variable MOC to the right one before running configure. ]) ]) dnl ------------------------------------------------------------------------ dnl Find the meta object compiler in the PATH, in $QTDIR/bin, and some dnl more usual places dnl ------------------------------------------------------------------------ dnl AC_DEFUN(AC_PATH_QT_MOC, [ KDE_FIND_PATH(moc, MOC, [$ac_qt_bindir $QTDIR/bin \ /usr/bin /usr/X11R6/bin /usr/lib/qt/bin \ /usr/local/qt/bin], [KDE_MOC_ERROR_MESSAGE]) if test -z "$MOC"; then if test -n "$ac_cv_path_moc"; then output=`eval "$ac_cv_path_moc --help 2>&1 | sed -e '1q' | grep Qt"` fi echo "configure:__oline__: tried to call $ac_cv_path_moc --help 2>&1 | sed -e '1q' | grep Qt" >&AC_FD_CC echo "configure:__oline__: moc output: $output" >&AC_FD_CC if test -z "$output"; then KDE_MOC_ERROR_MESSAGE fi fi AC_SUBST(MOC) ]) AC_DEFUN(KDE_REPLACE_ROOT, $1=`echo "$$1" | sed -e "s#^/#\$\{install_root\}/#"` ) AC_DEFUN(AC_CREATE_KFSSTND, [ AC_REQUIRE([AC_CHECK_RPATH]) AC_REQUIRE([AC_CHECK_BOOL]) if test "$1" = "default"; then AC_MSG_CHECKING(for KDE paths) if test -z "$kde_htmldir"; then kde_htmldir="\$(prefix)/share/doc/HTML" fi if test -z "$kde_appsdir"; then kde_appsdir="\$(prefix)/share/applnk" fi if test -z "$kde_icondir"; then kde_icondir="\$(prefix)/share/icons" fi if test -z "$kde_sounddir"; then kde_sounddir="\$(prefix)/share/sounds" fi if test -z "$kde_datadir"; then kde_datadir="\$(prefix)/share/apps" fi if test -z "$kde_locale"; then kde_locale="\$(prefix)/share/locale" fi if test -z "$kde_cgidir"; then kde_cgidir="\$(exec_prefix)/cgi-bin" fi if test -z "$kde_confdir"; then kde_confdir="\$(prefix)/share/config" fi if test -z "$kde_mimedir"; then kde_mimedir="\$(prefix)/share/mimelnk" fi if test -z "$kde_toolbardir"; then kde_toolbardir="\$(prefix)/share/toolbar" fi if test -z "$kde_wallpaperdir"; then kde_wallpaperdir="\$(prefix)/share/wallpapers" fi if test -z "$kde_bindir"; then kde_bindir="\$(exec_prefix)/bin" fi if test -z "$kde_partsdir"; then kde_partsdir="\$(exec_prefix)/parts" fi AC_MSG_RESULT(defaults) else AC_CACHE_VAL(kde_cv_all_paths, [ AC_MSG_CHECKING([for kde headers installed]) AC_LANG_CPLUSPLUS cat > conftest.$ac_ext < #include "confdefs.h" #include "config.h.bot" #include int main() { printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data()); printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data()); printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data()); printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data()); printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data()); printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data()); printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data()); printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data()); printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data()); printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data()); printf("kde_wallpaperdir=\\"%s\\"\n", KApplication::kde_wallpaperdir().data()); printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data()); printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data()); return 0; } EOF if test -n "$kde_libraries"; then KDE_TEST_RPATH="-rpath $kde_libraries" fi if test -n "$qt_libraries"; then KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $qt_libraries" fi if test -n "$x_libraries"; then KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $x_libraries" fi KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH" ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext' if AC_TRY_EVAL(ac_compile); then AC_MSG_RESULT(yes) else AC_MSG_ERROR([your system is not able to compile a small KDE application! Check, if you installed the KDE header files correctly.]) fi AC_MSG_CHECKING([for kde libraries installed]) ac_link='/bin/sh ./libtool --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore -lqt -lXext -lX11 $LIBSOCKET $KDE_TEST_RPATH 1>&5' if AC_TRY_EVAL(ac_link) && test -s conftest; then AC_MSG_RESULT(yes) else AC_MSG_ERROR([your system fails at linking a small KDE application! Check, if your compiler is installed correctly and if you have used the same compiler to compile Qt and kdelibs as you did use now]) fi AC_MSG_CHECKING([for KDE paths]) if eval `./conftest 2>&5`; then AC_MSG_RESULT(done) else AC_MSG_RESULT(problems) fi ./conftest 2> /dev/null >&5 # make an echo for config.log kde_have_all_paths=yes AC_LANG_CPLUSPLUS if test "$kde_have_all_paths" = "yes"; then kde_cv_all_paths="kde_have_all_paths=\"yes\" \ kde_htmldir=\"$kde_htmldir\" \ kde_appsdir=\"$kde_appsdir\" \ kde_icondir=\"$kde_icondir\" \ kde_sounddir=\"$kde_sounddir\" \ kde_datadir=\"$kde_datadir\" \ kde_locale=\"$kde_locale\" \ kde_cgidir=\"$kde_cgidir\" \ kde_confdir=\"$kde_confdir\" \ kde_mimedir=\"$kde_mimedir\" \ kde_toolbardir=\"$kde_toolbardir\" \ kde_wallpaperdir=\"$kde_wallpaperdir\" \ kde_bindir=\"$kde_bindir\" \ kde_partsdir=\"$kde_partsdir\"" fi rm -fr conftest* ]) eval "$kde_cv_all_paths" if test -z "$kde_htmldir" || test -z "$kde_appsdir" || test -z "$kde_icondir" || test -z "$kde_sounddir" || test -z "$kde_datadir" || test -z "$kde_locale" || test -z "$kde_cgidir" || test -z "$kde_confdir" || test -z "$kde_mimedir" || test -z "$kde_toolbardir" || test -z "$kde_wallpaperdir" || test -z "$kde_bindir" || test -z "$kde_partsdir" || test "$kde_have_all_paths" != "yes"; then kde_have_all_paths=no AC_MSG_ERROR([configure could not run a little KDE program to test the environment. Since it had compiled and linked before, it must be a strange problem on your system. Look at config.log for details. If you are not able to fix this, please contact Stephan Kulow .]) fi if test -n "$install_root"; then KDE_REPLACE_ROOT(kde_htmldir) KDE_REPLACE_ROOT(kde_appsdir) KDE_REPLACE_ROOT(kde_icondir) KDE_REPLACE_ROOT(kde_sounddir) KDE_REPLACE_ROOT(kde_datadir) KDE_REPLACE_ROOT(kde_locale) KDE_REPLACE_ROOT(kde_cgidir) KDE_REPLACE_ROOT(kde_confdir) KDE_REPLACE_ROOT(kde_mimedir) KDE_REPLACE_ROOT(kde_toolbardir) KDE_REPLACE_ROOT(kde_wallpaperdir) KDE_REPLACE_ROOT(kde_bindir) KDE_REPLACE_ROOT(kde_partsdir) AC_SUBST(install_root) fi fi bindir=$kde_bindir ]) AC_DEFUN(AC_SUBST_KFSSTND, [ AC_SUBST(kde_htmldir) AC_SUBST(kde_appsdir) AC_SUBST(kde_icondir) AC_SUBST(kde_sounddir) kde_minidir="$kde_icondir/mini" AC_SUBST(kde_minidir) AC_SUBST(kde_datadir) AC_SUBST(kde_locale) AC_SUBST(kde_cgidir) AC_SUBST(kde_confdir) AC_SUBST(kde_mimedir) AC_SUBST(kde_toolbardir) AC_SUBST(kde_wallpaperdir) AC_SUBST(kde_bindir) AC_SUBST(kde_partsdir) ]) AC_DEFUN(KDE_MISC_TESTS, [ AC_LANG_C dnl Checks for libraries. AC_CHECK_LIB(compat, main, [LIBCOMPAT="-lcompat"]) dnl for FreeBSD AC_SUBST(LIBCOMPAT) AC_CHECK_LIB(crypt, main, [LIBCRYPT="-lcrypt"]) dnl for BSD AC_SUBST(LIBCRYPT) AC_CHECK_KSIZE_T AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) if test $ac_cv_lib_dnet_dnet_ntoa = no; then AC_CHECK_LIB(dnet_stub, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) fi AC_CHECK_FUNC(gethostbyname) if test $ac_cv_func_gethostbyname = no; then AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") fi AC_CHECK_FUNC(connect) if test $ac_cv_func_connect = no; then AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , $X_EXTRA_LIBS) fi AC_CHECK_FUNC(remove) if test $ac_cv_func_remove = no; then AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. AC_CHECK_FUNC(shmat) if test $ac_cv_func_shmat = no; then AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") fi LIBSOCKET=$X_EXTRA_LIBS AC_SUBST(LIBSOCKET) AC_SUBST(X_EXTRA_LIBS) AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4 AC_SUBST(LIBUCB) case $host in dnl this *is* LynxOS specific *-*-lynxos* ) AC_MSG_CHECKING([LynxOS header file wrappers]) [CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"] AC_MSG_RESULT(disabled) AC_CHECK_LIB(bsd, gethostbyname, [LIBSOCKET="-lbsd"]) dnl for LynxOS ;; esac ]) AC_DEFUN(K_PATH_X, [ AC_MSG_CHECKING(for X) AC_CACHE_VAL(ac_cv_have_x, [# One or both of the vars are not set, and there is no cached value. ac_x_includes=NO ac_x_libraries=NO AC_PATH_X_DIRECT AC_PATH_X_XMKMF if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then AC_MSG_ERROR([Can't find X includes. Please check your installation and add the correct paths!]) else # Record where we found X for the cache. ac_cv_have_x="have_x=yes \ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" fi])dnl eval "$ac_cv_have_x" if test "$have_x" != yes; then AC_MSG_RESULT($have_x) no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes \ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" AC_MSG_RESULT([libraries $x_libraries, headers $x_includes]) fi if test -z "$x_includes" || test "x$x_includes" = xNONE; then X_INCLUDES="" x_includes="."; dnl better than nothing :- else X_INCLUDES="-I$x_includes" fi if test -z "$x_libraries" || test "x$x_libraries" = xNONE; then X_LDFLAGS="" x_libraries="/usr/lib"; dnl better than nothing :- else X_LDFLAGS="-L$x_libraries" fi all_includes="$all_includes $X_INCLUDES" all_libraries="$all_libraries $X_LDFLAGS" AC_SUBST(X_INCLUDES) AC_SUBST(X_LDFLAGS) AC_SUBST(x_libraries) AC_SUBST(x_includes) ]) AC_DEFUN(KDE_PRINT_QT_PROGRAM, [ AC_LANG_CPLUSPLUS cat > conftest.$ac_ext < #include int main() { QMovie m; m.setSpeed(20); return 0; } EOF ]) AC_DEFUN(KDE_CHECK_QT_DIRECT, [ AC_MSG_CHECKING([if Qt compiles without flags]) AC_CACHE_VAL(kde_cv_qt_direct, [ ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH ac_LIBRARY_PATH="$LIBRARY_PATH" ac_cxxflags_safe="$CXXFLAGS" ac_ldflags_safe="$LDFLAGS" ac_libs_safe="$LIBS" CXXFLAGS="$CXXFLAGS -I$qt_includes" LDFLAGS="$X_LDFLAGS" LIBS="-lqt -lXext -lX11 $LIBSOCKET" LD_LIBRARY_PATH= export LD_LIBRARY_PATH LIBRARY_PATH= export LIBRARY_PATH KDE_PRINT_QT_PROGRAM if AC_TRY_EVAL(ac_link) && test -s conftest; then kde_cv_qt_direct="yes" else kde_cv_qt_direct="no" echo "configure: failed program was:" >&AC_FD_CC cat conftest.$ac_ext >&AC_FD_CC fi rm -f conftest* CXXFLAGS="$ac_cxxflags_safe" LDFLAGS="$ac_ldflags_safe" LIBS="$ac_libs_safe" LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe" export LD_LIBRARY_PATH LIBRARY_PATH="$ac_LIBRARY_PATH" export LIBRARY_PATH ]) if test "$kde_cv_qt_direct" = "yes"; then AC_MSG_RESULT(yes) $1 else AC_MSG_RESULT(no) $2 fi ]) AC_DEFUN(AC_PATH_QT_1_3, [ AC_REQUIRE([K_PATH_X]) AC_MSG_CHECKING([for Qt]) ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO qt_libraries="" qt_includes="" AC_ARG_WITH(qt-dir, [ --with-qt-dir where the root of qt is installed ], [ ac_qt_includes="$withval"/include ac_qt_libraries="$withval"/lib ac_qt_bindir="$withval"/bin ]) AC_ARG_WITH(qt-includes, [ --with-qt-includes where the Qt includes are. ], [ ac_qt_includes="$withval" ]) kde_qt_libs_given=no AC_ARG_WITH(qt-libraries, [ --with-qt-libraries where the Qt library is installed.], [ ac_qt_libraries="$withval" kde_qt_libs_given=yes ]) if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then AC_CACHE_VAL(ac_cv_have_qt, [#try to guess Qt locations qt_incdirs="$ac_qt_includes /usr/lib/qt/include /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt $x_includes $QTINC" test -n "$QTDIR" && qt_incdirs="$QTDIR/include $QTDIR $qt_incdirs" AC_FIND_FILE(qmovie.h, $qt_incdirs, qt_incdir) ac_qt_includes="$qt_incdir" if test ! "$ac_qt_libraries" = "NO"; then qt_libdirs="$ac_qt_libraries" fi qt_libdirs="$qt_libdirs /usr/lib/qt/lib /usr/X11R6/lib /usr/lib /usr/local/qt/lib /usr/lib/qt $x_libraries $QTLIB" test -n "$QTDIR" && qt_libdirs="$QTDIR/lib $QTDIR $qt_libdirs" test=NONE qt_libdir=NONE for dir in $qt_libdirs; do try="ls -1 $dir/libqt*" if test=`eval $try 2> /dev/null`; then qt_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi done dnl AC_FIND_FILE(libqt.so libqt.so.1.40 libqt.so.1.41 libqt.so.1 libqt.a libqt.sl, $qt_libdirs, qt_libdir) ac_qt_libraries="$qt_libdir" ac_cxxflags_safe="$CXXFLAGS" ac_ldflags_safe="$LDFLAGS" ac_libs_safe="$LIBS" CXXFLAGS="$CXXFLAGS -I$qt_incdir" LDFLAGS="-L$qt_libdir $X_LDFLAGS" LIBS="$LIBS -lqt -lXext -lX11 $LIBSOCKET" KDE_PRINT_QT_PROGRAM if AC_TRY_EVAL(ac_link) && test -s conftest; then rm -f conftest* else echo "configure: failed program was:" >&AC_FD_CC cat conftest.$ac_ext >&AC_FD_CC ac_qt_libraries="NO" fi rm -f conftest* CXXFLAGS="$ac_cxxflags_safe" LDFLAGS="$ac_ldflags_safe" LIBS="$ac_libs_safe" if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then ac_cv_have_qt="have_qt=no" ac_qt_notfound="" if test "$ac_qt_includes" = NO; then if test "$ac_qt_libraries" = NO; then ac_qt_notfound="(headers and libraries)"; else ac_qt_notfound="(headers)"; fi else ac_qt_notfound="(libraries)"; fi AC_MSG_ERROR([Qt-1.4 $ac_qt_notfound not found. Please check your installation! ]); else have_qt="yes" fi ]) else have_qt="yes" fi eval "$ac_cv_have_qt" if test "$have_qt" != yes; then AC_MSG_RESULT([$have_qt]); else ac_cv_have_qt="have_qt=yes \ ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries" AC_MSG_RESULT([libraries $ac_qt_libraries, headers $ac_qt_includes]) qt_libraries="$ac_qt_libraries" qt_includes="$ac_qt_includes" fi if test ! "$kde_qt_libs_given" = "yes"; then KDE_CHECK_QT_DIRECT(qt_libraries= ,[]) fi AC_SUBST(qt_libraries) AC_SUBST(qt_includes) if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then QT_INCLUDES=""; else QT_INCLUDES="-I$qt_includes" all_includes="$QT_INCLUDES $all_includes" fi if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then QT_LDFLAGS="" else QT_LDFLAGS="-L$qt_libraries" all_libraries="$QT_LDFLAGS $all_libraries" fi AC_SUBST(QT_INCLUDES) AC_SUBST(QT_LDFLAGS) AC_PATH_QT_MOC ]) AC_DEFUN(AC_PATH_QT, [ AC_PATH_QT_1_3 ]) AC_DEFUN(AC_BASE_PATH_KDE, [ AC_REQUIRE([KDE_MISC_TESTS]) AC_REQUIRE([AC_PATH_QT])dnl AC_MSG_CHECKING([for KDE]) if test "${prefix}" != NONE; then kde_includes=${prefix}/include ac_kde_includes=$prefix/include if test "${exec_prefix}" != NONE; then kde_libraries=${exec_prefix}/lib ac_kde_libraries=$exec_prefix/lib else kde_libraries=${prefix}/lib ac_kde_libraries=$prefix/lib fi else ac_kde_includes= ac_kde_libraries= kde_libraries="" kde_includes="" fi AC_CACHE_VAL(ac_cv_have_kde, [#try to guess kde locations if test -z "$1"; then kde_incdirs="$ac_kde_includes /usr/lib/kde/include /usr/local/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde/include $x_includes $qt_includes" test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR $kde_incdirs" AC_FIND_FILE(ksock.h, $kde_incdirs, kde_incdir) ac_kde_includes="$kde_incdir" if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/ksock.h"; then AC_MSG_ERROR([ in the prefix, you've chosen, are no kde headers installed. This will fail. So, check this please and use another prefix!]) fi kde_libdirs="$ac_kde_libraries /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib /usr/X11R6/kde/lib" test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs" AC_FIND_FILE(libkdecore.la, $kde_libdirs, kde_libdir) if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/libkdecore.la"; then AC_MSG_ERROR([ in the prefix, you've chosen, are no kde libraries installed. This will fail. So, check this please and use another prefix!]) fi ac_kde_libraries="$kde_libdir" if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then ac_cv_have_kde="have_kde=no" else ac_cv_have_kde="have_kde=yes \ ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" fi else dnl test -z $1 ac_cv_have_kde="have_kde=no" fi ])dnl eval "$ac_cv_have_kde" if test "$have_kde" != "yes"; then if test "${prefix}" = NONE; then ac_kde_prefix="$ac_default_prefix" else ac_kde_prefix="$prefix" fi if test "$exec_prefix" = NONE; then ac_kde_exec_prefix="$ac_kde_prefix" AC_MSG_RESULT([will be installed in $ac_kde_prefix]) else ac_kde_exec_prefix="$exec_prefix" AC_MSG_RESULT([will be installed in $ac_kde_prefix and $ac_kde_exec_prefix]) fi kde_libraries="${ac_kde_exec_prefix}/lib" kde_includes=${ac_kde_prefix}/include else ac_cv_have_kde="have_kde=yes \ ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" AC_MSG_RESULT([libraries $ac_kde_libraries, headers $ac_kde_includes]) kde_libraries="$ac_kde_libraries" kde_includes="$ac_kde_includes" fi AC_SUBST(kde_libraries) AC_SUBST(kde_includes) if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then KDE_INCLUDES="" else KDE_INCLUDES="-I$kde_includes" all_includes="$KDE_INCLUDES $all_includes" fi if test "$kde_libraries" = "$x_libraries" || test "$kde_libraries" = "$qt_libraries" ; then KDE_LDFLAGS="" else KDE_LDFLAGS="-L$kde_libraries" all_libraries="$KDE_LDFLAGS $all_libraries" fi AC_SUBST(KDE_LDFLAGS) AC_SUBST(KDE_INCLUDES) KDE_CHECK_EXTRA_LIBS AC_SUBST(all_includes) AC_SUBST(all_libraries) ]) AC_DEFUN(KDE_CHECK_EXTRA_LIBS, [ AC_MSG_CHECKING(for extra includes) AC_ARG_WITH(extra-includes, [ --with-extra-includes adds non standard include paths], kde_use_extra_includes="$withval", kde_use_extra_includes=NONE ) if test -n "$kde_use_extra_includes" && \ test "$kde_use_extra_includes" != "NONE"; then ac_save_ifs=$IFS IFS=':' for dir in $kde_use_extra_includes; do all_includes="$all_includes -I$dir" USER_INCLUDES="$USER_INCLUDES -I$dir" done IFS=$ac_save_ifs kde_use_extra_includes="added" else kde_use_extra_includes="no" fi AC_MSG_RESULT($kde_use_extra_includes) AC_MSG_CHECKING(for extra libs) AC_ARG_WITH(extra-libs, [ --with-extra-libs adds non standard library paths], kde_use_extra_libs=$withval, kde_use_extra_libs=NONE ) if test -n "$kde_use_extra_libs" && \ test "$kde_use_extra_libs" != "NONE"; then ac_save_ifs=$IFS IFS=':' for dir in $kde_use_extra_libs; do all_libraries="$all_libraries -L$dir" KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -rpath $dir" USER_LDFLAGS="$USER_LDFLAGS -L$dir" done IFS=$ac_save_ifs kde_use_extra_libs="added" else kde_use_extra_libs="no" fi AC_MSG_RESULT($kde_use_extra_libs) ]) AC_DEFUN(KDE_CHECK_KIMGIO, [ AC_REQUIRE([AC_FIND_TIFF]) AC_REQUIRE([AC_FIND_JPEG]) AC_REQUIRE([AC_FIND_PNG]) LIB_KIMGIO='-lkimgio $(LIBJPEG) $(LIBTIFF) $(LIBPNG) -lm' AC_SUBST(LIB_KIMGIO) LIB_KHTMLW='-lkhtmlw $(LIB_KIMGIO) -ljscript' AC_SUBST(LIB_KHTMLW) LIB_KHTML='-lkhtml $(LIB_KIMGIO) -ljscript' AC_SUBST(LIB_KHTML) ]) AC_DEFUN(KDE_CREATE_LIBS_ALIASES, [ AC_REQUIRE([KDE_MISC_TESTS]) LIB_X11='-lX11 $(LIBSOCKET)' AC_SUBST(LIB_X11) LIB_QT='-lqt $(LIB_X11)' AC_SUBST(LIB_QT) LIB_KDECORE='-lkdecore -lXext $(LIB_QT)' AC_SUBST(LIB_KDECORE) LIB_KDEUI='-lkdeui $(LIB_KDECORE)' AC_SUBST(LIB_KDEUI) LIB_KFM='-lkfm $(LIB_KDECORE)' AC_SUBST(LIB_KFM) LIB_KFILE='-lkfile $(LIB_KFM) $(LIB_KDEUI)' AC_SUBST(LIB_KFILE) ]) AC_DEFUN(AC_PATH_KDE, [ AC_BASE_PATH_KDE AC_ARG_ENABLE(path-check, [ --disable-path-check don't try to find out, where to install], [ if test "$enableval" = "no"; then ac_use_path_checking="default" else ac_use_path_checking="" fi ], [ac_use_path_checking=""] ) AC_ARG_WITH(install-root, [ --with-install-root the root, where to install to [default=/]], [ if test "$withval" = "no"; then kde_install_root=""; else kde_install_root=$withval; fi ], [kde_install_root=""] ) if test -n "$kde_install_root"; then install_root="$kde_install_root" else install_root= fi AC_CREATE_KFSSTND($ac_use_path_checking) AC_SUBST_KFSSTND KDE_CREATE_LIBS_ALIASES ]) dnl slightly changed version of AC_CHECK_FUNC(setenv) AC_DEFUN(AC_CHECK_SETENV, [AC_MSG_CHECKING([for setenv]) AC_CACHE_VAL(ac_cv_func_setenv, [AC_LANG_C AC_TRY_LINK( dnl Don't include because on OSF/1 3.0 it includes dnl which includes which contains a prototype for dnl select. Similarly for bzero. [#include ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus extern "C" #endif ])dnl [/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ #include ], [ /* 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_$1) || defined (__stub___$1) choke me #else setenv("TEST", "alle", 1); #endif ], eval "ac_cv_func_setenv=yes", eval "ac_cv_func_setenv=no")]) if test "$ac_cv_func_setenv" = "yes"; then AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_FUNC_SETENV) else AC_MSG_RESULT(no) fi ]) AC_DEFUN(AC_CHECK_GETDOMAINNAME, [ AC_LANG_CPLUSPLUS save_CXXFLAGS="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="$CXXFLAGS -pedantic-errors" fi AC_MSG_CHECKING(for getdomainname) AC_CACHE_VAL(ac_cv_func_getdomainname, [ AC_TRY_COMPILE([ #include #include ], [ char buffer[200]; getdomainname(buffer, 200); ], ac_cv_func_getdomainname=yes, ac_cv_func_getdomainname=no) ]) AC_MSG_RESULT($ac_cv_func_getdomainname) if eval "test \"`echo `$ac_cv_func_getdomainname\" = yes"; then AC_DEFINE(HAVE_GETDOMAINNAME) fi CXXFLAGS="$save_CXXFLAGS" ]) AC_DEFUN(AC_CHECK_GETHOSTNAME, [ AC_LANG_CPLUSPLUS save_CXXFLAGS="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="$CXXFLAGS -pedantic-errors" fi AC_MSG_CHECKING([for gethostname]) AC_CACHE_VAL(ac_cv_func_gethostname, [ AC_TRY_COMPILE([ #include #include ], [ char buffer[200]; gethostname(buffer, 200); ], ac_cv_func_gethostname=yes, ac_cv_func_gethostname=no) ]) AC_MSG_RESULT($ac_cv_func_gethostname) if eval "test \"`echo `$ac_cv_func_gethostname\" = yes"; then AC_DEFINE(HAVE_GETHOSTNAME) fi CXXFLAGS="$save_CXXFLAGS" ]) AC_DEFUN(AC_CHECK_USLEEP, [ AC_LANG_CPLUSPLUS AC_MSG_CHECKING([for usleep]) AC_CACHE_VAL(ac_cv_func_usleep, [ ac_libs_safe="$LIBS" LIBS="$LIBS $LIBUCB" AC_TRY_LINK([ #include #include ], [ usleep(200); ], ac_cv_func_usleep=yes, ac_cv_func_usleep=no) ]) AC_MSG_RESULT($ac_cv_func_usleep) if eval "test \"`echo `$ac_cv_func_usleep\" = yes"; then AC_DEFINE(HAVE_USLEEP) fi LIBS="$ac_libs_safe" ]) AC_DEFUN(AC_FIND_GIF, [AC_MSG_CHECKING([for giflib]) AC_CACHE_VAL(ac_cv_lib_gif, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lgif -lX11 $LIBSOCKET" AC_TRY_LINK(dnl [ #ifdef __cplusplus extern "C" { #endif int GifLastError(void); #ifdef __cplusplus } #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ ], [return GifLastError();], eval "ac_cv_lib_gif=yes", eval "ac_cv_lib_gif=no") LIBS="$ac_save_LIBS" ])dnl if eval "test \"`echo $ac_cv_lib_gif`\" = yes"; then AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_LIBGIF) else AC_MSG_ERROR(You need giflib23. Please install the kdesupport package) fi ]) AC_DEFUN(AC_FIND_JPEG, [AC_MSG_CHECKING([for jpeglib]) AC_CACHE_VAL(ac_cv_lib_jpeg, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -ljpeg -lm" AC_TRY_LINK( [/* Override any gcc2 internal prototype to avoid an error. */ struct jpeg_decompress_struct; typedef struct jpeg_decompress_struct * j_decompress_ptr; typedef int size_t; #ifdef __cplusplus extern "C" { #endif void jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize); #ifdef __cplusplus } #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ ], [jpeg_CreateDecompress(0L, 0, 0);], eval "ac_cv_lib_jpeg=-ljpeg", eval "ac_cv_lib_jpeg=no") LIBS="$ac_save_LIBS" dnl what to do, if the normal way fails: if eval "test \"`echo $ac_cv_lib_jpeg`\" = no"; then if test -f "$kde_libraries/libjpeg.so"; then test -f ./libjpegkde.so || $LN_S $kde_libraries/libjpeg.so ./libjpegkde.so ac_cv_lib_jpeg="-L\${topdir} -ljpegkde" else if test -f "$kde_libraries/libjpeg.sl"; then test -f ./libjpegkde.sl ||$LN_S $kde_libraries/libjpeg.sl ./libjpegkde.sl ac_cv_lib_jpeg="-L\${topdir} -ljpegkde" else if test -f "$kde_libraries/libjpeg.a"; then test -f ./libjpegkde.a || $LN_S $kde_libraries/libjpeg.a ./libjpegkde.a ac_cv_lib_jpeg="-L\${topdir} -ljpegkde" else AC_MSG_ERROR([ You need jpeglib6a. Please install the kdesupport package. If you have already installed kdesupport, you may have an old libjpeg somewhere. In this case copy $KDEDIR/lib/libjpeg* to /usr/lib. ]) fi fi fi fi ])dnl if eval "test ! \"`echo $ac_cv_lib_jpeg`\" = no"; then LIBJPEG="$ac_cv_lib_jpeg" AC_SUBST(LIBJPEG) AC_MSG_RESULT($ac_cv_lib_jpeg) AC_DEFINE_UNQUOTED(HAVE_LIBJPEG) fi ]) AC_DEFUN(AC_FIND_ZLIB, [ AC_MSG_CHECKING([for libz]) AC_CACHE_VAL(ac_cv_lib_z, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lz $LIBSOCKET" AC_TRY_LINK(dnl [ #include ], [return (zlibVersion() == ZLIB_VERSION); ], eval "ac_cv_lib_z='-lz'", eval "ac_cv_lib_z=no") LIBS="$ac_save_LIBS" ])dnl if eval "test ! \"`echo $ac_cv_lib_z`\" = no"; then dnl AC_DEFINE_UNQUOTED(HAVE_LIBZ) LIBZ="$ac_cv_lib_z" AC_SUBST(LIBZ) AC_MSG_RESULT($ac_cv_lib_z) else AC_MSG_RESULT(no) LIBZ="" AC_SUBST(LIBZ) fi ]) AC_DEFUN(AC_FIND_TIFF, [ AC_REQUIRE([AC_FIND_ZLIB]) AC_REQUIRE([AC_FIND_JPEG]) AC_MSG_CHECKING([for libtiff]) AC_CACHE_VAL(ac_cv_lib_tiff, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -ltiff $LIBJPEG $LIBZ -lX11 $LIBSOCKET" AC_TRY_LINK(dnl [ #include ], [return (TIFFOpen( "", "r") == 0); ], eval "ac_cv_lib_tiff='-ltiff $LIBJPEG $LIBZ'", eval "ac_cv_lib_tiff=no") LIBS="$ac_save_LIBS" ])dnl if eval "test ! \"`echo $ac_cv_lib_tiff`\" = no"; then AC_DEFINE_UNQUOTED(HAVE_LIBTIFF) LIBTIFF="$ac_cv_lib_tiff" AC_SUBST(LIBTIFF) AC_MSG_RESULT($ac_cv_lib_tiff) else AC_MSG_RESULT(no) LIBTIFF="" AC_SUBST(LIBTIFF) fi ]) AC_DEFUN(AC_FIND_PNG, [ AC_REQUIRE([AC_FIND_ZLIB]) AC_MSG_CHECKING([for libpng]) AC_CACHE_VAL(ac_cv_lib_png, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lpng $LIBZ -lm -lX11 $LIBSOCKET" AC_LANG_C AC_TRY_LINK(dnl [ #include ], [ png_structp png_ptr = png_create_read_struct( // image ptr PNG_LIBPNG_VER_STRING, 0, 0, 0 ); return( png_ptr != 0 ); ], eval "ac_cv_lib_png='-lpng $LIBZ -lm'", eval "ac_cv_lib_png=no") LIBS="$ac_save_LIBS" ])dnl if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then AC_DEFINE_UNQUOTED(HAVE_LIBPNG) LIBPNG="$ac_cv_lib_png" AC_SUBST(LIBPNG) AC_MSG_RESULT($ac_cv_lib_png) else AC_MSG_RESULT(no) LIBPNG="" AC_SUBST(LIBPNG) fi ]) AC_DEFUN(AC_CHECK_BOOL, [ AC_MSG_CHECKING([for bool]) AC_CACHE_VAL(ac_cv_have_bool, [ AC_LANG_CPLUSPLUS AC_TRY_COMPILE([], [bool aBool = true;], [ac_cv_have_bool="yes"], [ac_cv_have_bool="no"]) ]) dnl end AC_CHECK_VAL AC_MSG_RESULT($ac_cv_have_bool) if test "$ac_cv_have_bool" = "yes"; then AC_DEFINE(HAVE_BOOL) fi ]) AC_DEFUN(AC_CHECK_GNU_EXTENSIONS, [ AC_MSG_CHECKING(if you need GNU extensions) AC_CACHE_VAL(ac_cv_gnu_extensions, [ cat > conftest.c << EOF #include #ifdef __GNU_LIBRARY__ yes #endif EOF if (eval "$ac_cpp conftest.c") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* ac_cv_gnu_extensions=yes else ac_cv_gnu_extensions=no fi ]) AC_MSG_RESULT($ac_cv_gnu_extensions) if test "$ac_cv_gnu_extensions" = "yes"; then AC_DEFINE_UNQUOTED(_GNU_SOURCE) fi ]) AC_DEFUN(AC_CHECK_COMPILERS, [ dnl this is somehow a fat lie, but prevents other macros from double checking AC_PROVIDE([AC_PROG_CC]) AC_PROVIDE([AC_PROG_CPP]) AC_ARG_ENABLE(debug,[ --enable-debug creates debugging code [default=no]], [ if test $enableval = "no"; dnl then ac_use_debug_code="no" else ac_use_debug_code="yes" fi ], [ac_use_debug_code="no"]) AC_ARG_ENABLE(strict,[ --enable-strict compiles with strict compiler options (may not work!)], [ if test $enableval = "no"; then ac_use_strict_options="no" else ac_use_strict_options="yes" fi ], [ac_use_strict_options="no"]) dnl this was AC_PROG_CC. I had to include it manualy, since I had to patch it AC_MSG_CHECKING(for a C-Compiler) dnl if there is one, print out. if not, don't matter AC_MSG_RESULT($CC) if test -z "$CC"; then AC_CHECK_PROG(CC, gcc, gcc) fi if test -z "$CC"; then AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) fi if test -z "$CC"; then AC_CHECK_PROG(CC, xlc, xlc) fi test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) AC_PROG_CC_WORKS AC_PROG_CC_GNU if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi if test -z "$CFLAGS"; then if test "$ac_use_debug_code" = "yes"; then AC_PROG_CC_G if test $ac_cv_prog_cc_g = yes; then CFLAGS="-g" fi else if test "$GCC" = "yes"; then CFLAGS="-O2" else CFLAGS="" fi fi if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall" if test "$ac_use_strict_options" = "yes"; then CFLAGS="$CFLAGS -W -ansi -pedantic" fi fi fi case "$host" in *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";; esac if test -z "$LDFLAGS" && test "$ac_use_debug_code" = "no" && test "$GCC" = "yes"; then LDFLAGS="-s" fi dnl this is AC_PROG_CPP. I had to include it here, since autoconf checks dnl dependecies between AC_PROG_CPP and AC_PROG_CC (or is it automake?) AC_MSG_CHECKING(how to run the C preprocessor) # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then AC_CACHE_VAL(ac_cv_prog_CPP, [ # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. dnl Use a header file that comes with gcc, so configuring glibc dnl with a fresh cross-compiler works. AC_TRY_CPP([#include Syntax Error], , CPP="${CC-cc} -E -traditional-cpp" AC_TRY_CPP([#include Syntax Error], , CPP=/lib/cpp)) ac_cv_prog_CPP="$CPP"])dnl CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi AC_MSG_RESULT($CPP) AC_SUBST(CPP)dnl AC_MSG_CHECKING(for a C++-Compiler) dnl if there is one, print out. if not, don't matter AC_MSG_RESULT($CXX) if test -z "$CXX"; then AC_CHECK_PROG(CXX, g++, g++) fi if test -z "$CXX"; then AC_CHECK_PROG(CXX, CC, CC) fi if test -z "$CXX"; then AC_CHECK_PROG(CXX, xlC, xlC) fi if test -z "$CXX"; then AC_CHECK_PROG(CXX, DCC, DCC) fi test -z "$CXX" && AC_MSG_ERROR([no acceptable C++-compiler found in \$PATH]) AC_PROG_CXX_WORKS AC_PROG_CXX_GNU if test $ac_cv_prog_gxx = yes; then GXX=yes else AC_MSG_CHECKING(whether we are using SPARC CC) GXX= cat > conftest.C << EOF #ifdef __SUNPRO_CC yes; #endif EOF ac_try="$CXX -E conftest.C" if { (eval echo configure:__online__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_CC=yes else ac_cv_prog_CC=no fi AC_MSG_RESULT($ac_cv_prog_CC) fi if test -z "$CXXFLAGS"; then if test "$ac_use_debug_code" = "yes"; then AC_PROG_CXX_G if test $ac_cv_prog_cxx_g = yes; then CXXFLAGS="-g" fi if test "$ac_cv_prog_CC" = "yes"; then CXXFLAGS="$CXXFLAGS -pto" fi else if test "$GXX" = "yes"; then CXXFLAGS="-O2" else if test "$ac_cv_prog_CC" = "yes"; then CXXFLAGS="-pto -O2" else CXXFLAGS="" fi fi fi if test "$GXX" = "yes"; then CXXFLAGS="$CXXFLAGS -Wall" if test "$ac_use_strict_options" = "yes"; then CXXFLAGS="$CXXFLAGS -W -ansi -Wtraditional -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Woverloaded-virtual -Wbad-function-cast -Wsynth" fi if test "$kde_very_strict" = "yes"; then CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wshadow -Wredundant-decls -Wconversion" fi fi fi case "$host" in *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";; esac ]) dnl just a wrapper to clean up configure.in AC_DEFUN(KDE_PROG_LIBTOOL, [ AC_REQUIRE([AM_ENABLE_SHARED]) AC_REQUIRE([AM_ENABLE_STATIC]) dnl libtool is only for C, so I must force him dnl to find the correct flags for C++ ac_save_cc=$CC ac_save_cflags="$CFLAGS" CC=$CXX CFLAGS="$CXXFLAGS" AM_PROG_LIBTOOL dnl for libraries CC=$ac_save_cc CFLAGS="$ac_save_cflags" ]) AC_DEFUN(KDE_DO_IT_ALL, [ AC_CANONICAL_SYSTEM AC_ARG_PROGRAM AM_INIT_AUTOMAKE($1, $2) AM_DISABLE_LIBRARIES AC_PREFIX_DEFAULT(${KDEDIR:-/usr/local/kde}) AC_CHECK_COMPILERS KDE_PROG_LIBTOOL AM_KDE_WITH_NLS AC_PATH_KDE ]) AC_DEFUN(AC_CHECK_RPATH, [ AC_MSG_CHECKING(for rpath) AC_ARG_ENABLE(rpath, [ --disable-rpath do not use the rpath feature of ld], USE_RPATH=$enableval, USE_RPATH=yes) if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then KDE_RPATH="-rpath \$(kde_libraries)" if test -n "$qt_libraries"; then KDE_RPATH="$KDE_RPATH -rpath \$(qt_libraries)" fi dnl $x_libraries is set to /usr/lib in case if test -n "$X_LDFLAGS"; then KDE_RPATH="$KDE_RPATH -rpath \$(x_libraries)" fi if test -n "$KDE_EXTRA_RPATH"; then KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)" fi fi AC_SUBST(KDE_EXTRA_RPATH) AC_SUBST(KDE_RPATH) AC_MSG_RESULT($USE_RPATH) ]) dnl Check for the type of the third argument of getsockname AC_DEFUN(AC_CHECK_KSIZE_T, [AC_MSG_CHECKING(for the third argument of getsockname) AC_LANG_CPLUSPLUS AC_CACHE_VAL(ac_cv_ksize_t, [AC_TRY_COMPILE([ #include #include ],[ socklen_t a=0; getsockname(0,(struct sockaddr*)0, &a); ], ac_cv_ksize_t=socklen_t, ac_cv_ksize_t=) if test -z "$ac_cv_ksize_t"; then ac_safe_cxxflags="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="-Werror $CXXFLAGS" fi AC_TRY_COMPILE([ #include #include ],[ int a=0; getsockname(0,(struct sockaddr*)0, &a); ], ac_cv_ksize_t=int, ac_cv_ksize_t=size_t) CXXFLAGS="$ac_safe_cxxflags" fi ]) if test -z "$ac_cv_ksize_t"; then ac_cv_ksize_t=int fi AC_MSG_RESULT($ac_cv_ksize_t) AC_DEFINE_UNQUOTED(ksize_t, $ac_cv_ksize_t) ]) dnl This is a merge of some macros out of the gettext aclocal.m4 dnl since we don't need anything, I took the things we need AC_DEFUN(AM_KDE_WITH_NLS, [AC_MSG_CHECKING([whether NLS is requested]) AC_LANG_CPLUSPLUS 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) dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then AC_DEFINE(ENABLE_NLS) AM_PATH_PROG_WITH_TEST_KDE(MSGFMT, msgfmt, [test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"], msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) if test -z "`$MSGFMT --version 2>&1 | grep 'GNU gettext'`"; then AC_MSG_RESULT([found msgfmt program is not GNU msgfmt; ignore it]) msgfmt=":" fi AC_SUBST(MSGFMT) AM_PATH_PROG_WITH_TEST_KDE(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext programs is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi AC_SUBST(XGETTEXT) fi ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # serial 1 # Stephan Kulow: I appended a _KDE against name conflicts dnl AM_PATH_PROG_WITH_TEST_KDE(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST_KDE, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # serial 1 AC_DEFUN(AM_LC_MESSAGES, [if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES) fi fi]) dnl From Jim Meyering. dnl FIXME: migrate into libit. AC_DEFUN(AM_FUNC_OBSTACK, [AC_CACHE_CHECK([for obstacks], am_cv_func_obstack, [AC_TRY_LINK([#include "obstack.h"], [struct obstack *mem;obstack_free(mem,(char *) 0)], am_cv_func_obstack=yes, am_cv_func_obstack=no)]) if test $am_cv_func_obstack = yes; then AC_DEFINE(HAVE_OBSTACK) else LIBOBJS="$LIBOBJS obstack.o" fi ]) dnl From Jim Meyering. Use this if you use the GNU error.[ch]. dnl FIXME: Migrate into libit AC_DEFUN(AM_FUNC_ERROR_AT_LINE, [AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line, [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");], am_cv_lib_error_at_line=yes, am_cv_lib_error_at_line=no)]) if test $am_cv_lib_error_at_line = no; then LIBOBJS="$LIBOBJS error.o" fi AC_SUBST(LIBOBJS)dnl ]) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # serial 1 # Stephan Kulow: I put a KDE in it to avoid name conflicts AC_DEFUN(AM_KDE_GNU_GETTEXT, [AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([AM_KDE_WITH_NLS])dnl AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h values.h alloca.h]) AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ __argz_count __argz_stringify __argz_next stpcpy]) AM_LC_MESSAGES if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi ]) AC_DEFUN(AC_HAVE_XPM, [AC_REQUIRE_CPP()dnl test -z "$XPM_LDFLAGS" && XPM_LDFLAGS= test -z "$XPM_INCLUDE" && XPM_INCLUDE= AC_ARG_WITH(xpm, [ --without-xpm disable color pixmap XPM tests], xpm_test=$withval, xpm_test="yes") if test "x$xpm_test" = xno; then ac_cv_have_xpm=no else AC_MSG_CHECKING(for XPM) AC_CACHE_VAL(ac_cv_have_xpm, [ AC_LANG_C ac_save_ldflags="$LDFLAGS" ac_save_cflags="$CFLAGS" LDFLAGS="$LDFLAGS $XPM_LDFLAGS $all_libraries -lXpm -lX11 -lXext $LIBSOCKET" CFLAGS="$CFLAGS $X_INCLUDES" test ! -z "$XPM_INCLUDE" && CFLAGS="-I$XPM_INCLUDE $CFLAGS" AC_TRY_LINK([#include ],[], ac_cv_have_xpm="yes",ac_cv_have_xpm="no") LDFLAGS="$ac_save_ldflags" CFLAGS="$ac_save_cflags" ])dnl if test "$ac_cv_have_xpm" = no; then AC_MSG_RESULT(no) XPM_LDFLAGS="" XPMINC="" $2 else AC_DEFINE(HAVE_XPM) if test "$XPM_LDFLAGS" = ""; then XPMLIB="-lXpm" else XPMLIB="-L$XPM_LDFLAGS -lXpm" fi if test "$XPM_INCLUDE" = ""; then XPMINC="" else XPMINC="-I$XPM_INCLUDE" fi AC_MSG_RESULT(yes) $1 fi fi AC_SUBST(XPMINC) AC_SUBST(XPMLIB) ]) AC_DEFUN(AC_HAVE_GL, [AC_REQUIRE_CPP()dnl test -z "$GL_LDFLAGS" && GL_LDFLAGS= test -z "$GL_INCLUDE" && GL_INCLUDE= AC_ARG_WITH(gl, [ --without-gl disable 3D GL modes], gl_test=$withval, gl_test="yes") if test "x$gl_test" = xno; then ac_cv_have_gl=no else AC_MSG_CHECKING(for GL) AC_CACHE_VAL(ac_cv_have_gl, [ AC_LANG_C ac_save_ldflags="$LDFLAGS" ac_save_cflags="$CFLAGS" LDFLAGS="$LDFLAGS $GL_LDFLAGS $all_libraries -lMesaGL -lMesaGLU -lX11 -lXext -lm $LIBSOCKET" CFLAGS="$CFLAGS $X_INCLUDES" test ! -z "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS" AC_TRY_LINK([],[], ac_cv_have_gl="yes",ac_cv_have_gl="no") LDFLAGS="$ac_save_ldflags" CFLAGS="$ac_save_cflags" ])dnl if test "$ac_cv_have_gl" = no; then AC_MSG_RESULT(no) GL_LDFLAGS="" GLINC="" $2 else AC_DEFINE(HAVE_GL) if test "$GL_LDFLAGS" = ""; then GLLIB="-lMesaGL -lMesaGLU" else GLLIB="-L$GL_LDFLAGS -lMesaGL -lMesaGLU" fi if test "$GL_INCLUDE" = ""; then GLINC="" else GLINC="-I$GL_INCLUDE" fi AC_MSG_RESULT(yes) $1 fi fi AC_SUBST(GLINC) AC_SUBST(GLLIB) ]) dnl PAM pam dnl Should test for PAM (Pluggable Authentication Modules) AC_DEFUN(AC_PATH_PAM_DIRECT, [ test -z "$pam_direct_test_library" && pam_direct_test_library=pam test -z "$pam_direct_test_include" && pam_direct_test_include=security/pam_appl.h for ac_dir in \ \ /usr/local/include \ /usr/include \ /usr/unsupported/include \ /opt/include \ /usr/pam/include \ /usr/local/pam/include \ /usr/lib/pam/include \ \ $extra_include \ ; \ do if test -r "$ac_dir/$pam_direct_test_include"; then no_pam= ac_pam_includes=$ac_dir break fi done # First see if replacing the include by lib works. for ac_dir in `echo "$ac_pam_includes" | sed s/include/lib/` \ \ /lib \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /lib/security \ /usr/security/lib \ $extra_lib \ ; \ do for ac_extension in a so sl; do if test -r $ac_dir/lib${pam_direct_test_library}.$ac_extension; then no_pam= ac_pam_libraries=$ac_dir break 2 fi done done ]) AC_DEFUN(AC_PATH_PAM, [AC_REQUIRE_CPP()dnl AC_CHECK_LIB(pam_misc, main, [PAM_MISC_LIB="-lpam_misc"], [], [-lpam -ldl]) AC_MSG_CHECKING(for PAM) AC_ARG_WITH(pam, [ --with-pam[=ARG] enable support for PAM: ARG=[yes|no|service name]], [ if test "x$withval" = "xyes"; then no_pam= default_pam=yes elif test "x$withval" = "xno"; then no_pam=yes else no_pam= pam_service="$withval" if test -z "$pam_service"; then default_pam=yes else default_pam= fi fi ], no_pam=yes ) if test ! "$no_pam" = yes; then AC_CACHE_VAL(ac_cv_path_pam, [ ac_pam_includes=NONE ac_pam_libraries=NONE if test -z "$pam_libraries"; then pam_libraries=NONE fi if test -z "$pam_includes"; then pam_includes=NONE fi AC_PATH_PAM_DIRECT test "x$pam_includes" = xNONE && pam_includes=$ac_pam_includes test "x$pam_libraries" = xNONE && pam_libraries=$ac_pam_libraries if test ! "x$pam_includes" = xNONE && test ! "x$pam_libraries" = xNONE; then ac_pam_libs="-lpam $PAM_MISC_LIB -ldl" ac_cv_path_pam="no_pam= ac_pam_includes=$ac_pam_includes ac_pam_libraries=$ac_pam_libraries ac_pam_libs=\"$ac_pam_libs\"" else ac_cv_path_pam="no_pam=yes" fi ]) eval "$ac_cv_path_pam" fi if test "$no_pam" = yes; then AC_MSG_RESULT(no) else AC_DEFINE(HAVE_PAM) PAMLIBS="$ac_pam_libs" test "x$pam_includes" = xNONE && pam_includes=$ac_pam_includes test "x$pam_libraries" = xNONE && pam_libraries=$ac_pam_libraries AC_MSG_RESULT([libraries $pam_libraries, headers $pam_includes]) if test "$default_pam" = yes; then AC_MSG_RESULT(["default pam service name will be used"]) else AC_DEFINE_UNQUOTED(KDE_PAM_SERVICE,"$pam_service") AC_MSG_RESULT(["pam service name will be: " $pam_service]) fi dnl test whether struct pam_message is const (Linux) or not (Sun) pam_appl_h="$ac_pam_includes/security/pam_appl.h" AC_MSG_CHECKING(for const pam_message) AC_EGREP_HEADER([struct pam_message], $pam_appl_h, [ AC_EGREP_HEADER([const struct pam_message], $pam_appl_h, [AC_MSG_RESULT(["const: Linux-type PAM"]) ], [AC_MSG_RESULT(["nonconst: Sun-type PAM"]) AC_DEFINE(PAM_MESSAGE_NONCONST)] )], [AC_MSG_RESULT(["not found - assume const, Linux-type PAM"])] ) fi if test "x$pam_libraries" != x && test "x$pam_libraries" != xNONE ; then PAMLIBPATHS="-L$pam_libraries" fi if test "x$pam_includes" != x && test "x$pam_includes" != xNONE ; then PAMINC="-I$pam_includes" fi AC_SUBST(PAMINC) AC_SUBST(PAMLIBS) AC_SUBST(PAMLIBPATHS) ]) AC_DEFUN(KDE_CHECK_LIBDL, [ AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ac_cv_have_dlfcn=yes ]) AC_CHECK_LIB(dld, shl_unload, [ LIBDL="-ldld" ac_cv_have_shload=yes ]) AC_SUBST(LIBDL) ]) AC_DEFUN(KDE_CHECK_DLOPEN, [ KDE_CHECK_LIBDL AC_CHECK_HEADERS(dlfcn.h dl.h) if test "$ac_cv_header_dlfcn_h" = "no"; then ac_cv_have_dlfcn=no fi if test "$ac_cv_header_dl_h" = "no"; then ac_cv_have_shload=no fi enable_dlopen=no AC_ARG_ENABLE(dlopen, [ --disable-dlopen link staticly [default=no]] , [if test "$enableval" = yes; then enable_dlopen=yes fi], enable_dlopen=yes) # override the user's opinion, if we know it better ;) if test "$ac_cv_have_dlfcn" = "no" && test "$ac_cv_have_shload" = "no"; then enable_dlopen=no fi if test "$ac_cv_have_dlfcn" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_DLFCN) fi if test "$ac_cv_have_shload" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_SHLOAD) fi if test "$enable_dlopen" = no ; then test -n "$1" && eval $1 else test -n "$2" && eval $2 fi ]) AC_DEFUN(KDE_CHECK_DYNAMIC_LOADING, [ KDE_CHECK_DLOPEN(libtool_enable_shared=no, libtool_enable_static=no) KDE_PROG_LIBTOOL AC_MSG_CHECKING([dynamic loading]) eval "`egrep '^build_libtool_libs=' libtool`" if test "$build_libtool_libs" = "yes" && test "$enable_dlopen" = "yes"; then dynamic_loading=yes AC_DEFINE_UNQUOTED(HAVE_DYNAMIC_LOADING) else dynamic_loading=no fi AC_MSG_RESULT($dynamic_loading) if test "$dynamic_loading" = "yes"; then $1 else $2 fi ]) AC_DEFUN(KDE_ADD_INCLUDES, [ if test -z "$1"; then test_include="Pix.h" else test_include="$1" fi AC_MSG_CHECKING([for libg++ ($test_include)]) AC_CACHE_VAL(kde_cv_libgpp_includes, [ kde_cv_libgpp_includes=no for ac_dir in \ \ /usr/include/g++ \ /usr/include \ /usr/unsupported/include \ /opt/include \ $extra_include \ ; \ do if test -r "$ac_dir/$test_include"; then kde_cv_libgpp_includes=$ac_dir break fi done ]) AC_MSG_RESULT($kde_cv_libgpp_includes) if test "$kde_cv_libgpp_includes" != "no"; then all_includes="-I$kde_cv_libgpp_includes $all_includes" fi ]) ]) AC_DEFUN(KDE_CHECK_MICO, [ AC_REQUIRE([KDE_CHECK_LIBDL]) AC_MSG_CHECKING(for MICO) AC_ARG_WITH(micodir, [ --with-micodir=micodir where mico is installed ], kde_micodir=$withval, kde_micodir=/usr/local ) AC_MSG_RESULT($kde_micodir) if test ! -r $kde_micodir/include/CORBA.h; then AC_MSG_ERROR([No CORBA.h found, specify another micodir]) fi MICO_INCLUDES=-I$kde_micodir/include AC_SUBST(MICO_INCLUDES) MICO_LDFLAGS=-L$kde_micodir/lib AC_SUBST(MICO_LDFLAGS) AC_MSG_CHECKING([for MICO version]) AC_CACHE_VAL(kde_cv_mico_version, [ AC_LANG_C cat >conftest.$ac_ext < #include int main() { printf("MICO_VERSION=%s\n",MICO_VERSION); return (0); } EOF ac_compile='${CC-gcc} $CFLAGS $MICO_INCLUDES conftest.$ac_ext -o conftest' if AC_TRY_EVAL(ac_compile); then if eval `./conftest 2>&5`; then kde_cv_mico_version=$MICO_VERSION else AC_MSG_ERROR([your system is not able to execute a small application to find MICO version! Check $kde_micodir/include/mico/version.h]) fi else AC_MSG_ERROR([your system is not able to compile a small application to find MICO version! Check $kde_micodir/include/mico/version.h]) fi ]) dnl installed MICO version mico_v_maj=`echo $kde_cv_mico_version | sed -e 's/^\(.*\)\..*\..*$/\1/'` mico_v_mid=`echo $kde_cv_mico_version | sed -e 's/^.*\.\(.*\)\..*$/\1/'` mico_v_min=`echo $kde_cv_mico_version | sed -e 's/^.*\..*\.\(.*\)$/\1/'` dnl required MICO version req_v_maj=`echo $1 | sed -e 's/^\(.*\)\..*\..*$/\1/'` req_v_mid=`echo $1 | sed -e 's/^.*\.\(.*\)\..*$/\1/'` req_v_min=`echo $1 | sed -e 's/^.*\..*\.\(.*\)$/\1/'` if test "$mico_v_maj" -lt "$req_v_maj" || \ ( test "$mico_v_maj" -eq "$req_v_maj" && \ test "$mico_v_mid" -lt "$req_v_mid" ) || \ ( test "$mico_v_mid" -eq "$req_v_mid" && \ test "$mico_v_min" -lt "$req_v_min" ) then AC_MSG_ERROR([found MICO version $kde_cv_mico_version but version $1 \ at least is required. You should upgrade MICO.]) else AC_MSG_RESULT([$kde_cv_mico_version (minimum version $1, ok)]) fi LIBMICO="-lmico$kde_cv_mico_version $LIBDL" AC_SUBST(LIBMICO) IDL=$kde_micodir/bin/idl AC_SUBST(IDL) ]) AC_DEFUN(KDE_CHECK_MINI_STL, [ AC_REQUIRE([KDE_CHECK_MICO]) AC_MSG_CHECKING(if we use mico's mini-STL) AC_CACHE_VAL(kde_cv_have_mini_stl, [ AC_LANG_CPLUSPLUS kde_save_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $MICO_INCLUDES" AC_TRY_COMPILE( [ #include ], [ #ifdef HAVE_MINI_STL #error "nothing" #endif ], kde_cv_have_mini_stl=no, kde_cv_have_mini_stl=yes) CXXFLAGS="$kde_save_cxxflags" ]) AC_MSG_RESULT($kde_cv_have_mini_stl) if test "$kde_cv_have_mini_stl" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_MINI_STL) fi ]) ]) AC_DEFUN(KDE_CHECK_LIBPTHREAD, [ AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"], LIBPTHREAD= ) AC_SUBST(LIBPTHREAD) ]) AC_DEFUN(KDE_TRY_LINK_PYTHON, [ AC_CACHE_VAL(kde_cv_try_link_python_$1, [ kde_save_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $PYTHONINC" kde_save_libs="$LIBS" LIBS="$LIBS $LIBPYTHON $2 $LIBDL $LIBSOCKET" kde_save_ldflags="$LDFLAGS" LDFLAGS="$LDFLAGS $PYTHONLIB" AC_TRY_LINK( [ #include ],[ PySys_SetArgv(1, 0); ], [kde_cv_try_link_python_$1=yes], [kde_cv_try_link_python_$1=no] ) CXXFLAGS="$kde_save_cxxflags" LIBS="$kde_save_libs" LDFLAGS="$kde_save_ldflags" ]) if test "$kde_cv_try_link_python_$1" = "yes"; then $3 else $4 fi ]) AC_DEFUN(KDE_CHECK_PYTHON, [ AC_REQUIRE([KDE_CHECK_LIBDL]) AC_REQUIRE([KDE_CHECK_LIBPTHREAD]) if test -z "$1"; then version="1.5" else version="$1" fi AC_MSG_CHECKING([for Python$version]) AC_ARG_WITH(pythondir, [ --with-pythondir=pythondir use python installed in pythondir ], [ ac_python_dir=$withval ], ac_python_dir=/usr/local ) python_incdirs="$ac_python_dir/include/python$version /usr/include/python$version /usr/local/include/python$version /usr/local/include" AC_FIND_FILE(Python.h, $python_incdirs, python_incdir) if test ! -r $python_incdir/Python.h; then AC_MSG_ERROR(Python.h not found.) fi PYTHONINC=-I$python_incdir python_libdirs="$ac_python_dir/lib/python$version/config /usr/lib/python$version/config /usr/local/python$version/config" AC_FIND_FILE(libpython$version.a, $python_libdirs, python_libdir) if test ! -r $python_libdir/libpython$version.a; then AC_MSG_ERROR(libpython$version.a not found.) fi PYTHONLIB=-L$python_libdir LIBPYTHON=-lpython$version AC_MSG_RESULT(header $python_incdir library $python_libdir) dnl Note: this test is very weak AC_MSG_CHECKING(if an Python application links) KDE_TRY_LINK_PYTHON(normal, "", AC_MSG_RESULT(yes), [ AC_MSG_RESULT(no) AC_MSG_CHECKING(if Python depends on -lpthread) KDE_TRY_LINK_PYTHON(pthread, "$LIBPTHREAD", [ AC_MSG_RESULT(yes) LIBPYTHON="$LIBPYTHON $LIBPTHREAD $LIBDL" ], [ AC_MSG_RESULT(no) AC_MSG_CHECKING(if Python depeds on -ltcl) KDE_TRY_LINK_PYTHON(tcl, "-ltcl", [ AC_MSG_RESULT(yes) LIBPYTHON="$LIBPYTHON -ltcl" ], [ AC_MSG_RESULT(no) AC_MSG_WARN([it seems, Python depends on another library. Pleae use \"make LIBPTYHON='-lpython$version -lotherlib'\" to fix this and contact the authors to let them know about this problem]) ]) ]) ]) AC_SUBST(PYTHONINC) AC_SUBST(PYTHONLIB) AC_SUBST(LIBPYTHON) ]) AC_DEFUN(KDE_CHECK_STL_SGI, [ AC_MSG_CHECKING([if STL implementation is SGI like]) AC_CACHE_VAL(kde_cv_stl_type_sgi, [ AC_TRY_COMPILE([ #include ],[ string astring="Hallo Welt."; astring.erase(0, 6); // now astring is "Welt" return 0; ], kde_cv_stl_type_sgi=yes, kde_cv_stl_type_sgi=no) ]) AC_MSG_RESULT($kde_cv_stl_type_sgi) if test "$kde_cv_stl_type_sgi" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_SGI_STL) fi ]) AC_DEFUN(KDE_CHECK_STL_HP, [ AC_MSG_CHECKING([if STL implementation is HP like]) AC_CACHE_VAL(kde_cv_stl_type_hp, [ AC_TRY_COMPILE([ #include ],[ string astring="Hello World"; astring.remove(0, 6); // now astring is "World" return 0; ], kde_cv_stl_type_hp=yes, kde_cv_stl_type_hp=no) ]) AC_MSG_RESULT($kde_cv_stl_type_hp) if test "$kde_cv_stl_type_hp" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_HP_STL) fi ]) AC_DEFUN(KDE_CHECK_STL, [ KDE_CHECK_STL_SGI if test "$kde_cv_stl_type_sgi" = "no"; then KDE_CHECK_STL_HP if test "$kde_cv_stl_type_hp" = "no"; then AC_MSG_ERROR("no known STL type found") fi fi ]) AC_DEFUN(AC_FIND_QIMGIO, [AC_REQUIRE([AC_FIND_JPEG]) AC_MSG_CHECKING([for qimgio]) AC_CACHE_VAL(ac_cv_lib_qimgio, [ac_save_LIBS="$LIBS" LIBS="$all_libraries -lqimgio -lpng -lz -lqt $LIBJPEG -lX11 $LIBSOCKET" AC_TRY_LINK(dnl [ void qInitImageIO (); ], [qInitImageIO();], eval "ac_cv_lib_qimgio=yes", eval "ac_cv_lib_qimgio=no") LIBS="$ac_save_LIBS" ])dnl if eval "test \"`echo $ac_cv_lib_qimgio`\" = yes"; then LIBQIMGIO="-lqimgio -lpng -lz $LIBJPEG" AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(HAVE_QIMGIO) AC_SUBST(LIBQIMGIO) else AC_MSG_RESULT(not found) fi ]) AC_DEFUN(KDE_CHECK_ANSI, [ AC_MSG_CHECKING([for strdup]) AC_CACHE_VAL(kde_cv_stl_type_sgi, [ AC_LANG_CPLUSPLUS save_CXXFLAGS="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="$CXXFLAGS -pedantic-errors" fi AC_TRY_COMPILE([ #include ],[ char buffer[] = "Hallo"; strdup(buffer) ], kde_cv_has_strdup=yes, kde_cv_has_strdup=no) CXXFLAGS="$save_CXXFLAGS" ]) AC_MSG_RESULT($kde_cv_has_strdup) if test "$kde_cv_has_strdup" = "yes"; then AC_DEFINE_UNQUOTED(HAVE_STRDUP) fi ]) AC_DEFUN(KDE_CHECK_INSURE, [ AC_ARG_ENABLE(insure, [ --enable-insure use insure++ for debugging [default=no]], [ if test $enableval = "no"; dnl then ac_use_insure="no" else ac_use_insure="yes" fi ], [ac_use_insure="no"]) AC_MSG_CHECKING(if we will use Insure++ to debug) AC_MSG_RESULT($ac_use_insure) if test "$ac_use_insure" = "yes"; dnl then CC="insure"; CXX="insure"; dnl CFLAGS="$CLAGS -fno-rtti -fno-exceptions "???? fi ]) dnl this is for kdm: AC_DEFUN(AC_CHECK_KDM, [ AC_CHECK_FUNCS(getsecretkey) dnl checks for X server AC_PATH_PROG(X_SERVER, X) if test ! -z "$X_SERVER"; then X_SERVER=`echo $X_SERVER | sed -e 's+/X$++'` AC_DEFINE_UNQUOTED(XBINDIR,$X_SERVER) XBINDIR=$X_SERVER AC_SUBST(XBINDIR) fi dnl This one tries to find XDMDIR for config files AC_ARG_WITH(xdmdir, [ --with-xdmdir If the xdm config dir can't be found automaticly], [ ac_xdmdir=$withval], [ ac_xdmdir="no"]) AC_MSG_CHECKING([for xdm configuration dir]) if test "$ac_xdmdir" = "no"; then rm -fr conftestdir if mkdir conftestdir; then cd conftestdir cat > Imakefile <<'EOF' acfindxdm: @echo 'ac_xdmdir="$(XDMDIR)";' EOF if (xmkmf) > /dev/null 2> /dev/null && test -f Makefile; then eval `${MAKE-make} acfindxdm 2>/dev/null 2>/dev/null | grep -v make` fi cd .. rm -fr conftestdir dnl Check if Imake was right if test -f $ac_xdmdir/xdm-config; then AC_MSG_RESULT($ac_xdmdir) else dnl Here we must do something else dnl Maybe look for xdm-config in standard places, and dnl if that fails use a fresh copy in $KDEDIR/config/kdm/ AC_FIND_FILE(xdm-config,/etc/X11/xdm /var/X11/xdm /usr/openwin/xdm /usr/X11R6/lib/X11/xdm,ac_xdmdir) if test -f $ac_xdmdir/xdm-config; then AC_MSG_RESULT($ac_xdmdir) else if test "${prefix}" = NONE; then ac_xdmdir=$ac_default_prefix/config/kdm else ac_xdmdir=$prefix/config/kdm fi AC_MSG_RESULT([xdm config dir not found, installing defaults in $ac_xdmdir]) xdmconfigsubdir=xdmconfig AC_SUBST(xdmconfigsubdir) fi fi fi else if test -f $ac_xdmdir/xdm-config; then AC_MSG_RESULT($ac_xdmdir) else AC_MSG_RESULT([xdm config dir not found, installing defaults in $ac_xdmdir]) xdmconfigsubdir=xdmconfig AC_SUBST(xdmconfigsubdir) fi fi AC_DEFINE_UNQUOTED(XDMDIR,"$ac_xdmdir") AC_SUBST(ac_xdmdir) AC_PATH_PAM if test "x$no_pam" = "xyes"; then pam_support="no" else pam_support="yes" shadow_support="no" # if pam is installed, use it. We can't savely # test, if it works *sigh* fi AC_ARG_WITH(shadow, [ --with-shadow If you want shadow password support ], [ if test "$withval" = "yes"; then shadow_support="yes" else shadow_support="no" fi if test "$pam_support" = "yes" && test "$shadow_support=yes"; then AC_MSG_WARN("You can not define both pam AND shadow") fi ], [ if test -z "$shadow_support"; then shadow_support="no"; fi ] ) if test "$pam_support" = "yes"; then AC_CHECK_LIB(pam, main, [PASSWDLIB="-lpam -ldl" AC_DEFINE_UNQUOTED(HAVE_PAM_LIB)], [],-ldl) fi if test -z "$PASSWDLIB" && test "$shadow_support" = "yes"; then AC_CHECK_LIB(shadow, main, [ PASSWDLIB="-lshadow" AC_DEFINE_UNQUOTED(HAVE_SHADOW_LIB) ]) fi AC_SUBST(PASSWDLIB) AC_CHECK_LIB(util, main, [LIBUTIL="-lutil"]) dnl for FreeBSD AC_SUBST(LIBUTIL) AC_CHECK_LIB(s, main, [LIB_LIBS="-ls"]) dnl for AIX AC_SUBST(LIB_LIBS) AC_CHECK_LIB(Xdmcp, main, [LIBXDMCP="-lXdmcp"], , $X_LDFLAGS -lX11) dnl for Unixware AC_SUBST(LIBXDMCP) if test -n "$LIBXDMCP"; then ac_cpp_safe=$ac_cpp ac_cpp='$CXXCPP $CPPFLAGS $X_INCLUDES' AC_CHECK_HEADERS(X11/Xdmcp.h) ac_cpp=$ac_cpp_safe fi ]) # serial 24 AM_PROG_LIBTOOL AC_DEFUN(AM_PROG_LIBTOOL, [AC_REQUIRE([AM_ENABLE_SHARED])dnl AC_REQUIRE([AM_ENABLE_STATIC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AM_PROG_LD])dnl AC_REQUIRE([AM_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl dnl # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' AC_SUBST(LIBTOOL)dnl # Check for any special flags to pass to ltconfig. libtool_flags= test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" test "$silent" = yes && libtool_flags="$libtool_flags --silent" test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" # Some flags need to be propagated to the compiler or linker for good # libtool support. case "$host" in *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. CFLAGS="$CFLAGS -belf" ;; esac # Actually configure libtool. ac_aux_dir is where install-sh is found. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ || AC_MSG_ERROR([libtool configure failed]) ]) # AM_ENABLE_SHARED - implement the --enable-shared flag # Usage: AM_ENABLE_SHARED[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN(AM_ENABLE_SHARED_EX, [define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_PROVIDE(AM_ENABLE_SHARED) AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT] changequote([, ])dnl [ --enable-shared=PKGS only build shared libraries if the current package appears as an element in the PKGS list], [p=${PACKAGE-default} case "$enableval" in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$ac_save_ifs" ;; esac], enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl ]) AC_DEFUN(AM_ENABLE_SHARED, [define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT], changequote([, ])dnl [ if test "$enableval" = no; then enable_shared=no else enable_shared=yes fi ], enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl ]) # AM_DISABLE_SHARED - set the default shared flag to --disable-shared AC_DEFUN(AM_DISABLE_SHARED, [AM_ENABLE_SHARED(no)]) # AM_DISABLE_STATIC - set the default static flag to --disable-static AC_DEFUN(AM_DISABLE_STATIC, [AM_ENABLE_STATIC(no)]) # AM_ENABLE_STATIC - implement the --enable-static flag # Usage: AM_ENABLE_STATIC[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN(AM_ENABLE_STATIC_EX, [define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_PROVIDE(AM_ENABLE_STATIC) AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT] changequote([, ])dnl [ --enable-static=PKGS only build shared libraries if the current package appears as an element in the PKGS list], [p=${PACKAGE-default} case "$enableval" in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$ac_save_ifs" ;; esac], enable_static=AM_ENABLE_STATIC_DEFAULT)dnl ]) AC_DEFUN(AM_ENABLE_STATIC, [define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT], changequote([, ])dnl [if test "$enableval" = no; then enable_static=no else enable_static=yes fi], enable_static=AM_ENABLE_STATIC_DEFAULT)dnl ]) AC_DEFUN(AM_DISABLE_LIBRARIES, [ AC_PROVIDE([AM_ENABLE_STATIC]) AC_PROVIDE([AM_ENABLE_SHARED]) enable_static=no enable_shared=no ]) # AM_PROG_LD - find the path to the GNU or non-GNU linker AC_DEFUN(AM_PROG_LD, [AC_ARG_WITH(gnu-ld, [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC]) ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(ac_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog"; then ac_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" else ac_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$ac_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_SUBST(LD) AM_PROG_LD_GNU ]) AC_DEFUN(AM_PROG_LD_GNU, [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then ac_cv_prog_gnu_ld=yes else ac_cv_prog_gnu_ld=no fi]) ]) # AM_PROG_NM - find the path to a BSD-compatible name lister AC_DEFUN(AM_PROG_NM, [AC_MSG_CHECKING([for BSD-compatible nm]) AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -B" elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -p" else ac_cv_path_NM="$ac_dir/nm" fi break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm ;; esac]) NM="$ac_cv_path_NM" AC_MSG_RESULT([$NM]) AC_SUBST(NM) ]) # Do all the work for Automake. 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. # serial 1 dnl Usage: dnl AM_INIT_AUTOMAKE(package,version, [no-define]) AC_DEFUN(AM_INIT_AUTOMAKE, [AC_REQUIRE([AC_PROG_INSTALL]) PACKAGE=[$1] AC_SUBST(PACKAGE) VERSION=[$2] AC_SUBST(VERSION) dnl test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi ifelse([$3],, AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) AC_REQUIRE([AM_SANITY_CHECK]) AC_REQUIRE([AC_ARG_PROGRAM]) dnl FIXME This is truly gross. missing_dir=`cd $ac_aux_dir && pwd` AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) AC_REQUIRE([AC_PROG_MAKE_SET])]) # # Check to make sure that the build environment is sane. # AC_DEFUN(AM_SANITY_CHECK, [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftestfile # 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 conftestfile 2> /dev/null` if test "[$]*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "[$]*" != "X $srcdir/configure conftestfile" \ && test "[$]*" != "X conftestfile $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 test "[$]2" = conftestfile ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi rm -f conftest* AC_MSG_RESULT(yes)]) dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) dnl The program must properly implement --version. AC_DEFUN(AM_MISSING_PROG, [AC_MSG_CHECKING(for working $2) # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if ($2 --version) < /dev/null > /dev/null 2>&1; then $1=$2 AC_MSG_RESULT(found) else $1="$3/missing $2" AC_MSG_RESULT(missing) fi AC_SUBST($1)]) # Like AC_CONFIG_HEADER, but automatically create stamp file. AC_DEFUN(AM_CONFIG_HEADER, [AC_PREREQ([2.12]) AC_CONFIG_HEADER([$1]) dnl When config.status generates a header, we must update the stamp-h file. dnl This file resides in the same directory as the config header dnl that is generated. We must strip everything past the first ":", dnl and everything past the last "/". AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, <>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, <>; do case " <<$>>CONFIG_HEADERS " in *" <<$>>am_file "*<<)>> echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx ;; esac am_indx=`expr "<<$>>am_indx" + 1` done<<>>dnl>>) changequote([,]))]) dokvok-0.1.3/config.guess 755 764 144 57330 6431147005 10441 #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Written by Per Bothner . # The master version of this file is at the FSF in /home/gd/gnu/lib. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit system type (host/target name). # # Only a few systems have been added to this list; please add others # (but try to keep the structure clean). # # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 8/24/94.) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in alpha:OSF1:*:*) if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` fi # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. cat <dummy.s .globl main .ent main main: .frame \$30,0,\$26,0 .prologue 0 .long 0x47e03d80 # implver $0 lda \$2,259 .long 0x47e20c21 # amask $2,$1 srl \$1,8,\$2 sll \$2,2,\$2 sll \$0,3,\$0 addl \$1,\$0,\$0 addl \$2,\$0,\$0 ret \$31,(\$26),1 .end main EOF ${CC-cc} dummy.s -o dummy 2>/dev/null if test "$?" = 0 ; then ./dummy case "$?" in 7) UNAME_MACHINE="alpha" ;; 15) UNAME_MACHINE="alphaev5" ;; 14) UNAME_MACHINE="alphaev56" ;; 10) UNAME_MACHINE="alphapca56" ;; 16) UNAME_MACHINE="alphaev6" ;; esac fi rm -f dummy.s dummy echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` exit 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-cbm-sysv4 exit 0;; amiga:NetBSD:*:*) echo m68k-cbm-netbsd${UNAME_RELEASE} exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arc64:OpenBSD:*:*) echo mips64el-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hkmips:OpenBSD:*:*) echo mips-unknown-openbsd${UNAME_RELEASE} exit 0 ;; pmax:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sgi:OpenBSD:*:*) echo mips-unknown-openbsd${UNAME_RELEASE} exit 0 ;; wgrisc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; arm32:NetBSD:*:*) echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; SR2?01:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit 0;; Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit 0 ;; NILE:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; atari*:NetBSD:*:*) echo m68k-atari-netbsd${UNAME_RELEASE} exit 0 ;; atari*:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sun3*:NetBSD:*:*) echo m68k-sun-netbsd${UNAME_RELEASE} exit 0 ;; sun3*:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mac68k:NetBSD:*:*) echo m68k-apple-netbsd${UNAME_RELEASE} exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; 2020:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) sed 's/^ //' << EOF >dummy.c int main (argc, argv) int argc; char **argv; { #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF ${CC-cc} dummy.c -o dummy \ && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ && rm dummy.c dummy && exit 0 rm -f dummy.c dummy echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ -o ${TARGET_BINARY_INTERFACE}x = x ] ; then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit 0 ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i?86:AIX:*:*) echo i386-ibm-aix exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then sed 's/^ //' << EOF >dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 rm -f dummy.c dummy echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit 0 ;; *:AIX:*:4) if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=4.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[3478]??:HP-UX:*:*) case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;; 9000/8?? ) HP_ARCH=hppa1.0 ;; esac HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) sed 's/^ //' << EOF >dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 rm -f dummy.c dummy echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; i?86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*X-MP:*:*:*) echo xmp-cray-unicos exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} exit 0 ;; CRAY-2:*:*:*) echo cray2-cray-unicos exit 0 ;; F300:UNIX_System_V:*:*) FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit 0 ;; F301:UNIX_System_V:*:*) echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` exit 0 ;; hp3[0-9][05]:NetBSD:*:*) echo m68k-hp-netbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; i?86:BSD/386:*:* | *:BSD/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; *:NetBSD:*:*) echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; i*:CYGWIN*:*) echo i386-pc-cygwin32 exit 0 ;; i*:MINGW*:*) echo i386-pc-mingw32 exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin32 exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; *:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. ld_help_string=`ld --help 2>&1` ld_supported_emulations=`echo $ld_help_string \ | sed -ne '/supported emulations:/!d s/[ ][ ]*/ /g s/.*supported emulations: *// s/ .*// p'` case "$ld_supported_emulations" in i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; esac if test "${UNAME_MACHINE}" = "alpha" ; then sed 's/^ //' <dummy.s .globl main .ent main main: .frame \$30,0,\$26,0 .prologue 0 .long 0x47e03d80 # implver $0 lda \$2,259 .long 0x47e20c21 # amask $2,$1 srl \$1,8,\$2 sll \$2,2,\$2 sll \$0,3,\$0 addl \$1,\$0,\$0 addl \$2,\$0,\$0 ret \$31,(\$26),1 .end main EOF LIBC="" ${CC-cc} dummy.s -o dummy 2>/dev/null if test "$?" = 0 ; then ./dummy case "$?" in 7) UNAME_MACHINE="alpha" ;; 15) UNAME_MACHINE="alphaev5" ;; 14) UNAME_MACHINE="alphaev56" ;; 10) UNAME_MACHINE="alphapca56" ;; 16) UNAME_MACHINE="alphaev6" ;; esac objdump --private-headers dummy | \ grep ld.so.1 > /dev/null if test "$?" = 0 ; then LIBC="libc1" fi fi rm -f dummy.s dummy echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 elif test "${UNAME_MACHINE}" = "mips" ; then cat >dummy.c </dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 rm -f dummy.c dummy else # Either a pre-BFD a.out linker (linux-gnuoldld) # or one that does not give us useful --help. # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. # If ld does not provide *any* "supported emulations:" # that means it is gnuoldld. echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 case "${UNAME_MACHINE}" in i?86) VENDOR=pc; ;; *) VENDOR=unknown; ;; esac # Determine whether the default compiler is a.out or elf cat >dummy.c < main(argc, argv) int argc; char *argv[]; { #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); # else printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif # else printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif #else printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); #endif return 0; } EOF ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 rm -f dummy.c dummy fi ;; # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions # are messed up and put the nodename in both sysname and nodename. i?86:DYNIX/ptx:4*:*) echo i386-sequent-sysv4 exit 0 ;; i?86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} fi exit 0 ;; i?86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit 0 ;; pc:*:*:*) # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit 0 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit 0 ;; paragon:*:*:*) echo i860-intel-osf1 exit 0 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; M68*:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4.3${OS_REL} && exit 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; i?86:LynxOS:2.*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit 0 ;; PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; news*:NEWS-OS:*:6*) echo mips-sony-newsos6 exit 0 ;; R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 cat >dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) printf ("vax-dec-bsd\n"); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 rm -f dummy.c dummy # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi #echo '(Unable to guess system type)' 1>&2 exit 1 dokvok-0.1.3/config.h.bot 644 764 144 151 6416214751 10255 #ifndef HAVE_BOOL #define HAVE_BOOL typedef int bool; const bool false = 0; const bool true = 1; #endif dokvok-0.1.3/config.h.in 644 764 144 702 7027146015 10075 /* config.h.in. Generated automatically from configure.in by autoheader. */ /* Define if the C++ compiler supports BOOL */ #undef HAVE_BOOL /* defines which to take for ksize_t */ #undef ksize_t /* Define to 1 if NLS is requested. */ #undef ENABLE_NLS /* Name of package */ #undef PACKAGE /* Version number of package */ #undef VERSION #ifndef HAVE_BOOL #define HAVE_BOOL typedef int bool; const bool false = 0; const bool true = 1; #endif dokvok-0.1.3/config.sub 755 764 144 46532 6431147006 10107 #! /bin/sh # Configuration validation subroutine script, version 1.1. # Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. if [ x$1 = x ] then echo Configuration name missing. 1>&2 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 echo "or $0 ALIAS" 1>&2 echo where ALIAS is a recognized configuration type. 1>&2 exit 1 fi # First pass through any local machine types. case $1 in *local*) echo $1 exit 0 ;; *) ;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in linux-gnu*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple) os= basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | arme[lb] | pyramid | mn10200 | mn10300 \ | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ | mipstx39 | mipstx39el \ | sparc | sparclet | sparclite | sparc64 | v850) basic_machine=$basic_machine-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i[3456]86) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \ | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \ | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | sparc64-* | mips64-* | mipsel-* \ | mips64el-* | mips64orion-* | mips64orionel-* \ | mipstx39-* | mipstx39el-* \ | f301-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-cbm ;; amigaos | amigados) basic_machine=m68k-cbm os=-amigaos ;; amigaunix | amix) basic_machine=m68k-cbm os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | ymp) basic_machine=ymp-cray os=-unicos ;; cray2) basic_machine=cray2-cray os=-unicos ;; [ctj]90-cray) basic_machine=c90-cray os=-unicos ;; crds | unos) basic_machine=m68k-crds ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; i370-ibm* | ibm*) basic_machine=i370-ibm os=-mvs ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i[3456]86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i[3456]86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i[3456]86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i[3456]86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; miniframe) basic_machine=m68000-convergent ;; mipsel*-linux*) basic_machine=mipsel-unknown os=-linux-gnu ;; mips*-linux*) basic_machine=mips-unknown os=-linux-gnu ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; np1) basic_machine=np1-gould ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5) basic_machine=i586-intel ;; pentiumpro | p6) basic_machine=i686-intel ;; pentium-* | p5-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; k5) # We don't have specific support for AMD's K5 yet, so just call it a Pentium basic_machine=i586-amd ;; nexen) # We don't have specific support for Nexgen yet, so just call it a Pentium basic_machine=i586-nexgen ;; pn) basic_machine=pn-gould ;; power) basic_machine=rs6000-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; symmetry) basic_machine=i386-sequent os=-dynix ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; tower | tower-32) basic_machine=m68k-ncr ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; xmp) basic_machine=xmp-cray os=-unicos ;; xps | xps100) basic_machine=xps100-honeywell ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. mips) if [ x$os = x-linux-gnu ]; then basic_machine=mips-unknown else basic_machine=mips-mips fi ;; romp) basic_machine=romp-ibm ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sparc) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv*) # Remember, each alternative MUST END IN *, to match a version number. ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -ctix* | -uts*) os=-sysv ;; -ns2 ) os=-nextstep2 ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -xenix) os=-xenix ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-semi) os=-aout ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-ibm) os=-aix ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f301-fujitsu) os=-uxpv ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -hpux*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs*) vendor=ibm ;; -ptx*) vendor=sequent ;; -vxsim* | -vxworks*) vendor=wrs ;; -aux*) vendor=apple ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os dokvok-0.1.3/configure 755 764 144 400266 7066761454 10067 #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_default_prefix=${KDEDIR:-/usr/local/kde} ac_help="$ac_help --enable-debug creates debugging code [default=no]" ac_help="$ac_help --enable-strict compiles with strict compiler options (may not work!)" ac_help="$ac_help --with-gnu-ld assume the C compiler uses GNU ld [default=no]" ac_help="$ac_help --disable-nls do not use Native Language Support" ac_help="$ac_help --with-qt-dir where the root of qt is installed " ac_help="$ac_help --with-qt-includes where the Qt includes are. " ac_help="$ac_help --with-qt-libraries where the Qt library is installed." ac_help="$ac_help --with-extra-includes adds non standard include paths" ac_help="$ac_help --with-extra-libs adds non standard library paths" ac_help="$ac_help --disable-path-check don't try to find out, where to install" ac_help="$ac_help --with-install-root the root, where to install to [default=/]" ac_help="$ac_help --disable-rpath do not use the rpath feature of ld" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= 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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -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 ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$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" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$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) # 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 << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --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 EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$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" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 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) 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" ;; -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 ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=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" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=acinclude.m4 # 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 its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 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 if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:558: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 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 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:588: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_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 $# -gt 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 set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:639: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF #line 682 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:718: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:746: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&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 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 echo "configure:778: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cpp fi rm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP" ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross fi fi CXXCPP="$ac_cv_prog_CXXCPP" echo "$ac_t""$CXXCPP" 1>&6 echo $ac_n "checking for X""... $ac_c" 1>&6 echo "configure:822: checking for X" >&5 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=NO ac_x_libraries=NO if test "$ac_x_includes" = NO; then # Guess where to find include files, by looking for this one X11 .h file. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* # We can compile using X headers with no special include directory. ac_x_includes= else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* # Look for the header file in a standard set of common directories. # Check X11 before X11Rn because it is often a symlink to the current release. for ac_dir in \ /usr/X11/include \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11 \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11/include \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11 \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X386/include \ /usr/x386/include \ /usr/XFree86/include/X11 \ \ /usr/include \ /usr/local/include \ /usr/unsupported/include \ /usr/athena/include \ /usr/local/x11r5/include \ /usr/lpp/Xamples/include \ \ /usr/openwin/include \ /usr/openwin/share/include \ ; \ do if test -r "$ac_dir/$x_direct_test_include"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest* fi # $ac_x_includes = NO if test "$ac_x_libraries" = NO; then # Check for the libraries. test -z "$x_direct_test_library" && x_direct_test_library=Xt test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. ac_x_libraries= else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* LIBS="$ac_save_LIBS" # First see if replacing the include by lib works. # Check X11 before X11Rn because it is often a symlink to the current release. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ /usr/X11/lib \ /usr/X11R6/lib \ /usr/X11R5/lib \ /usr/X11R4/lib \ \ /usr/lib/X11 \ /usr/lib/X11R6 \ /usr/lib/X11R5 \ /usr/lib/X11R4 \ \ /usr/local/X11/lib \ /usr/local/X11R6/lib \ /usr/local/X11R5/lib \ /usr/local/X11R4/lib \ \ /usr/local/lib/X11 \ /usr/local/lib/X11R6 \ /usr/local/lib/X11R5 \ /usr/local/lib/X11R4 \ \ /usr/X386/lib \ /usr/x386/lib \ /usr/XFree86/lib/X11 \ \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /usr/athena/lib \ /usr/local/x11r5/lib \ /usr/lpp/Xamples/lib \ /lib/usr/lib/X11 \ \ /usr/openwin/lib \ /usr/openwin/share/lib \ ; \ do for ac_extension in a so sl; do if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f conftest* fi # $ac_x_libraries = NO rm -fr conftestdir if mkdir conftestdir; then cd conftestdir # Make sure to not put "make" in the Imakefile rules, since we grep it out. cat > Imakefile <<'EOF' acfindx: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' EOF if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && test -f $ac_im_libdir/libX11.$ac_extension; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case "$ac_im_incroot" in /usr/include) ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; esac case "$ac_im_usrlibdir" in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; esac fi cd .. rm -fr conftestdir fi if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then { echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; } else # Record where we found X for the cache. ac_cv_have_x="have_x=yes \ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" fi fi eval "$ac_cv_have_x" if test "$have_x" != yes; then echo "$ac_t""$have_x" 1>&6 no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes \ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 fi if test -z "$x_includes" || test "x$x_includes" = xNONE; then X_INCLUDES="" x_includes="."; else X_INCLUDES="-I$x_includes" fi if test -z "$x_libraries" || test "x$x_libraries" = xNONE; then X_LDFLAGS="" x_libraries="/usr/lib"; else X_LDFLAGS="-L$x_libraries" fi all_includes="$all_includes $X_INCLUDES" all_libraries="$all_libraries $X_LDFLAGS" 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 fi done if test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # 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 # 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" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo "configure:1082: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/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 if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" 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. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ac_t""$INSTALL" 1>&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_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 echo "configure:1135: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile # 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 conftestfile 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "$*" != "X $srcdir/configure conftestfile" \ && test "$*" != "X conftestfile $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". { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } fi test "$2" = conftestfile ) then # Ok. : else { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:1173: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftestmake <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE= else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1202: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 echo "configure:1242: checking for ld used by GCC" >&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. /* | A-Za-z:\\*) test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 echo "configure:1260: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 echo "configure:1263: checking for non-GNU ld" >&5 fi if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog"; then ac_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" else ac_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$ac_cv_path_LD" if test -n "$LD"; then echo "$ac_t""$LD" 1>&6 else echo "$ac_t""no" 1>&6 fi test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 echo "configure:1299: checking if the linker ($LD) is GNU ld" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then ac_cv_prog_gnu_ld=yes else ac_cv_prog_gnu_ld=no fi fi echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 echo "configure:1315: checking for BSD-compatible nm" >&5 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in /* | A-Za-z:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -B" elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -p" else ac_cv_path_NM="$ac_dir/nm" fi break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm ;; esac fi NM="$ac_cv_path_NM" echo "$ac_t""$NM" 1>&6 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 echo "configure:1352: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftestdata if ln -s X conftestdata 2>/dev/null then rm -f conftestdata ac_cv_prog_LN_S="ln -s" else ac_cv_prog_LN_S=ln fi fi LN_S="$ac_cv_prog_LN_S" if test "$ac_cv_prog_LN_S" = "ln -s"; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6 echo "configure:1381: checking for main in -lcompat" >&5 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lcompat $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBCOMPAT="-lcompat" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6 echo "configure:1417: checking for main in -lcrypt" >&5 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lcrypt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBCRYPT="-lcrypt" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6 echo "configure:1453: checking for the third argument of getsockname" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { socklen_t a=0; getsockname(0,(struct sockaddr*)0, &a); ; return 0; } EOF if { (eval echo configure:1478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_ksize_t=socklen_t else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_ksize_t= fi rm -f conftest* if test -z "$ac_cv_ksize_t"; then ac_safe_cxxflags="$CXXFLAGS" if test "$GCC" = "yes"; then CXXFLAGS="-Werror $CXXFLAGS" fi cat > conftest.$ac_ext < #include int main() { int a=0; getsockname(0,(struct sockaddr*)0, &a); ; return 0; } EOF if { (eval echo configure:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_ksize_t=int else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_ksize_t=size_t fi rm -f conftest* CXXFLAGS="$ac_safe_cxxflags" fi fi if test -z "$ac_cv_ksize_t"; then ac_cv_ksize_t=int fi echo "$ac_t""$ac_cv_ksize_t" 1>&6 cat >> confdefs.h <&6 echo "configure:1535: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" else echo "$ac_t""no" 1>&6 fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 echo "configure:1579: checking for dnet_ntoa in -ldnet_stub" >&5 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 echo "configure:1623: checking for gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname(); int main() { /* 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_gethostbyname) || defined (__stub___gethostbyname) choke me #else gethostbyname(); #endif ; return 0; } EOF if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_gethostbyname=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 echo "configure:1675: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking for connect""... $ac_c" 1>&6 echo "configure:1719: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect(); int main() { /* 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_connect) || defined (__stub___connect) choke me #else connect(); #endif ; return 0; } EOF if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_connect=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_connect = no; then echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 echo "configure:1771: checking for connect in -lsocket" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking for remove""... $ac_c" 1>&6 echo "configure:1816: checking for remove" >&5 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove(); int main() { /* 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_remove) || defined (__stub___remove) choke me #else remove(); #endif ; return 0; } EOF if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_remove=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_remove=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_remove = no; then echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 echo "configure:1868: checking for remove in -lposix" >&5 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" else echo "$ac_t""no" 1>&6 fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo $ac_n "checking for shmat""... $ac_c" 1>&6 echo "configure:1914: checking for shmat" >&5 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shmat(); int main() { /* 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_shmat) || defined (__stub___shmat) choke me #else shmat(); #endif ; return 0; } EOF if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shmat=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_shmat=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_shmat = no; then echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 echo "configure:1966: checking for shmat in -lipc" >&5 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lipc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" else echo "$ac_t""no" 1>&6 fi fi LIBSOCKET=$X_EXTRA_LIBS echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6 echo "configure:2014: checking for killpg in -lucb" >&5 ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lucb $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBUCB="-lucb" else echo "$ac_t""no" 1>&6 fi case $host in *-*-lynxos* ) echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6 echo "configure:2059: checking LynxOS header file wrappers" >&5 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" echo "$ac_t""disabled" 1>&6 echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6 echo "configure:2063: checking for gethostbyname in -lbsd" >&5 ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBSOCKET="-lbsd" else echo "$ac_t""no" 1>&6 fi ;; esac echo $ac_n "checking for Qt""... $ac_c" 1>&6 echo "configure:2113: checking for Qt" >&5 ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO qt_libraries="" qt_includes="" # Check whether --with-qt-dir or --without-qt-dir was given. if test "${with_qt_dir+set}" = set; then withval="$with_qt_dir" ac_qt_includes="$withval"/include ac_qt_libraries="$withval"/lib ac_qt_bindir="$withval"/bin fi # Check whether --with-qt-includes or --without-qt-includes was given. if test "${with_qt_includes+set}" = set; then withval="$with_qt_includes" ac_qt_includes="$withval" fi kde_qt_libs_given=no # Check whether --with-qt-libraries or --without-qt-libraries was given. if test "${with_qt_libraries+set}" = set; then withval="$with_qt_libraries" ac_qt_libraries="$withval" kde_qt_libs_given=yes fi if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else #try to guess Qt locations qt_incdirs="$ac_qt_includes /usr/lib/qt/include /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt $x_includes $QTINC" test -n "$QTDIR" && qt_incdirs="$QTDIR/include $QTDIR $qt_incdirs" qt_incdir=NO for i in $qt_incdirs; do for j in qmovie.h; do if test -r "$i/$j"; then qt_incdir=$i break 2 fi done done ac_qt_includes="$qt_incdir" if test ! "$ac_qt_libraries" = "NO"; then qt_libdirs="$ac_qt_libraries" fi qt_libdirs="$qt_libdirs /usr/lib/qt/lib /usr/X11R6/lib /usr/lib /usr/local/qt/lib /usr/lib/qt $x_libraries $QTLIB" test -n "$QTDIR" && qt_libdirs="$QTDIR/lib $QTDIR $qt_libdirs" test=NONE qt_libdir=NONE for dir in $qt_libdirs; do try="ls -1 $dir/libqt*" if test=`eval $try 2> /dev/null`; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_qt_libraries="$qt_libdir" ac_cxxflags_safe="$CXXFLAGS" ac_ldflags_safe="$LDFLAGS" ac_libs_safe="$LIBS" CXXFLAGS="$CXXFLAGS -I$qt_incdir" LDFLAGS="-L$qt_libdir $X_LDFLAGS" LIBS="$LIBS -lqt -lXext -lX11 $LIBSOCKET" ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #include int main() { QMovie m; m.setSpeed(20); return 0; } EOF if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -f conftest* else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_qt_libraries="NO" fi rm -f conftest* CXXFLAGS="$ac_cxxflags_safe" LDFLAGS="$ac_ldflags_safe" LIBS="$ac_libs_safe" if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then ac_cv_have_qt="have_qt=no" ac_qt_notfound="" if test "$ac_qt_includes" = NO; then if test "$ac_qt_libraries" = NO; then ac_qt_notfound="(headers and libraries)"; else ac_qt_notfound="(headers)"; fi else ac_qt_notfound="(libraries)"; fi { echo "configure: error: Qt-1.4 $ac_qt_notfound not found. Please check your installation! " 1>&2; exit 1; }; else have_qt="yes" fi fi else have_qt="yes" fi eval "$ac_cv_have_qt" if test "$have_qt" != yes; then echo "$ac_t""$have_qt" 1>&6; else ac_cv_have_qt="have_qt=yes \ ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries" echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes" 1>&6 qt_libraries="$ac_qt_libraries" qt_includes="$ac_qt_includes" fi if test ! "$kde_qt_libs_given" = "yes"; then echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6 echo "configure:2267: checking if Qt compiles without flags" >&5 if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH ac_LIBRARY_PATH="$LIBRARY_PATH" ac_cxxflags_safe="$CXXFLAGS" ac_ldflags_safe="$LDFLAGS" ac_libs_safe="$LIBS" CXXFLAGS="$CXXFLAGS -I$qt_includes" LDFLAGS="$X_LDFLAGS" LIBS="-lqt -lXext -lX11 $LIBSOCKET" LD_LIBRARY_PATH= export LD_LIBRARY_PATH LIBRARY_PATH= export LIBRARY_PATH ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #include int main() { QMovie m; m.setSpeed(20); return 0; } EOF if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then kde_cv_qt_direct="yes" else kde_cv_qt_direct="no" echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* CXXFLAGS="$ac_cxxflags_safe" LDFLAGS="$ac_ldflags_safe" LIBS="$ac_libs_safe" LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe" export LD_LIBRARY_PATH LIBRARY_PATH="$ac_LIBRARY_PATH" export LIBRARY_PATH fi if test "$kde_cv_qt_direct" = "yes"; then echo "$ac_t""yes" 1>&6 qt_libraries= else echo "$ac_t""no" 1>&6 fi fi if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then QT_INCLUDES=""; else QT_INCLUDES="-I$qt_includes" all_includes="$QT_INCLUDES $all_includes" fi if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then QT_LDFLAGS="" else QT_LDFLAGS="-L$qt_libraries" all_libraries="$QT_LDFLAGS $all_libraries" fi echo $ac_n "checking for moc""... $ac_c" 1>&6 echo "configure:2358: checking for moc" >&5 if eval "test \"`echo '$''{'kde_cv_path_moc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else kde_cv_path_moc="NONE" if test -n "$MOC"; then kde_cv_path_moc="$MOC"; else dirs="$ac_qt_bindir $QTDIR/bin \ /usr/bin /usr/X11R6/bin /usr/lib/qt/bin \ /usr/local/qt/bin" kde_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$kde_save_IFS for dir in $dirs; do if test -x "$dir/moc"; then if test -n "" then evalstr="$dir/moc 2>&1 " if eval $evalstr; then kde_cv_path_moc="$dir/moc" break fi else kde_cv_path_moc="$dir/moc" break fi fi done fi fi if test -z "$kde_cv_path_moc" || test "$kde_cv_path_moc" = "NONE"; then echo "$ac_t""not found" 1>&6 { echo "configure: error: No Qt meta object compiler (moc) found! Please check whether you installed Qt correctly. You need to have a running moc binary. configure tried to run $ac_cv_path_moc and the test didn't succeed. If configure shouldn't have tried this one, set the environment variable MOC to the right one before running configure. " 1>&2; exit 1; } else echo "$ac_t""$kde_cv_path_moc" 1>&6 MOC=$kde_cv_path_moc fi if test -z "$MOC"; then if test -n "$ac_cv_path_moc"; then output=`eval "$ac_cv_path_moc --help 2>&1 | sed -e '1q' | grep Qt"` fi echo "configure:2421: tried to call $ac_cv_path_moc --help 2>&1 | sed -e '1q' | grep Qt" >&5 echo "configure:2422: moc output: $output" >&5 if test -z "$output"; then { echo "configure: error: No Qt meta object compiler (moc) found! Please check whether you installed Qt correctly. You need to have a running moc binary. configure tried to run $ac_cv_path_moc and the test didn't succeed. If configure shouldn't have tried this one, set the environment variable MOC to the right one before running configure. " 1>&2; exit 1; } fi fi echo $ac_n "checking for rpath""... $ac_c" 1>&6 echo "configure:2444: checking for rpath" >&5 # Check whether --enable-rpath or --disable-rpath was given. if test "${enable_rpath+set}" = set; then enableval="$enable_rpath" USE_RPATH=$enableval else USE_RPATH=yes fi if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then KDE_RPATH="-rpath \$(kde_libraries)" if test -n "$qt_libraries"; then KDE_RPATH="$KDE_RPATH -rpath \$(qt_libraries)" fi if test -n "$X_LDFLAGS"; then KDE_RPATH="$KDE_RPATH -rpath \$(x_libraries)" fi if test -n "$KDE_EXTRA_RPATH"; then KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)" fi fi echo "$ac_t""$USE_RPATH" 1>&6 echo $ac_n "checking for bool""... $ac_c" 1>&6 echo "configure:2473: checking for bool" >&5 if eval "test \"`echo '$''{'ac_cv_have_bool'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_bool="yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_have_bool="no" fi rm -f conftest* fi echo "$ac_t""$ac_cv_have_bool" 1>&6 if test "$ac_cv_have_bool" = "yes"; then cat >> confdefs.h <<\EOF #define HAVE_BOOL 1 EOF fi # Do some error checking and defaulting for the host and target type. # The inputs are: # configure --host=HOST --target=TARGET --build=BUILD NONOPT # # The rules are: # 1. You are not allowed to specify --host, --target, and nonopt at the # same time. # 2. Host defaults to nonopt. # 3. If nonopt is not specified, then host defaults to the current host, # as determined by config.guess. # 4. Target and build default to nonopt. # 5. If nonopt is not specified, then target and build default to host. # The aliases save the names the user supplied, while $host etc. # will get canonicalized. case $host---$target---$nonopt in NONE---*---* | *---NONE---* | *---*---NONE) ;; *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; esac # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 echo "configure:2542: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 echo "configure:2563: checking target system type" >&5 target_alias=$target case "$target_alias" in NONE) case $nonopt in NONE) target_alias=$host_alias ;; *) target_alias=$nonopt ;; esac ;; esac target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:2581: checking build system type" >&5 build_alias=$build case "$build_alias" in NONE) case $nonopt in NONE) build_alias=$host_alias ;; *) build_alias=$nonopt ;; esac ;; esac build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 test "$host_alias" != "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- if test "$program_transform_name" = s,x,x,; then program_transform_name= else # Double any \ or $. echo might interpret backslashes. cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED program_transform_name="`echo $program_transform_name|sed -f conftestsed`" rm -f conftestsed fi 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" # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," PACKAGE=dokvok VERSION=0.1.3 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi cat >> confdefs.h <> confdefs.h <&6 echo "configure:2642: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (aclocal --version) < /dev/null > /dev/null 2>&1; then ACLOCAL=aclocal echo "$ac_t""found" 1>&6 else ACLOCAL="$missing_dir/missing aclocal" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 echo "configure:2655: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoconf --version) < /dev/null > /dev/null 2>&1; then AUTOCONF=autoconf echo "$ac_t""found" 1>&6 else AUTOCONF="$missing_dir/missing autoconf" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working automake""... $ac_c" 1>&6 echo "configure:2668: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (automake --version) < /dev/null > /dev/null 2>&1; then AUTOMAKE=automake echo "$ac_t""found" 1>&6 else AUTOMAKE="$missing_dir/missing automake" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 echo "configure:2681: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoheader --version) < /dev/null > /dev/null 2>&1; then AUTOHEADER=autoheader echo "$ac_t""found" 1>&6 else AUTOHEADER="$missing_dir/missing autoheader" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 echo "configure:2694: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then MAKEINFO=makeinfo echo "$ac_t""found" 1>&6 else MAKEINFO="$missing_dir/missing makeinfo" echo "$ac_t""missing" 1>&6 fi enable_static=no enable_shared=no # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" if test $enableval = "no"; then ac_use_debug_code="no" else ac_use_debug_code="yes" fi else ac_use_debug_code="no" fi # Check whether --enable-strict or --disable-strict was given. if test "${enable_strict+set}" = set; then enableval="$enable_strict" if test $enableval = "no"; then ac_use_strict_options="no" else ac_use_strict_options="yes" fi else ac_use_strict_options="no" fi echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6 echo "configure:2746: checking for a C-Compiler" >&5 echo "$ac_t""$CC" 1>&6 if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2752: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 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 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2781: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_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 $# -gt 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 set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi fi if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args. set dummy xlc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2829: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="xlc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:2858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF #line 2869 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:2900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:2905: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi if test -z "$CFLAGS"; then if test "$ac_use_debug_code" = "yes"; then echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:2932: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test $ac_cv_prog_cc_g = yes; then CFLAGS="-g" fi else if test "$GCC" = "yes"; then CFLAGS="-O2" else CFLAGS="" fi fi if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall" if test "$ac_use_strict_options" = "yes"; then CFLAGS="$CFLAGS -W -ansi -pedantic" fi fi fi case "$host" in *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";; esac if test -z "$LDFLAGS" && test "$ac_use_debug_code" = "no" && test "$GCC" = "yes"; then LDFLAGS="-s" fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:2979: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6 echo "configure:3041: checking for a C++-Compiler" >&5 echo "$ac_t""$CXX" 1>&6 if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args. set dummy g++; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3047: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="g++" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi fi if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args. set dummy CC; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3076: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="CC" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi fi if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args. set dummy xlC; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3105: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="xlC" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi fi if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args. set dummy DCC; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3134: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="DCC" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi fi test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:3163: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF #line 3174 "configure" #include "confdefs.h" int main(){return(0);} EOF if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:3205: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 echo "configure:3210: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no fi fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 if test $ac_cv_prog_gxx = yes; then GXX=yes else echo $ac_n "checking whether we are using SPARC CC""... $ac_c" 1>&6 echo "configure:3232: checking whether we are using SPARC CC" >&5 GXX= cat > conftest.C << EOF #ifdef __SUNPRO_CC yes; #endif EOF ac_try="$CXX -E conftest.C" if { (eval echo configure:__online__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_CC=yes else ac_cv_prog_CC=no fi echo "$ac_t""$ac_cv_prog_CC" 1>&6 fi if test -z "$CXXFLAGS"; then if test "$ac_use_debug_code" = "yes"; then echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 echo "configure:3252: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yes else ac_cv_prog_cxx_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 if test $ac_cv_prog_cxx_g = yes; then CXXFLAGS="-g" fi if test "$ac_cv_prog_CC" = "yes"; then CXXFLAGS="$CXXFLAGS -pto" fi else if test "$GXX" = "yes"; then CXXFLAGS="-O2" else if test "$ac_cv_prog_CC" = "yes"; then CXXFLAGS="-pto -O2" else CXXFLAGS="" fi fi fi if test "$GXX" = "yes"; then CXXFLAGS="$CXXFLAGS -Wall" if test "$ac_use_strict_options" = "yes"; then CXXFLAGS="$CXXFLAGS -W -ansi -Wtraditional -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Woverloaded-virtual -Wbad-function-cast -Wsynth" fi if test "$kde_very_strict" = "yes"; then CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wshadow -Wredundant-decls -Wconversion" fi fi fi case "$host" in *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";; esac ac_save_cc=$CC ac_save_cflags="$CFLAGS" CC=$CXX CFLAGS="$CXXFLAGS" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' # Check for any special flags to pass to ltconfig. libtool_flags= test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" test "$silent" = yes && libtool_flags="$libtool_flags --silent" test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" # Some flags need to be propagated to the compiler or linker for good # libtool support. case "$host" in *-*-irix6*) # Find out which ABI we are using. echo '#line 3326 "configure"' > conftest.$ac_ext if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. CFLAGS="$CFLAGS -belf" ;; esac # Actually configure libtool. ac_aux_dir is where install-sh is found. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } CC=$ac_save_cc CFLAGS="$ac_save_cflags" echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 echo "configure:3359: checking whether NLS is requested" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" USE_NLS=$enableval else USE_NLS=yes fi echo "$ac_t""$USE_NLS" 1>&6 if test "$USE_NLS" = "yes"; then cat >> confdefs.h <<\EOF #define ENABLE_NLS 1 EOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3387: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then echo "$ac_t""$MSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3421: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMSGFMT" in /*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_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 echo "$ac_t""$GMSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "`$MSGFMT --version 2>&1 | grep 'GNU gettext'`"; then echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6 msgfmt=":" fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3464: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ac_t""$XGETTEXT" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 XGETTEXT=":" fi fi fi echo $ac_n "checking for KDE""... $ac_c" 1>&6 echo "configure:3512: checking for KDE" >&5 if test "${prefix}" != NONE; then kde_includes=${prefix}/include ac_kde_includes=$prefix/include if test "${exec_prefix}" != NONE; then kde_libraries=${exec_prefix}/lib ac_kde_libraries=$exec_prefix/lib else kde_libraries=${prefix}/lib ac_kde_libraries=$prefix/lib fi else ac_kde_includes= ac_kde_libraries= kde_libraries="" kde_includes="" fi if eval "test \"`echo '$''{'ac_cv_have_kde'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else #try to guess kde locations if test -z ""; then kde_incdirs="$ac_kde_includes /usr/lib/kde/include /usr/local/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde/include $x_includes $qt_includes" test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR $kde_incdirs" kde_incdir=NO for i in $kde_incdirs; do for j in ksock.h; do if test -r "$i/$j"; then kde_incdir=$i break 2 fi done done ac_kde_includes="$kde_incdir" if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/ksock.h"; then { echo "configure: error: in the prefix, you've chosen, are no kde headers installed. This will fail. So, check this please and use another prefix!" 1>&2; exit 1; } fi kde_libdirs="$ac_kde_libraries /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib /usr/X11R6/kde/lib" test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs" kde_libdir=NO for i in $kde_libdirs; do for j in libkdecore.la; do if test -r "$i/$j"; then kde_libdir=$i break 2 fi done done if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/libkdecore.la"; then { echo "configure: error: in the prefix, you've chosen, are no kde libraries installed. This will fail. So, check this please and use another prefix!" 1>&2; exit 1; } fi ac_kde_libraries="$kde_libdir" if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then ac_cv_have_kde="have_kde=no" else ac_cv_have_kde="have_kde=yes \ ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" fi else ac_cv_have_kde="have_kde=no" fi fi eval "$ac_cv_have_kde" if test "$have_kde" != "yes"; then if test "${prefix}" = NONE; then ac_kde_prefix="$ac_default_prefix" else ac_kde_prefix="$prefix" fi if test "$exec_prefix" = NONE; then ac_kde_exec_prefix="$ac_kde_prefix" echo "$ac_t""will be installed in $ac_kde_prefix" 1>&6 else ac_kde_exec_prefix="$exec_prefix" echo "$ac_t""will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" 1>&6 fi kde_libraries="${ac_kde_exec_prefix}/lib" kde_includes=${ac_kde_prefix}/include else ac_cv_have_kde="have_kde=yes \ ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" echo "$ac_t""libraries $ac_kde_libraries, headers $ac_kde_includes" 1>&6 kde_libraries="$ac_kde_libraries" kde_includes="$ac_kde_includes" fi if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then KDE_INCLUDES="" else KDE_INCLUDES="-I$kde_includes" all_includes="$KDE_INCLUDES $all_includes" fi if test "$kde_libraries" = "$x_libraries" || test "$kde_libraries" = "$qt_libraries" ; then KDE_LDFLAGS="" else KDE_LDFLAGS="-L$kde_libraries" all_libraries="$KDE_LDFLAGS $all_libraries" fi echo $ac_n "checking for extra includes""... $ac_c" 1>&6 echo "configure:3648: checking for extra includes" >&5 # Check whether --with-extra-includes or --without-extra-includes was given. if test "${with_extra_includes+set}" = set; then withval="$with_extra_includes" kde_use_extra_includes="$withval" else kde_use_extra_includes=NONE fi if test -n "$kde_use_extra_includes" && \ test "$kde_use_extra_includes" != "NONE"; then ac_save_ifs=$IFS IFS=':' for dir in $kde_use_extra_includes; do all_includes="$all_includes -I$dir" USER_INCLUDES="$USER_INCLUDES -I$dir" done IFS=$ac_save_ifs kde_use_extra_includes="added" else kde_use_extra_includes="no" fi echo "$ac_t""$kde_use_extra_includes" 1>&6 echo $ac_n "checking for extra libs""... $ac_c" 1>&6 echo "configure:3676: checking for extra libs" >&5 # Check whether --with-extra-libs or --without-extra-libs was given. if test "${with_extra_libs+set}" = set; then withval="$with_extra_libs" kde_use_extra_libs=$withval else kde_use_extra_libs=NONE fi if test -n "$kde_use_extra_libs" && \ test "$kde_use_extra_libs" != "NONE"; then ac_save_ifs=$IFS IFS=':' for dir in $kde_use_extra_libs; do all_libraries="$all_libraries -L$dir" KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -rpath $dir" USER_LDFLAGS="$USER_LDFLAGS -L$dir" done IFS=$ac_save_ifs kde_use_extra_libs="added" else kde_use_extra_libs="no" fi echo "$ac_t""$kde_use_extra_libs" 1>&6 # Check whether --enable-path-check or --disable-path-check was given. if test "${enable_path_check+set}" = set; then enableval="$enable_path_check" if test "$enableval" = "no"; then ac_use_path_checking="default" else ac_use_path_checking="" fi else ac_use_path_checking="" fi # Check whether --with-install-root or --without-install-root was given. if test "${with_install_root+set}" = set; then withval="$with_install_root" if test "$withval" = "no"; then kde_install_root=""; else kde_install_root=$withval; fi else kde_install_root="" fi if test -n "$kde_install_root"; then install_root="$kde_install_root" else install_root= fi if test "$ac_use_path_checking" = "default"; then echo $ac_n "checking for KDE paths""... $ac_c" 1>&6 echo "configure:3753: checking for KDE paths" >&5 if test -z "$kde_htmldir"; then kde_htmldir="\$(prefix)/share/doc/HTML" fi if test -z "$kde_appsdir"; then kde_appsdir="\$(prefix)/share/applnk" fi if test -z "$kde_icondir"; then kde_icondir="\$(prefix)/share/icons" fi if test -z "$kde_sounddir"; then kde_sounddir="\$(prefix)/share/sounds" fi if test -z "$kde_datadir"; then kde_datadir="\$(prefix)/share/apps" fi if test -z "$kde_locale"; then kde_locale="\$(prefix)/share/locale" fi if test -z "$kde_cgidir"; then kde_cgidir="\$(exec_prefix)/cgi-bin" fi if test -z "$kde_confdir"; then kde_confdir="\$(prefix)/share/config" fi if test -z "$kde_mimedir"; then kde_mimedir="\$(prefix)/share/mimelnk" fi if test -z "$kde_toolbardir"; then kde_toolbardir="\$(prefix)/share/toolbar" fi if test -z "$kde_wallpaperdir"; then kde_wallpaperdir="\$(prefix)/share/wallpapers" fi if test -z "$kde_bindir"; then kde_bindir="\$(exec_prefix)/bin" fi if test -z "$kde_partsdir"; then kde_partsdir="\$(exec_prefix)/parts" fi echo "$ac_t""defaults" 1>&6 else if eval "test \"`echo '$''{'kde_cv_all_paths'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo $ac_n "checking for kde headers installed""... $ac_c" 1>&6 echo "configure:3803: checking for kde headers installed" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #include "confdefs.h" #include "config.h.bot" #include int main() { printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data()); printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data()); printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data()); printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data()); printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data()); printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data()); printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data()); printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data()); printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data()); printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data()); printf("kde_wallpaperdir=\\"%s\\"\n", KApplication::kde_wallpaperdir().data()); printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data()); printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data()); return 0; } EOF if test -n "$kde_libraries"; then KDE_TEST_RPATH="-rpath $kde_libraries" fi if test -n "$qt_libraries"; then KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $qt_libraries" fi if test -n "$x_libraries"; then KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $x_libraries" fi KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH" ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext' if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then echo "$ac_t""yes" 1>&6 else { echo "configure: error: your system is not able to compile a small KDE application! Check, if you installed the KDE header files correctly." 1>&2; exit 1; } fi echo $ac_n "checking for kde libraries installed""... $ac_c" 1>&6 echo "configure:3858: checking for kde libraries installed" >&5 ac_link='/bin/sh ./libtool --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore -lqt -lXext -lX11 $LIBSOCKET $KDE_TEST_RPATH 1>&5' if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then echo "$ac_t""yes" 1>&6 else { echo "configure: error: your system fails at linking a small KDE application! Check, if your compiler is installed correctly and if you have used the same compiler to compile Qt and kdelibs as you did use now" 1>&2; exit 1; } fi echo $ac_n "checking for KDE paths""... $ac_c" 1>&6 echo "configure:3870: checking for KDE paths" >&5 if eval `./conftest 2>&5`; then echo "$ac_t""done" 1>&6 else echo "$ac_t""problems" 1>&6 fi ./conftest 2> /dev/null >&5 # make an echo for config.log kde_have_all_paths=yes ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross if test "$kde_have_all_paths" = "yes"; then kde_cv_all_paths="kde_have_all_paths=\"yes\" \ kde_htmldir=\"$kde_htmldir\" \ kde_appsdir=\"$kde_appsdir\" \ kde_icondir=\"$kde_icondir\" \ kde_sounddir=\"$kde_sounddir\" \ kde_datadir=\"$kde_datadir\" \ kde_locale=\"$kde_locale\" \ kde_cgidir=\"$kde_cgidir\" \ kde_confdir=\"$kde_confdir\" \ kde_mimedir=\"$kde_mimedir\" \ kde_toolbardir=\"$kde_toolbardir\" \ kde_wallpaperdir=\"$kde_wallpaperdir\" \ kde_bindir=\"$kde_bindir\" \ kde_partsdir=\"$kde_partsdir\"" fi rm -fr conftest* fi eval "$kde_cv_all_paths" if test -z "$kde_htmldir" || test -z "$kde_appsdir" || test -z "$kde_icondir" || test -z "$kde_sounddir" || test -z "$kde_datadir" || test -z "$kde_locale" || test -z "$kde_cgidir" || test -z "$kde_confdir" || test -z "$kde_mimedir" || test -z "$kde_toolbardir" || test -z "$kde_wallpaperdir" || test -z "$kde_bindir" || test -z "$kde_partsdir" || test "$kde_have_all_paths" != "yes"; then kde_have_all_paths=no { echo "configure: error: configure could not run a little KDE program to test the environment. Since it had compiled and linked before, it must be a strange problem on your system. Look at config.log for details. If you are not able to fix this, please contact Stephan Kulow ." 1>&2; exit 1; } fi if test -n "$install_root"; then kde_htmldir=`echo "$kde_htmldir" | sed -e "s#^/#\$\{install_root\}/#"` kde_appsdir=`echo "$kde_appsdir" | sed -e "s#^/#\$\{install_root\}/#"` kde_icondir=`echo "$kde_icondir" | sed -e "s#^/#\$\{install_root\}/#"` kde_sounddir=`echo "$kde_sounddir" | sed -e "s#^/#\$\{install_root\}/#"` kde_datadir=`echo "$kde_datadir" | sed -e "s#^/#\$\{install_root\}/#"` kde_locale=`echo "$kde_locale" | sed -e "s#^/#\$\{install_root\}/#"` kde_cgidir=`echo "$kde_cgidir" | sed -e "s#^/#\$\{install_root\}/#"` kde_confdir=`echo "$kde_confdir" | sed -e "s#^/#\$\{install_root\}/#"` kde_mimedir=`echo "$kde_mimedir" | sed -e "s#^/#\$\{install_root\}/#"` kde_toolbardir=`echo "$kde_toolbardir" | sed -e "s#^/#\$\{install_root\}/#"` kde_wallpaperdir=`echo "$kde_wallpaperdir" | sed -e "s#^/#\$\{install_root\}/#"` kde_bindir=`echo "$kde_bindir" | sed -e "s#^/#\$\{install_root\}/#"` kde_partsdir=`echo "$kde_partsdir" | sed -e "s#^/#\$\{install_root\}/#"` fi fi bindir=$kde_bindir kde_minidir="$kde_icondir/mini" LIB_X11='-lX11 $(LIBSOCKET)' LIB_QT='-lqt $(LIB_X11)' LIB_KDECORE='-lkdecore -lXext $(LIB_QT)' LIB_KDEUI='-lkdeui $(LIB_KDECORE)' LIB_KFM='-lkfm $(LIB_KDECORE)' LIB_KFILE='-lkfile $(LIB_KFM) $(LIB_KDEUI)' trap '' 1 2 15 cat > confcache <<\EOF # 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. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # 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. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 DEFS=-DHAVE_CONFIG_H # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" trap 'rm -fr `echo "Makefile dokvok/Makefile dokvok/docs/Makefile dokvok/docs/en/Makefile po/Makefile dokvok/docs/de/Makefile dokvok/kde/Makefile dokvok/pics/Makefile dokvok/Dialoge/Makefile dokvok/Abfrage/Makefile dokvok/File/Makefile dokvok/View/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@CC@%$CC%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g s%@target@%$target%g s%@target_alias@%$target_alias%g s%@target_cpu@%$target_cpu%g s%@target_vendor@%$target_vendor%g s%@target_os@%$target_os%g s%@build@%$build%g s%@build_alias@%$build_alias%g s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@PACKAGE@%$PACKAGE%g s%@VERSION@%$VERSION%g s%@ACLOCAL@%$ACLOCAL%g s%@AUTOCONF@%$AUTOCONF%g s%@AUTOMAKE@%$AUTOMAKE%g s%@AUTOHEADER@%$AUTOHEADER%g s%@MAKEINFO@%$MAKEINFO%g s%@SET_MAKE@%$SET_MAKE%g s%@CPP@%$CPP%g s%@CXX@%$CXX%g s%@RANLIB@%$RANLIB%g s%@LD@%$LD%g s%@NM@%$NM%g s%@LN_S@%$LN_S%g s%@LIBTOOL@%$LIBTOOL%g s%@USE_NLS@%$USE_NLS%g s%@MSGFMT@%$MSGFMT%g s%@GMSGFMT@%$GMSGFMT%g s%@XGETTEXT@%$XGETTEXT%g s%@LIBCOMPAT@%$LIBCOMPAT%g s%@LIBCRYPT@%$LIBCRYPT%g s%@LIBSOCKET@%$LIBSOCKET%g s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g s%@LIBUCB@%$LIBUCB%g s%@CXXCPP@%$CXXCPP%g s%@X_INCLUDES@%$X_INCLUDES%g s%@X_LDFLAGS@%$X_LDFLAGS%g s%@x_libraries@%$x_libraries%g s%@x_includes@%$x_includes%g s%@qt_libraries@%$qt_libraries%g s%@qt_includes@%$qt_includes%g s%@QT_INCLUDES@%$QT_INCLUDES%g s%@QT_LDFLAGS@%$QT_LDFLAGS%g s%@MOC@%$MOC%g s%@kde_libraries@%$kde_libraries%g s%@kde_includes@%$kde_includes%g s%@KDE_LDFLAGS@%$KDE_LDFLAGS%g s%@KDE_INCLUDES@%$KDE_INCLUDES%g s%@all_includes@%$all_includes%g s%@all_libraries@%$all_libraries%g s%@KDE_EXTRA_RPATH@%$KDE_EXTRA_RPATH%g s%@KDE_RPATH@%$KDE_RPATH%g s%@install_root@%$install_root%g s%@kde_htmldir@%$kde_htmldir%g s%@kde_appsdir@%$kde_appsdir%g s%@kde_icondir@%$kde_icondir%g s%@kde_sounddir@%$kde_sounddir%g s%@kde_minidir@%$kde_minidir%g s%@kde_datadir@%$kde_datadir%g s%@kde_locale@%$kde_locale%g s%@kde_cgidir@%$kde_cgidir%g s%@kde_confdir@%$kde_confdir%g s%@kde_mimedir@%$kde_mimedir%g s%@kde_toolbardir@%$kde_toolbardir%g s%@kde_wallpaperdir@%$kde_wallpaperdir%g s%@kde_bindir@%$kde_bindir%g s%@kde_partsdir@%$kde_partsdir%g s%@LIB_X11@%$LIB_X11%g s%@LIB_QT@%$LIB_QT%g s%@LIB_KDECORE@%$LIB_KDECORE%g s%@LIB_KDEUI@%$LIB_KDEUI%g s%@LIB_KFM@%$LIB_KFM%g s%@LIB_KFILE@%$LIB_KFILE%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.in EOF # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: # Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr # This sed command replaces #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. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail while : do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in ' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals cat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fi fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 dokvok-0.1.3/configure.in 644 764 144 1565 7066761407 10426 dnl without this order in this file, autoconf will not work! dnl the argument is a source file out of your sources. But dnl acinclude.m4 makes the job for all programs ;-) AC_INIT(acinclude.m4) dnl without this order in this file, automake will be confused! dnl the argument AM_CONFIG_HEADER(config.h) dnl insert here your program name and version number AC_PROG_CC KDE_DO_IT_ALL(dokvok,0.1.3) dnl in this space add everything you want to check for dnl examples are specific headers, libraries, etc. dnl everything to compile and run a KDE program is already checked dnl add here all your Makefiles. This are created by configure AC_OUTPUT(Makefile dokvok/Makefile dokvok/docs/Makefile dokvok/docs/en/Makefile po/Makefile dokvok/docs/de/Makefile dokvok/kde/Makefile dokvok/pics/Makefile dokvok/Dialoge/Makefile dokvok/Abfrage/Makefile dokvok/File/Makefile dokvok/View/Makefile ) dokvok-0.1.3/install-sh 755 764 144 11245 6416214750 10125 #! /bin/sh # # install - install a program, script, or datafile # This comes from X11R5. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 dokvok-0.1.3/ltconfig 755 764 144 124143 6507557731 7710 #! /bin/sh # ltconfig - Create a system-specific libtool. # Copyright (C) 1996-1998 Free Software Foundation, Inc. # Gordon Matzigkeit , 1996 # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A lot of this script is taken from autoconf-2.10. # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi echo=echo if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then : else # The Solaris and AIX default echo program unquotes backslashes. # This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # So, we emulate echo with printf '%s\n' echo="printf %s\\n" if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then : else # Oops. We have no working printf. Try to find a not-so-buggy echo. echo=echo IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" for dir in $PATH /usr/ucb; do if test -f $dir/echo && test "X`$dir/echo '\t'`" = 'X\t'; then echo="$dir/echo" break fi done IFS="$save_ifs" fi fi # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # The name of this program. progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'` # Constants: PROGRAM=ltconfig PACKAGE=libtool VERSION=1.2 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5' rm="rm -f" help="Try \`$progname --help' for more information." # Global variables: can_build_shared=yes enable_shared=yes # All known linkers require a `.a' archive for static linking. enable_static=yes ltmain= silent= srcdir= ac_config_guess= ac_config_sub= host= nonopt= verify_host=yes with_gcc=no with_gnu_ld=no old_AR="$AR" old_CC="$CC" old_CFLAGS="$CFLAGS" old_CPPFLAGS="$CPPFLAGS" old_LD="$LD" old_LN_S="$LN_S" old_NM="$NM" old_RANLIB="$RANLIB" # Parse the command line options. args= prev= for option do case "$option" in -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then eval "$prev=\$option" prev= continue fi case "$option" in --help) cat <&2 echo "$help" 1>&2 exit 1 ;; *) if test -z "$ltmain"; then ltmain="$option" elif test -z "$host"; then # This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1 # if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then # echo "$progname: warning \`$option' is not a valid host type" 1>&2 # fi host="$option" else echo "$progname: too many arguments" 1>&2 echo "$help" 1>&2 exit 1 fi ;; esac done if test -z "$ltmain"; then echo "$progname: you must specify a LTMAIN file" 1>&2 echo "$help" 1>&2 exit 1 fi if test -f "$ltmain"; then : else echo "$progname: \`$ltmain' does not exist" 1>&2 echo "$help" 1>&2 exit 1 fi # Quote any args containing shell metacharacters. ltconfig_args= for arg do case "$arg" in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ltconfig_args="$ltconfig_args '$arg'" ;; *) ltconfig_args="$ltconfig_args $arg" ;; esac done # A relevant subset of AC_INIT. # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 5 compiler messages saved in config.log # 6 checking for... messages and results if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>>./config.log # NLS nuisances. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LANG+set}" = set; then LANG=C; export LANG; fi if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi if test -z "$srcdir"; then # Assume the source directory is the same one as the path to ltmain.sh. srcdir=`$echo "$ltmain" | $Xsed -e 's%/[^/]*$%%'` test "$srcdir" = "$ltmain" && srcdir=. fi trap "$rm conftest*; exit 1" 1 2 15 if test "$verify_host" = yes; then # Check for config.guess and config.sub. ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/config.guess; then ac_aux_dir=$ac_dir break fi done if test -z "$ac_aux_dir"; then echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2 echo "$help" 1>&2 exit 1 fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub # Make sure we can run config.sub. if $ac_config_sub sun4 >/dev/null 2>&1; then : else echo "$progname: cannot run $ac_config_sub" 1>&2 echo "$help" 1>&2 exit 1 fi echo $ac_n "checking host system type""... $ac_c" 1>&6 host_alias=$host case "$host_alias" in "") if host_alias=`$ac_config_guess`; then : else echo "$progname: cannot guess host type; you must specify one" 1>&2 echo "$help" 1>&2 exit 1 fi ;; esac host=`$ac_config_sub $host_alias` echo "$ac_t$host" 1>&6 # Make sure the host verified. test -z "$host" && exit 1 elif test -z "$host"; then echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2 echo "$help" 1>&2 exit 1 else host_alias=$host fi # Transform linux* to *-*-linux-gnu*, to support old configure scripts. case "$host_os" in linux-gnu*) ;; linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` esac host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` case "$host_os" in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "${COLLECT_NAMES+set}" != set; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Determine commands to create old-style static archives. old_archive_cmds='$AR cru $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= # Set a sane default for `AR'. test -z "$AR" && AR=ar # If RANLIB is not set, then run the test. if test "${RANLIB+set}" != "set"; then result=no echo $ac_n "checking for ranlib... $ac_c" 1>&6 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/ranlib; then RANLIB="ranlib" result="ranlib" break fi done IFS="$save_ifs" echo "$ac_t$result" 1>&6 fi if test -n "$RANLIB"; then old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib" old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds" fi # Check to see if we are using GCC. if test "$with_gcc" != yes || test -z "$CC"; then # If CC is not set, then try to find GCC or a usable CC. if test -z "$CC"; then echo $ac_n "checking for gcc... $ac_c" 1>&6 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do IFS="$save_ifs" test -z "$dir" && dir=. if test -f $dir/gcc; then CC="gcc" break fi done IFS="$save_ifs" if test -n "$CC"; then echo "$ac_t$CC" 1>&6 else echo "$ac_t"no 1>&6 fi fi # Not "gcc", so try "cc", rejecting "/usr/ucb/cc". if test -z "$CC"; then echo $ac_n "checking for cc... $ac_c" 1>&6 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" cc_rejected=no for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/cc; then if test "$dir/cc" = "/usr/ucb/cc"; then cc_rejected=yes continue fi CC="cc" break fi done IFS="$save_ifs" if test $cc_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same name, so the bogon will be chosen # first if we set CC to just the name; use the full file name. shift set dummy "$dir/cc" "$@" shift CC="$@" fi fi if test -n "$CC"; then echo "$ac_t$CC" 1>&6 else echo "$ac_t"no 1>&6 fi if test -z "$CC"; then echo "$progname: error: no acceptable cc found in \$PATH" 1>&2 exit 1 fi fi # Now see if the compiler is really GCC. with_gcc=no echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6 echo "$progname:424: checking whether we are using GNU C" >&5 $rm conftest.c cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then with_gcc=yes fi $rm conftest.c echo "$ac_t$with_gcc" 1>&6 fi # Allow CC to be a program name with arguments. set dummy $CC compiler="$2" echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6 pic_flag= special_shlib_compile_flags= wl= link_static_flag= no_builtin_flag= if test "$with_gcc" = yes; then wl='-Wl,' link_static_flag='-static' no_builtin_flag=' -fno-builtin' case "$host_os" in aix3* | aix4* | irix5* | irix6* | osf3* | osf4*) # PIC is the default for these OSes. ;; os2*) # We can build DLLs from non-PIC. ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. pic_flag='-m68020 -resident32 -malways-restore-a4' ;; *) pic_flag='-fPIC' ;; esac else # PORTME Check for PIC flags for the system compiler. case "$host_os" in aix3* | aix4*) # All AIX code is PIC. link_static_flag='-bnso -bI:/lib/syscalls.exp' ;; hpux9* | hpux10*) # Is there a better link_static_flag that works with the bundled CC? wl='-Wl,' link_static_flag="${wl}-a ${wl}archive" pic_flag='+Z' ;; irix5* | irix6*) wl='-Wl,' link_static_flag='-non_shared' # PIC (with -KPIC) is the default. ;; os2*) # We can build DLLs from non-PIC. ;; osf3* | osf4*) # All OSF/1 code is PIC. wl='-Wl,' link_static_flag='-non_shared' ;; sco3.2v5*) pic_flag='-Kpic' link_static_flag='-dn' special_shlib_compile_flags='-belf' ;; solaris2*) pic_flag='-KPIC' link_static_flag='-Bstatic' wl='-Wl,' ;; sunos4*) pic_flag='-PIC' link_static_flag='-Bstatic' wl='-Qoption ld ' ;; sysv4.2uw2*) pic_flag='-KPIC' link_static_flag='-Bstatic' wl='-Wl,' ;; uts4*) pic_flag='-pic' link_static_flag='-Bstatic' ;; *) can_build_shared=no ;; esac fi if test -n "$pic_flag"; then echo "$ac_t$pic_flag" 1>&6 # Check to make sure the pic_flag actually works. echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6 $rm conftest* echo > conftest.c save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $pic_flag -DPIC" echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5 if { (eval echo $progname:548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then # Append any warnings to the config.log. cat conftest.err 1>&5 # On HP-UX, both CC and GCC only warn that PIC is supported... then they # create non-PIC objects. So, if there were any warnings, we assume that # PIC is not supported. if test -s conftest.err; then echo "$ac_t"no 1>&6 can_build_shared=no pic_flag= else echo "$ac_t"yes 1>&6 pic_flag=" $pic_flag" fi else # Append any errors to the config.log. cat conftest.err 1>&5 can_build_shared=no pic_flag= echo "$ac_t"no 1>&6 fi CFLAGS="$save_CFLAGS" $rm conftest* else echo "$ac_t"none 1>&6 fi # Check for any special shared library compilation flags. if test -n "$special_shlib_compile_flags"; then echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$special_shlib_compile_flags[ ]" >/dev/null; then : else echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2 can_build_shared=no fi fi echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6 $rm conftest* echo 'main(){return(0);}' > conftest.c save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $link_static_flag" echo "$progname:591: checking if $compiler static flag $link_static_flag works" >&5 if { (eval echo $progname:592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then echo "$ac_t$link_static_flag" 1>&6 else echo "$ac_t"none 1>&6 link_static_flag= fi LDFLAGS="$save_LDFLAGS" $rm conftest* if test -z "$LN_S"; then # Check to see if we can use ln -s, or we need hard links. echo $ac_n "checking whether ln -s works... $ac_c" 1>&6 $rm conftestdata if ln -s X conftestdata 2>/dev/null; then $rm conftestdata LN_S="ln -s" else LN_S=ln fi if test "$LN_S" = "ln -s"; then echo "$ac_t"yes 1>&6 else echo "$ac_t"no 1>&6 fi fi # Make sure LD is an absolute path. if test -z "$LD"; then ac_prog=ld if test "$with_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6 echo "$progname:624: checking for ld used by GCC" >&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we are not using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld... $ac_c" 1>&6 echo "$progname:642: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 echo "$progname:645: checking for non-GNU ld" >&5 fi if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog"; then LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" fi if test -n "$LD"; then echo "$ac_t$LD" 1>&6 else echo "$ac_t"no 1>&6 fi if test -z "$LD"; then echo "$progname: error: no acceptable ld found in \$PATH" 1>&2 exit 1 fi fi # Check to see if it really is or is not GNU ld. echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6 # I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then with_gnu_ld=yes else with_gnu_ld=no fi echo "$ac_t$with_gnu_ld" 1>&6 # See if the linker supports building shared libraries. echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6 allow_undefined_flag= no_undefined_flag= archive_cmds= old_archive_from_new_cmds= export_dynamic_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported runpath_var= case "$host_os" in amigaos* | sunos4*) # On these operating systems, we should treat GNU ld like the system ld. gnu_ld_acts_native=yes ;; *) gnu_ld_acts_native=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then # See if GNU ld supports shared libraries. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared ${wl}-soname $wl$soname -o $lib$libobjs' runpath_var=LD_RUN_PATH ld_shlibs=yes else ld_shlibs=no fi if test "$ld_shlibs" = yes; then hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' fi else # PORTME fill in a description of your system's linker (not GNU ld) case "$host_os" in aix3*) allow_undefined_flag=unsupported archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' > $lib.exp;$LD -o $objdir/$soname$libobjs -bE:$lib.exp -T512 -H512 -bM:SRE;$AR cru $lib $objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$with_gcc" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4*) allow_undefined_flag=unsupported archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' > $lib.exp;$CC -o $objdir/$soname$libobjs ${wl}-bE:$lib.exp ${wl}-bM:SRE ${wl}-bnoentry;$AR cru $lib $objdir/$soname' hardcode_direct=yes hardcode_minus_L=yes ;; amigaos*) archive_cmds='$rm $objdir/a2ixlibrary.data;$echo "#define NAME $libname" > $objdir/a2ixlibrary.data;$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data;$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data;$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data;$AR cru $lib$libobjs;$RANLIB $lib;(cd $objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib$libobjs /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib$libobjs' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3, at last, uses gcc -shared to do shared libraries. freebsd3*) archive_cmds='$CC -shared -o $lib$libobjs' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; hpux9*) archive_cmds='$rm $objdir/$soname;$LD -b +s +b $install_libdir -o $objdir/$soname$libobjs;mv $objdir/$soname $lib' hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_direct=yes hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib$libobjs' hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_direct=yes hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; irix5* | irix6*) archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ;; netbsd*) # Tested with NetBSD 1.2 ld archive_cmds='$LD -Bshareable -o $lib$libobjs' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; openbsd*) archive_cmds='$LD -Bshareable -o $lib$libobjs' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def;$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def;$echo DATA >> $objdir/$libname.def;$echo " SINGLE NONSHARED" >> $objdir/$libname.def;$echo EXPORTS >> $objdir/$libname.def;emxexp$libobjs >> $objdir/$libname.def;$CC -Zdll -Zcrtdll -o $lib$libobjs $objdir/$libname.def' old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def' ;; osf3* | osf4*) allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} -o $lib -soname $soname -set_version $verstring$libobjs$deplibs' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; sco3.2v5*) archive_cmds='$LD -G -o $lib$libobjs' hardcode_direct=yes ;; solaris2*) no_undefined_flag=' -z text' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib$libobjs' hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no # Solaris 2 before 2.5 hardcodes -L paths. case "$host_os" in solaris2.[0-4]*) hardcode_minus_L=yes ;; esac ;; sunos4*) if test "$with_gcc" = yes; then archive_cmds='$CC -shared -o $lib$libobjs' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs' fi if test "$with_gnu_ld" = yes; then export_dynamic_flag_spec='${wl}-export-dynamic' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib$libobjs' hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=no ;; *) ld_shlibs=no can_build_shared=no ;; esac fi echo "$ac_t$ld_shlibs" 1>&6 if test -z "$NM"; then echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6 case "$NM" in /* | [A-Za-z]:\\*) ;; # Let the user override the test with a path. *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then NM="$ac_dir/nm -B" elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then NM="$ac_dir/nm -p" else NM="$ac_dir/nm" fi break fi done IFS="$ac_save_ifs" test -z "$NM" && NM=nm ;; esac echo "$ac_t$NM" 1>&6 fi # Check for command to grab the raw symbol name followed by C symbol from nm. echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6 # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRSTU]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \1' # Define system-specific variables. case "$host_os" in aix*) symcode='[BCDTU]' ;; irix*) # Cannot use undefined symbols on IRIX because inlined functions mess us up. symcode='[BCDEGRST]' ;; solaris2*) symcode='[BDTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then symcode='[ABCDGISTUW]' fi # Write the raw and C identifiers. global_symbol_pipe="sed -n -e 's/^.* $symcode $sympat$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no $rm conftest* cat > conftest.c <&5 if { (eval echo $progname:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.o; then # Now try to grab the symbols. nlist=conftest.nm if { echo "$progname:975: eval \"$NM conftest.o | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.o | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" wcout=`wc "$nlist" 2>/dev/null` count=`$echo "X$wcout" | $Xsed -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'` (test "$count" -ge 0) 2>/dev/null || count=-1 else rm -f "$nlist"T count=-1 fi # Make sure that we snagged all the symbols we need. if egrep ' nm_test_var$' "$nlist" >/dev/null; then if egrep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.c #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. sed 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> conftest.c cat <> conftest.c #if defined (__STDC__) && __STDC__ # define __ptr_t void * #else # define __ptr_t char * #endif /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */ int dld_preloaded_symbol_count = $count; /* The mapping between symbol names and symbols. */ struct { char *name; __ptr_t address; } dld_preloaded_symbols[] = { EOF sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$nlist" >> conftest.c cat <<\EOF >> conftest.c {0, (__ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.o conftestm.o save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS='conftestm.o' CFLAGS="$CFLAGS$no_builtin_flag" if { (eval echo $progname:1033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then pipe_works=yes else echo "$progname: failed program was:" >&5 cat conftest.c >&5 fi LIBS="$save_LIBS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.c >&5 fi $rm conftest* # Do not use the global_symbol_pipe unless it works. echo "$ac_t$pipe_works" 1>&6 test "$pipe_works" = yes || global_symbol_pipe= # Check hardcoding attributes. echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6 hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var"; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && \ test "$hardcode_minus_L" != no && \ test "$hardcode_shlibpath_var" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi elif test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" != yes; then # We cannot hardcode anything. hardcode_action=unsupported else # We can only hardcode existing directories. hardcode_action=relink fi echo "$ac_t$hardcode_action" 1>&6 test "$hardcode_action" = unsupported && can_build_shared=no reload_flag= reload_cmds='$LD$reload_flag -o $output$reload_objs' echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6 # PORTME Some linker may need a different reload flag. reload_flag='-r' echo "$ac_t$reload_flag" 1>&6 test -n "$reload_flag" && reload_flag=" $reload_flag" # PORTME Fill in your ld.so characteristics library_names_spec= libname_spec='lib$name' soname_spec= postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= version_type=none dynamic_linker="$host_os ld.so" echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6 case "$host_os" in aix3* | aix4*) version_type=linux library_names_spec='${libname}${release}.so.$versuffix $libname.a' shlibpath_var=LIBPATH # AIX has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}.so.$major' ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; freebsd2* | freebsd3*) version_type=sunos library_names_spec='${libname}${release}.so.$versuffix $libname.so' finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH ;; gnu*) version_type=sunos library_names_spec='${libname}${release}.so.$versuffix' shlibpath_var=LD_LIBRARY_PATH ;; hpux9* | hpux10*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. dynamic_linker="$host_os dld.sl" version_type=sunos shlibpath_var=SHLIB_PATH library_names_spec='${libname}${release}.sl.$versuffix ${libname}${release}.sl.$major $libname.sl' soname_spec='${libname}${release}.sl.$major' # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6*) version_type=osf soname_spec='${libname}${release}.so' library_names_spec='${libname}${release}.so.$versuffix $libname.so' shlibpath_var=LD_LIBRARY_PATH ;; # No shared lib support for Linux oldld, aout, or coff. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) dynamic_linker=no ;; # This must be Linux ELF. linux-gnu*) version_type=linux library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so' soname_spec='${libname}${release}.so.$major' finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH if test -f /lib/ld.so.1; then dynamic_linker='GNU ld.so' else # Only the GNU ld.so supports shared libraries on MkLinux. case "$host_cpu" in powerpc*) dynamic_linker=no ;; *) dynamic_linker='Linux ld.so' ;; esac fi ;; netbsd* | openbsd*) version_type=sunos library_names_spec='${libname}${release}.so.$versuffix' finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH ;; os2*) libname_spec='$name' library_names_spec='$libname.dll $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4*) version_type=osf soname_spec='${libname}${release}.so' library_names_spec='${libname}${release}.so.$versuffix $libname.so' shlibpath_var=LD_LIBRARY_PATH ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}.so.$major' library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so' shlibpath_var=LD_LIBRARY_PATH ;; solaris2*) version_type=linux library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so' soname_spec='${libname}${release}.so.$major' shlibpath_var=LD_LIBRARY_PATH ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}.so.$versuffix' finish_cmds='PATH="$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH ;; sysv4.2uw2*) version_type=linux library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so' soname_spec='${libname}${release}.so.$major' shlibpath_var=LD_LIBRARY_PATH ;; uts4*) version_type=linux library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so' soname_spec='${libname}${release}.so.$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac echo "$ac_t$dynamic_linker" 1>&6 test "$dynamic_linker" = no && can_build_shared=no # Report the final consequences. echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6 echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6 test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds;\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; esac echo "$ac_t$enable_shared" 1>&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "checking whether to build static libraries... $enable_static" 1>&6 echo $ac_n "checking for objdir... $ac_c" 1>&6 rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. objdir=_libs fi rmdir .libs 2>/dev/null echo "$ac_t$objdir" 1>&6 # Copy echo and quote the copy, instead of the original, because it is # used later. ltecho="$echo" # Now quote all the things that may contain metacharacters. for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \ old_LN_S AR CC LD LN_S NM reload_flag reload_cmds wl pic_flag \ link_static_flag no_builtin_flag export_dynamic_flag_spec \ libname_spec library_names_spec soname_spec RANLIB \ old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ old_postuninstall_cmds archive_cmds postinstall_cmds postuninstall_cmds \ allow_undefined_flag no_undefined_flag \ finish_cmds finish_eval global_symbol_pipe \ hardcode_libdir_flag_spec hardcode_libdir_separator; do case "$var" in reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | archive_cmds | \ postinstall_cmds | postuninstall_cmds | finish_cmds) # Double-quote double-evaled strings. eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\"\`" ;; *) eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`" ;; esac done ofile=libtool trap "$rm $ofile; exit 1" 1 2 15 echo creating $ofile $rm $ofile cat < $ofile #! /bin/sh # libtool - Provide generalized library-building support services. # Generated automatically by $PROGRAM - GNU $PACKAGE $VERSION # NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh. # # Copyright (C) 1996-1998 Free Software Foundation, Inc. # Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This program was configured as follows, # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # # CC="$old_CC" CFLAGS="$old_CFLAGS" CPPFLAGS="$old_CPPFLAGS" \\ # LD="$old_LD" NM="$old_NM" RANLIB="$old_RANLIB" LN_S="$old_LN_S" \\ # $0$ltconfig_args # # Compiler and other test output produced by $progname, useful for # debugging $progname, is in ./config.log if it exists. # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="sed -e s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi # An echo program that does not interpret backslashes. echo="$ltecho" # The version of $progname that generated this script. LTCONFIG_VERSION="$VERSION" # Shell to use when invoking shell scripts. SHELL=${CONFIG_SHELL-/bin/sh} # Whether or not to build libtool libraries. build_libtool_libs=$enable_shared # Whether or not to build old-style libraries. build_old_libs=$enable_static # The host system. host_alias="$host_alias" host="$host" # The archiver. AR="$AR" # The default C compiler. CC="$CC" # The linker used to build libraries. LD="$LD" # Whether we need hard or soft links. LN_S="$LN_S" # A BSD-compatible nm program. NM="$NM" # The name of the directory that contains temporary libtool files. objdir="$objdir" # How to create reloadable object files. reload_flag="$reload_flag" reload_cmds="$reload_cmds" # How to pass a linker flag through the compiler. wl="$wl" # Additional compiler flags for building library objects. pic_flag="$pic_flag" # Compiler flag to prevent dynamic linking. link_static_flag="$link_static_flag" # Compiler flag to turn off builtin functions. no_builtin_flag="$no_builtin_flag" # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec="$export_dynamic_flag_spec" # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec="$libname_spec" # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec="$library_names_spec" # The coded name of the library, if different from the real name. soname_spec="$soname_spec" # Commands used to build and install an old-style archive. RANLIB="$RANLIB" old_archive_cmds="$old_archive_cmds" old_postinstall_cmds="$old_postinstall_cmds" old_postuninstall_cmds="$old_postuninstall_cmds" # Create an old-style archive from a shared archive. old_archive_from_new_cmds="$old_archive_from_new_cmds" # Commands used to build and install a shared archive. archive_cmds="$archive_cmds" postinstall_cmds="$postinstall_cmds" postuninstall_cmds="$postuninstall_cmds" # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag="$allow_undefined_flag" # Flag that forces no undefined symbols. no_undefined_flag="$no_undefined_flag" # Commands used to finish a libtool library installation in a directory. finish_cmds="$finish_cmds" # Same as above, but a single script fragment to be evaled but not shown. finish_eval="$finish_eval" # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe="$global_symbol_pipe" # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec="$hardcode_libdir_flag_spec" # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator="$hardcode_libdir_separator" # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var EOF case "$host_os" in aix3*) cat <<\EOF >> $ofile # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "${COLLECT_NAMES+set}" != set; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # Append the ltmain.sh script. cat "$ltmain" >> $ofile || (rm -f $ofile; exit 1) chmod +x $ofile exit 0 # Local Variables: # mode:shell-script # sh-indentation:2 # End: dokvok-0.1.3/ltmain.sh 644 764 144 212503 6507045561 7764 # ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun ltconfig. # # Copyright (C) 1996-1998 Free Software Foundation, Inc. # Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # The name of this program. progname=`$echo "$0" | sed 's%^.*/%%'` modename="$progname" # Constants. PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.2 default_mode= help="Try \`$progname --help' for more information." magic="%%%MAGIC variable%%%" mkdir="mkdir" mv="mv -f" rm="rm -f" # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' # NLS nuisances. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "$LTCONFIG_VERSION" != "$VERSION"; then echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit 1 fi if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then echo "$modename: not configured to build any kind of library" 1>&2 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit 1 fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= # Parse our command line options once, thoroughly. while test $# -gt 0 do arg="$1" shift case "$arg" in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case "$prev" in execute_dlfiles) eval "$prev=\"\$$prev \$arg\"" ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case "$arg" in --help) show_help=yes ;; --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION" exit 0 ;; --dry-run | -n) run=: ;; --features) echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit 0 ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --quiet | --silent) show=: ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit 1 ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit 1 fi if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then case "$nonopt" in *cc | *++ | gcc* | *-gcc*) mode=link for arg do case "$arg" in -c) mode=compile break ;; esac done ;; *db | *dbx) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit 1 fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case "$mode" in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= lastarg= srcfile="$nonopt" suppress_output= for arg do # Accept any command-line options. case "$arg" in -o) $echo "$modename: you cannot specify the output filename with \`-o'" 1>&2 $echo "$help" 1>&2 exit 1 ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; esac # Accept the current argument as the source file. lastarg="$srcfile" srcfile="$arg" # Aesthetically quote the previous argument. # Backslashify any backslashes, double quotes, and dollar signs. # These are the only characters that are still specially # interpreted inside of double-quoted scrings. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly in scan # sets, so we specify it separately. case "$lastarg" in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) lastarg="\"$lastarg\"" ;; esac # Add the previous argument to base_compile. if test -z "$base_compile"; then base_compile="$lastarg" else base_compile="$base_compile $lastarg" fi done # Get the name of the library object. libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` # Recognize several different file suffixes. xform='[cCFSfms]' case "$libobj" in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case "$libobj" in *.lo) obj=`$echo "X$libobj" | $Xsed -e 's/\.lo$/.o/'` ;; *) $echo "$modename: cannot determine name of library object from \`$srcfile'" 1>&2 exit 1 ;; esac if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit 1 fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then $run $rm $obj $libobj trap "$run $rm $obj $libobj; exit 1" 1 2 15 else $run $rm $libobj trap "$run $rm $libobj; exit 1" 1 2 15 fi # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile # All platforms use -DPIC, to notify preprocessed assembler code. $show "$base_compile$pic_flag -DPIC $srcfile" if $run eval "$base_compile\$pic_flag -DPIC \$srcfile"; then : else test -n "$obj" && $run $rm $obj exit 1 fi # If we have no pic_flag, then copy the object into place and finish. if test -z "$pic_flag"; then $show "$LN_S $obj $libobj" $run $LN_S $obj $libobj exit $? fi # Just move the object, then go on to compile the next one $show "$mv $obj $libobj" $run $mv $obj $libobj || exit 1 # Allow error messages only from the first compilation. suppress_output=' >/dev/null 2>&1' fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then # Suppress compiler output if we already did a PIC compilation. $show "$base_compile $srcfile$suppress_output" if $run eval "$base_compile \$srcfile$suppress_output"; then : else $run $rm $obj $libobj exit 1 fi fi # Create an invalid libtool object if no PIC, so that we do not # accidentally link it into a program. if test "$build_libtool_libs" != yes; then $show "echo timestamp > $libobj" $run eval "echo timestamp > \$libobj" || exit $? fi exit 0 ;; # libtool link mode link) modename="$modename: link" CC="$nonopt" allow_undefined=yes compile_command="$CC" finalize_command="$CC" compile_shlibpath= finalize_shlibpath= deplibs= dlfiles= dlprefiles= export_dynamic=no hardcode_libdirs= libobjs= link_against_libtool_libs= ltlibs= objs= prev= prevarg= release= rpath= perm_rpath= temp_rpath= vinfo= # We need to know -static, to get the right output filenames. for arg do case "$arg" in -all-static | -static) if test "X$arg" = "X-all-static" && test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 fi build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. for arg do # If the previous option needs an argument, assign it. if test -n "$prev"; then case "$prev" in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case "$prev" in dlfiles|dlprefiles) case "$arg" in *.la | *.lo) ;; # We handle these cases below. *) dlprefiles="$dlprefiles $arg" test "$prev" = dlfiles && dlfiles="$dlfiles $arg" prev= ;; esac ;; release) release="-$arg" prev= continue ;; rpath) rpath="$rpath $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi prevarg="$arg" case "$arg" in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) if test "$export_dynamic" != yes; then export_dynamic=yes if test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" else arg= fi # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" fi ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'` case "$dir" in /* | [A-Za-z]:\\*) # Add the corresponding hardcode_libdir_flag, if it is not identical. ;; *) $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2 exit 1 ;; esac deplibs="$deplibs $arg" ;; -l*) deplibs="$deplibs $arg" ;; -no-undefined) allow_undefined=no continue ;; -o) prev=output ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -static) # If we have no pic_flag, then this is the same as -all-static. if test -z "$pic_flag" && test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -version-info) prev=vinfo continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case "$arg" in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac ;; *.o | *.a) # A standard object. objs="$objs $arg" ;; *.lo) # A library object. if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" if test "$build_libtool_libs" = yes; then prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e 's/\.lo$/\.o/'` prev= fi libobjs="$libobjs $arg" ;; *.la) # A libtool-controlled library. dlname= libdir= library_names= old_library= # Check to see that this really is a libtool archive. if (sed -e '2q' $arg | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then : else $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2 exit 1 fi # If there is no directory component, then add one. case "$arg" in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$libdir"; then $echo "$modename: \`$arg' contains no -rpath information" 1>&2 exit 1 fi # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$arg'" 1>&2 exit 1 fi # Find the relevant object directory and library name. name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'` dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$arg"; then dir="$objdir" else dir="$dir/$objdir" fi # This library was specified with -dlopen. if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" if test -z "$dlname"; then # If there is no dlname, we need to preload. prev=dlprefiles else # We should not create a dependency on this library, but we # may need any libraries it requires. compile_command="$compile_command$dependency_libs" finalize_command="$finalize_command$dependency_libs" prev= continue fi fi # The library was specified with -dlpreopen. if test "$prev" = dlprefiles; then # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then dlprefiles="$dlprefiles $dir/$old_library" else dlprefiles="$dlprefiles $dir/$linklib" fi prev= fi if test "$build_libtool_libs" = yes && test -n "$library_names"; then link_against_libtool_libs="$link_against_libtool_libs $arg" if test -n "$shlibpath_var"; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *) temp_rpath="$temp_rpath $dir" ;; esac fi # This is the magic to use -rpath. if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then # Put the magic libdir with the hardcode flag. hardcode_libdirs="$libdir" libdir="@HARDCODE_LIBDIRS@" else # Just accumulate the unique libdirs. case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac libdir= fi fi if test -n "$libdir"; then eval flag=\"$hardcode_libdir_flag_spec\" compile_command="$compile_command $flag" finalize_command="$finalize_command $flag" fi elif test -n "$runpath_var"; then # Do the same for the permanent run path. case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case "$hardcode_action" in immediate) if test "$hardcode_direct" = no; then compile_command="$compile_command $dir/$linklib" elif test "$hardcode_minus_L" = no; then compile_command="$compile_command -L$dir -l$name" elif test "$hardcode_shlibpath_var" = no; then compile_shlibpath="$compile_shlibpath$dir:" compile_command="$compile_command -l$name" fi ;; relink) # We need an absolute path. case "$dir" in /* | [A-Za-z]:\\*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 exit 1 fi dir="$absdir" ;; esac if test "$hardcode_direct" = yes; then compile_command="$compile_command $dir/$linklib" elif test "$hardcode_minus_L" = yes; then compile_command="$compile_command -L$dir -l$name" elif test "$hardcode_shlibpath_var" = yes; then compile_shlibpath="$compile_shlibpath$dir:" compile_command="$compile_command -l$name" fi ;; *) $echo "$modename: \`$hardcode_action' is an unknown hardcode action" 1>&2 exit 1 ;; esac # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then finalize_command="$finalize_command $libdir/$linklib" elif test "$hardcode_minus_L" = yes; then finalize_command="$finalize_command -L$libdir -l$name" elif test "$hardcode_shlibpath_var" = yes; then finalize_shlibpath="$finalize_shlibpath$libdir:" finalize_command="$finalize_command -l$name" else # We cannot seem to hardcode it, guess we'll fake it. finalize_command="$finalize_command -L$libdir -l$name" fi else # Transform directly to old archives if we don't build new libraries. if test -n "$pic_flag" && test -z "$old_library"; then $echo "$modename: cannot find static library for \`$arg'" 1>&2 exit 1 fi # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_command="$compile_command $dir/$linklib" finalize_command="$finalize_command $dir/$linklib" else compile_command="$compile_command -L$dir -l$name" finalize_command="$finalize_command -L$dir -l$name" fi fi # Add in any libraries that this one depends upon. compile_command="$compile_command$dependency_libs" finalize_command="$finalize_command$dependency_libs" continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case "$arg" in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac ;; esac # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit 1 fi if test -n "$vinfo" && test -n "$release"; then $echo "$modename: you cannot specify both \`-version-info' and \`-release'" 1>&2 $echo "$help" 1>&2 exit 1 fi oldlib= oldobjs= case "$output" in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit 1 ;; */* | *\\*) $echo "$modename: output file \`$output' must have no directory components" 1>&2 exit 1 ;; *.a) # Now set the variables for building old libraries. build_libtool_libs=no build_old_libs=yes oldlib="$output" $show "$rm $oldlib" $run $rm $oldlib ;; *.la) # Make sure we only generate libraries of the form `libNAME.la'. case "$output" in lib*) ;; *) $echo "$modename: libtool library \`$arg' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac name=`$echo "X$output" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval libname=\"$libname_spec\" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= current=0 revision=0 age=0 if test -n "$objs"; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1 exit 1 fi # How the heck are we supposed to write a wrapper for a shared library? if test -n "$link_against_libtool_libs"; then $echo "$modename: libtool library \`$output' may not depend on uninstalled libraries:$link_against_libtool_libs" 1>&2 exit 1 fi if test -n "$dlfiles$dlprefiles"; then $echo "$modename: warning: \`-dlopen' is ignored while creating libtool libraries" 1>&2 # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test -z "$rpath"; then $echo "$modename: you must specify an installation directory with \`-rpath'" 1>&2 $echo "$help" 1>&2 exit 1 fi set dummy $rpath if test $# -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" # Parse the version information argument. IFS="${IFS= }"; save_ifs="$IFS"; IFS=':' set dummy $vinfo IFS="$save_ifs" if test -n "$5"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit 1 fi test -n "$2" && current="$2" test -n "$3" && revision="$3" test -n "$4" && age="$4" # Check that each of the things are valid numbers. case "$current" in 0 | [1-9] | [1-9][0-9]*) ;; *) $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 ;; esac case "$revision" in 0 | [1-9] | [1-9][0-9]*) ;; *) $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 ;; esac case "$age" in 0 | [1-9] | [1-9][0-9]*) ;; *) $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 ;; esac if test $age -gt $current; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 fi # Calculate the version variables. version_vars="version_type current age revision" case "$version_type" in none) ;; linux) version_vars="$version_vars major versuffix" major=`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) version_vars="$version_vars versuffix verstring" major=`expr $current - $age` versuffix="$current.$age.$revision" verstring="$versuffix" # Add in all the interfaces that we are compatible with. loop=$age while test $loop != 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) version_vars="$version_vars major versuffix" major="$current" versuffix="$current.$revision" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit 1 ;; esac # Create the output directory, or remove our outputs if we need to. if test -d $objdir; then $show "$rm $objdir/$output $objdir/$libname.* $objdir/${libname}${release}.*" $run $rm $objdir/$output $objdir/$libname.* $objdir/${libname}${release}.* else $show "$mkdir $objdir" $run $mkdir $objdir status=$? if test $status -eq 0 || test -d $objdir; then : else exit $status fi fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi # Add libc to deplibs on all systems. dependency_libs="$deplibs" deplibs="$deplibs -lc" if test "$build_libtool_libs" = yes; then # Get the real and link names of the library. eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi lib="$objdir/$realname" for link do linknames="$linknames $link" done # Use standard objects if they are PIC. test -z "$pic_flag" && libobjs=`$echo "X$libobjs " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//g'` # Do each of the archive commands. eval cmds=\"$archive_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Create links to the real library. for linkname in $linknames; do $show "(cd $objdir && $LN_S $realname $linkname)" $run eval '(cd $objdir && $LN_S $realname $linkname)' || exit $? done # If -export-dynamic was specified, set the dlname. if test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi # Now set the variables for building old libraries. oldlib="$objdir/$libname.a" ;; *.lo | *.o) if test -n "$link_against_libtool_libs"; then $echo "$modename: error: cannot link libtool libraries into reloadable objects" 1>&2 exit 1 fi if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored while creating objects" 1>&2 fi if test -n "$dlfiles$dlprefiles"; then $echo "$modename: warning: \`-dlopen' is ignored while creating objects" 1>&2 # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored while creating objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored while creating objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored while creating objects" 1>&2 fi case "$output" in *.lo) if test -n "$objs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit 1 fi libobj="$output" obj=`$echo "X$output" | $Xsed -e 's/\.lo$/.o/'` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Create the old-style object. reload_objs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^ ]*\.a //g' -e 's/\.lo /.o /g' -e 's/ $//g'` output="$obj" eval cmds=\"$reload_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. test -z "$libobj" && exit 0 if test "$build_libtool_libs" != yes; then # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. $show "echo timestamp > $libobj" $run eval "echo timestamp > $libobj" || exit $? exit 0 fi if test -n "$pic_flag"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs" output="$libobj" eval cmds=\"$reload_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" else # Just create a symlink. $show "$LN_S $obj $libobj" $run $LN_S $obj $libobj || exit 1 fi exit 0 ;; *) if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored while linking programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored while creating objects" 1>&2 fi if test -n "$rpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then # Put the magic libdir with the hardcode flag. hardcode_libdirs="$libdir" libdir="@HARDCODE_LIBDIRS@" else # Just accumulate the unique libdirs. case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac libdir= fi fi if test -n "$libdir"; then eval flag=\"$hardcode_libdir_flag_spec\" compile_command="$compile_command $flag" finalize_command="$finalize_command $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done fi # Substitute the hardcoded libdirs into the compile commands. if test -n "$hardcode_libdir_separator"; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"` fi if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//'` finalize_command=`$echo "X$finalize_command " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//'` fi if test "$export_dynamic" = yes && test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${output}S.c" else dlsyms= fi if test -n "$dlsyms"; then # Add our own program objects to the preloaded list. dlprefiles=`$echo "X$objs$dlprefiles " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//'` # Discover the nlist of each of the dlfiles. nlist="$objdir/${output}.nm" if test -d $objdir; then $show "$rm $nlist ${nlist}T" $run $rm "$nlist" "${nlist}T" else $show "$mkdir $objdir" $run $mkdir $objdir status=$? if test $status -eq 0 || test -d $objdir; then : else exit $status fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done # Parse the name list into a source file. $show "creating $objdir/$dlsyms" if test -z "$run"; then # Make sure we at least have an empty file. test -f "$nlist" || : > "$nlist" # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" wcout=`wc "$nlist" 2>/dev/null` count=`echo "X$wcout" | $Xsed -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'` (test "$count" -ge 0) 2>/dev/null || count=-1 else $rm "$nlist"T count=-1 fi case "$dlsyms" in "") ;; *.c) $echo > "$objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$output' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define dld_preloaded_symbol_count some_other_symbol #define dld_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test -f "$nlist"; then sed -e 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> "$objdir/$dlsyms" else echo '/* NONE */' >> "$objdir/$dlsyms" fi $echo >> "$objdir/$dlsyms" "\ #undef dld_preloaded_symbol_count #undef dld_preloaded_symbols #if defined (__STDC__) && __STDC__ # define __ptr_t void * #else # define __ptr_t char * #endif /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */ int dld_preloaded_symbol_count = $count; /* The mapping between symbol names and symbols. */ struct { char *name; __ptr_t address; } dld_preloaded_symbols[] = {\ " if test -f "$nlist"; then sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$nlist" >> "$objdir/$dlsyms" fi $echo >> "$objdir/$dlsyms" "\ {0, (__ptr_t) 0} }; #ifdef __cplusplus } #endif\ " ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit 1 ;; esac fi # Now compile the dynamic symbol file. $show "(cd $objdir && $CC -c$no_builtin_flag \"$dlsyms\")" $run eval '(cd $objdir && $CC -c$no_builtin_flag "$dlsyms")' || exit $? # Transform the symbol file into the correct name. compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.o%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.o%"` elif test "$export_dynamic" != yes; then test -n "$dlfiles$dlprefiles" && $echo "$modename: warning: \`-dlopen' and \`-dlpreopen' are ignored without \`-export-dynamic'" 1>&2 else # We keep going just in case the user didn't refer to # dld_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # We have no uninstalled library dependencies, so finalize right now. $show "$compile_command" $run eval "$compile_command" exit $? fi # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$objdir/$output"'%g'` finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$objdir/$output"'T%g'` # Create the binary in the object directory, then wrap it. if test -d $objdir; then : else $show "$mkdir $objdir" $run $mkdir $objdir status=$? if test $status -eq 0 || test -d $objdir; then : else exit $status fi fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case "$dir" in /* | [A-Za-z]:\\*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi # Delete the old output file. $run $rm $output if test -n "$compile_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_command="$runpath_var=\"$rpath\$$runpath_var\" $compile_command" finalize_command="$runpath_var=\"$rpath\$$runpath_var\" $finalize_command" fi case "$hardcode_action" in relink) # AGH! Flame the AIX and HP-UX people for me, will ya? $echo "$modename: warning: using a buggy system linker" 1>&2 $echo "$modename: relinking will be required before \`$output' can be installed" 1>&2 ;; esac $show "$compile_command" $run eval "$compile_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the finalize command for shipping. finalize_command=`$echo "X$finalize_command" | $Xsed -e "$sed_quote_subst"` # Quote $echo for shipping. qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` # Only actually do things if our run command is non-null. if test -z "$run"; then $rm $output trap "$rm $output; exit 1" 1 2 15 $echo > $output "\ #! /bin/sh # $output - temporary wrapper script for $objdir/$output # Generated by ltmain.sh - GNU $PACKAGE $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of \``pwd`'. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: link_against_libtool_libs='$link_against_libtool_libs' finalize_command=\"$finalize_command\" else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" = \"$magic\"; then : else echo=\"$qecho\" file=\"\$0\" fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in /* | [A-Za-z]:\\*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" progdir=\"\$thisdir/$objdir\" program='$output' if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/:*\$//'\` export $shlibpath_var " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. # Export the path to the program. PATH=\"\$progdir:\$PATH\" export PATH exec \$program \${1+\"\$@\"} \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit 1 fi else # The program doesn't exist. \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " chmod +x $output fi exit 0 ;; esac # See if we need to build an old-fashioned archive. if test "$build_old_libs" = "yes"; then # Transform .lo files to .o files. oldobjs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^ ]*\.a //g' -e 's/\.lo /.o /g' -e 's/ $//g'` # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then eval cmds=\"$old_archive_from_new_cmds\" else eval cmds=\"$old_archive_cmds\" fi IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Now create the libtool archive. case "$output" in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.a" $show "creating $output" # Only create the output if not a dry run. if test -z "$run"; then $echo > $output "\ # $output - a libtool library file # Generated by ltmain.sh - GNU $PACKAGE $VERSION # The name that we can dlopen(3). dlname='$dlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Directory that this library needs to be installed in: libdir='$install_libdir'\ " fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $objdir && $LN_S ../$output $output)" $run eval "(cd $objdir && $LN_S ../$output $output)" || exit 1 ;; esac exit 0 ;; # libtool install mode install) modename="$modename: install" # There may be an optional /bin/sh argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL"; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case "$arg" in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg="$nonopt" fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case "$arg" in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir= stripme= for arg do if test -n "$dest"; then files="$files $dest" dest="$arg" continue fi case "$arg" in -d) isdir=yes ;; -f) prev="-f" ;; -g) prev="-g" ;; -m) prev="-m" ;; -o) prev="-o" ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest="$arg" continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case "$arg" in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit 1 fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit 1 fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit 1 fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test -n "$isdir"; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test $# -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit 1 fi fi case "$destdir" in /* | [A-Za-z]:\\*) ;; *) for file in $files; do case "$file" in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case "$file" in *.a) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit 1 fi library_names= old_library= # If there is no directory component, then add one. case "$file" in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/" test "X$dir" = "X$file/" && dir= dir="$dir$objdir" # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift # Install the shared library and build the symlinks. $show "$install_prog $dir/$realname $destdir/$realname" $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $? test "X$dlname" = "X$realname" && dlname= if test $# -gt 0; then # Delete the old symlinks. rmcmd="$rm" for linkname do rmcmd="$rmcmd $destdir/$linkname" done $show "$rmcmd" $run $rmcmd # ... and create new ones. for linkname do test "X$dlname" = "X$linkname" && dlname= $show "(cd $destdir && $LN_S $realname $linkname)" $run eval "(cd $destdir && $LN_S $realname $linkname)" done fi if test -n "$dlname"; then # Install the dynamically-loadable library. $show "$install_prog $dir/$dlname $destdir/$dlname" $run eval "$install_prog $dir/$dlname $destdir/$dlname" || exit $? fi # Do each command in the postinstall commands. lib="$destdir/$realname" eval cmds=\"$postinstall_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` $show "$install_prog $file $destdir/$name" $run eval "$install_prog $file $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case "$destfile" in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e 's/\.lo$/\.o/'` ;; *.o) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e 's/\.lo$/\.o/'` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit 0 ;; *) # Do a test to see if this is really a libtool program. if (sed -e '4q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then link_against_libtool_libs= finalize_command= # If there is no directory component, then add one. case "$file" in */* | *\\*) . $file ;; *) . ./$file ;; esac # Check the variables that should have been set. if test -z "$link_against_libtool_libs" || test -z "$finalize_command"; then $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 exit 1 fi finalize=yes for lib in $link_against_libtool_libs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case "$lib" in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`" if test -z "$libdir"; then $echo "$modename: warning: \`$lib' contains no -rpath information" 1>&2 elif test -f "$libfile"; then : else $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done if test "$hardcode_action" = relink; then if test "$finalize" = yes; then $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2 $show "$finalize_command" if $run eval "$finalize_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 continue fi file="$objdir/$file"T else $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi $show "$install_prog$stripme $file $dest" $run eval "$install_prog\$stripme \$file \$dest" || exit $? ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? # Do each command in the postinstall commands. eval cmds=\"$old_postinstall_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec $SHELL $0 --finish$current_libdirs exit 1 fi exit 0 ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. eval cmds=\"$finish_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" fi done fi echo "------------------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do echo " $libdir" done echo echo "To link against installed libraries in a given directory, LIBDIR," echo "you must use the \`-LLIBDIR' flag during linking." echo echo " You will also need to do one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" echo " - use the \`$flag' linker flag" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" echo "more information, such as the ld(1) and ld.so(8) manual pages." echo "------------------------------------------------------------------------------" exit 0 ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit 1 fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test -f "$file"; then : else $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit 1 fi dir= case "$file" in *.la) # Check to see that this really is a libtool archive. if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit 1 fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case "$file" in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit 1 fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case "$file" in -*) ;; *) # Do a test to see if this is really a libtool program. if (sed -e '4q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then # If there is no directory component, then add one. case "$file" in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then # Export the shlibpath_var. eval "export $shlibpath_var" # Now actually exec the command. eval "exec \$cmd$args" $echo "$modename: cannot exec \$cmd$args" exit 1 else # Display what would be done. eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" $echo "$cmd$args" exit 0 fi ;; # libtool uninstall mode uninstall) modename="$modename: uninstall" rm="$nonopt" files= for arg do case "$arg" in -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit 1 fi for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` rmfiles="$file" case "$name" in *.la) # Possibly a libtool archive, so verify it. if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $dir/$n" test "X$n" = "X$dlname" && dlname= done test -n "$dlname" && rmfiles="$rmfiles $dir/$dlname" test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library" $show "$rm $rmfiles" $run $rm $rmfiles if test -n "$library_names"; then # Do each command in the postuninstall commands. eval cmds=\"$postuninstall_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. eval cmds=\"$old_postuninstall_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS=';' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. fi ;; *.lo) if test "$build_old_libs" = yes; then oldobj=`$echo "X$name" | $Xsed -e 's/\.lo$/\.o/'` rmfiles="$rmfiles $dir/$oldobj" fi $show "$rm $rmfiles" $run $rm $rmfiles ;; *) $show "$rm $rmfiles" $run $rm $rmfiles ;; esac done exit 0 ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit 1 ;; esac $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit 1 fi # test -z "$show_help" # We need to display help for each of the modes. case "$mode" in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. -n, --dry-run display commands without modifying any files --features display configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --version print version information MODE must be one of the following: compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE." exit 0 ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to dld_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required. If OUTPUT-FILE ends in \`.a', then a standard library is created using \`ar' and \`ranlib'. If OUTPUT-FILE ends in \`.lo' or \`.o', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac echo $echo "Try \`$modename --help' for more information about other modes." exit 0 # Local Variables: # mode:shell-script # sh-indentation:2 # End: dokvok-0.1.3/missing 755 764 144 14202 6520224206 7505 #! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997 Free Software Foundation, Inc. # Franc,ois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing - GNU libit 0.0" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`configure.in'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` if test -z "$files"; then files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` test -z "$files" || files="$files.in" else files=`echo "$files" | sed -e 's/:/ /g'` fi test -z "$files" && files="config.h.in" touch $files ;; automake) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print \ | sed 's/^\(.*\).am$/touch \1.in/' \ | sh ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 dokvok-0.1.3/mkinstalldirs 755 764 144 1332 6416214750 10703 #! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Last modified: 1994-03-25 # Public domain errstatus=0 for file in ${1+"$@"} ; do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d in ${1+"$@"} ; do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$? fi if test ! -d "$pathcomp"; then errstatus=$lasterr fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here dokvok-0.1.3/dokvok.kdevprj 644 764 144 34361 7070113366 11007 # KDE Config File [dokvok/docs/en/Makefile.am] files=dokvok/docs/en/index-1.html,dokvok/docs/en/index-2.html,dokvok/docs/en/index-3.html,dokvok/docs/en/index-4.html,dokvok/docs/en/index-5.html,dokvok/docs/en/index-6.html,dokvok/docs/en/index.html,dokvok/docs/en/logotp3.png, type=normal sub_dirs= [dokvok/docs/de/index-4.html] install_location=$$(kde_htmldir)/de/dokvok/index-4.html dist=true install=true type=DATA [Workspace_1] openfiles=Unbenannt.h,Unbenannt.cpp,/home/kossebau/dokvok/dokvok/dokvok.h,/home/kossebau/dokvok/dokvok/main.cpp,/home/kossebau/dokvok/po/de.gmo,/home/kossebau/dokvok/dokvok/Abfrage/vabfrage.cpp, show_outputview=true show_treeview=true header_file=/home/kossebau/dokvok/po/de.gmo cpp_file=/home/kossebau/dokvok/dokvok/Abfrage/vabfrage.cpp browser_file=file:/home/kossebau/dokvok/dokvok/docs/en/index.html [dokvok/vvokabel.cpp] install_location= dist=true install=false type=SOURCE [COPYING] install_location= dist=true install=false type=DATA [dokvok/Dialoge/vlangbox.cpp] install_location= dist=true install=false type=SOURCE [dokvok/dokvok.h] install_location= dist=true install=false type=HEADER [dokvok/Abfrage/vquestdialog.h] install_location= dist=true install=false type=HEADER [dokvok/kde/education_package.xpm] install_location=$$(kde_icondir)/education_package.xpm dist=true install=true type=DATA [Config for BinMakefileAm] ldflags= addcxxflags= ldadd=-lkfile -lkfm -lkdeui -lkdecore -lqt -lXext -lX11 bin_program=dokvok cxxflags=-O0 -g1 -Wall [dokvok/docs/de/index-5.html] install_location=$$(kde_htmldir)/de/dokvok/index-5.html dist=true install=true type=DATA [dokvok/Dialoge/vlangdialog.cpp] install_location= dist=true install=false type=SOURCE [dokvok/vvocabulary.cpp] install_location= dist=true install=false type=SOURCE [po/Makefile.am] files=po/de.po,po/de.gmo, type=po sub_dirs= [dokvok/docs/de/logotp3.png] install_location=$$(kde_htmldir)/de/dokvok/logotp3.png dist=true install=true type=DATA [dokvok/View/listedit.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Dialoge/vdialog.h] install_location= dist=true install=false type=HEADER [README] install_location= dist=true install=false type=DATA [dokvok/kde/vok.xpm] install_location=$$(kde_icondir)/vok.xpm dist=true install=true type=DATA [dokvok/vtyplist.cpp] install_location= dist=true install=false type=SOURCE [dokvok/kde/languages.xpm] install_location=$$(kde_datadir)/dokvok/toolbar/languages.xpm dist=true install=true type=DATA [dokvok/kde/mini-education_package.xpm] install_location=$$(kde_minidir)/education_package.xpm dist=true install=true type=DATA [dokvok/vvokabellist.h] install_location= dist=true install=false type=HEADER [dokvok/docs/de/index-2.html] install_location=$$(kde_htmldir)/de/dokvok/index-2.html dist=true install=true type=DATA [dokvok/kde/filedel.xpm] install_location=$$($$kde_share)/apps/dokvok/filedel.xpm dist=true install=false type=DATA [dokvok/View/listedit.h] install_location= dist=true install=false type=HEADER [dokvok/Abfrage/vstring.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Abfrage/vchecker.h] install_location= dist=true install=false type=HEADER [po/de.gmo] install_location=$$(kde_localedir)/de/LC_MESSAGES/dokvok.mo dist=true install=true type=DATA [dokvok/vlanguage.h] install_location= dist=true install=false type=HEADER [dokvok/Dialoge/vdialog.cpp] install_location= dist=true install=false type=SOURCE [LFV Groups] Andere=*, GNU=AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,NEWS, Quellen=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l, Dialoge=*.kdevdlg, groups=Icons,Headers,Quellen,Dialoge,Übersetzungen,GNU,Andere, Icons=*.xpm, Übersetzungen=*.po, Headers=*.h,*.hxx,*.hpp,*.H, [dokvok/vlanguage.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Abfrage/vabfrage.cpp] install_location= dist=true install=false type=SOURCE [dokvok/dokvok.cpp] install_location= dist=true install=false type=SOURCE [dokvok/docs/en/index-4.html] install_location=$$(kde_htmldir)/en/dokvok/index-4.html dist=true install=true type=DATA [dokvok/docs/de/index-3.html] install_location=$$(kde_htmldir)/de/dokvok/index-3.html dist=true install=true type=DATA [dokvok/kde/large-vokfolder.xpm] install_location=$$(kde_icondir)/large/vokfolder.xpm dist=true install=true type=DATA [dokvok/kde/vokfolder.xpm] install_location=$$(kde_icondir)/vokfolder.xpm dist=true install=true type=DATA [dokvok/Dialoge/veditdialog.cpp] install_location= dist=true install=false type=SOURCE [dokvok/kde/mini-vokfolder.xpm] install_location=$$(kde_minidir)/vokfolder.xpm dist=true install=true type=DATA [dokvok/View/dokvokview.h] install_location= dist=true install=false type=HEADER [dokvok/vtyplist.h] install_location= dist=true install=false type=HEADER [dokvok/Dialoge/Makefile.am] files=dokvok/Dialoge/vdialog.cpp,dokvok/Dialoge/vdialog.h,dokvok/Dialoge/veditdialog.cpp,dokvok/Dialoge/veditdialog.h,dokvok/Dialoge/vlangbox.cpp,dokvok/Dialoge/vlangbox.h,dokvok/Dialoge/dokvokdialog.cpp,dokvok/Dialoge/dokvokdialog.h,dokvok/Dialoge/vlangdialog.cpp,dokvok/Dialoge/vlangdialog.h,dokvok/Dialoge/vlistdialog.cpp,dokvok/Dialoge/vlistdialog.h,dokvok/Dialoge/vtypedit.cpp,dokvok/Dialoge/vtypedit.h, type=static_library sub_dirs= [dokvok/Abfrage/vquestdialog.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Abfrage/Makefile.am] files=dokvok/Abfrage/dokvokfigure.cpp,dokvok/Abfrage/dokvokfigure.h,dokvok/Abfrage/vabfrage.cpp,dokvok/Abfrage/vabfrage.h,dokvok/Abfrage/vabfragedialog.cpp,dokvok/Abfrage/vabfragedialog.h,dokvok/Abfrage/vchecker.cpp,dokvok/Abfrage/vchecker.h,dokvok/Abfrage/vstring.cpp,dokvok/Abfrage/vstring.h,dokvok/Abfrage/vquestdialog.cpp,dokvok/Abfrage/vquestdialog.h, sub_dirs= type=static_library [dokvok/kde/mini-vok.xpm] install_location=$$(kde_minidir)/vok.xpm dist=true install=true type=DATA [dokvok/docs/en/index-5.html] install_location=$$(kde_htmldir)/en/dokvok/index-5.html dist=true install=true type=DATA [dokvok/vwissen.cpp] install_location= dist=true install=false type=SOURCE [dokvok/kde/directory] install_location=$$(kde_appsdir)/Education/.directory dist=true install=true type=DATA [dokvok/Dialoge/vlangbox.h] install_location= dist=true install=false type=HEADER [dokvok/File/vlangfile.cpp] install_location= dist=true install=false type=SOURCE [dokvok/pics/Makefile.am] files=dokvok/pics/dokvokright.xpm,dokvok/pics/dokvoksmiling.xpm,dokvok/pics/dokvokwrong.xpm, sub_dirs= type=normal [dokvok/docs/de/Makefile.am] files=dokvok/docs/de/index.html,dokvok/docs/de/index-6.html,dokvok/docs/de/index-5.html,dokvok/docs/de/index-4.html,dokvok/docs/de/index-3.html,dokvok/docs/de/index-2.html,dokvok/docs/de/index-1.html,dokvok/docs/de/logotp3.png, type=normal sub_dirs= [dokvok/vtyp.cpp] install_location= dist=true install=false type=SOURCE [dokvok/File/vvokfile.cpp] install_location= dist=true install=false type=SOURCE [dokvok/vvocabulary.h] install_location= dist=true install=false type=HEADER [dokvok/docs/de/index-6.html] install_location=$$(kde_htmldir)/de/dokvok/index-6.html dist=true install=true type=DATA [dokvok/Abfrage/dokvokfigure.h] install_location= dist=true install=false type=HEADER [dokvok/kde/large-education_package.xpm] install_location=$$(kde_icondir)/large/education_package.xpm dist=true install=true type=DATA [dokvok/dokvokdoc.h] install_location= dist=true install=false type=HEADER [dokvok/docs/en/index-2.html] install_location=$$(kde_htmldir)/en/dokvok/index-2.html dist=true install=true type=DATA [dokvok/docs/de/index-1.html] install_location=$$(kde_htmldir)/de/dokvok/index-1.html dist=true install=true type=DATA [dokvok/Dialoge/vtypedit.cpp] install_location= dist=true install=false type=SOURCE [dokvok/kde/mini-dokvok.xpm] install_location=$$(kde_minidir)/dokvok.xpm dist=true install=true type=DATA [dokvok/main.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Dialoge/dokvokdialog.h] install_location= dist=true install=false type=HEADER [dokvok/View/dokvokview.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Makefile.am] files=dokvok/main.cpp,dokvok/dokvok.cpp,dokvok/dokvok.h,dokvok/dokvokdoc.cpp,dokvok/dokvokdoc.h,dokvok/resource.h,dokvok/vvokabel.cpp,dokvok/vvokabel.h,dokvok/vvokabellist.cpp,dokvok/vvokabellist.h,dokvok/vvocabulary.cpp,dokvok/vvocabulary.h,dokvok/vtyp.cpp,dokvok/vtyp.h,dokvok/vlanguage.cpp,dokvok/vlanguage.h,dokvok/vtyplist.cpp,dokvok/vtyplist.h,dokvok/vwissen.cpp,dokvok/vwissen.h, type=prog_main sub_dirs=docs,kde,pics,Dialoge,Abfrage,File,View, [dokvok/docs/Makefile.am] type=normal sub_dirs=en,de, [dokvok/kde/filerevert.xpm] install_location=$$(kde_datadir)/dokvok/toolbar/filerevert.xpm dist=true install=true type=DATA [dokvok/View/vvoklist.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Dialoge/veditdialog.h] install_location= dist=true install=false type=HEADER [dokvok/pics/dokvokwrong.xpm] install_location=$$(kde_datadir)/dokvok/pics/dokvokwrong.xpm dist=true install=true type=DATA [dokvok/docs/en/logotp3.png] install_location=$$(kde_htmldir)/en/dokvok/logotp3.png dist=true install=true type=DATA [dokvok/Dialoge/vlistdialog.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Abfrage/vabfragedialog.h] install_location= dist=true install=false type=HEADER [dokvok/Abfrage/vabfrage.h] install_location= dist=true install=false type=HEADER [dokvok/pics/dokvokright.xpm] install_location=$$(kde_datadir)/dokvok/pics/dokvokright.xpm dist=true install=true type=DATA [dokvok/docs/en/index-3.html] install_location=$$(kde_htmldir)/en/dokvok/index-3.html dist=true install=true type=DATA [dokvok/docs/de/index.html] install_location=$$(kde_htmldir)/de/dokvok/index.html dist=true install=true type=DATA [dokvok/kde/filenewfromthis.xpm] install_location=$$(kde_datadir)/dokvok/toolbar/filenewfromthis.xpm dist=true install=true type=DATA [dokvok/View/vvoklist.h] install_location= dist=true install=false type=HEADER [dokvok/kde/x-vok.kdelnk] install_location=$$(kde_mimedir)/application/x-vok.kdelnk dist=true install=true type=DATA [ChangeLog] install_location= dist=true install=false type=DATA [dokvok/Abfrage/vstring.h] install_location= dist=true install=false type=HEADER [po/de.po] install_location= dist=false install=false type=PO [General] make_options=-j1 makefiles=Makefile.am,dokvok/Makefile.am,dokvok/docs/Makefile.am,dokvok/docs/en/Makefile.am,po/Makefile.am,dokvok/docs/de/Makefile.am,dokvok/kde/Makefile.am,dokvok/pics/Makefile.am,dokvok/Dialoge/Makefile.am,dokvok/Abfrage/Makefile.am,dokvok/File/Makefile.am,dokvok/View/Makefile.am, version_control=None project_type=normal_kde author=Friedrich W. H. Kossebau sub_dir=dokvok/ lfv_open_groups=Quellen,Übersetzungen,GNU, workspace=1 project_name=DokVok version=0.1.3 AMChanged=false sgml_file=/home/kossebau/dokvok/dokvok/docs/en/index.sgml short_info=, email=Friedrich.W.H@Kossebau.de kdevprj_version=1.0beta2 configure_args= modifyMakefiles=true [dokvok/dokvokdoc.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Dialoge/dokvokdialog.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Abfrage/vchecker.cpp] install_location= dist=true install=false type=SOURCE [dokvok/Abfrage/vabfragedialog.cpp] install_location= dist=true install=false type=SOURCE [dokvok/kde/dokvok.kdelnk] install_location=$$(kde_appsdir)/Education/dokvok.kdelnk dist=true install=true type=DATA [INSTALL] install_location= dist=true install=false type=DATA [TODO] install_location= dist=true install=false type=DATA [dokvok/kde/filenewfrom.xpm] install_location=$$(kde_datadir)/dokvok/toolbar/filenewfrom.xpm dist=true install=true type=DATA [dokvok/vvokabel.h] install_location= dist=true install=false type=HEADER [dokvok/resource.h] install_location= dist=true install=false type=HEADER [dokvok/kde/large-vok.xpm] install_location=$$(kde_icondir)/large/vok.xpm dist=true install=true type=DATA [dokvok.kdevprj] install_location= dist=true install=false type=DATA [dokvok/File/Makefile.am] files=dokvok/File/vlangfile.cpp,dokvok/File/vlangfile.h,dokvok/File/vvokfile.cpp,dokvok/File/vvokfile.h, sub_dirs= type=static_library [dokvok.lsm] install_location= dist=true install=false type=DATA [dokvok/docs/en/index-6.html] install_location=$$(kde_htmldir)/en/dokvok/index-6.html dist=true install=true type=DATA [dokvok/Dialoge/vlangdialog.h] install_location= dist=true install=false type=HEADER [dokvok/kde/large-dokvok.xpm] install_location=$$(kde_icondir)/large/dokvok.xpm dist=true install=true type=DATA [dokvok/docs/en/index-1.html] install_location=$$(kde_htmldir)/en/dokvok/index-1.html dist=true install=true type=DATA [dokvok/docs/en/index.html] install_location=$$(kde_htmldir)/en/dokvok/index.html dist=true install=true type=DATA [dokvok/View/Makefile.am] files=dokvok/View/dokvokview.cpp,dokvok/View/dokvokview.h,dokvok/View/listedit.cpp,dokvok/View/listedit.h,dokvok/View/vvoklist.cpp,dokvok/View/vvoklist.h, sub_dirs= type=static_library [dokvok/File/vlangfile.h] install_location= dist=true install=false type=HEADER [dokvok/kde/Makefile.am] files=dokvok/kde/directory,dokvok/kde/dokvok.kdelnk,dokvok/kde/dokvok.xpm,dokvok/kde/education_package.xpm,dokvok/kde/large-dokvok.xpm,dokvok/kde/large-education_package.xpm,dokvok/kde/large-vok.xpm,dokvok/kde/mini-dokvok.xpm,dokvok/kde/mini-education_package.xpm,dokvok/kde/mini-vok.xpm,dokvok/kde/vok.xpm,dokvok/kde/x-vok.kdelnk,dokvok/kde/large-vokfolder.xpm,dokvok/kde/mini-vokfolder.xpm,dokvok/kde/vokfolder.xpm,dokvok/kde/filedel.xpm,dokvok/kde/filenewfrom.xpm,dokvok/kde/filenewfromthis.xpm,dokvok/kde/filerevert.xpm,dokvok/kde/languages.xpm, sub_dirs= type=normal [dokvok/vvokabellist.cpp] install_location= dist=true install=false type=SOURCE [Makefile.am] files=dokvok.kdevprj,AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,dokvok.lsm, type=normal sub_dirs=dokvok,po, [dokvok/Dialoge/vtypedit.h] install_location= dist=true install=false type=HEADER [dokvok/vwissen.h] install_location= dist=true install=false type=HEADER [dokvok/File/vvokfile.h] install_location= dist=true install=false type=HEADER [dokvok/Abfrage/dokvokfigure.cpp] install_location= dist=true install=false type=SOURCE [AUTHORS] install_location= dist=true install=false type=DATA [dokvok/Dialoge/vlistdialog.h] install_location= dist=true install=false type=HEADER [dokvok/vtyp.h] install_location= dist=true install=false type=HEADER [dokvok/pics/dokvoksmiling.xpm] install_location=$$(kde_datadir)/dokvok/pics/dokvoksmiling.xpm dist=true install=true type=DATA [dokvok/kde/dokvok.xpm] install_location=$$(kde_icondir)/dokvok.xpm dist=true install=true type=DATA dokvok-0.1.3/dokvok.lsm 644 764 144 1026 7067360675 10122 Begin3 Title: DokVok Version: 0.1.3 Entered-date: Nov. 1999 Description: DokVok helps you to manage and learn your vocabulary Keywords: vocabulary words learning language fonts Author: Friedrich W. H. Kossebau Maintained-by: Friedrich W. H. Kossebau Primary-site: Home-page: http://rcswww.urz.tu-dresden.de/~kossebau/dokvok Original-site: Platforms: Linux and other Unices Copying-policy: GNU Public License End dokvok-0.1.3/dokvok/ 777 764 144 0 7070117410 7367 5dokvok-0.1.3/dokvok/Makefile.in 644 764 144 43313 7070117411 11455 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ # claim, which subdirectories you want to install # you can add here more. This one gets installed bin_PROGRAMS = dokvok dokvok_SOURCES = vwissen.cpp vtyplist.cpp vlanguage.cpp vtyp.cpp vvocabulary.cpp vvokabellist.cpp vvokabel.cpp dokvokdoc.cpp dokvok.cpp main.cpp dokvok_LDADD = ./Dialoge/libDialoge.a ./Abfrage/libAbfrage.a ./File/libFile.a ./View/libView.a -lkfile -lkfm -lkdeui -lkdecore -lqt -lXext -lX11 $(LIBSOCKET) SUBDIRS = docs kde pics Dialoge Abfrage File View EXTRA_DIST = main.cpp dokvok.cpp dokvok.h dokvokdoc.cpp dokvokdoc.h resource.h vvokabel.cpp vvokabel.h vvokabellist.cpp vvokabellist.h vvocabulary.cpp vvocabulary.h vtyp.cpp vtyp.h vlanguage.cpp vlanguage.h vtyplist.cpp vtyplist.h vwissen.cpp vwissen.h ####### kdevelop will overwrite this part!!! (end)############ # this 10 paths are KDE specific. Use them: # kde_htmldir Where your docs should go to. (contains lang subdirs) # kde_appsdir Where your application file (.kdelnk) should go to. # kde_icondir Where your icon should go to. # kde_minidir Where your mini icon should go to. # kde_datadir Where you install application data. (Use a subdir) # kde_locale Where translation files should go to.(contains lang subdirs) # kde_cgidir Where cgi-bin executables should go to. # kde_confdir Where config files should go to. # kde_mimedir Where mimetypes should go to. # kde_toolbardir Where general toolbar icons should go to. # kde_wallpaperdir Where general wallpapers should go to. # set the include path for X, qt and KDE INCLUDES = $(all_includes) dokvok_METASOURCES = dokvokdoc.moc.cpp dokvok.moc.cpp vvocabulary.moc.cpp # the library search path. dokvok_LDFLAGS = $(all_libraries) $(KDE_RPATH) # them while "make clean", use CLEANFILES DISTCLEANFILES = $(dokvok_METASOURCES) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = @DEFS@ -I. -I$(srcdir) -I.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ dokvok_OBJECTS = vwissen.o vtyplist.o vlanguage.o vtyp.o vvocabulary.o dokvokdoc.moc.o dokvok.moc.o vvocabulary.moc.o \ vvokabellist.o vvokabel.o dokvokdoc.o dokvok.o main.o dokvok_DEPENDENCIES = ./Dialoge/libDialoge.a ./Abfrage/libAbfrage.a \ ./File/libFile.a ./View/libView.a CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best SOURCES = $(dokvok_SOURCES) OBJECTS = $(dokvok_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .cpp .lo .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/Makefile cd $(top_srcdir) && perl automoc dokvok-0.1.3/dokvok/Makefile.in Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .s.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .S.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: maintainer-clean-libtool: dokvok: $(dokvok_OBJECTS) $(dokvok_DEPENDENCIES) @rm -f dokvok $(CXXLINK) $(dokvok_LDFLAGS) $(dokvok_OBJECTS) $(dokvok_LDADD) $(LIBS) .cpp.o: $(CXXCOMPILE) -c $< .cpp.lo: $(LTCXXCOMPILE) -c $< # 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. @SET_MAKE@ all-recursive install-data-recursive install-exec-recursive \ installdirs-recursive install-recursive uninstall-recursive \ check-recursive installcheck-recursive info-recursive dvi-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ rev="$$subdir $$rev"; \ test "$$subdir" = "." && dot_seen=yes; \ done; \ test "$$dot_seen" = "no" && 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done for subdir in $(SUBDIRS); do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ || exit 1; \ fi; \ done dokvokdoc.moc.o: dokvokdoc.moc.cpp dokvokdoc.h ../config.h vvocabulary.h \ vlanguage.h vtyplist.h vtyp.h vvokabellist.h vvokabel.h \ vwissen.h File/vvokfile.h Abfrage/vabfragedialog.h \ Abfrage/../vvokabellist.h Abfrage/dokvokfigure.h \ Abfrage/vabfrage.h Abfrage/../vvokabel.h Abfrage/vstring.h \ Abfrage/vchecker.h dokvokdoc.o: dokvokdoc.cpp ../config.h dokvokdoc.h vvocabulary.h \ vlanguage.h vtyplist.h vtyp.h vvokabellist.h vvokabel.h \ vwissen.h File/vvokfile.h Abfrage/vabfragedialog.h \ Abfrage/../vvokabellist.h Abfrage/dokvokfigure.h \ Abfrage/vabfrage.h Abfrage/../vvokabel.h Abfrage/vstring.h \ Abfrage/vchecker.h dokvok.h View/dokvokview.h \ View/../vtyplist.h View/vvoklist.h View/../vvokabellist.h \ View/listedit.h resource.h Dialoge/vlistdialog.h \ Dialoge/vdialog.h Dialoge/vlangbox.h Dialoge/../vlanguage.h \ Abfrage/vquestdialog.h Dialoge/vlangdialog.h Dialoge/vtypedit.h \ Dialoge/../vtyplist.h dokvok.moc.o: dokvok.moc.cpp dokvok.h ../config.h dokvok.o: dokvok.cpp ../config.h dokvok.h View/dokvokview.h \ View/../vtyplist.h View/../vtyp.h View/vvoklist.h \ View/../vvokabellist.h View/../vvokabel.h View/../vwissen.h \ View/listedit.h dokvokdoc.h vvocabulary.h vlanguage.h \ vtyplist.h vvokabellist.h File/vvokfile.h \ Abfrage/vabfragedialog.h Abfrage/../vvokabellist.h \ Abfrage/dokvokfigure.h Abfrage/vabfrage.h Abfrage/../vvokabel.h \ Abfrage/vstring.h Abfrage/vchecker.h resource.h \ Dialoge/dokvokdialog.h Dialoge/vdialog.h main.o: main.cpp ../config.h dokvok.h vlanguage.o: vlanguage.cpp ../config.h vlanguage.h vtyplist.h vtyp.h \ File/vlangfile.h vtyplist.o: vtyplist.cpp vtyplist.h vtyp.h vtyp.o: vtyp.cpp vtyp.h vvocabulary.moc.o: vvocabulary.moc.cpp vvocabulary.h vlanguage.h \ vtyplist.h vtyp.h vvokabellist.h vvokabel.h vwissen.h vvocabulary.o: vvocabulary.cpp vvocabulary.h vlanguage.h vtyplist.h \ vtyp.h vvokabellist.h vvokabel.h vwissen.h vvokabellist.o: vvokabellist.cpp vvokabellist.h vvokabel.h vtyp.h \ vwissen.h vvokabel.o: vvokabel.cpp vvokabel.h vtyp.h vwissen.h vwissen.o: vwissen.cpp vwissen.h info-am: info: info-recursive dvi-am: dvi: dvi-recursive check-am: all-am check: check-recursive installcheck-am: installcheck: installcheck-recursive install-exec-am: install-binPROGRAMS install-exec: install-exec-recursive install-data-am: install-data: install-data-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-recursive uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-recursive all-am: Makefile $(PROGRAMS) all-redirect: all-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: installdirs-recursive installdirs-am: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-libtool mostlyclean-tags \ mostlyclean-generic mostlyclean: mostlyclean-recursive clean-am: clean-binPROGRAMS clean-compile clean-libtool clean-tags \ clean-generic mostlyclean-am clean: clean-recursive distclean-am: distclean-binPROGRAMS distclean-compile distclean-libtool \ distclean-tags distclean-generic clean-am -rm -f libtool distclean: distclean-metasources distclean-recursive maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-libtool \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-recursive .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile mostlyclean-libtool distclean-libtool \ clean-libtool maintainer-clean-libtool install-data-recursive \ uninstall-data-recursive install-exec-recursive \ uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ all-recursive check-recursive installcheck-recursive info-recursive \ dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs-am \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # make messages.po. Move this one to ../po/ and "make merge" in po # the -x is for skipping messages already translated in kdelibs messages: $(XGETTEXT) -C -ki18n -x $(KDEDIR)/include/kde.pot `find . -name \*.h -o -name \*.cpp -o -name \*.cc` -o ../po/dokvok.pot # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvokdoc.moc.cpp: $(srcdir)/dokvokdoc.h $(MOC) $(srcdir)/dokvokdoc.h -o dokvokdoc.moc.cpp dokvok.moc.cpp: $(srcdir)/dokvok.h $(MOC) $(srcdir)/dokvok.h -o dokvok.moc.cpp vvocabulary.moc.cpp: $(srcdir)/vvocabulary.h $(MOC) $(srcdir)/vvocabulary.h -o vvocabulary.moc.cpp distclean-metasources: -rm -f dokvokdoc.moc.cpp dokvok.moc.cpp vvocabulary.moc.cpp # DO_NOT_USE_AUTOMOC dokvok-0.1.3/dokvok/Makefile.am 644 764 144 4140 7066761424 11435 ####### kdevelop will overwrite this part!!! (begin)########## bin_PROGRAMS = dokvok dokvok_SOURCES = vwissen.cpp vtyplist.cpp vlanguage.cpp vtyp.cpp vvocabulary.cpp vvokabellist.cpp vvokabel.cpp dokvokdoc.cpp dokvok.cpp main.cpp dokvok_LDADD = ./Dialoge/libDialoge.a ./Abfrage/libAbfrage.a ./File/libFile.a ./View/libView.a -lkfile -lkfm -lkdeui -lkdecore -lqt -lXext -lX11 $(LIBSOCKET) SUBDIRS = docs kde pics Dialoge Abfrage File View EXTRA_DIST = main.cpp dokvok.cpp dokvok.h dokvokdoc.cpp dokvokdoc.h resource.h vvokabel.cpp vvokabel.h vvokabellist.cpp vvokabellist.h vvocabulary.cpp vvocabulary.h vtyp.cpp vtyp.h vlanguage.cpp vlanguage.h vtyplist.cpp vtyplist.h vwissen.cpp vwissen.h ####### kdevelop will overwrite this part!!! (end)############ # this 10 paths are KDE specific. Use them: # kde_htmldir Where your docs should go to. (contains lang subdirs) # kde_appsdir Where your application file (.kdelnk) should go to. # kde_icondir Where your icon should go to. # kde_minidir Where your mini icon should go to. # kde_datadir Where you install application data. (Use a subdir) # kde_locale Where translation files should go to.(contains lang subdirs) # kde_cgidir Where cgi-bin executables should go to. # kde_confdir Where config files should go to. # kde_mimedir Where mimetypes should go to. # kde_toolbardir Where general toolbar icons should go to. # kde_wallpaperdir Where general wallpapers should go to. # set the include path for X, qt and KDE INCLUDES= $(all_includes) # claim, which subdirectories you want to install # you can add here more. This one gets installed bin_PROGRAMS = dokvok dokvok_METASOURCES = USE_AUTOMOC # the library search path. dokvok_LDFLAGS = $(all_libraries) $(KDE_RPATH) # them while "make clean", use CLEANFILES DISTCLEANFILES = $(dokvok_METASOURCES) # make messages.po. Move this one to ../po/ and "make merge" in po # the -x is for skipping messages already translated in kdelibs messages: $(XGETTEXT) -C -ki18n -x $(KDEDIR)/include/kde.pot `find . -name \*.h -o -name \*.cpp -o -name \*.cc` -o ../po/dokvok.pot dokvok-0.1.3/dokvok/vwissen.cpp 644 764 144 2042 7066673374 11610 /*************************************************************************** vwissen.cpp - description ------------------- begin : Fri Mar 24 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vwissen.h" dokvok-0.1.3/dokvok/vtyplist.cpp 644 764 144 2751 7066744504 12011 /*************************************************************************** vtyp.cpp - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vtyplist.h" VTypSymbol VTypInfoList::symbol( int Index ) { if( (Index < (int)count()) && (Index > -1) ) return at( Index )->symbol() ; else return ' '; } /** */ VTypDict::VTypDict( VTypInfoList &List ) { fillFromList( List ); } void VTypDict::fillFromList( VTypInfoList &List ) { clear(); VTypInfo *TypInfo; for( TypInfo=List.first(); TypInfo; TypInfo=List.next() ) { insert( TypInfo->symbolString(), &TypInfo->name() ); } } dokvok-0.1.3/dokvok/vlanguage.cpp 644 764 144 6267 7066711722 12066 /*************************************************************************** vlanguage.cpp - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include "vlanguage.h" #include "File/vlangfile.h" VLanguageList::VLanguageList( bool NoLanguage = true ) { setAutoDelete( true ); reset(NoLanguage); } VLanguageList::~VLanguageList() { } void VLanguageList::write() { VLanguage *Language; VLanguageFile *LanguageFile; for( Language=first(); Language; Language=next() ) { LanguageFile = new VLanguageFile( Language->Short, false ); LanguageFile->writeFont( Language->Font ); LanguageFile->writeName( Language->Name ); LanguageFile->writeTypInfoList( Language->TypInfoList ); LanguageFile->writeFile(); delete LanguageFile; } } void VLanguageList::reset( bool NoLanguage = true ) { clear(); QFont Font; VTypInfoList TypInfoList; if( NoLanguage ) { VLanguage Language = { i18n("No language"), "", Font, TypInfoList }; append( new VLanguage(Language) ); } // get all language files QDir Directory( KApplication::localkdedir().copy() + "/share/apps/dokvok/languages" ); Directory.setNameFilter( "*.dvlc" ); Directory.setSorting( QDir::Name ); // prepare all needed variables VLanguageFile *LanguageFile; QString Name; const QFileInfoList *FileList = Directory.entryInfoList(); QFileInfoListIterator Iterator( *FileList ); QFileInfo *FileInfo; // read all language names while ( (FileInfo=Iterator.current()) ) { LanguageFile = new VLanguageFile( FileInfo->baseName() ); // is it a language? if( (Name = LanguageFile->name()) ) { Font = LanguageFile->font(); TypInfoList = LanguageFile->typInfoList(); VLanguage Language = { Name, FileInfo->baseName(), Font, TypInfoList }; append( new VLanguage(Language) ); } delete LanguageFile; ++Iterator; } } VLanguage *VLanguageList::appendNew( QString Short ) { QFont Font; VTypInfoList TypInfoList; VLanguage Language = { i18n("New language"), Short , Font, TypInfoList }; VLanguage *NewLanguage = new VLanguage(Language); if( NewLanguage ) { append( NewLanguage ); return NewLanguage; } return 0L; } dokvok-0.1.3/dokvok/vtyp.cpp 644 764 144 2034 7066671106 11104 /*************************************************************************** vtyp.cpp - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vtyp.h" dokvok-0.1.3/dokvok/vvocabulary.cpp 644 764 144 4120 7066736051 12436 /*************************************************************************** vvocabulary.cpp - description ------------------- begin : Wed Mar 15 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "vvocabulary.h" VVocabulary::VVocabulary(QObject * parent=0, const char * name=0) : QObject( parent, name ) { clear(); } VVocabulary::~VVocabulary() { } /** clears the lists and sets strings to 0 */ void VVocabulary::clear( bool total = false ){ setAutoDelete( total ); VVokabelList::clear(); setTitel( "" ); setColumnTitel( TermColumn, "" ); setColumnTitel( TranslationColumn, "" ); setComment( "" ); setKeyWords( "" ); setAuthor( "" ); } /** sets titel of column Column */ void VVocabulary::setLanguage( const int Column, const QString &NewLanguage ) { Language[Column] = NewLanguage; emit newLanguage( Column, NewLanguage ); } /** sets titel of column Column */ void VVocabulary::setColumnTitel( const int Column, const char* NewTitel ) { ColumnTitel[Column] = NewTitel; emit newColumnTitel( Column, NewTitel ); } /** sets titel of column Column */ void VVocabulary::setColumnTitel( const int Column, const QString &NewTitel ) { ColumnTitel[Column] = NewTitel; emit newColumnTitel( Column, NewTitel ); }dokvok-0.1.3/dokvok/vvokabellist.cpp 644 764 144 10214 7066770125 12627 /*************************************************************************** vokabellist.cpp - description ------------------- begin : Tue Dec 7 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vvokabellist.h" /** */ int VVokabelList::compareItems( GCI V1, GCI V2 ) { int Result; switch( SortKey ) { case SortTerm: Result = strcmp( ((VVokabel*)V1)->string(TermColumn).data(), ((VVokabel*)V2)->string(TermColumn).data() ); break; case SortTranslation: Result = strcmp( ((VVokabel*)V1)->string(TranslationColumn).data(), ((VVokabel*)V2)->string(TranslationColumn).data() ); break; case SortTyp: Result = int( ((VVokabel*)V1)->symbol() - ((VVokabel*)V2)->symbol() ); break; case SortLevel: Result = int( ((VVokabel*)V1)->level() - ((VVokabel*)V2)->level() ); break; default: Result = 0; } return Result; } /** returns textline for ouput in file */ QString VVokabelList::line( VVokabel* Vokabel ) const { if( !Vokabel ) return 0; QString Line; Line = Vokabel->string( TermColumn ) + VokSeparator + Vokabel->string( TranslationColumn) + VokSeparator + Vokabel->symbol() + VokSeparator + Line.setNum( Vokabel->level() ) + VokSeparator + Vokabel->remark(); return Line; } /** inserts new vocabel in list data is seperated by tabs term translation remark knowledge */ VVokabel *VVokabelList::newVokabel ( QString Data = 0 ) { // create vocabel and append VVokabel* Vokabel = new VVokabel(); append( Vokabel ); // anything to fill in? if( Data ) { int Length = Data.length(); // get Term int Begin = 0; int End = Data.find( VokSeparator ); if( End == -1 ) End = Length; Vokabel->setString( TermColumn, Data.mid( Begin, End-Begin ) ); if( End < Length ) { // get Expression Begin = End+1; End = Data.find( VokSeparator, Begin ); if( End == -1 ) End = Length; Vokabel->setString( TranslationColumn, Data.mid( Begin, End-Begin ) ); if( End < Length ) { // get Remark Begin = End+1; End = Data.find( VokSeparator, Begin ); if( End == -1 ) End = Length; if( Begin < End ) Vokabel->setSymbol( Data.mid( Begin, End-Begin ).at(0) ); else Vokabel->initSymbol(); if( End < Length ) { // get Wissen Begin = End+1; End = Data.find( VokSeparator, Begin ); if( End == -1 ) End = Length; Vokabel->setLevel( Data.mid( Begin, End-Begin ).toUShort() ); if( End < Length ) { // get Remark Begin = End+1; End = Data.find( VokSeparator, Begin ); if( End == -1 ) End = Length; Vokabel->setRemark( Data.mid( Begin, End-Begin ) ); // anything left (on the right ;-) will be ignored... } } } } } return Vokabel; } dokvok-0.1.3/dokvok/vvokabel.cpp 644 764 144 2617 7066714602 11721 /*************************************************************************** vvokabel.cpp - description ------------------- begin : Fri Sep 24 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vvokabel.h" VVokabel::VVokabel() : VTyp(), VWissen(), Remark( "" ) { setString( TermColumn, "" ); setString( TranslationColumn , "" ); } VVokabel::VVokabel ( const QString &Term, const QString &Translation ) : VTyp(), VWissen(), Remark("") { setString( TermColumn, Term ); setString( TranslationColumn, Translation ); } VVokabel::~VVokabel() { } dokvok-0.1.3/dokvok/dokvokdoc.cpp 644 764 144 33763 7067230517 12120 /*************************************************************************** dokvokdoc.cpp - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ // include files for Qt #include #include #include #include // include files for KDE #include #include // application specific includes #include "dokvokdoc.h" #include "dokvok.h" #include "View/dokvokview.h" #include "resource.h" #include "Dialoge/vlistdialog.h" #include "Abfrage/vquestdialog.h" #include "Dialoge/vlangdialog.h" #include QList *DokVokDoc::allViewsList = 0L; DokVokDoc::DokVokDoc(QWidget *parent, const char *name) : VVocabulary(parent, name), VokFile(), AbsoluteDirName(), FileName() { if( !allViewsList ) allViewsList = new QList; sameViewsList = new QList; QuestionSettings = new VQuestionSettings(); connect( QApplication::clipboard(),SIGNAL( dataChanged() ), SLOT( clipboardChanged() ) ); } DokVokDoc::~DokVokDoc() { } void DokVokDoc::addView(DokVokView *NewView) { View = NewView; allViewsList->append( View ); sameViewsList->append( View ); connect( this, SIGNAL( newColumnTitel(int,const char*) ), View, SLOT( setColumnTitel(int,const char*) ) ); connect( this, SIGNAL( newLanguage(int,const char*) ), View, SLOT( setLanguage(int,const char*) ) ); connect( View, SIGNAL( clipboardHasData(bool) ), SLOT( setPasteFromClipboard(bool) ) ); connect( View, SIGNAL( newTypInfoList(VTypInfoList*) ), SLOT( setTypInfoList(VTypInfoList*) ) ); resetView( View ); } void DokVokDoc::removeView(DokVokView *View) { allViewsList->remove(View); sameViewsList->remove(View); } void DokVokDoc::slotUpdateAllViews(DokVokView *sender) { DokVokView *w; if(allViewsList) { for(w=allViewsList->first(); w!=0; w=allViewsList->next()) { if(w!=sender) w->repaint(); } } } void DokVokDoc::closeDocument() { deleteContents(); } bool DokVokDoc::newDocument() { ///////////////////////////////////////////////// // TODO: Add your document initialization code here ///////////////////////////////////////////////// deleteContents(); setDocumentNew(); VokFile.clear(); setTitel( i18n("Untitled") ); setComment( i18n("No comment") ); setKeyWords( "" ); setAuthor( "" ); setColumnTitel( TermColumn, i18n("Term") ); setColumnTitel( TranslationColumn, i18n("Translation") ); setLanguage( TermColumn, "" ); setLanguage( TranslationColumn, "" ); resetAllViews(); appendVokabel(); slotSetEditMode( true ); setModified( false ); return true; } bool DokVokDoc::openDocument(const QString &FilePath, const char *format /*=0*/) { if( VokFile.isReadable(FilePath) ) { //reset the vocabulary clear( true ); // store file name QFileInfo FileInfo( FilePath ); setAbsoluteDirName( FileInfo.dirPath(true) ); setFileName( FileInfo.fileName() ); // store vocabulary extra data VokFile.readExtraData( this ); VokFile.setGroup( "General" ); setTitel( VokFile.readEntry( "Titel", i18n("Untitled") ) ); setComment( VokFile.readEntry("Comment", i18n( "No comment" )) ); setKeyWords( VokFile.readEntry( "KeyWords", "" ) ); setAuthor( VokFile.readEntry("Author", "") ); setColumnTitel( TermColumn, VokFile.readEntry("TermTitel", i18n( "Term" )) ); setColumnTitel( TranslationColumn, VokFile.readEntry("TranslationTitel", i18n( "Translation" )) ); setLanguage( TermColumn, VokFile.readEntry("TermLanguage", "") ); setLanguage( TranslationColumn, VokFile.readEntry("TranslationLanguage", "") ); // store vocabulary VokFile.readData( this ); if( isEmpty() ) appendVokabel(); VokFile.close(); // now refresh views resetAllViews(); setModified( false ); emit editModeHasChanged( false ); return true; } else return false; } bool DokVokDoc::saveDocument(const QString &FilePath, const char *format /*=0*/) { if( VokFile.isWriteable(FilePath) ) { // prepare extra data VokFile.setGroup( "General" ); VokFile.writeEntry( "Titel", titel() ); VokFile.writeEntry( "Comment", comment() ); VokFile.writeEntry( "KeyWords", keyWords() ); VokFile.writeEntry( "Author", author() ); VokFile.writeEntry( "TermTitel", columnTitel( TermColumn ) ); VokFile.writeEntry( "TranslationTitel", columnTitel( TranslationColumn ) ); VokFile.writeEntry( "TermLanguage", language( TermColumn ) ); VokFile.writeEntry( "TranslationLanguage", language( TranslationColumn ) ); // writing... VokFile.write( this ); VokFile.close(); // set flags setModified( false ); return true; } else return false; } void DokVokDoc::deleteContents() { ///////////////////////////////////////////////// // TODO: Add implementation to delete the document contents ///////////////////////////////////////////////// clear( true ); } void DokVokDoc::appendVokabel( VVokabel *Vokabel = 0 ) { if( !Vokabel ) Vokabel = newVokabel(); DokVokView* w; if(sameViewsList) { for( w = sameViewsList->first(); w; w = sameViewsList->next() ) {w->appendVokabel( Vokabel ); } } } void DokVokDoc::resetView( DokVokView* View ) { bool EditMode = View->isEditMode(); View->hide(); View->clearVokList(); VVokabel* Vokabel; for( Vokabel = first(); Vokabel; Vokabel = next() ) { View->appendVokabel( Vokabel, false ); } View->setColumnTitel( TermColumn, columnTitel(TermColumn) ); View->setColumnTitel( TranslationColumn, columnTitel(TranslationColumn) ); View->setLanguage( TermColumn, language(TermColumn) ); View->setLanguage( TranslationColumn, language(TranslationColumn) ); View->show(); slotSetEditMode( EditMode ); } void DokVokDoc::resetAllViews() { DokVokView* View; if(sameViewsList) { for( View = sameViewsList->first(); View; View = sameViewsList->next() ) resetView( View ); } } /** sets the EditMode */ void DokVokDoc::slotSetEditMode ( bool Editing = true ) { DokVokView* w; if(sameViewsList) { for( w = sameViewsList->first(); w; w = sameViewsList->next() ) {w->setEditMode( Editing ); } } emit editModeHasChanged( Editing ); } /** sets the modified flag for the document after a modifying action on the view connected to the document.*/ void DokVokDoc::setModified ( bool IsModified = true ) { // if( Modified == IsModified ) return; Modified = IsModified; } /** opens a dialog for editing of the list properties */ void DokVokDoc::editProperties() { VListDialog Dialog; if( Dialog.wasModified( titel(), columnTitel( TermColumn ), columnTitel( TranslationColumn ), language( TermColumn ), language( TranslationColumn ), comment(), keyWords(), author() ) ) {//TODO: each update only if changed setTitel( Dialog.titel() ); setColumnTitel( TermColumn, Dialog.termTitel() ); setColumnTitel( TranslationColumn, Dialog.translationTitel() ); setLanguage( TermColumn, Dialog.termLanguage() ); setLanguage( TranslationColumn, Dialog.translationLanguage() ); setComment( Dialog.comment() ); setKeyWords( Dialog.keyWords() ); setAuthor( Dialog.author() ); setModified(); }; } /** set Copy-Mark to Comment*/ void DokVokDoc::setAsCopy() { setTitel( i18n( "Copy of " ) + titel() ); setDocumentNew(); } /** sets the filedata to neutral */ void DokVokDoc::setDocumentNew() { DokVokApp *win=(DokVokApp *) parent(); setAbsoluteDirName( win->getStandardDirectory() ); setFileName( "" ); } /** copies the selection depending on the EditMode to the clipboard */ void DokVokDoc::copySelection() { if( View->isEditMode() ) View->copyText(); else { QClipboard *Clipboard = QApplication::clipboard(); QString CopyData; if( View->hasSelectedItems() ) { VVokabel *Vokabel; for ( Vokabel=View->firstSelectedVok(); Vokabel; Vokabel=View->nextSelectedVok() ) CopyData += (line(Vokabel) + "\n"); } else CopyData = line( View->currentVok() ) + "\n"; Clipboard->setText( CopyData ); } } /** sets the typ of the actual or selected vocabels */ void DokVokDoc::setTyp( int Index ) { VTyp Typ; VTypInfoList *List = View->typInfoList(); Index--; if( (Index > -1) && (Index < (int)List->count()) ) Typ.setSymbol( List->symbol(Index) ); if( View->hasSelectedItems() ) { VVokabel *Vokabel; for ( Vokabel=View->firstSelectedVok(); Vokabel; Vokabel=View->nextSelectedVok() ) Vokabel->setSymbol( Typ.symbol() ); } else View->currentVok()->setSymbol( Typ.symbol() ); } /** cuts the selection depending on the EditMode */ void DokVokDoc::cutSelection() { if( View->isEditMode() ) View->cutText(); else { copySelection(); deleteSelection(); } } /** deletes the selection depending on the EditMode */ void DokVokDoc::deleteSelection() { // VVokabel *AktuelleVokabel; // int Index; // delete vocabels in vocabellist based on information from the voclist // try to save information for the view after this operation, like currentItem if( View->hasSelectedItems() ) { // AktuelleVokabel = View->currentVok(); VVokabel *Vokabel; for( Vokabel=View->firstSelectedVok(); Vokabel; Vokabel=View->nextSelectedVok() ) removeRef( Vokabel ); } else { // AktuelleVokabel = View->getCurrentVok(); // Index = VokabelList.findRef( AktuelleVokabel); // VVokabel *Vokabel; // if( Vokabel = VokabelList.next() ) // // there is a vocabel following // AktuelleVokabel = Vokabel; // else if( Vokabel ) removeRef( View->currentVok() ); } setModified(); // build view and set current and first viewed item close to the prior ones // if( Vokabel ) if( !isEmpty() ) { resetAllViews(); // View->setCurrentVok( Vokabel ); } else { // all vocabels were killed appendVokabel(); resetAllViews(); } } /** pastes the TODO:inhalt from the clipboard */ void DokVokDoc::pasteFromClipboard() { if( View->isEditMode() ) View->insertText(); else { QClipboard *Clipboard = QApplication::clipboard(); QString CopyData = Clipboard->text(); int von = 0; int bis = 0; while( (bis = CopyData.find ( '\n', von )) != -1 ) // as long as there are new line marks { newVokabel( CopyData.mid( von, bis-von ) ); // vokabeln excluding '\n' von = bis + 1; } if( (bis = CopyData.length()) != von ) newVokabel( CopyData.mid( von, -von ) ); //line without '\n' left resetAllViews(); } } /** tests if clipboard has Data and emits the state */ void DokVokDoc::clipboardChanged() { QString text=QApplication::clipboard()->text(); emit clipboardHasData( !text.isEmpty() ); } /** */ void DokVokDoc::learning() { // no need to delete, this is done by VAbfrageDialog VVokabelList *LearnList = new VVokabelList; VVokabel *Vokabel; if( View->hasSelectedItems() ) // only selected items should be asked? { for( Vokabel = View->firstSelectedVok(); Vokabel; Vokabel = View->nextSelectedVok() ) if( !Vokabel->string(TermColumn).isEmpty() ) LearnList->inSort( Vokabel ); } else { for( Vokabel = first(); Vokabel; Vokabel = next() ) if( !Vokabel->string(TermColumn).isEmpty() ) LearnList->inSort( Vokabel ); } VAbfrageDialog *Dialog = new VAbfrageDialog( LearnList, language(TermColumn), language(TranslationColumn), QuestionSettings ); View->hide(); if( Dialog->learn() ) setModified(); View->show(); } /** reads all Settings from the config file */ void DokVokDoc::readQuestionSettings( KConfig *Config ) { // partial knowledge accepted? QuestionSettings->CheckerSettings.Partial = Config->readBoolEntry( "Partial", false ); // should the corrected input be shown at the second chance? QuestionSettings->ShowCorrectedInput = Config->readBoolEntry( "Show Corrected Input", true ); // should there be a second chance? QuestionSettings->SecondChance = Config->readBoolEntry( "Second Chance", false ); // what character to use for unknown characters? QuestionSettings->CheckerSettings.UnknownCharacter = Config->readEntry( "Unknown Character", "·" )[0]; } /** writes all Settings from the config file */ void DokVokDoc::writeQuestionSettings( KConfig *Config ) { Config->writeEntry( "Partial", QuestionSettings->CheckerSettings.Partial ); Config->writeEntry( "Show Corrected Input", QuestionSettings->ShowCorrectedInput ); Config->writeEntry( "Second Chance", QuestionSettings->SecondChance ); Config->writeEntry( "Unknown Character", &QuestionSettings->CheckerSettings.UnknownCharacter ); } /** opens a dialog for editing of the list properties */ void DokVokDoc::editQuestionSettings() { VQuestionDialog Dialog; Dialog.edit( QuestionSettings ); } /** opens a dialog for editing of the list properties */ void DokVokDoc::editLanguages() { VLanguagesDialog Dialog; Dialog.edit(); setLanguage( TermColumn, language( TermColumn ) ); setLanguage( TranslationColumn, language( TranslationColumn ) ); } /** */ void DokVokDoc::setTypInfoList( VTypInfoList *TypInfoList ) { emit newTypInfoList( TypInfoList ); }dokvok-0.1.3/dokvok/dokvok.cpp 644 764 144 105263 7066762740 11454 /*************************************************************************** dokvok.cpp - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ // include files for QT #include #include #include #include // include files for KDE #include #include #include // application specific includes #include "dokvok.h" #include "View//dokvokview.h" #include "dokvokdoc.h" #include "resource.h" #include "Dialoge/dokvokdialog.h" #include DokVokApp::DokVokApp() { config = kapp->getConfig(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initMenuBar(); initToolBar(); initStatusBar(); initKeyAccel(); initDocument(); initView(); readOptions(); /////////////////////////////////////////////////////////////////// // disable menu and toolbar items at startup // disableCommand(ID_FILE_SAVE); // disableCommand(ID_FILE_SAVE_AS); // disableCommand(ID_FILE_PRINT); //TODO: unless printing is not implemented // disableCommand(ID_EDIT_CUT); // disableCommand(ID_EDIT_COPY); disableCommand(ID_EDIT_PASTE); connect( new KDNDDropZone(this , DndURL), SIGNAL(dropAction(KDNDDropZone *)), SLOT(slotDropEvent(KDNDDropZone *))); } DokVokApp::~DokVokApp() { } void DokVokApp::initKeyAccel() { keyAccel = new KAccel(this); // fileMenu accelerators keyAccel->connectItem(KAccel::New, this, SLOT(slotFileNew())); keyAccel->connectItem(KAccel::Open, this, SLOT(slotFileOpen())); keyAccel->connectItem(KAccel::Save, this, SLOT(slotFileSave())); keyAccel->connectItem(KAccel::Close, this, SLOT(slotFileClose())); keyAccel->connectItem(KAccel::Print, this, SLOT(slotFilePrint())); keyAccel->connectItem(KAccel::Quit, this, SLOT(slotFileQuit())); // editMenu accelerators keyAccel->connectItem(KAccel::Cut, this, SLOT(slotEditCut())); keyAccel->connectItem(KAccel::Copy, this, SLOT(slotEditCopy())); keyAccel->connectItem(KAccel::Paste, this, SLOT(slotEditPaste())); keyAccel->connectItem(KAccel::Help, kapp, SLOT(appHelpActivated())); keyAccel->changeMenuAccel(fileMenu, ID_FILE_NEW, KAccel::New); keyAccel->changeMenuAccel(fileMenu, ID_FILE_OPEN, KAccel::Open); keyAccel->changeMenuAccel(fileMenu, ID_FILE_SAVE, KAccel::Save); keyAccel->changeMenuAccel(fileMenu, ID_FILE_CLOSE, KAccel::Close); keyAccel->changeMenuAccel(fileMenu, ID_FILE_PRINT, KAccel::Print); keyAccel->changeMenuAccel(fileMenu, ID_FILE_QUIT, KAccel::Quit); keyAccel->changeMenuAccel(editMenu, ID_EDIT_CUT, KAccel::Cut); keyAccel->changeMenuAccel(editMenu, ID_EDIT_COPY, KAccel::Copy); keyAccel->changeMenuAccel(editMenu, ID_EDIT_PASTE, KAccel::Paste); keyAccel->readSettings(); } void DokVokApp::initMenuBar() { /////////////////////////////////////////////////////////////////// // MENUBAR recentFilesMenu = new QPopupMenu(); connect(recentFilesMenu, SIGNAL(activated(int)), SLOT(slotFileOpenRecent(int))); TypMenu = new QPopupMenu(); connect( TypMenu, SIGNAL(activated(int)), SLOT(slotEditTypSelected(int))); //schliessen verwerfen /////////////////////////////////////////////////////////////////// // menuBar entry fileMenu fileMenu = new QPopupMenu(); fileMenu->insertItem(Icon("filenew.xpm"), i18n("&New"), ID_FILE_NEW); fileMenu->insertItem(Icon("filenewfrom.xpm"), i18n("New &from..."), ID_FILE_NEW_FROM); fileMenu->insertItem(Icon("filenewfromthis.xpm"), i18n("New from &this"), ID_FILE_NEW_FROM_THIS); fileMenu->insertItem(Icon("fileopen.xpm"), i18n("&Open..."), ID_FILE_OPEN); fileMenu->insertItem(i18n("Open &recent"), recentFilesMenu, ID_FILE_OPEN_RECENT); fileMenu->insertSeparator(); fileMenu->insertItem(Icon("filerevert.xpm"), i18n("Re&vert"), ID_FILE_REVERT); // fileMenu->insertItem(i18n("Cl&ear"), ID_FILE_CLOSE); fileMenu->insertItem(Icon("filedel.xpm"), i18n("&Delete"), ID_FILE_DELETE); fileMenu->insertSeparator(); fileMenu->insertItem(Icon("filesave.xpm") ,i18n("&Save"), ID_FILE_SAVE); fileMenu->insertSeparator(); // fileMenu->insertItem(Icon("filenotsave.xpm"), i18n("T&urn down"), ID_FILE_QUIT); fileMenu->insertItem(Icon("exit.xpm"), i18n("&Close"), ID_FILE_QUIT); /* fileMenu->insertItem(kapp->getMiniIcon(), i18n("New &Window"), ID_FILE_NEW_WINDOW); fileMenu->insertSeparator(); fileMenu->insertItem(Icon("filenew.xpm"), i18n("&New"), ID_FILE_NEW); fileMenu->insertItem(Icon("fileopen.xpm"), i18n("&Open..."), ID_FILE_OPEN); fileMenu->insertItem(i18n("Open &recent"), recentFilesMenu, ID_FILE_OPEN_RECENT); fileMenu->insertItem(i18n("&Close"), ID_FILE_CLOSE); fileMenu->insertSeparator(); fileMenu->insertItem(Icon("filefloppy.xpm") ,i18n("&Save"), ID_FILE_SAVE); fileMenu->insertItem(i18n("Save &As..."), ID_FILE_SAVE_AS); * fileMenu->insertSeparator(); fileMenu->insertItem(Icon("fileprint.xpm"), i18n("&Print..."), ID_FILE_PRINT); * fileMenu->insertSeparator(); fileMenu->insertItem(Icon("exit.xpm"), i18n("E&xit"), ID_FILE_QUIT); */ /////////////////////////////////////////////////////////////////// // menuBar entry editMenu editMenu = new QPopupMenu(); editMenu->insertItem(Icon("editcut.xpm"), i18n("Cu&t"), ID_EDIT_CUT); editMenu->insertItem(Icon("editcopy.xpm"), i18n("&Copy"), ID_EDIT_COPY); editMenu->insertItem(Icon("editpaste.xpm"), i18n("&Paste"), ID_EDIT_PASTE); editMenu->insertSeparator(); editMenu->insertItem(i18n("&Set Typ"), TypMenu, ID_EDIT_SET_TYP ); editMenu->insertItem(i18n("&New Vokabel"), ID_EDIT_NEW_VOKABEL ); editMenu->insertSeparator(); editMenu->setCheckable(true); editMenu->insertItem(i18n("&Editmode"), ID_EDIT_EDITMODE ); editMenu->setCheckable(false); editMenu->insertSeparator(); editMenu->insertItem(i18n("&Select all"), ID_EDIT_SELECT_ALL ); editMenu->insertItem(i18n("&Deselect all"), ID_EDIT_DESELECT_ALL ); editMenu->insertItem(i18n("&Invert Selection"), ID_EDIT_INVERT_SELECTION ); /////////////////////////////////////////////////////////////////// // menuBar entry viewMenu viewMenu = new QPopupMenu(); viewMenu->setCheckable(true); viewMenu->insertItem(i18n("&Toolbar"), ID_VIEW_TOOLBAR); viewMenu->insertItem(i18n("&Statusbar"), ID_VIEW_STATUSBAR); /////////////////////////////////////////////////////////////////// // menuBar entry listMenu listMenu = new QPopupMenu(); listMenu->insertItem( Icon("configure.xpm"), i18n("&Properties"), ID_LIST_PROPERTIES ); /////////////////////////////////////////////////////////////////// // menuBar entry learningMenu learningMenu = new QPopupMenu(); learningMenu->insertItem( i18n("&Start"), ID_LEARNING_START ); /////////////////////////////////////////////////////////////////// // menuBar entry settingsMenu settingsMenu = new QPopupMenu(); settingsMenu->insertItem( Icon("configure.xpm"), i18n("&General"), ID_SETTINGS_GENERAL ); settingsMenu->insertItem( Icon("help.xpm"), i18n("&Questioning"), ID_SETTINGS_QUESTIONING ); settingsMenu->insertItem( Icon("languages.xpm"), i18n("&Languages"), ID_SETTINGS_LANGUAGES ); /////////////////////////////////////////////////////////////////// // menuBar entry helpMenu QString aboutstring=kapp->appName()+" "+VERSION+"\n\nJust a snapshot,\ndevelopment is going on...\n\nPlease give feedback to the author:\nFriedrich.W.H@Kossebau.de"; helpMenu = new QPopupMenu(); helpMenu = kapp->getHelpMenu(true, aboutstring); /////////////////////////////////////////////////////////////////// // MENUBAR CONFIGURATION // insert your popup menus with the according menubar entries in the order // they will appear later from left to right menuBar()->insertItem(i18n("&File"), fileMenu); menuBar()->insertItem(i18n("&Edit"), editMenu); menuBar()->insertItem(i18n("&View"), viewMenu); menuBar()->insertItem(i18n("&List"), listMenu); menuBar()->insertItem(i18n("&Learning"), learningMenu); menuBar()->insertItem(i18n("&Settings"), settingsMenu); menuBar()->insertSeparator(); menuBar()->insertItem(i18n("&Help"), helpMenu); /////////////////////////////////////////////////////////////////// // CONNECT THE MENU SLOTS WITH SIGNALS // for execution slots and statusbar messages connect(fileMenu, SIGNAL(activated(int)), SLOT(commandCallback(int))); connect(fileMenu, SIGNAL(highlighted(int)), SLOT(statusCallback(int))); connect(editMenu, SIGNAL(activated(int)), SLOT(commandCallback(int))); connect(editMenu, SIGNAL(highlighted(int)), SLOT(statusCallback(int))); connect(viewMenu, SIGNAL(activated(int)), SLOT(commandCallback(int))); connect(viewMenu, SIGNAL(highlighted(int)), SLOT(statusCallback(int))); connect(listMenu, SIGNAL(activated(int)), SLOT(commandCallback(int))); connect(listMenu, SIGNAL(highlighted(int)), SLOT(statusCallback(int))); connect(learningMenu, SIGNAL(activated(int)), SLOT(commandCallback(int))); connect(learningMenu, SIGNAL(highlighted(int)), SLOT(statusCallback(int))); connect(settingsMenu, SIGNAL(activated(int)), SLOT(commandCallback(int))); connect(settingsMenu, SIGNAL(highlighted(int)), SLOT(statusCallback(int))); } void DokVokApp::initToolBar() { /////////////////////////////////////////////////////////////////// // TOOLBAR toolBar()->insertButton(Icon("filenew.xpm"), ID_FILE_NEW, true, i18n("New File")); toolBar()->insertButton(Icon("fileopen.xpm"), ID_FILE_OPEN, true, i18n("Open File")); toolBar()->insertButton(Icon("filesave.xpm"), ID_FILE_SAVE, true, i18n("Save File")); /* toolBar()->insertButton(Icon("fileprint.xpm"), ID_FILE_PRINT, true, i18n("Print"));*/ toolBar()->insertSeparator(); toolBar()->insertButton(Icon("editcut.xpm"), ID_EDIT_CUT, true, i18n("Cut")); toolBar()->insertButton(Icon("editcopy.xpm"), ID_EDIT_COPY, true, i18n("Copy")); toolBar()->insertButton(Icon("editpaste.xpm"), ID_EDIT_PASTE, true, i18n("Paste")); toolBar()->insertSeparator(); toolBar()->insertButton(Icon("pencil.xpm"), ID_EDIT_EDITMODE, true, i18n("Editmode")); toolBar()->setToggle( ID_EDIT_EDITMODE ); /* toolBar()->insertSeparator(); toolBar()->insertButton(Icon("help.xpm"), ID_HELP_CONTENTS, SIGNAL(clicked()), kapp, SLOT(appHelpActivated()), true,i18n("Help")); */ /////////////////////////////////////////////////////////////////// // INSERT YOUR APPLICATION SPECIFIC TOOLBARS HERE WITH toolBar(n) /////////////////////////////////////////////////////////////////// // CONNECT THE TOOLBAR SLOTS WITH SIGNALS - add new created toolbars by their according number // connect for invoking the slot actions connect(toolBar(), SIGNAL(clicked(int)), SLOT(commandCallback(int))); // connect for the status help on holing icons pressed with the mouse button connect(toolBar(), SIGNAL(pressed(int)), SLOT(statusCallback(int))); } void DokVokApp::initStatusBar() { /////////////////////////////////////////////////////////////////// // STATUSBAR // TODO: add your own items you need for displaying current application status. statusBar()->insertItem( i18n("Ready."), ID_STATUS_MSG ); } void DokVokApp::initDocument() { doc = new DokVokDoc(this); connect( doc, SIGNAL( newTitel() ), SLOT( setWindowCaption() ) ); connect( doc, SIGNAL( newTypInfoList(VTypInfoList *) ), SLOT( fillTypMenu(VTypInfoList *) ) ); connect( doc, SIGNAL( clipboardHasData( bool ) ), SLOT( setClipboard( bool ) ) ); connect( doc, SIGNAL( editModeHasChanged( bool ) ), SLOT( setEditMode( bool ) ) ); doc->newDocument(); } void DokVokApp::initView() { //////////////////////////////////////////////////////////////////// // create the main widget here that is managed by KTMainWindow's view-region and // connect the widget to your document to display document contents. view = new DokVokView(this); doc->addView(view); setView(view); setWindowCaption(); } void DokVokApp::enableCommand(int id_) { /////////////////////////////////////////////////////////////////// // enable menu and toolbar functions by their ID's menuBar()->setItemEnabled(id_, true); toolBar()->setItemEnabled(id_, true); } void DokVokApp::disableCommand(int id_) { /////////////////////////////////////////////////////////////////// // disable menu and toolbar functions by their ID's menuBar()->setItemEnabled(id_, false); toolBar()->setItemEnabled(id_, false); } void DokVokApp::setState(int id_) { /////////////////////////////////////////////////////////////////// // set menu and toolbar functions state by their ID's menuBar()->setItemChecked( id_, true ); toolBar()->setButton( id_, true ); } void DokVokApp::unsetState(int id_) { /////////////////////////////////////////////////////////////////// // unset menu and toolbar functions state by their ID's menuBar()->setItemChecked( id_, false ); toolBar()->setButton( id_, false ); } void DokVokApp::addRecentFile(const QString &Filename) { int Rank; if( (Rank=recentFiles.find( Filename )) != -1) // is already in the list { recentFiles.remove( Rank ); } if( recentFiles.count() > 4) // limited to 5 recentFiles.remove(4); // insert at the begin recentFiles.insert(0, Filename ); // refresh recentFileMenu fillRecentFileMenu(); } void DokVokApp::fillRecentFileMenu() { int Rank; recentFilesMenu->clear(); QString Entry; for ( Rank=0 ; Rank < (int) recentFiles.count(); Rank++) { Entry.setNum(Rank+1); Entry = "&"+Entry+". "+recentFiles.at(Rank); recentFilesMenu->insertItem( Entry ); } } void DokVokApp::fillTypMenu( VTypInfoList *List ) { TypMenu->clear(); TypMenu->insertItem( i18n("no typ") ); VTypInfo *TypInfo; for( TypInfo=List->first(); TypInfo; TypInfo=List->next() ) TypMenu->insertItem( TypInfo->localName().data() ); } /** */ bool DokVokApp::openDocument( QString Filename ) { // cerr << "open: " << Filename << "\n"; bool Success; if( !(Success = doc->openDocument(Filename)) ) KMsgBox::message( this, i18n("Sorry"), i18n("The file ")+Filename+i18n(" couldn't be opened.") ); return Success; } /** */ bool DokVokApp::saveDocument( QString Filename ) { // cerr << "save: " << Filename << "\n"; bool Success; if( Success = doc->saveDocument(Filename) ) addRecentFile( Filename ); else KMsgBox::message( this, i18n("Sorry"), i18n("This document couldn't be saved\nunder the filename ")+Filename+i18n(".") ); return Success; } /** */ void DokVokApp::startWithFile( const char* Filename = 0 ) { slotStatusMsg(i18n("Opening file...")); // any file to start with? if( Filename ) { // a file is explicitly given if( openDocument( Filename ) ) addRecentFile( Filename ); } else { // take the last one if allowed to do so Filename = recentFiles.at( 0 ); if( AutoLoadLastFile && Filename ) openDocument( Filename ); } slotStatusMsgReady(); } DokVokDoc *DokVokApp::getDocument() const { return doc; } void DokVokApp::saveOptions() { config->setGroup("General Options"); config->writeEntry("Geometry", size()); config->writeEntry("Show Toolbar", toolBar()->isVisible()); config->writeEntry("Show Statusbar",statusBar()->isVisible()); config->writeEntry("MenuBarPos", (int) menuBar()->menuBarPos()); config->writeEntry("ToolBarPos", (int) toolBar()->barPos()); config->writeEntry("Recent Files", recentFiles); config->writeEntry("Standard Directory", getStandardDirectory() ); config->writeEntry("Autoload last File", AutoLoadLastFile ); config->setGroup("Question Options"); doc->writeQuestionSettings( config ); } void DokVokApp::readOptions() { config->setGroup("General Options"); // bar status settings bool bViewToolbar = config->readBoolEntry("Show Toolbar", true); viewMenu->setItemChecked(ID_VIEW_TOOLBAR, bViewToolbar); if(!bViewToolbar) { enableToolBar(KToolBar::Hide); } bool bViewStatusbar = config->readBoolEntry("Show Statusbar", true); viewMenu->setItemChecked(ID_VIEW_STATUSBAR, bViewStatusbar); if(!bViewStatusbar) { enableStatusBar(KStatusBar::Hide); } // bar position settings KMenuBar::menuPosition menuBarPos; menuBarPos=(KMenuBar::menuPosition) config->readNumEntry("MenuBarPos", KMenuBar::Top); KToolBar::BarPosition toolBarPos; toolBarPos=(KToolBar::BarPosition) config->readNumEntry("ToolBarPos", KToolBar::Top); menuBar()->setMenuBarPos(menuBarPos); toolBar()->setBarPos(toolBarPos); // initialize the recent file list recentFiles.setAutoDelete(TRUE); config->readListEntry("Recent Files", recentFiles); fillRecentFileMenu(); QSize Size=config->readSizeEntry("Geometry"); if( !Size.isEmpty() ) { resize( Size ); } // sets the standard directory setStandardDirectory( config->readEntry( "Standard Directory", QDir::homeDirPath() ) ); // start with the last used file? AutoLoadLastFile = config->readBoolEntry( "Autoload last file", false ); config->setGroup("Question Options"); doc->readQuestionSettings( config ); } void DokVokApp::saveProperties( KConfig *Config ) { if( doc->isNew() && !doc->isModified() ) { // saving to tempfile not necessary } else { Config->writeEntry( "Filename", doc->fileName() ); Config->writeEntry( "Dirname", doc->absoluteDirName() ); Config->writeEntry( "Modified", doc->isModified()); QString TempFilename = kapp->tempSaveName( doc->absoluteFileName() ); doc->saveDocument( TempFilename ); } } void DokVokApp::readProperties( KConfig* Config ) { QString Filename = Config->readEntry( "Filename", "" ); QString Dirname = Config->readEntry( "Dirname", "" ); bool WasModified = Config->readBoolEntry( "Modified", false ); QString Fullname = Dirname + '/' + Filename; if( WasModified || Filename.isEmpty() ) { bool CanRecover; QString TempFilename = kapp->checkRecoverFile( Fullname, CanRecover ); if( CanRecover ) { // load file content from temp file openDocument( TempFilename ); // setup old properties doc->setAbsoluteDirName( Dirname ); doc->setFileName( Filename ); doc->setModified(); // no more need for the temp file, thank you, was great work QFile::remove( TempFilename ); } } else { if( !Filename.isEmpty() ) openDocument( Fullname ); } } bool DokVokApp::saveAs() { QString newName = getStandardDirectory(); // this is where to start int want_save = 2; // Back... in the beginning is the beginning while( want_save == 2 ) { newName = KFileDialog::getSaveFileName( newName, i18n( "*.vok|DokVok files (*.vok)\n*|All files (*)" ), this, i18n("Save as...")); if( newName.isEmpty() ) // no name given or cancelled return false; else { // check if filename is in use QFileInfo saveAsInfo( newName ); if( !saveAsInfo.exists() ) want_save = 1; // Ok, is new... else { // Hm, already in use, ask user... returned 2 means: go back want_save = KMsgBox::yesNoCancel(this, i18n("Warning"), i18n("The selected filename\n") +saveAsInfo.fileName()+ i18n("\n is in use.\nSave anyway?"), KMsgBox::DB_SECOND|KMsgBox::QUESTION, 0, i18n("Back")); } if( want_save == 1 ) // Filename is ok... { doc->setFileName( saveAsInfo.fileName() ); doc->setAbsoluteDirName( saveAsInfo.dirPath() ); return saveDocument( newName ); } } } return false; } bool DokVokApp::saveModified() { bool Proceed = true; if( doc->isModified() ) { int want_save = KMsgBox::yesNoCancel(this, i18n("Warning"), i18n("The current document has been modified.\n" "Do you want to save it?")); switch( want_save ) { // Yes case 1: slotFileSave(); break; // No case 2: doc->setModified( false ); break; // Cancel case 3: Proceed = false; break; default: Proceed = false; break; } } return Proceed; } bool DokVokApp::queryClose() { return saveModified(); } bool DokVokApp::queryExit() { saveOptions(); return true; } ///////////////////////////////////////////////////////////////////// // SLOT IMPLEMENTATION ///////////////////////////////////////////////////////////////////// void DokVokApp::slotFileNewWindow() { slotStatusMsg(i18n("Opening a new application window...")); DokVokApp *new_window= new DokVokApp(); new_window->show(); slotStatusMsgReady(); } void DokVokApp::slotFileNew() { slotStatusMsg(i18n("Creating new document...")); if( !saveModified() ) { // here saving wasn't successful } else { doc->newDocument(); } slotStatusMsgReady(); } void DokVokApp::slotFileNewFrom() { slotStatusMsg(i18n("Creating new list from...")); if(!saveModified()) { // here saving wasn't successful } else { QString fileToOpen=KFileDialog::getOpenFileName(getStandardDirectory(), i18n( "*.vok|DokVok files (*.vok)\n*|All files (*)" ), this, i18n("Open File...")); if(!fileToOpen.isEmpty()) { if( openDocument(fileToOpen) ) { doc->setAsCopy(); } } } slotStatusMsgReady(); } void DokVokApp::slotFileNewFromThis() { slotStatusMsg(i18n("Creating new list from this...")); if( !saveModified() ) { // here saving wasn't successful } else { doc->setAsCopy(); } slotStatusMsgReady(); } void DokVokApp::slotFileOpen() { slotStatusMsg(i18n("Opening file...")); if( !saveModified() ) { // here saving wasn't successful } else { QString fileToOpen=KFileDialog::getOpenFileName(getStandardDirectory(), i18n( "*.vok|DokVok files (*.vok)\n*|All files (*)" ), this, i18n("Open File...")); if(!fileToOpen.isEmpty()) { if( openDocument(fileToOpen) ) addRecentFile(fileToOpen); } } slotStatusMsgReady(); } void DokVokApp::slotFileOpenRecent( int Index ) { slotStatusMsg(i18n("Opening file...")); if( !saveModified() ) { // here saving wasn't successful } else { if( openDocument(recentFiles.at( Index )) ) { addRecentFile( recentFiles.at(Index) ); // moves it at first position } else { // that file isn't usable any more it seems so forget it recentFiles.remove( Index ); fillRecentFileMenu(); } } slotStatusMsgReady(); } void DokVokApp::slotFileSave() { slotStatusMsg( i18n("Saving file...") ); if( doc->isNew() ) { saveAs(); } else { saveDocument( doc->absoluteFileName() ); } slotStatusMsgReady(); } void DokVokApp::slotFileSaveAs() { slotStatusMsg( i18n("Saving file with a new filename...") ); saveAs(); slotStatusMsgReady(); } void DokVokApp::slotFileClose() { slotStatusMsg(i18n("Closing file...")); close(); slotStatusMsgReady(); } void DokVokApp::slotFileRevert() { slotStatusMsg(i18n("Opening file...")); if( KMsgBox::yesNo(this, i18n("Warning"), i18n("Should really all changes get lost?") ) == 1 ) { openDocument( doc->absoluteFileName() ); } slotStatusMsgReady(); } void DokVokApp::slotFilePrint() { slotStatusMsg(i18n("Printing...")); QPrinter printer; if (printer.setup(this)) { view->print(&printer); } slotStatusMsgReady(); } void DokVokApp::slotFileQuit() { slotStatusMsg(i18n("Exiting...")); saveOptions(); // close the first window, the list makes the next one the first again. // This ensures that queryClose() is called on each window to ask for closing KTMainWindow* w; if(memberList) { for(w=memberList->first(); w!=0; w=memberList->first()) { // only close the window if the closeEvent is accepted. If the user presses Cancel on the saveModified() dialog, // the window and the application stay open. if(!w->close()) break; } } slotStatusMsgReady(); } void DokVokApp::slotEditDelete() { slotStatusMsg(i18n("Deleting selection...")); doc->deleteSelection(); slotStatusMsgReady(); } void DokVokApp::slotEditCut() { slotStatusMsg(i18n("Cutting selection...")); doc->cutSelection(); slotStatusMsgReady(); } void DokVokApp::slotEditCopy() { slotStatusMsg(i18n("Copying selection to clipboard...")); doc->copySelection(); slotStatusMsgReady(); } void DokVokApp::slotEditPaste() { slotStatusMsg(i18n("Inserting clipboard contents...")); doc->pasteFromClipboard(); slotStatusMsgReady(); } void DokVokApp::slotEditSelectAll() { slotStatusMsg(i18n("Selecting all...")); view->selectAll(); slotStatusMsgReady(); } void DokVokApp::slotEditDeselectAll() { slotStatusMsg(i18n("Deselecting all...")); view->deselectAll(); slotStatusMsgReady(); } void DokVokApp::slotEditInvertSelection() { slotStatusMsg(i18n("Inverting Selection...")); view->invertSelection(); slotStatusMsgReady(); } void DokVokApp::slotEditTypSelected( int TypIndex ) { doc->setTyp( TypIndex ); } void DokVokApp::slotEditNewVokabel() { slotStatusMsg(i18n("Inserting new vokabel...")); if( !view->isEditMode() ) { setState( ID_EDIT_EDITMODE ); } doc->appendVokabel(); slotStatusMsgReady(); } void DokVokApp::slotEditEditMode() { slotStatusMsg(i18n("Toggle the edit mode...")); /////////////////////////////////////////////////////////////////// // turn Editmode on or off if( editMenu->isItemChecked(ID_EDIT_EDITMODE) ) doc->slotSetEditMode( false ); else doc->slotSetEditMode( true ); slotStatusMsgReady(); } void DokVokApp::slotViewToolBar() { slotStatusMsg(i18n("Toggle the toolbar...")); /////////////////////////////////////////////////////////////////// // turn Toolbar on or off if( viewMenu->isItemChecked(ID_VIEW_TOOLBAR)) { viewMenu->setItemChecked(ID_VIEW_TOOLBAR, false); enableToolBar(KToolBar::Hide); } else { viewMenu->setItemChecked(ID_VIEW_TOOLBAR, true); enableToolBar(KToolBar::Show); } slotStatusMsgReady(); } void DokVokApp::slotViewStatusBar() { slotStatusMsg(i18n("Toggle the statusbar...")); /////////////////////////////////////////////////////////////////// //turn Statusbar on or off if( viewMenu->isItemChecked(ID_VIEW_STATUSBAR)) { viewMenu->setItemChecked(ID_VIEW_STATUSBAR, false); enableStatusBar(KStatusBar::Hide); } else { viewMenu->setItemChecked(ID_VIEW_STATUSBAR, true); enableStatusBar(KStatusBar::Show); } slotStatusMsgReady(); } void DokVokApp::slotListProperties() { slotStatusMsg(i18n("Editing list properties...")); doc->editProperties(); slotStatusMsgReady(); } void DokVokApp::slotLearningStart() { slotStatusMsg(i18n("Starting learning...")); doc->learning(); slotStatusMsgReady(); } void DokVokApp::slotSettingsGeneral() { slotStatusMsg(i18n("Editing DokVok general settings...")); editGeneralSettings(); slotStatusMsgReady(); } void DokVokApp::slotSettingsQuestioning() { slotStatusMsg(i18n("Editing DokVok questioning settings...")); doc->editQuestionSettings(); slotStatusMsgReady(); } void DokVokApp::slotSettingsLanguages() { slotStatusMsg(i18n("Editing DokVok languages...")); doc->editLanguages(); slotStatusMsgReady(); } void DokVokApp::slotStatusMsgReady() { /////////////////////////////////////////////////////////////////// // change status message permanently statusBar()->clear(); statusBar()->changeItem( i18n("Ready."), ID_STATUS_MSG ); } void DokVokApp::slotStatusMsg(const QString &text) { /////////////////////////////////////////////////////////////////// // change status message permanently statusBar()->clear(); statusBar()->changeItem(text, ID_STATUS_MSG); } void DokVokApp::slotStatusHelpMsg(const QString &text) { /////////////////////////////////////////////////////////////////// // change status message of whole statusbar temporary (text, msec) statusBar()->message(text, 2000); } void DokVokApp::commandCallback(int id_) { switch (id_) { case ID_FILE_NEW_WINDOW: slotFileNewWindow(); break; case ID_FILE_NEW: slotFileNew(); break; case ID_FILE_NEW_FROM: slotFileNewFrom(); break; case ID_FILE_NEW_FROM_THIS: slotFileNewFromThis(); break; case ID_FILE_OPEN: slotFileOpen(); break; case ID_FILE_REVERT: slotFileRevert(); break; case ID_FILE_SAVE: slotFileSave(); break; case ID_FILE_SAVE_AS: slotFileSaveAs(); break; case ID_FILE_CLOSE: slotFileClose(); break; case ID_FILE_PRINT: slotFilePrint(); break; case ID_FILE_QUIT: slotFileQuit(); break; case ID_EDIT_CUT: slotEditCut(); break; case ID_EDIT_COPY: slotEditCopy(); break; case ID_EDIT_PASTE: slotEditPaste(); break; case ID_EDIT_NEW_VOKABEL: slotEditNewVokabel(); break; case ID_EDIT_EDITMODE: slotEditEditMode(); break; case ID_EDIT_SELECT_ALL: slotEditSelectAll(); break; case ID_EDIT_DESELECT_ALL: slotEditDeselectAll(); break; case ID_EDIT_INVERT_SELECTION: slotEditInvertSelection(); break; case ID_VIEW_TOOLBAR: slotViewToolBar(); break; case ID_VIEW_STATUSBAR: slotViewStatusBar(); break; case ID_LIST_PROPERTIES: slotListProperties(); break; case ID_LEARNING_START: slotLearningStart(); break; case ID_SETTINGS_GENERAL: slotSettingsGeneral(); break; case ID_SETTINGS_QUESTIONING: slotSettingsQuestioning(); break; case ID_SETTINGS_LANGUAGES: slotSettingsLanguages(); break; default: break; } } void DokVokApp::statusCallback(int id_) { switch (id_) { case ID_FILE_NEW_WINDOW: slotStatusHelpMsg(i18n("Opens a new application window")); break; case ID_FILE_NEW: slotStatusHelpMsg(i18n("Creates a new list")); break; case ID_FILE_NEW_FROM: slotStatusHelpMsg(i18n("Creates a new list based on an existing list")); break; case ID_FILE_NEW_FROM_THIS: slotStatusHelpMsg(i18n("Creates a new list based on the actual list")); break; case ID_FILE_OPEN: slotStatusHelpMsg(i18n("Opens an existing list")); break; case ID_FILE_OPEN_RECENT: slotStatusHelpMsg(i18n("Opens a recently used file")); break; case ID_FILE_SAVE: slotStatusHelpMsg(i18n("Saves the actual list")); break; case ID_FILE_SAVE_AS: slotStatusHelpMsg(i18n("Saves the actual list as...")); break; case ID_FILE_CLOSE: slotStatusHelpMsg(i18n("Closes the actual list")); break; case ID_FILE_PRINT: slotStatusHelpMsg(i18n("Prints out the actual list")); break; case ID_FILE_QUIT: slotStatusHelpMsg(i18n("Quits the application")); break; case ID_EDIT_CUT: slotStatusHelpMsg(i18n("Cuts the selected section and puts it to the clipboard")); break; case ID_EDIT_COPY: slotStatusHelpMsg(i18n("Copies the selected section to the clipboard")); break; case ID_EDIT_PASTE: slotStatusHelpMsg(i18n("Pastes the clipboard contents to actual position")); break; case ID_EDIT_NEW_VOKABEL: slotStatusHelpMsg(i18n("Appends a new vokabel to the list")); break; case ID_EDIT_SET_TYP: slotStatusHelpMsg(i18n("Sets the typ of the vocabel(s)")); break; case ID_EDIT_EDITMODE: slotStatusHelpMsg(i18n("Enables/disables the edit mode")); break; case ID_VIEW_TOOLBAR: slotStatusHelpMsg(i18n("Enables/disables the toolbar")); break; case ID_VIEW_STATUSBAR: slotStatusHelpMsg(i18n("Enables/disables the statusbar")); break; case ID_LIST_PROPERTIES: slotStatusHelpMsg(i18n("Opens a dialog for editing of the list properties")); break; case ID_SETTINGS_GENERAL: slotStatusHelpMsg(i18n("Opens a dialog for editing of the general settings")); break; case ID_SETTINGS_QUESTIONING: slotStatusHelpMsg(i18n("Opens a dialog for editing of the questioning settings")); break; case ID_SETTINGS_LANGUAGES: slotStatusHelpMsg(i18n("Opens a dialog for editing of the languages")); break; default: break; } } void DokVokApp::setStandardDirectory(const QString &NewDirectory) { StandardDirectory = NewDirectory; } const QString &DokVokApp::getStandardDirectory() const { return StandardDirectory; } /** sets the caption of the window */ void DokVokApp::setWindowCaption() { // QString caption=kapp->getCaption(); setCaption(/*"Dok Vok: "+*/doc->titel()); } /** opens a dialog for editing of the list properties */ void DokVokApp::editGeneralSettings() { DokVokDialog Dialog; if( Dialog.wasModified( getStandardDirectory(), AutoLoadLastFile ) ) {//TODO: each update only if changed setStandardDirectory( Dialog.standardDirectory() ); AutoLoadLastFile = Dialog.autoLoadLastFile(); }; } /** sets the insert from clipboard to Enabled/Disabled */ void DokVokApp::setClipboard( bool Enabled ) { if( Enabled ) enableCommand( ID_EDIT_PASTE ); else disableCommand( ID_EDIT_PASTE ); } /** sets the insert from editmode to Enabled/Disabled */ void DokVokApp::setEditMode( bool Enabled ) { if( Enabled ) setState( ID_EDIT_EDITMODE ); else unsetState( ID_EDIT_EDITMODE ); } /** */ void DokVokApp::slotDropEvent(KDNDDropZone *Zone) { QString Filename = Zone->getURLList().first(); KURL URL = Filename.data(); Filename = URL.path(); slotStatusMsg(i18n("Opening a new application window...")); DokVokApp *NewWindow = new DokVokApp(); NewWindow->show(); NewWindow->startWithFile( Filename ); slotStatusMsgReady(); } dokvok-0.1.3/dokvok/main.cpp 644 764 144 4367 7066743552 11046 /*************************************************************************** main.cpp - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include "dokvok.h" void testDir( QString &Name, unsigned int Mode ) { if ( checkAccess(Name, W_OK) ) { QDir Dir( Name ); if( !Dir.exists() ) mkdir( Dir.path(), Mode ); chown( Dir.path(), getuid(), getgid()); } } void createLocalDirs() { // create the language directory ~/.kde/share/apps/dokvok/languages QString DirName = KApplication::localkdedir().copy(); testDir( DirName, 0755 ); DirName += "/share"; testDir( DirName, 0755 ); DirName += "/apps"; testDir( DirName, 0700 ); DirName += "/dokvok"; testDir( DirName, 0700 ); DirName += "/languages"; testDir( DirName, 0700 ); } int main(int argc, char *argv[]) { createLocalDirs(); KApplication app(argc, argv, "dokvok"); if (app.isRestored()) { RESTORE(DokVokApp); } else { DokVokApp *DokVok = new DokVokApp(); DokVok->show(); // load a document to start with if(argc>1) { // a document is explicitly given DokVok->startWithFile( argv[1] ); } else { // let DokVok handle what to start with DokVok->startWithFile(); } } return app.exec(); } dokvok-0.1.3/dokvok/dokvok.h 644 764 144 27233 7066715342 11075 /*************************************************************************** dokvok.h - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef DOKVOK_H #define DOKVOK_H #ifdef HAVE_CONFIG_H #include #endif #include // include files for KDE #include #include #include #include // forward declaration of the DokVok classes class DokVokDoc; class DokVokView; class VTypInfoList; /** * The base class for DokVok application windows. It sets up the main * window and reads the config file as well as providing a menubar, toolbar * and statusbar. An instance of DokVokView creates your center view, which is connected * to the window's Doc object. * DokVokApp reimplements the methods that KTMainWindow provides for main window handling and supports * full session management as well as keyboard accelerator configuration by using KAccel. * @see KTMainWindow * @see KApplication * @see KConfig * @see KAccel * * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. * @version KDevelop version 0.4 code generation */ class DokVokApp : public KTMainWindow { Q_OBJECT friend class DokVokView; public: /** constructor of DokVokApp, calls all init functions to create the application. * @see initMenuBar initToolBar */ DokVokApp(); ~DokVokApp(); /** enables menuentries/toolbar items */ void enableCommand( int id_ ); /** disables menuentries/toolbar items */ void disableCommand( int id_ ); /** sets menuentries/toolbar items state */ void setState( int id_ ); /** unsets menuentries/toolbar items state */ void unsetState( int id_ ); /** add a opened file to the recent file list and update recent_file_menu */ void addRecentFile( const QString &file ); /** */ void fillRecentFileMenu(); /** opens a file specified by commandline option */ void startWithFile( const char* Filename = 0 ); /** opens the file with the name Filename or popups an errormessage */ bool openDocument( QString Filename ); /** saves the file under the name Filename or popups an errormessage */ bool saveDocument( QString Filename ); /** returns a pointer to the current document connected to the KTMainWindow instance and is used by * the View class to access the document object's methods */ DokVokDoc *getDocument() const; /** "save modified" - asks the user for saving if the document is modified */ bool saveModified(); /** "save as" - asks the user for saving with a new filename */ bool saveAs(); /** */ void setStandardDirectory(const QString &NewDirectory); /** */ const QString & getStandardDirectory() const; protected: /** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration * file */ void saveOptions(); /** read general Options again and initialize all variables like the recent file list */ void readOptions(); /** initKeyAccel creates the keyboard accelerator items for the available slots and changes the menu accelerators. * @see KAccel */ void initKeyAccel(); /** initMenuBar creates the menubar and inserts the menupopups as well as creating the helpMenu. * @see KApplication#getHelpMenu */ void initMenuBar(); /** this creates the toolbars. */ void initToolBar(); /** sets up the statusbar for the main window by initialzing a statuslabel. */ void initStatusBar(); /** initializes the document object of the main window that is connected to the view in initView(). * @see initView(); */ void initDocument(); /** creates the centerwidget of the KTMainWindow instance and sets it as the view */ void initView(); /** queryClose is called by KTMainWindow on each closeEvent of a window. Against the * default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall * be saved if Modified; on cancel the closeEvent is rejected. * @see KTMainWindow#queryClose * @see KTMainWindow#closeEvent */ virtual bool queryClose(); /** queryExit is called by KTMainWindow when the last window of the application is going to be closed during the closeEvent(). * Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's * properties. * @see KTMainWindow#queryExit * @see KTMainWindow#closeEvent */ virtual bool queryExit(); /** saves the window properties for each open window during session end to the session config file, including saving the currently * opened file by a temporary filename provided by KApplication. * @see KTMainWindow#saveProperties */ virtual void saveProperties(KConfig *_cfg); /** reads the session config file and restores the application's state including the last opened files and documents by reading the * temporary files saved by saveProperties() * @see KTMainWindow#readProperties */ virtual void readProperties(KConfig *_cfg); /** */ void editGeneralSettings(); public slots: /** switch argument for slot selection by menu or toolbar ID */ void commandCallback(int id_); /** switch argument for Statusbar help entries on slot selection. Add your ID's help here for toolbars and menubar entries. */ void statusCallback(int id_); /** open a new application window by creating a new instance of DokVokApp */ void slotFileNewWindow(); /** clears the document in the actual view to reuse it as the new document */ void slotFileNew(); /** opens a file, load it into the document and sets it new */ void slotFileNewFrom(); /** clears the file information of the actual document to reuse it as a new document */ void slotFileNewFromThis(); /** opens a file and load it into the document */ void slotFileOpen(); /** opens a file from the recent files menu */ void slotFileOpenRecent(int id_); /** reloads the document, this way discarding changes */ void slotFileRevert(); /** save a document */ void slotFileSave(); /** save a document by a new filename*/ void slotFileSaveAs(); /** asks for saving if the file is modified, then closes the actual file and window*/ void slotFileClose(); /** print the actual file */ void slotFilePrint(); /** closes all open windows by calling close() on each memberList item until the list is empty, then quits the application. * If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks. */ void slotFileQuit(); /** removes the marked text/object from the document */ void slotEditDelete(); /** put the marked text/object into the clipboard and remove * it from the document */ void slotEditCut(); /** put the marked text/object into the clipboard */ void slotEditCopy(); /** paste the clipboard into the document */ void slotEditPaste(); /** appends a new vokabel */ void slotEditTypSelected( int TypIndex ); /** appends a new vokabel */ void slotEditNewVokabel(); /** toggles the EditMode */ void slotEditEditMode(); /** selects all */ void slotEditSelectAll(); /** deselects all */ void slotEditDeselectAll(); /** inverts the selection */ void slotEditInvertSelection(); /** toggles the toolbar */ void slotViewToolBar(); /** toggles the statusbar */ void slotViewStatusBar(); /** popups a dialog */ void slotListProperties(); /** starts the learning dialog */ void slotLearningStart(); /** popups a dialog */ void slotSettingsGeneral(); /** popups a dialog */ void slotSettingsQuestioning(); /** popups a dialog */ void slotSettingsLanguages(); /** changes the statusbar contents for the standard label permanently, used to indicate current actions. * @param text the text that is displayed in the statusbar */ void slotStatusMsg(const QString &text); /** call of slotStatusMsg with text "Ready." */ void slotStatusMsgReady(); /** changes the status message of the whole statusbar for two seconds, then restores the last status. This is used to display * statusbar messages that give information about actions for toolbar icons and menuentries. * @param text the text that is displayed in the statusbar */ void slotStatusHelpMsg(const QString &text); /** sets the caption of the window */ void setWindowCaption(); /** sets the insert from clipboard to Enabled/Disabled */ void setClipboard( bool Enabled ); /** sets the insert from editmode to Enabled/Disabled */ void setEditMode( bool Enabled ); /** */ void fillTypMenu( VTypInfoList *List ); private slots: /** */ void slotDropEvent(KDNDDropZone *); private: /** contains the recently used filenames */ QStrList recentFiles; /** the standard directory for DokVok files */ QString StandardDirectory; /** the clipboard*/ QClipboard *ClipBoard; /** should last file be loaded at start*/ bool AutoLoadLastFile; /** the configuration object of the application */ KConfig *config; /** the key accelerator container */ KAccel *keyAccel; /** fileMenu contains all items of the menubar entry "File" */ QPopupMenu *fileMenu; /** the recent file menu containing the last five opened files */ QPopupMenu *recentFilesMenu; /** editMenu contains all items of the menubar entry "Edit" */ QPopupMenu *editMenu; /** the typ menu containing the types */ QPopupMenu *TypMenu; /** viewMenu contains all items of the menubar entry "View" */ QPopupMenu *viewMenu; /** listMenu contains all items of the menubar entry "List" */ QPopupMenu *listMenu; /** learningMenu contains all items of the menubar entry "Learning" */ QPopupMenu *learningMenu; /** settingsMenu contains all items of the menubar entry "Settings" */ QPopupMenu *settingsMenu; /** helpMenu contains all items of the menubar entry "Help" */ QPopupMenu *helpMenu; /** view is the main widget which represents your working area. The View * class should handle all events of the view widget. It is kept empty so * you can create your view according to your application's needs by * changing the view class. */ DokVokView *view; /** doc represents your actual document and is created only once. It keeps * information such as filename and does the serialization of your files. */ DokVokDoc *doc; }; #endif // DOKVOK_H dokvok-0.1.3/dokvok/dokvokdoc.h 644 764 144 16020 7066715022 11546 /*************************************************************************** dokvokdoc.h - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef DOKVOKDOC_H #define DOKVOKDOC_H #ifdef HAVE_CONFIG_H #include #endif // include files for QT #include #include // include files for this project #include "vvocabulary.h" #include "File/vvokfile.h" #include "Abfrage/vabfragedialog.h" // forward declaration of the DokVok classes class DokVokView; /** DokVokDoc provides a document object for a document-view model. * * The DokVokDoc class provides a document object that can be used in conjunction with the classes DokVokApp and DokVokView * to create a document-view model for standard KDE applications based on KApplication and KTMainWindow. Thereby, the document object * is created by the DokVokApp instance and contains the document structure with the according methods for manipulation of the document * data by DokVokView objects. Also, DokVokDoc contains the methods for serialization of the document data from and to files. * * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. * @version KDevelop version 0.4 code generation */ class DokVokDoc : public VVocabulary { Q_OBJECT public: /** Constructor for the fileclass of the application */ DokVokDoc( QWidget *parent, const char *name=0 ); /** Destructor for the fileclass of the application */ ~DokVokDoc(); /** adds a view to the document which represents the document contents. Usually this is your main view. */ void addView( DokVokView *view ); /** removes a view from the list of currently connected views */ void removeView( DokVokView *view ); /** sets the modified flag for the document after a modifying action on the view connected to the document.*/ void setModified( bool IsModified = true ); /** returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.*/ bool isModified() { return Modified; }; /** returns if the document is new or not. Use this to determine if your document needs a filename */ bool isNew() { return FileName.isEmpty(); }; /** deletes the document's contents */ void deleteContents(); /** initializes the document generally */ bool newDocument(); /** closes the acutal document */ void closeDocument(); /** loads the document by filename and format and emits the updateViews() signal */ bool openDocument( const QString &FilePath, const char *format=0 ); /** saves the document under filename and format.*/ bool saveDocument( const QString &FilePath, const char *format=0); /** sets the name of the file connected with the document */ void setFileName( const QString &NewFileName ) { FileName = NewFileName; } /** returns the filename of the current document file*/ const QString &fileName() { return FileName; }; /** sets the path to the file connected with the document */ void setAbsoluteDirName( const QString &Name ) { AbsoluteDirName = Name; } /** returns the path to the file connected with the document */ const QString &absoluteDirName() { return AbsoluteDirName; }; /** returns the absolute filename of the current document file*/ QString absoluteFileName() { return AbsoluteDirName + '/' + FileName; }; /** reset the views i.e. clears all Voklists and refills them */ void resetView( DokVokView* View ); /** resets all views */ void resetAllViews(); /** opens a dialog for editing of the list properties */ void editProperties(); /** sets the filedata to neutral */ void setDocumentNew(); /** set Document to a copy */ void setAsCopy(); /** copies the selection depending on the EditMode to the clipboard */ void copySelection(); /** pastes the TODO:inhalt from the clipboard */ void pasteFromClipboard(); /** cuts the selection depending on the EditMode */ void cutSelection(); /** delets the selection depending on the EditMode */ void deleteSelection(); /** starts the learning*/ void learning(); /** reads all Settings from the config file */ void readQuestionSettings( KConfig *Config ); /** writes all Settings to the config file */ void writeQuestionSettings( KConfig *Config ); /** edits questioning settings */ void editQuestionSettings(); /** edits languages */ void editLanguages(); /** */ void setTyp( int Index ); public slots: /** calls repaint() on all views connected to the document object and is called by the view by which the document has been changed. * As this view normally repaints itself, it is excluded from the paintEvent. */ void slotUpdateAllViews(DokVokView *Sender); /** adds Vokabel and therefore VokItems in all views */ void appendVokabel( VVokabel *Vokabel = 0 ); /** sets the EditMode */ void slotSetEditMode ( bool Editing = true ); /** */ void setTypInfoList ( VTypInfoList *TypInfoList ); protected: protected slots: // Protected slots /** tests if clipboard has Data and emits the state */ void clipboardChanged(); /** */ void setPasteFromClipboard ( bool Switch ) { emit clipboardHasData( Switch ); } signals: /** */ void clipboardHasData( bool ); /** */ void editModeHasChanged( bool ); /** */ void newTypInfoList( VTypInfoList * ); public: // Public attributes /** the list of the views currently connected to the document */ static QList *allViewsList; protected: // Protected attributes /** */ DokVokView *View; /** */ VVokFile VokFile; private: /** the modified flag of the current document */ bool Modified; /** the absolute path to the location of the file, taken from last used file or in the beginning from standard */ QString AbsoluteDirName; /** the name of the file; is empty if file is new */ QString FileName; QList *sameViewsList; /** settings for questioning */ VQuestionSettings *QuestionSettings; }; #endif // DOKVOKDOC_H dokvok-0.1.3/dokvok/resource.h 644 764 144 7051 7066646656 11416 /*************************************************************************** resource.h - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef RESOURCE_H #define RESOURCE_H #ifdef HAVE_CONFIG_H #include #endif /////////////////////////////////////////////////////////////////// // resource.h -- contains macros used for commands /////////////////////////////////////////////////////////////////// // COMMAND VALUES FOR MENUBAR AND TOOLBAR ENTRIES /////////////////////////////////////////////////////////////////// // File-menu entries #define ID_FILE_NEW_WINDOW 10010 #define ID_FILE_NEW 10020 #define ID_FILE_NEW_FROM 10030 #define ID_FILE_NEW_FROM_THIS 10040 #define ID_FILE_OPEN 10050 #define ID_FILE_OPEN_RECENT 10060 #define ID_FILE_CLOSE 10070 #define ID_FILE_REVERT 10080 #define ID_FILE_CLEAR 10090 #define ID_FILE_DELETE 10100 #define ID_FILE_SAVE 10110 #define ID_FILE_SAVE_AS 10120 #define ID_FILE_PRINT 10130 #define ID_FILE_QUIT 10140 /////////////////////////////////////////////////////////////////// // Edit-menu entries #define ID_EDIT_COPY 11010 #define ID_EDIT_CUT 11020 #define ID_EDIT_PASTE 11030 #define ID_EDIT_SET_TYP 11040 #define ID_EDIT_NEW_VOKABEL 11050 #define ID_EDIT_EDITMODE 11060 #define ID_EDIT_SELECT_ALL 11070 #define ID_EDIT_DESELECT_ALL 11080 #define ID_EDIT_INVERT_SELECTION 11090 /////////////////////////////////////////////////////////////////// // View-menu entries #define ID_VIEW_TOOLBAR 12010 #define ID_VIEW_STATUSBAR 12020 /////////////////////////////////////////////////////////////////// // List-menu entries #define ID_LIST_PROPERTIES 13010 /////////////////////////////////////////////////////////////////// // Learning-menu entries #define ID_LEARNING_START 14010 /////////////////////////////////////////////////////////////////// // Settings-menu entries #define ID_SETTINGS_GENERAL 15010 #define ID_SETTINGS_QUESTIONING 15020 #define ID_SETTINGS_LANGUAGES 15030 /////////////////////////////////////////////////////////////////// // Help-menu entries #define ID_HELP_CONTENTS 1002 /////////////////////////////////////////////////////////////////// // General application values #define ID_STATUS_MSG 1001 #endif // RESOURCE_H dokvok-0.1.3/dokvok/vvokabel.h 644 764 144 5604 7066707315 11370 /*************************************************************************** vvokabel.h - description ------------------- begin : Fri Sep 24 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VVOKABEL_H #define VVOKABEL_H #include #include #include "vtyp.h" #include "vwissen.h" #define TermColumn 0 #define TranslationColumn 1 /** VVokabel implements the basic typ of vocabel. It has all needed attributes like * term, its translation, the knowledge, type( one of the defined), errortypes * @see VVokabelList * @see VVokList * * @author Friedrich W. H. Kossebau * @version 0.1.1 The very beginning of DokVok */ class VVokabel : public VTyp, public VWissen { public: VVokabel(); VVokabel ( const QString &, const QString & ); ~VVokabel(); inline void ChangeColumn ( int C ) { C = abs (C - 1); } /** sets the strings of the vokabel */ void setString( const int Column, const QString &Term ) { String[Column] = Term.stripWhiteSpace(); } /** returns string of column */ const QString& string( const int Column ) const { return String[Column]; } /** sets the remark of the vokabel */ void setRemark( const QString &NewRemark ) { Remark = NewRemark; } /** returns Remark */ const QString& remark() const { return Remark; } // /** sets the typ of the vokabel */ // void setTyp( VTypSymbol NewTyp ) { Typ.setSymbol( NewTyp ); } // /** returns typ */ // VTypSymbol typ() { return Typ.symbol(); } // /** inits typ */ // void initTyp() { Typ.initSymbol(); } // /** sets the wissen of the vokabel */ // void setWissen( VWissen NewWissen ) { Wissen = NewWissen; } // /** returns wissen */ // VWissen wissen() const { return Wissen; } // /** increases Wissen*/ // void incWissen() { Wissen.inc(); } // /** decreases Wissen*/ // void decWissen() { Wissen.dec(); } // /** inits wissen */ // void initWissen() { Wissen.init(); } private: QString String [2]; QString Remark; // VWissen Wissen; // VTypBase Typ; }; #endif dokvok-0.1.3/dokvok/vvokabellist.h 644 764 144 4500 7066771452 12261 /*************************************************************************** vvokabelliste.h - description ------------------- begin : Tue Dec 7 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VVOKABELLIST_H #define VVOKABELLIST_H #include #include "vvokabel.h" #define VokSeparator '\t' /**implements the list of vocabels *@author Friedrich W. H. Kossebau */ typedef QList VVokabelListBase; typedef QListIterator VVokabelListIterator; enum VSortKey {SortTerm, SortTranslation, SortTyp, SortLevel}; class VVokabelList : public VVokabelListBase { public: VVokabelList() : SortKey( SortLevel ) {} ~VVokabelList() {} /** inserts new vocabel in list, data is seperated by tabs, term translation remark knowledge */ VVokabel *newVokabel ( QString Data = 0 ); /** returns textline of next vokabel in the list to the current vokabel */ QString nextLine() { return line( next() ); } /** returns textline of first vokabel of vokabellist */ QString firstLine() { return line( first() ); } /** returns textline for output*/ QString line( VVokabel * ) const; /** sets the key for sorting to NewKey, standard is SortLevel that cares of knowledge*/ void setSortKey( VSortKey NewKey = SortLevel ) { SortKey = NewKey; } /** */ VSortKey sortKey() { return SortKey; } protected: // Protected methods /** */ virtual int compareItems( GCI V1, GCI V2 ); private: VSortKey SortKey; }; #endif dokvok-0.1.3/dokvok/vvocabulary.h 644 764 144 6452 7066736051 12115 /*************************************************************************** vvocabulary.h - description ------------------- begin : Wed Mar 15 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VVOCABULARY_H #define VVOCABULARY_H #include #include "vlanguage.h" #include "vvokabellist.h" /** *@author Friedrich W. H. Kossebau */ class VVocabulary : public QObject, public VVokabelList { Q_OBJECT public: VVocabulary( QObject * parent=0, const char * name=0 ); ~VVocabulary(); /** clears the lists and sets strings to 0 */ void clear( bool total = false ); /** returns the titel */ const QString& titel() { return Titel; } /** sets titel and emits signal*/ void setTitel( const QString NewTitel ) { Titel = NewTitel; emit newTitel(); } /** returns the comment */ const QString& comment() { return Comment; } /** sets comment */ void setComment( const QString NewComment ) { Comment = NewComment; } /** returns the keywords */ const QString& keyWords() { return KeyWords; } /** sets keywords */ void setKeyWords( const QString NewKeyWords ) { KeyWords = NewKeyWords; } /** returns the titel of column nr Number */ const QString& columnTitel( const int Column ) { return ColumnTitel[Column]; } /** sets titel of column nr Number and emits signal */ void setColumnTitel( const int Column, const char* NewTitel ); /** sets titel of column nr Number and emits signal */ void setColumnTitel( const int Column, const QString &NewTitel ); /** returns the titel of column nr Column */ const QString & language( const int Column ) { return Language[Column]; } /** sets language of column nr Column and emits signal */ void setLanguage( const int Column, const QString &NewLanguage ); /** returns the author */ const QString& author() { return Author; } /** sets Author */ void setAuthor( const QString &Name ) { Author = Name; } protected: // properties /** names of the columns */ QString ColumnTitel[2]; /** stores the titel */ QString Titel; /** the languages */ QString Language[2]; /** explaination or comment */ QString Comment; /** some Keywords */ QString KeyWords; /** author of the list */ QString Author; signals: // Signals /** */ void newTitel(); /** */ void newColumnTitel( int, const char * ); /** */ void newLanguage( int, const char * ); }; #endif dokvok-0.1.3/dokvok/vtyp.h 644 764 144 3635 7066755061 10564 /*************************************************************************** vtyp.h - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VTYP_H #define VTYP_H #include /** *@author Friedrich W. H. Kossebau */ typedef char VTypSymbol; class VTyp { public: VTyp(): Symbol(' ') {} VTyp( VTypSymbol NewSymbol ) { Symbol = NewSymbol; } ~VTyp() {} void initSymbol() { Symbol = ' '; } QString symbolString() { char String[2] = {Symbol, '\0'}; return QString(&String[0]); } VTypSymbol symbol() { return Symbol; } void setSymbol( VTypSymbol NewSymbol ) { Symbol = NewSymbol; } private: VTypSymbol Symbol; }; class VTypInfo : public VTyp { public: VTypInfo( VTypSymbol NewSymbol, QString NewName, QString NewLocalName ) : VTyp(NewSymbol), Name(NewName), LocalName(NewLocalName) {} VTypInfo() {} ~VTypInfo() {} QString &name () { return Name; } QString &localName () { return LocalName; } private: QString Name; QString LocalName; }; #endif dokvok-0.1.3/dokvok/vlanguage.h 644 764 144 4177 7066773230 11533 /*************************************************************************** vlanguage.h - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VLANGUAGE_H #define VLANGUAGE_H #include #include #include #include "vtyplist.h" /** *@author Friedrich W. H. Kossebau */ struct VLanguage { QString Name; QString Short; QFont Font; VTypInfoList TypInfoList; }; /*class VLanguage { VLanguage() {} ~VLanguage() {} QString &name() { return Name; } QString &symbol() { return Symbol; } QFont &font() { return Font; } protected: QString Name; QString Symbol; QFont Font; }; class VTypLanguage : public VLanguage { VTypLanguage() {} ~VTypLanguage() {} VTypInfoList *typInfoList() { return TypInfoList; } protected: VTypInfoList TypInfoList; };*/ /*class VQuestLanguage : public VTypLanguage { protected: VErrorInfoList ErrorInfoList; };*/ typedef QList VLanguageListBase; class VLanguageList : public VLanguageListBase { public: VLanguageList( bool NoLanguage = true ); ~VLanguageList(); void write(); void reset( bool NoLanguage = true ); VLanguage *appendNew( QString Short ); protected: }; #endif dokvok-0.1.3/dokvok/vtyplist.h 644 764 144 3064 7066736051 11452 /*************************************************************************** vtyp.h - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VTYPLIST_H #define VTYPLIST_H #include #include #include "vtyp.h" /** *@author Friedrich W. H. Kossebau */ typedef QList VTypInfoListBase; typedef QDict VTypDictBase; class VTypInfoList : public VTypInfoListBase { public: VTypInfoList() {} ~VTypInfoList() {} VTypSymbol symbol( int Index ); }; class VTypDict : public VTypDictBase { public: VTypDict() {} VTypDict( VTypInfoList &List ); ~VTypDict() {} void fillFromList( VTypInfoList &List ); }; #endif dokvok-0.1.3/dokvok/vwissen.h 644 764 144 3071 7066706622 11251 /*************************************************************************** vwissen.h - description ------------------- begin : Fri Mar 24 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VWISSEN_H #define VWISSEN_H /** *@author Friedrich W. H. Kossebau */ typedef unsigned short VWissensLevel; class VWissen { public: VWissen( VWissensLevel NewLevel ) { Level = NewLevel; } VWissen(): Level(0){}; ~VWissen() {}; VWissensLevel level() { return Level; } void setLevel( VWissensLevel NewLevel ) { Level = NewLevel; } void init() { Level = 0; } void incLevel() { if( Level < 255) Level++; } void decLevel() { if( Level > 0 ) Level--; } private: VWissensLevel Level; }; #endif dokvok-0.1.3/dokvok/docs/ 777 764 144 0 7070117360 10323 5dokvok-0.1.3/dokvok/docs/Makefile.in 644 764 144 24375 7070117356 12424 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ SUBDIRS = en de mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/docs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status # 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. @SET_MAKE@ all-recursive install-data-recursive install-exec-recursive \ installdirs-recursive install-recursive uninstall-recursive \ check-recursive installcheck-recursive info-recursive dvi-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ rev="$$subdir $$rev"; \ test "$$subdir" = "." && dot_seen=yes; \ done; \ test "$$dot_seen" = "no" && 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/docs distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done for subdir in $(SUBDIRS); do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ || exit 1; \ fi; \ done info-am: info: info-recursive dvi-am: dvi: dvi-recursive check-am: all-am check: check-recursive installcheck-am: installcheck: installcheck-recursive install-exec-am: install-exec: install-exec-recursive install-data-am: install-data: install-data-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-recursive uninstall-am: uninstall: uninstall-recursive all-am: Makefile all-redirect: all-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: installdirs-recursive installdirs-am: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-recursive clean-am: clean-tags clean-generic mostlyclean-am clean: clean-recursive distclean-am: distclean-tags distclean-generic clean-am -rm -f libtool distclean: distclean-recursive maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-recursive .PHONY: install-data-recursive uninstall-data-recursive \ install-exec-recursive uninstall-exec-recursive installdirs-recursive \ uninstalldirs-recursive all-recursive check-recursive \ installcheck-recursive info-recursive dvi-recursive \ mostlyclean-recursive distclean-recursive clean-recursive \ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs-am \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/dokvok/docs/Makefile.am 644 764 144 221 7066761424 12341 ####### kdevelop will overwrite this part!!! (begin)########## SUBDIRS = en de ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/docs/en/ 777 764 144 0 7070117360 10725 5dokvok-0.1.3/dokvok/docs/en/Makefile.in 644 764 144 17506 7070117360 13017 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ EXTRA_DIST = index-1.html index-2.html index-3.html index-4.html index-5.html index-6.html index.html logotp3.png mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../../config.h CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/docs/en/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/docs/en distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data-local install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-local uninstall: uninstall-am all-am: Makefile all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am -rm -f libtool distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: tags distdir info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-local install-data-am install-data install-am install \ uninstall-local uninstall-am uninstall all-redirect all-am all \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean install-data-local: $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-1.html $(kde_htmldir)/en/dokvok/index-1.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-2.html $(kde_htmldir)/en/dokvok/index-2.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-3.html $(kde_htmldir)/en/dokvok/index-3.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-4.html $(kde_htmldir)/en/dokvok/index-4.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-5.html $(kde_htmldir)/en/dokvok/index-5.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-6.html $(kde_htmldir)/en/dokvok/index-6.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index.html $(kde_htmldir)/en/dokvok/index.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) logotp3.png $(kde_htmldir)/en/dokvok/logotp3.png uninstall-local: -rm -f $(kde_htmldir)/en/dokvok/index-1.html -rm -f $(kde_htmldir)/en/dokvok/index-2.html -rm -f $(kde_htmldir)/en/dokvok/index-3.html -rm -f $(kde_htmldir)/en/dokvok/index-4.html -rm -f $(kde_htmldir)/en/dokvok/index-5.html -rm -f $(kde_htmldir)/en/dokvok/index-6.html -rm -f $(kde_htmldir)/en/dokvok/index.html -rm -f $(kde_htmldir)/en/dokvok/logotp3.png ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/dokvok/docs/en/Makefile.am 644 764 144 3002 7066761424 12763 ####### kdevelop will overwrite this part!!! (begin)########## EXTRA_DIST = index-1.html index-2.html index-3.html index-4.html index-5.html index-6.html index.html logotp3.png install-data-local: $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-1.html $(kde_htmldir)/en/dokvok/index-1.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-2.html $(kde_htmldir)/en/dokvok/index-2.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-3.html $(kde_htmldir)/en/dokvok/index-3.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-4.html $(kde_htmldir)/en/dokvok/index-4.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-5.html $(kde_htmldir)/en/dokvok/index-5.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index-6.html $(kde_htmldir)/en/dokvok/index-6.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) index.html $(kde_htmldir)/en/dokvok/index.html $(mkinstalldirs) $(kde_htmldir)/en/dokvok/ $(INSTALL_DATA) logotp3.png $(kde_htmldir)/en/dokvok/logotp3.png uninstall-local: -rm -f $(kde_htmldir)/en/dokvok/index-1.html -rm -f $(kde_htmldir)/en/dokvok/index-2.html -rm -f $(kde_htmldir)/en/dokvok/index-3.html -rm -f $(kde_htmldir)/en/dokvok/index-4.html -rm -f $(kde_htmldir)/en/dokvok/index-5.html -rm -f $(kde_htmldir)/en/dokvok/index-6.html -rm -f $(kde_htmldir)/en/dokvok/index.html -rm -f $(kde_htmldir)/en/dokvok/logotp3.png ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/docs/en/index-1.html 644 764 144 5412 7070117337 13062 The DokVok Handbook: Introduction The K Desktop Environment

Next Previous Table of Contents

1. Introduction

DokVok is ...

  • "... a fucking vocabulary trainer." says Maja, maybe because the whole march I concentrated on programming, not on her.
  • "... a program, that already exists a thousand times." says Frank, who wants to tease me.

I think it is a good chance for me to learn C++ programming and also to have a vocabulary trainer that can do what I want him to do.

1.1 Creation of the projekt

In autumn 1999 I decided to learn russian (some say I should finish learning english first :-( ). But I did not find a free program for my favorite OS that could assist me. None could use two different charsets at the same time. But the cyrillic and the german do differ. I remembered I was about to learn C++...

This version is just a snapshot. DokVok does not have neither all the features I want nor are the already existing ones fully implemented. So you should not wonder if typs aren't displayed in the vokview and seem not to make any sense, or the questioning seems not to be completed...

1.2 Call

I want users in spe to take influence in the further development of DokVok. So don't hesitate to send your whishes and ideas to the author.

1.3 Almost completed features

  • vocabel managment
  • language managment
  • typ managment
  • questioning control

1.4 features on the TODO list

  • word parser for smart error detection, therefore
  • complex error types
  • reportbox with HTML-ability (links to info files...)
  • learning games or
  • learning concepts

1.5 Changes

Autumn 1999: Start DokVok 0.1.1pre, getting used to QT and KDE programming and therefore C++

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/index-2.html 644 764 144 4003 7070117337 13056 The DokVok Handbook: Installation The K Desktop Environment

Next Previous Table of Contents

2. Installation

2.1 How to obtain DokVok

Don't make fun of me! How can you read this if you don't have DokVok already?

For newer versions have a look at the DokVok-Homepage.

2.2 Requirements

DokVok uses the KDE and QT-Libraries. I have KDE 1.1.2 and QT 1.44 so this should work with you too hopefully. If not please report.

2.3 Compilation and installation

In order to compile DokVok on your system, type the following in the base directory of the DokVok distribution:

% ./configure
% make
% make install

For installing you must be root like always. This results in that Input:

% su
% make install

Since DokVok uses

autoconf
you should have not trouble compiling it. Should you run into problems please report them to the the author at Friedrich W. H. Kossebau

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/index-3.html 644 764 144 1766 7070117337 13074 The DokVok Handbook: Usage The K Desktop Environment

Next Previous Table of Contents

3. Usage

3.1 DokVok is...

hopefully selfexplaining. More later...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/index-4.html 644 764 144 2722 7070117337 13066 The DokVok Handbook: Questions and Answers The K Desktop Environment

Next Previous Table of Contents

4. Questions and Answers

4.1 How do I use two different charsets, e.g. the german and the cyrillic?

Do have each language each own charset, and this with a single keyboard, you use the "international keyboard"-tool. This enables you to change the layout of the keyboard. (If installed you reach the handbook here.)

Furthermore you create in DokVok (Settings->languages) the two languages and set the according charsets.

After that you should be able to start working...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/index-5.html 644 764 144 2255 7070117337 13070 The DokVok Handbook: Bugs and Fellows The K Desktop Environment

Next Previous Table of Contents

5. Bugs and Fellows

As this is just a development version you can expect bugs (although I already use it for work). But I am very gratefule for comments of any kind, even conceptional hints. For immediate contact click here...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/index-6.html 644 764 144 2452 7070117337 13070 The DokVok Handbook: Other programs and all around learning The K Desktop Environment

Next Previous Table of Contents

6. Other programs and all around learning

The choice is yours...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/index.html 644 764 144 4326 7070117337 12727 The DokVok Handbook The K Desktop Environment

Next Previous Table of Contents

The DokVok Handbook

Friedrich W. H. Kossebau Friedrich.W.H@Kossebau.de
Version 0.1 , Sun Mar 26 23:59:00 CEST 2000


This Handbook describes DokVok Version 0.1.3

1. Introduction

2. Installation

3. Usage

4. Questions and Answers

5. Bugs and Fellows

6. Other programs and all around learning

7. Copyright

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/en/logotp3.png 644 764 144 3102 7070117337 13016 ‰PNG  IHDRfm*tRNSƵ­cùDbKGDÿÿÿ ½§“ÿIDATxÚÝ™­–Û0…ó* û Ký…¡  C C †n¯ô9w'²ãü¬·iVÇÇG–dYs5sg4žÔ›uïµZ­v»Ý©ÞîÕ4Ív»]J­RŒ©k¹|Âÿöšô¶ª0€m¾d¨˜l …‚È×¹¨4ºëƒÂõx­—ÕË÷Y¡eX®)?¡pAl±Ýó^0›¾‰xÃRè‹á;5jé…+°H^¯®Ík…NE¼°ô ½¤f6^­MSÅ%i §4îìl£…²g# t¤@ç×oo' œˆî XÛ†óh\\Ñë8ôˆ—fîŽdï5xtû½2­/ñZd§…Át‘È´zt­gÛ³?Ñ„ƒ±«ÎqBu˜°Q-ÌA!Ðá£1N†O ¤ï™>o…#8Tîß^uA7±)¤âp8Yx°5¨ DŠT²=ª>N™ ê`ólûºkID6xlê ¸ÉUöhR÷Ñ'iSdòÕü)±ÐþĵnáB;Ð, `B1-h¥ DpJ Æ~'ÝSËZ–ÉE¾rßltS µÓE¿).GG ß±Û´Ž›aO¶ÊÈ:34Ň +ÃÃ7E6 ¬þ~t* ÉͶDºÐJ*>½A8l<½ 2zAÄ6YV× [:ªß³á¼âôTÌM¿#ŠaLE;¶Öúëðã(•–ýxÑËlGéèÑ!c+LÀ_ãGì@Jï ü¸þRÖ;½dLzTXtSoftwarexÚsÐPÖôÌMLOõMLÏLÎV0Ñ3Ò3R°´Ô70Õ70TH.Ê,.©tÈ­,.ÉLÖK-ÖK)-ÈÏ+ÑKÎÏôK€ôÝÄ^3zTXtSignaturexÚ32I³4I1´´0HµLK3277M62·L4400I²0³HˆËDÛ„%zTXtPagexÚ340ª02×6Ð6 }+ VóözTXtCommentxÚóMLIU(Ï,ÉPp÷ô $ ¡»ÅJXIEND®B`‚dokvok-0.1.3/dokvok/docs/de/ 777 764 144 0 7070117362 10715 5dokvok-0.1.3/dokvok/docs/de/Makefile.in 644 764 144 17506 7070117362 13007 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ EXTRA_DIST = index.html index-6.html index-5.html index-4.html index-3.html index-2.html index-1.html logotp3.png mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../../config.h CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/docs/de/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/docs/de distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data-local install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-local uninstall: uninstall-am all-am: Makefile all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am -rm -f libtool distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: tags distdir info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-local install-data-am install-data install-am install \ uninstall-local uninstall-am uninstall all-redirect all-am all \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean install-data-local: $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index.html $(kde_htmldir)/de/dokvok/index.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-6.html $(kde_htmldir)/de/dokvok/index-6.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-5.html $(kde_htmldir)/de/dokvok/index-5.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-4.html $(kde_htmldir)/de/dokvok/index-4.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-3.html $(kde_htmldir)/de/dokvok/index-3.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-2.html $(kde_htmldir)/de/dokvok/index-2.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-1.html $(kde_htmldir)/de/dokvok/index-1.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) logotp3.png $(kde_htmldir)/de/dokvok/logotp3.png uninstall-local: -rm -f $(kde_htmldir)/de/dokvok/index.html -rm -f $(kde_htmldir)/de/dokvok/index-6.html -rm -f $(kde_htmldir)/de/dokvok/index-5.html -rm -f $(kde_htmldir)/de/dokvok/index-4.html -rm -f $(kde_htmldir)/de/dokvok/index-3.html -rm -f $(kde_htmldir)/de/dokvok/index-2.html -rm -f $(kde_htmldir)/de/dokvok/index-1.html -rm -f $(kde_htmldir)/de/dokvok/logotp3.png ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/dokvok/docs/de/Makefile.am 644 764 144 3002 7066761424 12751 ####### kdevelop will overwrite this part!!! (begin)########## EXTRA_DIST = index.html index-6.html index-5.html index-4.html index-3.html index-2.html index-1.html logotp3.png install-data-local: $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index.html $(kde_htmldir)/de/dokvok/index.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-6.html $(kde_htmldir)/de/dokvok/index-6.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-5.html $(kde_htmldir)/de/dokvok/index-5.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-4.html $(kde_htmldir)/de/dokvok/index-4.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-3.html $(kde_htmldir)/de/dokvok/index-3.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-2.html $(kde_htmldir)/de/dokvok/index-2.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) index-1.html $(kde_htmldir)/de/dokvok/index-1.html $(mkinstalldirs) $(kde_htmldir)/de/dokvok/ $(INSTALL_DATA) logotp3.png $(kde_htmldir)/de/dokvok/logotp3.png uninstall-local: -rm -f $(kde_htmldir)/de/dokvok/index.html -rm -f $(kde_htmldir)/de/dokvok/index-6.html -rm -f $(kde_htmldir)/de/dokvok/index-5.html -rm -f $(kde_htmldir)/de/dokvok/index-4.html -rm -f $(kde_htmldir)/de/dokvok/index-3.html -rm -f $(kde_htmldir)/de/dokvok/index-2.html -rm -f $(kde_htmldir)/de/dokvok/index-1.html -rm -f $(kde_htmldir)/de/dokvok/logotp3.png ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/docs/de/index.html 644 764 144 4400 7070117141 12677 Das DokVok Handbuch The K Desktop Environment

Next Previous Table of Contents

Das DokVok Handbuch

Friedrich W. H. Kossebau Friedrich.W.H@Kossebau.de
Version 0.1.1 , Sonntag, 26. März 2000 23:55:00 CEST


Dieses Handbuch beschreibt DokVok Version 0.1.3

1. Einführung

2. Installation

3. Benutzung

4. Fragen und Antworten

5. Fehler und Konsorten

6. Andere Programme und Lernen überhaupt

7. Copyright

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/index-6.html 644 764 144 2457 7070117141 13054 Das DokVok Handbuch: Andere Programme und Lernen überhaupt The K Desktop Environment

Next Previous Table of Contents

6. Andere Programme und Lernen überhaupt

Die Wahl hast Du...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/index-5.html 644 764 144 2257 7070117141 13051 Das DokVok Handbuch: Fehler und Konsorten The K Desktop Environment

Next Previous Table of Contents

5. Fehler und Konsorten

Sind bestimmt vorhanden, da dies ja noch eine Entwicklungsversion ist. Aber trotzdem bin ich für entsprechende Hinweise dankbar. Auch konzeptioneller Art. Für Kontakt sofort hier klicken...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/index-4.html 644 764 144 3331 7070117141 13042 Das DokVok Handbuch: Fragen und Antworten The K Desktop Environment

Next Previous Table of Contents

4. Fragen und Antworten

4.1 Wie geht das mit den unterschiedlichen Schriften, z.B. Deutsch und Kyrillisch?

Um zwei verschiedene Schriften zu verwenden, und das mit einer Tastatur, greifst Du auf das "Internationale Tastatur"-Mittel (kikbd) zurück. Damit läßt sich die Tastaturbelegung entsprechend verändern. (Falls installiert, erreichst Du das Handbuch dazu hier.)

Weiterhin erstellst Du in DokVok unter Einstellungen Sprachen die beiden gewünschten Sprachen und gibst den Schriftsatz an, der verwendet werden soll.

Dann solltest Du loslegen können...

Hinweis: Informationen zu kyrillischen Schriften gibt es unter http://www.ccss.de/slovo/slove.htm.

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/index-3.html 644 764 144 2015 7070117141 13037 Das DokVok Handbuch: Benutzung The K Desktop Environment

Next Previous Table of Contents

3. Benutzung

3.1 DokVok ist...

hoffentlich selbsterklärend. Mehr später...

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/index-2.html 644 764 144 4115 7070117141 13041 Das DokVok Handbuch: Installation The K Desktop Environment

Next Previous Table of Contents

2. Installation

2.1 Wie bekomme ich DokVok?

Du Scherzkeks, Du hast es doch schon.

Für neue Versionen schaust Du auf die DokVok-Homepage.

2.2 Voraussetzungen

DokVok stützt sich auf die KDE- und QT-Bibliotheken. Bei mir sind KDE 1.1.2 und QT 1.44 installiert. Damit funktioniert es, beim mir wenigstens. Feedback ist also erwünscht ;-)

2.3 Kompilierung und Installation

Um DokVok auf Deinem Rechner zu kompilieren, gib folgendes im Verzeichnis der DokVok-Distribution ein:

% ./configure
% make
% make install

Um es dann zu installieren, bedarf es wie sonst auch der Rootrechte. Damit ergibt sich im gleichen Verzeichnis diese Eingabe:

% su
% make install

Da DokVok

autoconf
benutzt, sollten Dir keine Probleme beim Kompilieren entstehen. Falls dies doch der Fall ist, berichte diese bitte dem Autoren Friedrich W. H. Kossebau

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/index-1.html 644 764 144 5543 7070117141 13046 Das DokVok Handbuch: Einführung The K Desktop Environment

Next Previous Table of Contents

1. Einführung

DokVok ist ...

  • "... ein Scheiß-Vokabeltrainer." sagt die Maja, wahrscheinlich, weil ich den ganzen März nur programmierte und sie sich vernachlässigt fühlte.
  • "... ein Programm, das es schon tausendmal gibt." sagt der Frank, weil er mich ärgern will.

Ich dagegen finde, er ist für mich eine gute Gelegenheit, C++ zu lernen, und außerdem ein Programm, dem ich alles beibringen kann, was ich von einem Vokabeltrainer wünsche.

1.1 Entstehung

Als ich im Herbst 1999 beschloß, Russisch zu lernen, fand ich kein Programm für mein Lieblingsbetriebssystem, das mich dabei unterstützen konnte. Stets mangelte es an der Fähigkeit, gleichzeitig einen kyrillischen und einen deutschen Schriftsatz zu benutzen. Da ich sowieso C++ lernen wollte...

Diese Version ist ein purer Schnappschuß, noch kann DokVok nicht alles, was ich will. Also nicht wundern, wenn die Typen noch nicht angezeigt werden und keinen Nutzen bringen, die Abfrage nicht so richtig fertig wirkt...

1.2 Aufruf

Hiermit möchte ich eventuellen Nutzern die Gelegenheit bieten, ja, sie geradezu auffordern, Einfluß auf die weitere Entwicklung und Ausgestaltung von DokVok zu nehmen. Zögere nicht, schicke dem Autoren sofort Deine Ideen und Wünsche...

1.3 Fast fertige Eigenschaften

  • Vokabelverwaltung
  • Sprachverwaltung
  • Typverwaltung
  • Abfragekontrolle

1.4 Eigenschaften auf der TODO-Liste

  • Wortparser für intelligente Fehlererkennung, somit auch
  • Fehlerarten
  • Reportbox mit HTML-Fähigkeit (Link zu Info-Texten...)
  • Lernspielchen bzw.
  • Lernkonzepte

1.5 Änderungen

Herbst 1999: Beginn

Next Previous Table of Contents


dokvok-0.1.3/dokvok/docs/de/logotp3.png 644 764 144 3102 7070117141 12775 ‰PNG  IHDRfm*tRNSƵ­cùDbKGDÿÿÿ ½§“ÿIDATxÚÝ™­–Û0…ó* û Ký…¡  C C †n¯ô9w'²ãü¬·iVÇÇG–dYs5sg4žÔ›uïµZ­v»Ý©ÞîÕ4Ív»]J­RŒ©k¹|Âÿöšô¶ª0€m¾d¨˜l …‚È×¹¨4ºëƒÂõx­—ÕË÷Y¡eX®)?¡pAl±Ýó^0›¾‰xÃRè‹á;5jé…+°H^¯®Ík…NE¼°ô ½¤f6^­MSÅ%i §4îìl£…²g# t¤@ç×oo' œˆî XÛ†óh\\Ñë8ôˆ—fîŽdï5xtû½2­/ñZd§…Át‘È´zt­gÛ³?Ñ„ƒ±«ÎqBu˜°Q-ÌA!Ðá£1N†O ¤ï™>o…#8Tîß^uA7±)¤âp8Yx°5¨ DŠT²=ª>N™ ê`ólûºkID6xlê ¸ÉUöhR÷Ñ'iSdòÕü)±ÐþĵnáB;Ð, `B1-h¥ DpJ Æ~'ÝSËZ–ÉE¾rßltS µÓE¿).GG ß±Û´Ž›aO¶ÊÈ:34Ň +ÃÃ7E6 ¬þ~t* ÉͶDºÐJ*>½A8l<½ 2zAÄ6YV× [:ªß³á¼âôTÌM¿#ŠaLE;¶Öúëðã(•–ýxÑËlGéèÑ!c+LÀ_ãGì@Jï ü¸þRÖ;½dLzTXtSoftwarexÚsÐPÖôÌMLOõMLÏLÎV0Ñ3Ò3R°´Ô70Õ70TH.Ê,.©tÈ­,.ÉLÖK-ÖK)-ÈÏ+ÑKÎÏôK€ôÝÄ^3zTXtSignaturexÚ32I³4I1´´0HµLK3277M62·L4400I²0³HˆËDÛ„%zTXtPagexÚ340ª02×6Ð6 }+ VóözTXtCommentxÚóMLIU(Ï,ÉPp÷ô $ ¡»ÅJXIEND®B`‚dokvok-0.1.3/dokvok/kde/ 777 764 144 0 7070117365 10143 5dokvok-0.1.3/dokvok/kde/Makefile.in 644 764 144 23165 7070117364 12232 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ EXTRA_DIST = directory dokvok.kdelnk dokvok.xpm education_package.xpm large-dokvok.xpm large-education_package.xpm large-vok.xpm mini-dokvok.xpm mini-education_package.xpm mini-vok.xpm vok.xpm x-vok.kdelnk large-vokfolder.xpm mini-vokfolder.xpm vokfolder.xpm filedel.xpm filenewfrom.xpm filenewfromthis.xpm filerevert.xpm languages.xpm mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/kde/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/kde distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data-local install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-local uninstall: uninstall-am all-am: Makefile all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am -rm -f libtool distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: tags distdir info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-local install-data-am install-data install-am install \ uninstall-local uninstall-am uninstall all-redirect all-am all \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean install-data-local: $(mkinstalldirs) $(kde_appsdir)/Education/ $(INSTALL_DATA) directory $(kde_appsdir)/Education/.directory $(mkinstalldirs) $(kde_appsdir)/Education/ $(INSTALL_DATA) dokvok.kdelnk $(kde_appsdir)/Education/dokvok.kdelnk $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) dokvok.xpm $(kde_icondir)/dokvok.xpm $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) education_package.xpm $(kde_icondir)/education_package.xpm $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-dokvok.xpm $(kde_icondir)/large/dokvok.xpm $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-education_package.xpm $(kde_icondir)/large/education_package.xpm $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-vok.xpm $(kde_icondir)/large/vok.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-dokvok.xpm $(kde_minidir)/dokvok.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-education_package.xpm $(kde_minidir)/education_package.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-vok.xpm $(kde_minidir)/vok.xpm $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) vok.xpm $(kde_icondir)/vok.xpm $(mkinstalldirs) $(kde_mimedir)/application/ $(INSTALL_DATA) x-vok.kdelnk $(kde_mimedir)/application/x-vok.kdelnk $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-vokfolder.xpm $(kde_icondir)/large/vokfolder.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-vokfolder.xpm $(kde_minidir)/vokfolder.xpm $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) vokfolder.xpm $(kde_icondir)/vokfolder.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) filenewfrom.xpm $(kde_datadir)/dokvok/toolbar/filenewfrom.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) filenewfromthis.xpm $(kde_datadir)/dokvok/toolbar/filenewfromthis.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) filerevert.xpm $(kde_datadir)/dokvok/toolbar/filerevert.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) languages.xpm $(kde_datadir)/dokvok/toolbar/languages.xpm uninstall-local: -rm -f $(kde_appsdir)/Education/.directory -rm -f $(kde_appsdir)/Education/dokvok.kdelnk -rm -f $(kde_icondir)/dokvok.xpm -rm -f $(kde_icondir)/education_package.xpm -rm -f $(kde_icondir)/large/dokvok.xpm -rm -f $(kde_icondir)/large/education_package.xpm -rm -f $(kde_icondir)/large/vok.xpm -rm -f $(kde_minidir)/dokvok.xpm -rm -f $(kde_minidir)/education_package.xpm -rm -f $(kde_minidir)/vok.xpm -rm -f $(kde_icondir)/vok.xpm -rm -f $(kde_mimedir)/application/x-vok.kdelnk -rm -f $(kde_icondir)/large/vokfolder.xpm -rm -f $(kde_minidir)/vokfolder.xpm -rm -f $(kde_icondir)/vokfolder.xpm -rm -f $(kde_datadir)/dokvok/toolbar/filenewfrom.xpm -rm -f $(kde_datadir)/dokvok/toolbar/filenewfromthis.xpm -rm -f $(kde_datadir)/dokvok/toolbar/filerevert.xpm -rm -f $(kde_datadir)/dokvok/toolbar/languages.xpm ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/dokvok/kde/Makefile.am 644 764 144 6477 7066761424 12217 ####### kdevelop will overwrite this part!!! (begin)########## EXTRA_DIST = directory dokvok.kdelnk dokvok.xpm education_package.xpm large-dokvok.xpm large-education_package.xpm large-vok.xpm mini-dokvok.xpm mini-education_package.xpm mini-vok.xpm vok.xpm x-vok.kdelnk large-vokfolder.xpm mini-vokfolder.xpm vokfolder.xpm filedel.xpm filenewfrom.xpm filenewfromthis.xpm filerevert.xpm languages.xpm install-data-local: $(mkinstalldirs) $(kde_appsdir)/Education/ $(INSTALL_DATA) directory $(kde_appsdir)/Education/.directory $(mkinstalldirs) $(kde_appsdir)/Education/ $(INSTALL_DATA) dokvok.kdelnk $(kde_appsdir)/Education/dokvok.kdelnk $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) dokvok.xpm $(kde_icondir)/dokvok.xpm $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) education_package.xpm $(kde_icondir)/education_package.xpm $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-dokvok.xpm $(kde_icondir)/large/dokvok.xpm $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-education_package.xpm $(kde_icondir)/large/education_package.xpm $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-vok.xpm $(kde_icondir)/large/vok.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-dokvok.xpm $(kde_minidir)/dokvok.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-education_package.xpm $(kde_minidir)/education_package.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-vok.xpm $(kde_minidir)/vok.xpm $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) vok.xpm $(kde_icondir)/vok.xpm $(mkinstalldirs) $(kde_mimedir)/application/ $(INSTALL_DATA) x-vok.kdelnk $(kde_mimedir)/application/x-vok.kdelnk $(mkinstalldirs) $(kde_icondir)/large/ $(INSTALL_DATA) large-vokfolder.xpm $(kde_icondir)/large/vokfolder.xpm $(mkinstalldirs) $(kde_minidir)/ $(INSTALL_DATA) mini-vokfolder.xpm $(kde_minidir)/vokfolder.xpm $(mkinstalldirs) $(kde_icondir)/ $(INSTALL_DATA) vokfolder.xpm $(kde_icondir)/vokfolder.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) filenewfrom.xpm $(kde_datadir)/dokvok/toolbar/filenewfrom.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) filenewfromthis.xpm $(kde_datadir)/dokvok/toolbar/filenewfromthis.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) filerevert.xpm $(kde_datadir)/dokvok/toolbar/filerevert.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/toolbar/ $(INSTALL_DATA) languages.xpm $(kde_datadir)/dokvok/toolbar/languages.xpm uninstall-local: -rm -f $(kde_appsdir)/Education/.directory -rm -f $(kde_appsdir)/Education/dokvok.kdelnk -rm -f $(kde_icondir)/dokvok.xpm -rm -f $(kde_icondir)/education_package.xpm -rm -f $(kde_icondir)/large/dokvok.xpm -rm -f $(kde_icondir)/large/education_package.xpm -rm -f $(kde_icondir)/large/vok.xpm -rm -f $(kde_minidir)/dokvok.xpm -rm -f $(kde_minidir)/education_package.xpm -rm -f $(kde_minidir)/vok.xpm -rm -f $(kde_icondir)/vok.xpm -rm -f $(kde_mimedir)/application/x-vok.kdelnk -rm -f $(kde_icondir)/large/vokfolder.xpm -rm -f $(kde_minidir)/vokfolder.xpm -rm -f $(kde_icondir)/vokfolder.xpm -rm -f $(kde_datadir)/dokvok/toolbar/filenewfrom.xpm -rm -f $(kde_datadir)/dokvok/toolbar/filenewfromthis.xpm -rm -f $(kde_datadir)/dokvok/toolbar/filerevert.xpm -rm -f $(kde_datadir)/dokvok/toolbar/languages.xpm ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/kde/directory 644 764 144 223 7053513314 12036 # KDE Config File [KDE Desktop Entry] Name=Education Name[de]=Bildung Name[fr]=Èducation Icon=education_package.xpm MiniIcon=education_package.xpm dokvok-0.1.3/dokvok/kde/dokvok.kdelnk 644 764 144 552 7051163410 12577 # KDE Config File [KDE Desktop Entry] Type=Application Exec=dokvok -caption "%c" %i %m Icon=dokvok.xpm MiniIcon=dokvok.xpm LargeIcon=dokvok.xpm MimeType=application/x-vok; DocPath=dokvok/index.html BinaryPattern=dokvok;DokVok; Comment=Have you learned your vocabels for today? Comment[de]=Heute schon Vokabeln gelernt? Terminal=0 Name=DokVok Name[de]=DokVok dokvok-0.1.3/dokvok/kde/dokvok.xpm 666 764 144 2541 7042573372 12173 /* XPM */ static char*dokvok[]={ "32 32 12 1", "d c #808080", "c c #a0a0a0", "a c #c3c3c3", "j c #c0c000", "f c #c05800", "# c #000000", "h c #ffff00", "i c #303030", "g c #ffffc0", ". c None", "b c #dcdcdc", "e c #ffffff", "........#..#.#..#####...........", ".........#.#.#.#abbcc#.#..#.....", ".........#.#.#.#bbbbd#.#.#..#...", ".........#######be#bc#.#.#.#....", ".......###fffff#bebad#####.#....", ".......#fffffff#abad#fffff###...", ".......#ffgg###h####ffffffff#...", ".......#ggg#eee#hhhhh###hfff#...", ".......#gg#eeeee#hhh#eee#hhh#...", ".......#gg#ei#ee#ch#eeeee#hh#...", "......#jgg#eaiee#ch#e##ee#hh#...", "......#hggh#eee#hch#ea#ee#hi....", "......#gghhd###hhchh#eee#hh#....", "......#gghhdhhchhchh####hhj#....", "......#ghhdhhchhchhchhchhhj#....", "......#ghhdhhchhchhchhchhj#.....", ".....#jgh###hchhchhchhchhj#.....", ".....#hh#hdhhchhchhch##hhj#.....", ".....#gh#hd##hhhchhchhc#jj#.....", ".....#ghhhd#e#########c#j##.....", ".....#ghhdh#eeeeeee#hchjj#......", ".....#hhhdhh#eeee##hhchjj#......", ".....#hhhdhhc####hchhcjjj####...", ".....#hhhdhhchhchhchhcjj#####...", ".....#hhhdhhchhchhchhcjj####....", ".....####dhhchhchhchhcjj###.....", ".........#################......", "..........###############.......", ".......##################.......", "......#ee#e##....#e#eee#........", "......#eeee#.....#eeeee#........", ".......####.......######........"}; dokvok-0.1.3/dokvok/kde/education_package.xpm 644 764 144 11721 7052036162 14330 /* XPM */ static char * education_package_xpm[] = { "32 32 177 2", " c None", ". c #020204", "+ c #FEF6B4", "@ c #FEFEFA", "# c #FAF6D4", "$ c #FAFAE4", "% c #F2EAA4", "& c #F6EEB8", "* c #F6F2CC", "= c #FEFAEC", "- c #EEE294", "; c #D6C664", "> c #F2E69C", ", c #E6DA84", "' c #BEAE5C", ") c #B6B604", "! c #EEDE84", "~ c #DECE75", "{ c #D8CA74", "] c #A2A204", "^ c #AAAA04", "/ c #AEAE04", "( c #B2B204", "_ c #D6C674", ": c #9A8A44", "< c #827E0C", "[ c #8A8604", "} c #8E8E04", "| c #949204", "1 c #9E9E04", "2 c #CABE6C", "3 c #C8BA6C", "4 c #C2B664", "5 c #BEB264", "6 c #EEE284", "7 c #CEBA54", "8 c #726234", "9 c #625E0C", "0 c #6A660C", "a c #726E0C", "b c #76720A", "c c #7E7A0A", "d c #828204", "e c #868604", "f c #B6AA5C", "g c #AEA65C", "h c #AEA25C", "i c #AAA254", "j c #FEEE95", "k c #5E5E5C", "l c #4A4611", "m c #504E0C", "n c #56520C", "o c #5E5A0C", "p c #72720C", "q c #7A7A0C", "r c #A69E54", "s c #A49A54", "t c #9E964C", "u c #9C924C", "v c #968E4C", "w c #928A44", "x c #82763C", "y c #6E5E24", "z c #6E6A5C", "A c #423E0C", "B c #5A5604", "C c #8E8644", "D c #8A8244", "E c #7E6E34", "F c #7A7A5C", "G c #3E3A0C", "H c #46420C", "I c #827A3C", "J c #7E763C", "K c #7A7634", "L c #665E2C", "M c #FEFADF", "N c #B2AE94", "O c #928E6C", "P c #FEF2AC", "Q c #F6EEA4", "R c #36320C", "S c #726E34", "T c #6E6A2C", "U c #000000", "V c #5F5735", "W c #6A5614", "X c #E2DABC", "Y c #FEF6C4", "Z c #322A0C", "` c #5E5A24", " . c #151312", ".. c #EADAFB", "+. c #E4D1F8", "@. c #DEC7F5", "#. c #D7BEF1", "$. c #928E04", "%. c #AE9A3C", "&. c #FEEEA4", "*. c #E6D4F8", "=. c #E2CDF6", "-. c #DCC5F3", ";. c #D6BCF0", ">. c #D0B2ED", ",. c #FEFEE6", "'. c #BEB22C", "). c #E0CBF5", "!. c #DDC7F4", "~. c #D9C0F2", "{. c #D3B7EF", "]. c #CDAFEC", "^. c #868204", "/. c #FEFAD1", "(. c #BAB29C", "_. c #BEBE04", ":. c #BAB604", "<. c #9A9604", "[. c #DAC1F2", "}. c #D4B8EF", "|. c #FEFAC4", "1. c #DAD6CC", "2. c #D1B6E8", "3. c #D2B5EE", "4. c #CFB1ED", "5. c #CBABEB", "6. c #FEFAB7", "7. c #A6A604", "8. c #CCACEB", "9. c #C9A8EA", "0. c #C6A3E8", "a. c #7E7E0C", "b. c #FEFAAC", "c. c #9C9A04", "d. c #C5A2E8", "e. c #C39FE7", "f. c #C19AE6", "g. c #7A760A", "h. c #6E6E0C", "i. c #BF98E5", "j. c #BD95E4", "k. c #B28EC6", "l. c #6D6A0C", "m. c #FEF6A4", "n. c #FEF69C", "o. c #A29E04", "p. c #969604", "q. c #B88EE1", "r. c #B78CE1", "s. c #66620C", "t. c #8C8A04", "u. c #A77DCF", "v. c #FEF690", "w. c #1E1D05", "x. c #6F6B14", "y. c #56560C", "z. c #FEF684", "A. c #E3CFF7", "B. c #FEF26C", "C. c #DDC5F4", "D. c #E2CEF7", "E. c #CBAAEB", "F. c #BA92E2", "G. c #76760C", "H. c #D1B4EE", "I. c #D5BAF0", "J. c #C4A0E8", "K. c #B78DE1", "L. c #FEF679", "M. c #C09BE4", "N. c #C29DE7", "O. c #BA91E2", "P. c #B487DF", "Q. c #FEF260", "R. c #B88DE1", "S. c #B68BE0", "T. c #B487DE", " . . ", " . . + . . @ . . ", " . . + + + + . . # $ @ @ . . ", " . . % % % % % % % . . & & * * # = @ . . ", " . . - - - - - - - - ; ; @ @ > % & & * * # $ . . ", " . . , , , , , , , , ' ' ) ) ! ! @ @ > > % & & * * # . . ", " . ~ ~ { ~ ~ ~ ~ ~ ' ' ] ^ / ( ~ { _ _ @ @ - - > % & & * * . ", " . ; ; ; ; ; : : < [ } | 1 ] 2 2 3 4 4 5 @ @ ! 6 > > % . ", " . 7 7 8 8 9 0 a b c d e } f f f g g g h i @ @ 6 6 . ", " . . j k l l l m n o 9 0 a p q r s s t u u v v w x y z @ . . ", " . j j j l l A l m n B 9 0 w w C C C D D E E = = @ . ", " . F j j j l l G H l m n I I J K K L L M M = H . ", " . N O F P P Q G G R G H S T U U U U U U V H W . ", " . @ X N O F Y Y Y Z Z Z ` m .....+.@.#.U U $.. ", " . @ = @ X N O F $ $ $ @ %.&.U *.*.=.-.;.>.U } . ", " . @ ,.= ,.M X N O F O O '.%.U *.).!.~.{.].U ^.. ", " . ,.= ,.M ,.M /.X N O (._.:.<.U [.#.}.>.U e d . ", " . ,.M ,././././.|.|.X 1.) ( / U 2.3.4.5.U < q . ", " . M M /././.|.|.Y + 6.+ ( / 7.U 3.8.9.0.U a.b . ", " . ,./././.|.Y 6.6.+ 6.b./ 7.] c.U d.e.f.U g.h.. ", " . /./.|.|.|.6.6.6.b.+ + 7.] c.| U i.j.k.U p l.. ", " . /.|.6.+ 6.+ + + m.n.n.o.c.p.$.U q.r.U a l.s.. . ", " . |.|.|.6.+ b.b.b.b.b.m.1 p.$.t.U r.u.U l.s.9 . . . . ", " . 6.+ 6.6.m.m.n.v.v.v.v.p.| t.d a.U w.x.0 9 B . . . . . ", " . + b.+ m.b.n.n.n.v.v.v.| t.^.< g.p h.0 9 o y.. . . . ", " . + b.b.n.n.v.v.v.v.z.z.t.e a.c b U U U o n m . . ", " . . n.n.n.v.v.z.z.z.z.e < c p U A.[.5.U . . ", " . . v.v.z.z.B.z.B.< q b U C.D.~.E.F.U ", " . . B.z.B.B.B.q G.a U H.I.4.J.K.U ", " . . B.B.L.b a l.U M.0.N.O.P.U ", " . . Q.p . . U R.S.T.U ", " . . U U U "}; dokvok-0.1.3/dokvok/kde/large-dokvok.xpm 644 764 144 5675 7050121310 13246 /* XPM */ static char*large[]={ "48 48 31 1", "h c #808080", "f c #bebebe", "l c #909090", "g c #a0a0a0", "p c #c3c3c3", "C c #ffff30", "x c #c0c000", "k c #eeeeee", "b c #5f5f5f", "y c #808000", "d c #d0d0d0", "s c #a2a2a2", "o c #c05800", "# c #000000", "j c #e5e5e5", "w c #181818", "B c #e0e000", "u c #ffff00", "v c #303030", "a c #6e6e6e", "z c #ffff60", "t c #ffffc0", "i c #404040", "m c #484848", "q c #dfdfdf", "c c #505050", ". c None", "r c #b9b9b9", "A c #f0f000", "e c #dcdcdc", "n c #ffffff", "............#....#..#.....####..................", ".............#...#..#....#aabc#.....#...#.......", "..............#..#..#...#deefgg#...#...#...#....", "..............#..#..#..#eeeeeehi#..#..#...#.....", "..............#..#..#..#ejk##elm#..#..#...#.....", "..............##########ekn##egc#..#..#..#......", "...........####oooooooo#eknedphi#######..#......", "...........#oooooooooooo#qkdrsi#oooooo##.#......", "...........#ooooooooooooo#epsh#ooooooooo###.....", "...........#ooottt####uuoo####oooooooooooo#.....", "...........#ttttt#nnnn#uuuuuuuuuuuoooooooo#.....", "..........#ttttt#nnnnnn#uuuuuuuu####uooooo#.....", "..........#tttt#nnnnnnnn#uuuuuu#nnnn#uuuoo#.....", "..........#tttt#nng#gnnn#uguuu#nnnnnn#uuuu#.....", "..........#tttt#nnvw#nnn#uguu#nnnnnnnn#uuu#.....", ".........#xtttt#nng#gnnn#uguu#nng#gnnn#uuy#.....", ".........#tttttu#nnnnnnn#guuu#nn###nnn#ux#......", ".........#tttttuu#nnnnn#uguuu#nng#gnnn#uxv......", ".........#tttzuuuh#####uuguuu##nnnnnn#uux#......", ".........#tttzuuuhuuuguuuguuuu##nnnn#uuxy#......", ".........#tttzuuhuuuuguuuguuugu#####uuux#.......", ".........#ttuuuuhuuuguuuuguuuguuuuguuuux#.......", ".........#ttuuuuhuuuguuuguuuuguuuuguuAxx#.......", ".........#ttuuuhuuuuguuuguuuguuuuguuuBxy#.......", "........#xttuu####uuguuuguuuguuuuguuuxx#........", "........#ttzu#uhuuuuguuuguuuguuuuguuuxx#........", "........#ttu#uuhuuuuguuuguuuguuu###uuxx#........", "........#ttu#uuh###guuuuguuuguuuugu#xxx#........", "........#ttu#uuh#nn##uuucuuuguuu#gu#xxy#........", "........#ttuuuuh#nnnn###########ugu#xx#.........", "........#tzuuuhuu#nnnnnnnnnnnn#uguBxxx#.........", "........#tCuuuhuuu#nnnnnnnnnn#uuguBxxx#.........", "........#tuuuuhuuu##nnnnnnn##uuuguBxxy#.........", "........#tuuuuhuuugu#######guuuuguxxx######.....", "........#tuuuuhuuuguuuuguuuguuuuguxxx######.....", "........#tuuuuhuuuguuuuguuuguuuuguxxy######.....", "........#tuuuuhuuuguuuuguuuguuuugxxx######......", "........#uuuuuhuuuguuuuguuuguuuugxxx####........", "........####uuhuuuguuuuguuuguuuugxxx####........", "............###########################.........", "...............#h#############h######...........", "...............#h#############h######...........", "...........####h##############h######...........", "..........#nnn#nn#.........#n#nnnni#............", ".........#nnnn#nn#........#nn#nnnnn#............", ".........#nnnnnnn#........#nnnnnnnn#............", "..........#nnnnn#.........#nnnnnnni.............", "...........#####...........#######.............."}; dokvok-0.1.3/dokvok/kde/large-education_package.xpm 644 764 144 17607 7052036131 15425 /* XPM */ static char * large_education_package_xpm[] = { "48 48 200 2", " c None", ". c #020204", "+ c #FEF6B4", "@ c #FEFEFB", "# c #FDFAE0", "$ c #FEFAF1", "% c #F2EAA4", "& c #F9EEA3", "* c #F6EEB3", "= c #FAF6DC", "- c #F8F2C8", "; c #EEE294", "> c #F2E697", ", c #EEE285", "' c #D6C666", ") c #B6B604", "! c #EADE7C", "~ c #E2D67C", "{ c #E6DA83", "] c #B4B204", "^ c #BCBB04", "/ c #EEDE84", "( c #DECE74", "_ c #E1D27A", ": c #D9CD74", "< c #BCAE5C", "[ c #A29E04", "} c #ACAC04", "| c #928E04", "1 c #949204", "2 c #969604", "3 c #9D9B04", "4 c #A4A204", "5 c #A6A604", "6 c #CEBA54", "7 c #9A8C49", "8 c #7D7B04", "9 c #827E04", "0 c #858204", "a c #868604", "b c #8D8B04", "c c #CDC26C", "d c #CABE6C", "e c #C6B244", "f c #83753C", "g c #866E14", "h c #666204", "i c #726E04", "j c #757204", "k c #767604", "l c #8A8604", "m c #C5BA64", "n c #C2B664", "o c #BDB264", "p c #B4AA5C", "q c #726234", "r c #565208", "s c #5D5A06", "t c #625E04", "u c #6A6604", "v c #6D6A04", "w c #6E6E04", "x c #7A7604", "y c #AEA65C", "z c #ACA254", "A c #AA9E54", "B c #A59C54", "C c #46420C", "D c #433E0C", "E c #4A460D", "F c #4F4A06", "G c #564E24", "H c #5A5606", "I c #666604", "J c #9E964C", "K c #9C924C", "L c #968E49", "M c #7E763C", "N c #FEEE94", "O c #564E04", "P c #5E5E0C", "Q c #938A44", "R c #8E8644", "S c #867A44", "T c #8C8244", "U c #877E3C", "V c #796E36", "W c #7A7A5C", "X c #FEF2B2", "Y c #3C360C", "Z c #524E09", "` c #000000", " . c #665E2C", ".. c #3E3A09", "+. c #B2AE94", "@. c #928E6C", "#. c #FDF6CB", "$. c #DFC9F5", "%. c #E3CEF7", "&. c #E5D2F8", "*. c #E6D4F9", "=. c #6A5614", "-. c #E2DABC", ";. c #FEFACC", ">. c #38320C", ",. c #423A0C", "'. c #E9D7FA", "). c #EADAFB", "!. c #E1CCF6", "~. c #DDC5F4", "{. c #D9BFF2", "]. c #D4B8F0", "^. c #322A0C", "/. c #362E0C", "(. c #6B632C", "_. c #ECDDFC", ":. c #E2CDF7", "<. c #DEC6F5", "[. c #D9C0F2", "}. c #D5B9F0", "|. c #D0B2EE", "1. c #CCABEC", "2. c #615A2A", "3. c #CBABEB", "4. c #FEFEE4", "5. c #BAB29C", "6. c #AE9A3C", "7. c #DBC3F3", "8. c #D7BDF1", "9. c #D3B7EF", "0. c #CFB0ED", "a. c #CBAAEB", "b. c #9A9274", "c. c #9A8634", "d. c #DCC5F4", "e. c #D5BAF0", "f. c #D1B4EE", "g. c #CDAEEC", "h. c #C2BA9C", "i. c #CEC6B4", "j. c #BAB604", "k. c #9A9604", "l. c #D6BBF1", "m. c #D3B6EF", "n. c #CFB1ED", "o. c #FEFAB4", "p. c #DAD6CC", "q. c #CDADEC", "r. c #C9A7EA", "s. c #FAEACC", "t. c #CAA8EB", "u. c #C6A3E9", "v. c #FEF6A0", "w. c #C9A8EA", "x. c #C8A5EA", "y. c #C5A2E8", "z. c #C39EE7", "A. c #C7A4E9", "B. c #C5A1E8", "C. c #C49FE8", "D. c #C29CE7", "E. c #BF98E5", "F. c #C39DE7", "G. c #C19BE6", "H. c #BF99E5", "I. c #BE96E5", "J. c #BB93E3", "K. c #FEF68E", "L. c #BD94E4", "M. c #BB92E3", "N. c #BA90E3", "O. c #B98FE2", "P. c #B88EE2", "Q. c #B78CE1", "R. c #B68AE1", "S. c #FEF284", "T. c #B589E0", "U. c #B588E0", "V. c #B488E0", "W. c #B487E0", "X. c #B487DF", "Y. c #FEF274", "Z. c #CEAEEC", "`. c #C29DE6", " + c #E3CFF7", ".+ c #E0C9F6", "++ c #CEAEED", "@+ c #C29EE6", "#+ c #FEF25F", "$+ c #E8D6FA", "%+ c #DAC0F3", "&+ c #B88DE1", "*+ c #C39FE7", "=+ c #B88EE1", "-+ c #D1B3EE", ";+ c #C099E6", ">+ c #B68BE0", ",+ c #C29DE7", "'+ c #BA91E3", ")+ c #B488DF", " ", " ", " . . ", " . . + . . @ . . ", " . . + + + + . . @ @ @ @ . . ", " . . + + + + + + + . . # $ @ @ @ @ @ . . ", " . . % & * & & & * & % % . . * = - = # # $ $ @ @ . . ", " . . ; ; > , , ; ; , ; , ' ' ) ! @ @ * - * - = = = # # $ . . ", " . . ~ { { ~ { { { { { { ' ' ] ) ^ / , , @ @ % % * - - - = = = # . . ", " . . ( ( _ ( ( _ : : : : < < [ [ } } } , ! , , , @ @ % % % * * * - - - = . . ", " . . ' ' ' ' ' ' ' ' ' ' < < | 1 2 3 3 4 5 ! { ~ _ ~ _ : @ @ , > > % % * * * * - . . ", " . 6 6 6 6 6 6 6 6 7 7 8 9 0 a b b 1 2 3 : : : : c c c c d @ @ , , > > > % * % . ", " . e e e e e f g h i i j k 8 9 a l b 1 c c c d d m n n o o p @ @ , , , , > . ", " . < e q q r s t h u v w j j x 8 9 0 m n o < < < p p y z y A B @ @ , , . ", " . . . . . C D E F G r H s t h I v j j x 8 y p p y z z A B B J J K K L L M . . . . . ", " . . N N N E E D C E F O r H P P h v v i z A B B J J K L L Q Q Q R S f @ @ @ . . ", " . . N & & E E D D E F F r r H P P h K K L L Q Q Q R T T U V V @ @ @ . . ", " . W X X X - E E Y D C E F Z Z H s Q ` ` ` ` ` ` ` M . .@ @ @ @ ... ", " . +.@.W #.#.#.# ..D Y ..D C E F Z U ` $.%.&.*.&.%.` ` ` ` @ ..Y =.. ", " . @ -.+.@.W ;.# $ $ ....>...,.D C V V ` &.'.).'.&.!.~.{.].` ` ` 0 . ", " . @ @ @ -.+.@.W $ @ @ @ ^./.>.Y ..(. .` *.)._.).*.:.<.[.}.|.1.` 0 . ", " . @ @ @ $ $ -.+.@.W @ @ @ @ ^.^./.2.Z G ` '.).'.&.!.~.{.].|.3.` 0 . ", " . @ @ @ @ 4.$ # -.5.@.W @ @ @ @ 5.6.& N ` &.*.&.%.$.7.8.9.0.a.` 8 . ", " . 4.$ 4.4.# 4.4.# # -.+.@.W @.b.5.^ 6.c.` !.:.!.$.d.[.e.f.g.` 9 8 . ", " . 4.@ # 4.# # ;.;.# ;.# -.h.b.5.i.^ ^ j.k.` <.~.7.[.l.m.n.3.` 8 k . ", " . 4.# 4.# 4.4.4.# ;.;.;.o.;.-.i.p.^ ) ] } ` [.{.8.e.m.|.q.r.` x j . ", " . 4.# 4.;.;.;.;.;.;.;.#.+ o.+ o.s.j.] } } ` }.].9.f.n.q.t.` k j w . ", " . # # ;.# ;.;.;.o.;.+ o.;.+ o.+ o.] } } 5 4 ` |.0.g.3.r.u.` j i v . ", " . 4.;.;.;.;.;.;.#.;.o.o.o.+ o.v.o.] } 5 [ [ ` 3.a.w.x.y.z.` i v h . ", " . ;.;.;.;.;.;.o.o.o.+ + + v.+ v.v.} 5 4 3 2 ` A.u.B.C.D.E.` v u h . ", " . ;.;.;.;.o.o.;.+ o.o.o.o.v.v.v.v.} 4 3 3 1 ` F.D.G.H.I.J.` u h s . ", " . ;.;.o.#.;.+ + o.+ + + v.+ v.v.K.4 3 3 2 1 b ` I.L.M.N.` u h t s . ", " . ;.;.o.+ o.o.+ o.v.v.v.v.v.v.K.K.5 3 2 1 b b ` O.P.Q.R.` u t s r . . . ", " . o.+ o.o.+ + + + v.v.v.K.v.v.S.S.3 3 1 b a 0 ` T.U.V.W.` t t H r . . . . . ", " . o.+ + o.o.o.v.o.v.v.v.K.S.v.K.S.2 1 b b 0 0 ` ` ` X.X.` s H r F . . . . . . ", " . + o.o.v.v.v.v.K.v.v.K.K.K.K.K.K.1 | b a 0 8 k j v ` ` ` s H O F . . . . . ", " . + + + v.v.v.v.K.K.K.v.K.S.S.S.Y.b b a 0 8 8 j w v h t H r Z F C . . . ", " . . v.v.v.v.v.S.K.v.K.S.S.K.Y.K.K.b a 0 8 k j i ` ` ` ` H r Z E . . ", " . . v.K.v.K.S.S.K.K.Y.K.Y.Y.Y.b 0 9 8 j i ` Z.e.n.`.` F . . ", " . . K.S.K.K.S.S.Y.Y.Y.Y.Y.0 9 8 k j ` <. +.+8.++@+` ", " . . S.K.Y.K.Y.Y.Y.#+Y.9 8 k j ` Z. +$+ +%+n.B.&+` ", " . . K.Y.Y.Y.#+Y.#+8 k j v ` e..+ +.+8.++*+=+` ", " . . Y.Y.#+#+#+8 j i v ` n.8.%+8.-+r.;+>+` ", " . . #+#+#+j i v . ` `.++n.++r.,+'+)+` ", " . . #+i . . ` @+B.*+;+'+)+` ", " . . ` &+=+>+)+` ", " ` ` ` ` ", " "}; dokvok-0.1.3/dokvok/kde/large-vok.xpm 644 764 144 20333 7051116541 12567 /* XPM */ static char*vok[]={ "48 48 223 2", "a8 c #dad68c", "ad c #928a6c", ".w c #fefec4", ".i c #ceca94", ".E c #f6f2cc", "bt c #86822c", "#K c #9e9e6c", "aO c #665e44", "bx c #faf684", ".h c #e2de94", "bn c #f2f294", "a5 c #b6b26c", "#L c #aaa674", ".L c #fefe8c", "#. c #d2ca5c", "aj c #78664c", ".a c #e6daa4", "bd c #fafa9c", "b. c #beba74", "#h c #a6a284", "#g c #766e54", "#2 c #e5e2ac", ".# c #020204", "aH c #baae7c", "aU c #5e5a1c", ".c c #faeea4", "#o c #0202fc", "bm c #dac66c", "#b c #aeaa8c", "#m c #faf6ac", "aG c #ded698", ".G c #84765c", "#W c #8a8a5c", "#6 c #544a34", "#c c #b6b294", ".A c #fefeb4", "a. c #f6f2bc", ".U c #8a7e64", ".j c #cdbe8c", "#O c #959264", "bk c #bab64c", "aL c #5a523c", "#H c #d2d28c", ".r c #fcfac4", "a3 c #62523c", ".Y c #cec694", "bA c #827e2c", "#J c #867e2c", "#P c #9f9a6c", "ba c #bab25c", ".5 c #6a5a44", "#D c #92922c", "#q c #6e5a44", "by c #fefa8c", "bo c #f2ee94", "#4 c #bcb690", "#N c #c2ba64", ".g c #fefedc", "#Z c #b6b674", "aA c #7a624c", "be c #f8f69c", "a2 c #746a54", ".7 c #b0a480", ".N c #aeae34", "al c #baaa7c", ".V c #7e6a54", "av c #8e8a4c", "aM c #483e2c", "b# c #ceca74", ".R c #fefea4", ".P c #e8e6b4", "#s c #f5f2ac", "ar c #c6be7c", "#7 c #86865c", "bb c #bab63c", "ap c #8a865c", "#G c #c6c684", "ae c #a09a78", "ac c #fafab4", ".0 c #e6de74", ".J c #fefab4", "aV c #eade74", "aD c #c6ba8c", ".d c #faeebc", "aw c #8c8640", ".2 c #b6b69c", "#S c #938e64", "a1 c #eeeea0", ".z c #f6f6c4", "a7 c #9a8e64", "ai c #5e4e3c", ".6 c #806e50", "bC c #7e7a2c", "br c #f2ee84", "an c #ceca9c", "#x c #dad694", ".q c #fefecc", "a6 c #aeaa6c", "aa c #96927c", ".M c #deca9c", "bw c #faf68c", "ag c #e6de9c", "aZ c #a09e58", ".p c #765e4c", "#M c #b6b274", "bf c #f6f29c", "au c #eae6a4", ".o c #a69a84", ".v c #7a6654", "am c #eeeeac", "#u c #fafaa4", "a9 c #847a54", "bs c #dad26c", "as c #e6e2b4", "ah c #b6ae84", ".C c #fefaa4", "bi c #8a7a54", "bc c #dac674", "#w c #fe0204", "#f c #4f4234", ".H c #faf6b4", "af c #6e6e24", "#v c #e6da74", "#9 c #726e24", "aQ c #eada74", "bl c #766e24", "#E c #908a64", "a0 c #c2ba44", ".x c #fefebc", ".m c #faf2c4", "aX c #9e9e64", "bh c #e2de8c", ".k c #fafacc", "aP c #cec24c", "aF c #827e34", "#5 c #6a6644", "#C c #8e8a2c", "bz c #fefe84", "#V c #625a4c", "#a c #928e7c", "bg c #eae694", "#3 c #d2cea4", "bq c #b2a66c", ".S c #e2da9c", ".T c #969234", "aK c #766e4c", ".3 c #a8a27c", "bu c #fefa94", ".8 c #e6e2a4", ".W c #dad6ac", ".n c #fefee4", ".D c #028204", "aT c #7a7654", "bB c #f2e2a4", "aN c #42362c", "at c #eaeaac", "#t c #f7f6a4", "#T c #b2aa84", ".l c #bea27c", "ax c #65621c", "aJ c #a29e70", "ao c #867e5c", "#U c #b6b28c", ".K c #fefeac", ".e c #cfca7c", "#l c #f4f2b4", ".O c #eae6bc", "#X c #96925c", "bj c #e2de7c", ".I c #fafabc", ".y c #fefabc", "#0 c #7e7e24", "az c #9a8664", "aR c #625a3c", "ab c #a29a64", "#r c #d2ce94", "#d c #c6c29c", ".Z c #9e8e6c", "a4 c #a4a26c", "aS c #6a6244", "#n c #8e862c", "#i c #d6d69c", "#y c #e4e294", "bp c #f2ee8c", "#I c #c8c280", "#B c #cec654", ".f c #fefed4", ".1 c #9a9a2c", "aC c #a69674", "a# c #9e9e7c", "#z c #eaea9c", "#k c #f2f2c0", "#j c #e1dea4", "bv c #faf694", ".9 c #eeea9c", ".u c #a89e7c", "Qt c None", "#1 c #f6ea9c", "aW c #e6e6ac", "#A c #f2f2a4", "ay c #beb27c", "ak c #868654", "#p c #fefe04", "aB c #867254", "#F c #bcba84", ".t c #e4e2bc", ".B c #fdfaac", "## c #fefefc", ".X c #f2eeb4", "aq c #a89a70", "#8 c #8e8e5c", ".s c #caba84", "aE c #928e5c", "#Q c #aea64c", "#e c #c0bc90", ".4 c #8c8264", ".b c #cac28c", ".Q c #928264", ".F c #c2b694", "aY c #969664", "#Y c #a2a25c", "#R c #7e7a24", "aI c #caca94", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.a.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.b.c.d.e.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.d.f.f.g.d.e.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.f.g.f.g.g.f.f.h.i.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.j.g.g.g.g.g.g.f.f.f.k.h.e.l.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.m.n.n.g.o.p.k.n.f.f.f.f.q.r.r.h.i.l.#.#.#.#QtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.s.n.n.n.n.n.n.t.u.v.g.k.f.r.q.w.r.x.x.y.h.e.l.#.#.#.#QtQtQtQt", "QtQtQtQtQtQtQtQtQt.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.z.r.r.r.y.x.y.x.A.B.C.h.i.l.#.#QtQt", "QtQtQtQtQtQtQtQtQt.#.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.#.E.F.G.z.H.I.x.A.J.K.K.C.L.M.N.#QtQt", "QtQtQtQtQtQtQtQtQt.#.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.#.t.t.O.P.F.Q.J.A.A.A.K.K.R.S.T.#QtQt", "QtQtQtQtQtQtQtQtQt.#.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.#.U.V.u.W.P.X.H.Y.Z.K.K.C.C.0.1.#QtQt", "QtQtQtQtQtQtQtQtQt.#.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.#.2.3.4.5.6.7.8.J.J.A.9.R.C#..1.#QtQt", "QtQtQtQtQtQtQtQtQt.###.E##.E##.E##.E##.E##.E##.E##########.##a#b#c#d#e.u.6.H.A.B.K.K.R.1.#QtQtQt", "QtQtQtQtQtQtQtQtQt.#######################################.##f#f#g#h#i#j#k.H.A.J.B.R.R.1.#QtQtQt", "QtQtQtQtQtQtQtQtQt.###############.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.##l#m.B.C.C.a#n.#QtQtQt", "QtQtQtQtQtQtQtQtQt.###############.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##q#r#s#t#u#v.T.#QtQtQt", "QtQtQtQtQtQtQtQtQt.##w#w#w#w#w#w#w.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##x#y#z.9#A#B#C.#QtQtQt", "QtQtQtQtQtQtQtQtQt.##w#w#w#w#w#w#w.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.#.Y#r#i.h#z#D.#QtQtQtQt", "QtQtQtQtQtQtQtQtQt.##w#w#w#w#w#w#w.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##E#F#G#H#I#J.#QtQtQtQt", "QtQtQtQtQtQtQtQtQt.##w#w#w#w#w#w#w.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##K#L#M#I#N#C.#QtQtQtQt", "QtQtQtQtQtQtQtQtQt.#.#.#.#.#.#.#.#.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##O#P#L#F#Q#R.#QtQtQtQt", "QtQtQtQtQtQtQtQt.#.s#S#T#U#U#U#U#V.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##W#X#Y#Z#0.#QtQtQtQtQt", "QtQtQtQtQtQtQtQt.##1.X#2#3#4#a#5#6.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##7#8#K#P#9.#QtQtQtQtQt", "QtQtQtQtQtQtQt.#.a.ya.#2#d#e#ba#aa.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.##7#8#Kab#R.#QtQtQtQtQt", "QtQtQtQtQtQt.#.j.dac#l.v.5.Gadae#h.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.#.4#8ab#Daf.#QtQtQtQtQt", "QtQtQtQtQtQt.#ag.x.Jac#jah.4#Vaiaj.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.#ak#8#Paf.#QtQtQtQtQtQt", "QtQtQtQtQt.#al.A.J.A.H#lam#2an.3ao.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.#ak#8apaf.#QtQtQtQtQtQt", "QtQtQtQt.#al.M.K.A.Aaqaras.Xatau#j.##o#o#o#o#o#o#p#p#p#p#p#p#o#o#o#o#o#o.#akavawax.#.#.#QtQtQtQt", "QtQtQtQt.#.s.C.K.BayazaAaBaCaD#j#l.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#akaEaFax.#.#.#.#.#QtQt", "QtQtQt.#al.R.C.R.B.K.AaGaHazaAaBaCaD.8.SaI#UaJ#EaKaLaMaN#6aO#g#7.4ak#7ak.4#W#Xax.#.#.#.#.#.#QtQt", "QtQt.#.TaPaQ.R.R.R.R.B.K.K.A#xahazajam.8#r#F#L#P#O#O#7aKaR#faN#6aSaTavav#8#XawaU.#.#.#.#.#.#QtQt", "QtQtQt.#.#aPaPaV.C.R.C.K.K.B.K.A.Kau#AaW#i#O#gao#O#K#K#PaXaYao#5#6aMaEaZaZ#YawaU.#.#.#.#.#QtQtQt", "QtQtQtQtQt.#.#a0a0aQ.R.C.R.K.C.K.B#u#ta1.haba2#6a3a2apa4#Ma5#Ma6a6a7a5a5a5a5af.#.#.#.#.#QtQtQtQt", "QtQtQtQtQtQtQt.#.#a0a0aQ.R.R.C.R.R.C#m#A#z#ya8#Ma7.6a3.5a9aYb..eb#b##Gb#b#ba#9.#.#.#.#.#QtQtQtQt", "QtQtQtQtQtQtQtQtQt.#.#bbbbbcaV.R.R.Rbdbebf.9bg#y#ybharabbi#qaj#Ibhbj#ybjbjbkbl.#.#.#.#QtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQt.#.#.TbbbbbmaQ.Cbebebfbnbobnbobobobp.ebqbpbpbrbrbrbsbt.#.#.#.#QtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.#.T.N.NbmaQbubvbdbebvbdbvbvbvbwbwbwbwbxby#B#R.#.#.#.#QtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.#.T.N.Nbm#vbububububu.L.Lbybybyby#v#n.#.#.#.#QtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.#.T.N.NbmaV.L.Lbuby.L.Lbzby#.bA.#.#.#QtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.#.T.N.1bm.0bBbBbybB.0#C.#.#.#QtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.##C.1#CbCaVaV#.#R.#.#QtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.#.#bAbA#J.#.#QtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"}; dokvok-0.1.3/dokvok/kde/mini-dokvok.xpm 666 764 144 1741 7027732765 13134 /* XPM */ static char*mini[]={ "16 16 42 1", "l c #808080", "C c #707000", "K c #ffff30", "u c #c0c000", "F c #ffff90", "a c #5f5f5f", "v c #c0c0c0", "E c #505020", "n c #808000", "d c #a5a5a5", "p c #d08200", "o c #a06c00", "f c #c05800", "g c #602c00", "A c #a8a828", "J c #909000", "G c #606020", "t c #686828", "z c #c0c040", "c c #e5e5e5", "j c #503620", "M c #202020", "B c #d0d050", "H c #e0e000", "m c #808040", "w c #ffff00", "y c #ffff60", "x c #909050", "r c #ffffc0", "q c #404040", "k c #c0c090", "e c #484848", "h c #dfdfdf", "I c #505050", "L c #606000", "b c #585858", ". c None", "i c #b9b9b9", "N c #606060", "D c #f0f000", "# c #686868", "s c #ffffff", "........#a......", ".......bcde.....", "....bffghijgg...", "....bklmnnogpfq.", "...brllstuvsmwq.", "...brmlvxnlllwq.", "...byznABwqluC..", "...bwzBwBBwBDE..", "..bFnGBwBBuAHq..", "..byuqmnttnIJ...", "..bKzuvsvmBHLll.", "..bwzwxtuBBuEll.", "..bnmwBBwBBuql..", ".....MqqqMqqN...", "...bqN...qlN....", "...blN...blq...."}; dokvok-0.1.3/dokvok/kde/mini-education_package.xpm 644 764 144 704 7052045456 15227 /* XPM */ static char*mini[]={ "16 16 6 1", "c c #c0c000", "b c #808000", "# c #000000", "a c #ffffc0", "d c #e2cdf6", ". c None", ".....##...#.....", "...##aa###a##...", ".##aa##bc##aa##.", "#aa##bbbccc##aa#", "###bbbbb###cc###", ".#a##bb#ddd###..", ".#aaa###dddd##..", ".#aaaaa#ddd#c#..", ".#aaaaaa#dd#c#..", ".#aaaaaa#dd#c#..", ".#aaaaaa#dd#c#..", ".#aaaaaac##cc#..", ".#caaaaac##c##..", "..##caaa#dd#....", "....##ca#dd#....", "......##.##....."}; dokvok-0.1.3/dokvok/kde/mini-vok.xpm 644 764 144 1322 7051116522 12405 /* XPM */ static char*vok[]={ "16 16 24 1", "e c #008000", "n c #a7a77d", "o c #969670", "t c #c0c000", "c c #eeeeee", "u c #959595", "i c #eaeab0", "# c #000000", "f c #a7a7a7", "m c #ffff00", "q c #959570", "s c #eaeaea", "a c #ffffc0", "l c #0000ff", "k c #eeeeb3", "b c #585858", "d c #fcfcbd", "h c #969696", "r c #ebebb0", ". c None", "g c #ffffff", "j c #ff0000", "v c #7d7d00", "p c #b0b000", "......##........", "......#a###.....", ".bbbbbbbbcd###..", ".beeeeeebfcaga##", ".bggggggbhigaga#", ".bjjjbbbbbbbbkd#", ".bjjjbllmmllbnk#", ".bbbbbllmmllbop#", "..#hqbllmmllbq#.", ".#krsbllmmllbq#.", "#aaaabbbbbbbbo#.", "#taaaknouqqqov#.", ".##tadkriiiir#..", "...###taaaaat#..", "......###tat#...", ".........###...."}; dokvok-0.1.3/dokvok/kde/vok.xpm 644 764 144 13303 7051116501 11472 /* XPM */ static char * vok_xpm[] = { "32 32 225 2", " c None", ". c #020204", "+ c #564E34", "@ c #028204", "# c #86822C", "$ c #FEFE04", "% c #0202FC", "& c #FE0204", "* c #BEB644", "= c #CAC254", "- c #DAD664", "; c #FEFEE4", "> c #4E4634", ", c #EEE67C", "' c #767624", ") c #E2E2BC", "! c #42362C", "~ c #F2EE84", "{ c #765E44", "] c #928E34", "^ c #C2BA4C", "/ c #9A9644", "( c #726E24", "_ c #CAC67C", ": c #42322C", "< c #BEA27C", "[ c #725A4C", "} c #E6D66C", "| c #F6F284", "1 c #A6A67C", "2 c #929264", "3 c #F6F29C", "4 c #CEBE8C", "5 c #C6C6A4", "6 c #7A7A2C", "7 c #E2E294", "8 c #E2DE7C", "9 c #EAEABC", "0 c #A2A264", "a c #868234", "b c #62563C", "c c #FAFADC", "d c #BAB67C", "e c #1A1A04", "f c #D6D264", "g c #F2F2BC", "h c #FAFAA4", "i c #DEDAA4", "j c #82825C", "k c #AA9A64", "l c #FAFAD4", "m c #968664", "n c #E2E2AC", "o c #969684", "p c #F6F6C4", "q c #EEEEB4", "r c #D2CE74", "s c #161604", "t c #BAB654", "u c #6E6A5C", "v c #9A923C", "w c #FAFAAC", "x c #5E563C", "y c #7A7654", "z c #FEFEFC", "A c #8A8A74", "B c #7E7A54", "C c #B2B294", "D c #767254", "E c #C2BA74", "F c #F6EA84", "G c #B6B694", "H c #9E8E6C", "I c #928254", "J c #CACA94", "K c #DAD25C", "L c #DAD684", "M c #A2A284", "N c #F6F6B4", "O c #A29A3C", "P c #AEAA74", "Q c #4E4E4C", "R c #A6A25C", "S c #B2A67C", "T c #EAEA94", "U c #EEEE8C", "V c #666624", "W c #CEC684", "X c #F6F694", "Y c #CACA9C", "Z c #92925C", "` c #FEEE94", " . c #9E9A64", ".. c #FEFEAC", "+. c #BAB274", "@. c #FAFABC", "#. c #E2D27C", "$. c #8A7A54", "%. c #6E664C", "&. c #EEEAA4", "*. c #DAD68C", "=. c #FAFACC", "-. c #D6C294", ";. c #F6EA7C", ">. c #7A664C", ",. c #B2B27C", "'. c #D2D2AC", "). c #9A9274", "!. c #868654", "~. c #FEFEB4", "{. c #D2D284", "]. c #5A4E3C", "^. c #4E4234", "/. c #8A8A6C", "(. c #464644", "_. c #EEEE94", ":. c #FEFEBC", "<. c #92866C", "[. c #AEAA7C", "}. c #EAEAAC", "|. c #FAFA94", "1. c #BABA8C", "2. c #AEAE74", "3. c #A69E3C", "4. c #FAF29C", "5. c #D6D69C", "6. c #CAC294", "7. c #FAEEB4", "8. c #A2A274", "9. c #D6D6B4", "0. c #AEAE8C", "a. c #9A9264", "b. c #868664", "c. c #969664", "d. c #665E44", "e. c #FEFE9C", "f. c #FEFED4", "g. c #CECE8C", "h. c #C2B684", "i. c #FAFAB4", "j. c #EEEECC", "k. c #AA9E74", "l. c #9A8A6C", "m. c #EEE694", "n. c #A2A28C", "o. c #9E9674", "p. c #B6AE8C", "q. c #EEEEA4", "r. c #FEFE8C", "s. c #EAE6AC", "t. c #DEDA94", "u. c #B2B26C", "v. c #8A825C", "w. c #AAA274", "x. c #FEFEDC", "y. c #4A4A4C", "z. c #FEFEC4", "A. c #E2E29C", "B. c #928A74", "C. c #AAA27C", "D. c #D2CE9C", "E. c #BAAE84", "F. c #C2BA8C", "G. c #CEC68C", "H. c #8E7E5C", "I. c #A2A234", "J. c #8A8A5C", "K. c #FEFAB4", "L. c #E6E29C", "M. c #EAEA7C", "N. c #BABA94", "O. c #FEFEA4", "P. c #D2CE8C", "Q. c #76624C", "R. c #9E9A44", "S. c #F6F6A4", "T. c #BABA7C", "U. c #D2D27C", "V. c #A29274", "W. c #7E6A54", "X. c #AEAE7C", "Y. c #FEF69C", "Z. c #C6C694", "`. c #DADAB4", " + c #FEFA94", ".+ c #86865C", "++ c #D2D28C", "@+ c #CEBE94", "#+ c #EEEE9C", "$+ c #FEFAD4", "%+ c #E2E2B4", "&+ c #D6D694", "*+ c #96966C", "=+ c #BABA9C", "-+ c #727224", ";+ c #AA9E6C", ">+ c #9A8A5C", ",+ c #B6AA7C", "'+ c #CECEA4", ")+ c #96965C", "!+ c #BAB66C", "~+ c #FEFECC", "{+ c #D2C694", "]+ c #969674", "^+ c #FEFAA4", "/+ c #F2F2A4", "(+ c #F2F2C4", "_+ c #828264", ":+ c #7A765C", "<+ c #B2B29C", "[+ c #92825C", "}+ c #8E7A5C", "|+ c #7A6654", "1+ c #D2D2B4", "2+ c #FEFE94", "3+ c #B2B274", "4+ c #9E9A4C", "5+ c #BABA84", "6+ c #FAF6B4", "7+ c #DAD69C", "8+ c #F2EE9C", "9+ c #FEFADC", "0+ c #E6E2AC", "a+ c #8A8664", "b+ c #CAC694", " . . ", " . {+. . ", " . $+f.P.. . . ", " . 4 ; x.9+A.g.< . . . . ", " . $+; x.9+$+f.; f.w 4 < . . . . ", " y.y.y.y.y.y.y.Q y.y.Q y.Q y.y.l l c l 4.A.g.< . . . ", " Q @ @ @ @ @ @ @ @ @ @ @ @ @ y.[+j.(+=.=.K.:.i.A.P.< . . ", " (.@ @ @ @ @ @ @ @ @ @ @ @ @ y.1+9.) p.>.z.:.K...O.7.f . ", " y.@ @ @ @ @ @ @ @ @ @ @ @ @ y.<+=+5 `.g @.7+l.~...4.3.. ", " y.z z z 9+z 9+z 9+z 9+z z z Q o n.G ).[ ).i ~.~.O...' . ", " y.z z z z z z z z z z z z z Q u o B.'.9 i.6.}+$.i.3 . ", " Q & & & & & y.y.y.y.y.y.y.y.y.Q Q y.Q y.,+N w K.K.8 . ", " y.& & & & & y.% % % % $ $ $ $ % % % % Q b+l.v.6+X K . ", " Q & & & & & Q % % % % $ $ $ $ % % % % y.6.5.A.q.7 3.. ", " y.y.y.y.y.y.y.% % % % $ $ $ $ % % % % Q %.C.J A.8+-+. ", " . k.C o A Q % % % % $ $ $ $ % % % % y.]+0 T.&+*.. ", " . 9.N.1 ^.y.% % % % $ $ $ $ % % % % y.> D ,.D.= . ", " . h.%+'+N.0.y.% % % % $ $ $ $ % % % % Q j %.2.J v . ", " . 4 6+q n ).Y y.% % % % $ $ $ $ % % % % y..+Z 2.t ( . ", " . :.:.p 0+C.Q.Q % % % % $ $ $ $ % % % % Q j 2 [.R.. ", " . -.:...:.K.K.p y.y.y.y.Q Q (.(.(.(.y.y.y.Q j Z 2.# . . ", " . 4 6+....l.|+S &.@.}.J a+*+/.:+j _+.+y x ! + J.)+0 V . . . . ", ". # , K.....~.&.,+W.m F.5.1.8.*+d.: x B 2 2 Z !.)+0 / . . . . . ", " . . * ;.^+....~.~.6.H.A.g.5+,.,.2._+b ]. .2.2.u.!+R.. . . . ", " . . * M.O.~.O...S.}.7 &+H 0 P.++g.d P.U.U.{.r ] . . . ", " . . * #.~ K.^+h /+_.+.$.Q.;+L U T T T U r ( . . . ", " . . . * } m.3 h h h L k { >+_ |.|.~ O . . . ", " . . . * - F ..O.2+X E H.r.|.K ' . . ", " . . . * #., |.2+r. +| I.. . ", " . . . * - , ` - ' . ", " e s . I.6 . ", " . . "}; dokvok-0.1.3/dokvok/kde/x-vok.kdelnk 644 764 144 1153 7052047026 12371 # KDE Config File [KDE Desktop Entry] Name[fi]=Mimetyyppi Name[fr]=Type MIME LargeIcon=vok.xpm Name[ru]=ôÉÐ MIME Name[hr]=Mime tip Name[sl]=Tip MIME Name[pl]=Typ mime Name[ca]=Tipus Mime Name=Mime Type Name[it]=Tipo MIME MiniIcon=vok.xpm Name[da]=Mimetype MimeType=application/x-vok Name[de]=Mime-Typ Name[ja]=MIME ¥¿¥¤¥× Comment=Set of vocabels DefaultApp=dokvok Name[cs]=Mime typ Name[sv]=MIME-typ Icon=vok.xpm Name[sk]=MIME typ Name[pt_BR]=Tipo MIME Name[es]=Tipo MIME Type=MimeType Name[is]=MIME-tag Name[pt]=Tipo MIME Patterns=*.vok; Comment[de]=Vokabelsatz Name[no]=Mimetype Name[hu]=Mime Típus Name[ro]=Tip MIME dokvok-0.1.3/dokvok/kde/large-vokfolder.xpm 644 764 144 15177 7052045262 13777 /* XPM */ static char * large_vokfolder_xpm[] = { "48 48 120 2", " c None", ". c #020204", "+ c #FEDAA4", "@ c #2A261C", "# c #464644", "$ c #FEAA5C", "% c #FEBE7C", "& c #FED69C", "* c #1A1614", "= c #323234", "- c #AEAEAC", "; c #4A4A4C", "> c #925E34", ", c #DE924C", "' c #16120C", ") c #D6D6D4", "! c #D2D2D4", "~ c #CACACC", "{ c #EAEAEC", "] c #EEEEEC", "^ c #FED294", "/ c #261E14", "( c #FEFEFC", "_ c #F6F6F4", ": c #CECECC", "< c #362E24", "[ c #FEDEAC", "} c #FAD6A4", "| c #FADAA4", "1 c #E2E2E4", "2 c #C6C6C4", "3 c #022204", "4 c #FAFAFC", "5 c #F2F2F4", "6 c #DADADC", "7 c #4E4E4C", "8 c #FEAE64", "9 c #FEC27C", "0 c #FECA8C", "a c #025B04", "b c #028204", "c c #023004", "d c #FEB66C", "e c #FED29C", "f c #E6E6E4", "g c #FAA254", "h c #FEA654", "i c #899E89", "j c #0A860C", "k c #B6B6B4", "l c #424244", "m c #CA8244", "n c #C2723C", "o c #FEAE5C", "p c #B2B2B1", "q c #C3E1C2", "r c #969694", "s c #C2C2C4", "t c #5E4E44", "u c #B20204", "v c #FE9090", "w c #BABABC", "x c #A6A6A4", "y c #FE0204", "z c #535354", "A c #C3C3C2", "B c #3E3E40", "C c #BEBEBC", "D c #929294", "E c #A00204", "F c #4D2C2E", "G c #0202B1", "H c #0A0A0C", "I c #AAAAAC", "J c #A2A2A4", "K c #8E8E8C", "L c #878787", "M c #2C0204", "N c #E40204", "O c #4D0204", "P c #0202FC", "Q c #3D3D3D", "R c #9E9E9C", "S c #8A8A8C", "T c #808082", "U c #7D7D38", "V c #3B3B3D", "W c #9A9A9C", "X c #7C7C7E", "Y c #0E0204", "Z c #B2B24E", "` c #FEFE04", " . c #B2B204", ".. c #2D2D2E", "+. c #DEDEDC", "@. c #404042", "#. c #08080A", "$. c #8F8F91", "%. c #B2B2B4", "&. c #828284", "*. c #858584", "=. c #3E3E3F", "-. c #7E7E7C", ";. c #3D3D3F", ">. c #3C3C3D", ",. c #7A7A7C", "'. c #939392", "). c #02021C", "!. c #0202D2", "~. c #767678", "{. c #868684", "]. c #717173", "^. c #13130B", "/. c #D4D404", "(. c #6C6C6E", "_. c #1B1B04", ":. c #676769", "<. c #60605F", "[. c #6A6A6C", "}. c #6E6E6C", " ", " ", " ", " ", " . . . ", " . + + + . @ ", " # . $ % & + + * * ", " = - ; = > , $ % + + + ' . ", " . ) ! ~ ; = > , $ % + + + . . ", " . { ] ] ) ~ ; = > , $ % ^ + + . / . . . ", " . { ( _ ] ] ) : ; = > , $ % + + + / < . [ [ + . . ", " . { ( ( ( _ ] { ) ! ; = > , $ } | [ + + [ [ [ [ + . . ", " . { ( ( ( ( ( _ { 1 : 2 ; = > , $ % + + [ [ + + + [ + . . ", " . { ( ( 3 ( ( ( 4 5 1 6 : 2 ; 7 > , 8 9 0 [ [ [ [ + + [ + . ", " . { ( ( a b c ( 4 4 5 { 6 ! 2 = > , , $ d 0 ^ ^ e + + | + . ", " . { ( ( a b b b c _ 5 5 f 1 : ; = > , g h h g g $ % + } + + . ", " . f ( ( i j b b b b c ] { { 6 ~ k l = > m n ; = > , o % + [ . ", " . 1 ( ( p ( q j b b b b c f 1 6 ~ ~ k l = > r r ; = > , o % [ . ", " . 1 ( ( p ( ( ( q j b b b b c 6 ) ! ~ s k = - - r r l t > o [ . ", " . 6 ( 4 u v ( ( ( ( q j b b b b c ) : ~ ~ w k k - x r l t > $ . ", " . 6 _ _ u y y v ( z A ( q j b b b b B 2 2 s C C k - x D = > $ . ", " . ) _ 5 E y y y y F G H A ( q j b b B 2 2 2 C C k I J K = > $ . ", " . ) 5 5 L M N y y O P P G H A ( q j Q s s C C w w I R S = > $ . ", " . : 5 ] { { T M N O P P P P U H A ( V C s w w k k I W S = > $ . ", " . : { { { f 1 6 X Y P P P P Z ` .H ..C w w k k - J W S = > $ . ", " . ~ { { { 1 +.6 6 @.P P P P Z ` ` ` U #.$.k %.%.- J D &.= > $ . ", " . 2 { 1 1 1 6 ) ! @.P P P P Z ` ` ` Z P G #.*.- I R D &.= > $ . ", " . 2 f 1 6 6 6 ! ! =.P P P P Z ` ` ` Z P P P G I x W K -.= > $ . ", " . C 6 1 6 6 ! ! : ;.P P P P Z ` ` ` Z P P P P x x W K -.= > $ . ", " . w 2 : 6 6 ! ~ ~ >.P P P P Z ` ` ` Z P P P P J J r S ,.= > $ . ", " . W k s ~ : ~ 2 '.).!.P P Z ` ` ` Z P P P P J R D S ,.= > $ . ", " . . W - w w s C C ~.).!.Z ` ` ` Z P P P P R R K {.,.= > $ . ", " . . {.I %.%.w w k ].^./.` ` Z P P P P W W K {.,.= > $ . ", " . . {.R I - %.- - (._./.Z P P P P W r K {.,.= > $ . ", " . . -.W J J x x J :.^.!.P P P r r K {.,.= > $ . ", " . . -.D W r R W W <.).!.P r r K {.,.= > $ . . ", " . . [.S K r r r W <.).r r K {.,.= > $ . . . . ", " . . [.&.{.K r r r r r K {.,.= > $ . . . . . . ", " . . [.-.{.D r r r K {.,.= > $ . . . . . . . ", " . . }.-.{.D r K {.,.= > $ . . . . . . . ", " . . }.-.{.{.{.,.= > $ . . . . . . ", " . . }.-.-.,.= > $ . . . . ", " . . }.,.= > > . . ", " . . t > . . ", " . . ", " ", " ", " "}; dokvok-0.1.3/dokvok/kde/mini-vokfolder.xpm 644 764 144 1554 7052045215 13611 /* XPM */ static char * mini_vokfolder_xpm[] = { "16 16 33 1", " c None", ". c #000000", "+ c #585858", "@ c #FFA858", "# c #FFDCA8", "$ c #FFFFFF", "% c #C0C0C0", "& c #3A653A", "* c #D5A5A5", "= c #59AC59", "- c #306930", "; c #CE1919", "> c #FF0000", ", c #DFCFCF", "' c #4E5C4E", ") c #A0A0A4", "! c #B0B0B0", "~ c #605353", "{ c #7F4343", "] c #4A4A71", "^ c #777777", "/ c #6E6E6E", "( c #0000FF", "_ c #BFBF3F", ": c #676754", "< c #A6A6A6", "[ c #727272", "} c #6A6A6B", "| c #808080", "1 c #7F7F82", "2 c #7C7C4F", "3 c #393992", "4 c #87878A", " .+. ", " .+@#.. ", " .$++@#..... ", " .$$%++@###@. ", " .$&$%%+@###+ ", " .%*=-%%++++@. ", " .$;>,='%%)%.@+ ", " .%!~{]^%)%).@+ ", " .%%%/(_:<)).@+ ", " .%%%[(__(}).@+ ", " ..|%%12_(}).@+ ", " ..|%)13}).@+ ", " ..)))4).@+ ", " ..))).@..", " ..).@..", " .... "}; dokvok-0.1.3/dokvok/kde/vokfolder.xpm 644 764 144 10711 7052045251 12672 /* XPM */ static char * vokfolder_xpm[] = { "32 32 145 2", " c None", ". c #020204", "+ c #FECE84", "@ c #FEDEA4", "# c #323234", "$ c #A26E34", "% c #FEAE5C", "& c #D3D3D3", "* c #CBCBCB", "= c #B6763C", "- c #EDEDED", "; c #D5D5D5", "> c #A66E3C", ", c #1D1907", "' c #1B1808", ") c #EBEBEB", "! c #FDFDFD", "~ c #CDCDCD", "{ c #F5F5F5", "] c #000000", "^ c #E3E3E3", "/ c #C5C5C5", "( c #514721", "_ c #C27E3C", ": c #F6AA5C", "< c #FEC67C", "[ c #FED69C", "} c #375839", "| c #FBFBFB", "1 c #F3F3F3", "2 c #DBDBDB", "3 c #A26A34", "4 c #E6964C", "5 c #FEB25C", "6 c #FEBA6C", "7 c #FECA7C", "8 c #FECE8C", "9 c #157116", "0 c #028204", "a c #2F5E31", "b c #2E2E1C", "c c #CA8644", "d c #E5E5E5", "e c #478A48", "f c #305F31", "g c #EEEEEE", "h c #959595", "i c #CE8A44", "j c #CACAC9", "k c #FEFEFC", "l c #46A347", "m c #D9D9D9", "n c #D7D7D7", "o c #818181", "p c #ADADAD", "q c #965E34", "r c #FEAA5C", "s c #CB1718", "t c #FE8B8B", "u c #316031", "v c #CFCFCF", "w c #C3C3C3", "x c #B7B7B7", "y c #A5A5A5", "z c #939393", "A c #F7F7F7", "B c #EFEFEF", "C c #FE0204", "D c #2B622D", "E c #C7C7C7", "F c #BFBFBF", "G c #ABABAB", "H c #9B9B9B", "I c #59595A", "J c #BC1C1E", "K c #444459", "L c #ACACAB", "M c #BDBDBD", "N c #BBBBBB", "O c #9D9D9D", "P c #2E3234", "Q c #C4C4C4", "R c #575759", "S c #2C2C97", "T c #0808EC", "U c #3C3C6C", "V c #999997", "W c #B5B5B5", "X c #DFDFDF", "Y c #DDDDDD", "Z c #BBBBBC", "` c #2B2B97", " . c #0202FC", ".. c #ACAC4A", "+. c #6A6A3E", "@. c #757575", "#. c #AFAFAF", "$. c #A3A3A3", "%. c #D6D6D6", "&. c #D4D4D4", "*. c #B6B64A", "=. c #FEFE04", "-. c #EDED0A", ";. c #40406C", ">. c #868686", ",. c #D2D2D2", "'. c #D0D0D0", "). c #0202FB", "!. c #3F3F6C", "~. c #8D8D8D", "{. c #CCCCCC", "]. c #666665", "^. c #474752", "/. c #0F0FDB", "(. c #646465", "_. c #9F9F9F", ":. c #8B8B8B", "<. c #C0C0C0", "[. c #B9B9B9", "}. c #8F8F90", "|. c #44445B", "1. c #A3A34B", "2. c #626263", "3. c #858585", "4. c #B3B3B3", "5. c #B4B4B4", "6. c #878786", "7. c #56563E", "8. c #DCDC0F", "9. c #A8A8A8", "0. c #7E7E7E", "a. c #3F3F54", "b. c #616162", "c. c #010103", "d. c #7D7D7D", "e. c #7F7F7F", "f. c #43435B", "g. c #626261", "h. c #010102", "i. c #979797", "j. c #828282", "k. c #6B6B6B", "l. c #838383", "m. c #6D6D6D", "n. c #434343", " . . . ", " . + @ @ . . ", " # # $ % + @ @ . . ", " . & * # # = % + @ @ . . ", " . - - ; * # # > % + @ @ , ' . . . ", " . ) ! - - ; ~ # # > % + @ @ . . @ @ @ . . ", " . ) ! ! { - ) ; & ] ] > % + @ @ @ @ @ @ @ . . ", " . ) ! ! ! ! { ) ^ ~ / ] ( _ : < [ @ @ @ @ @ @ . ", " . ) ! ! ! } ! | 1 ^ 2 ~ ] 3 4 5 6 < 7 8 @ @ @ . ", " . ) ! ! ! 9 0 a { 1 ) 2 b # _ _ % # # c % + @ @ . ", " . d ! ! ! e 0 0 0 f g d ; * # # _ # h # # i % + . ", " . ^ ! ! | j k l 0 0 0 f m n ; & . o p h h # q r . ", " . ^ ! | { s t k k l 0 0 0 u v ~ * w x p y z # r . ", " . 2 A B 1 s C C t k k l 0 0 D E E / F x G H # r . ", " . 2 | B - I J C C K L k k l D / / F M N G O P r . ", " . ; 1 - ) d Q R J S T U L k V F w M x W G H P r . ", " . ; 1 - d X Y Y Z ` . ...+.@.M M x W #.$.h P r . ", " . ~ ) d d Y n %.&.S . .*.=.-.;.>.W #.p $.z P r . ", " . ~ ) Y Y 2 ; ,.'.` . .*.=.=.).T !.~.y O ~.P r . ", " . / ~ ^ Y ; v {.Q S . .*.=.=.). . .].y H ~.# r . ", " . H W w * & ~ E Q ^./. .*.=.=.). . .(._.H :.P r . ", " . . H p N N F <.[.}.|.1.=.=.). . .2.O h :.P r . ", " . . 3.G 4.4.[.5.4.6.7.8.). . .2.H z :.P r . ", " . . 3.O G p G 9.y 0.a./. .b.h ~.:.P r . ", " . c.d.H $.$.$.O H e.f.g.h ~.:.P r . ", " . h.d.z H h i.H h j.h ~.:.P r . ", " . . k.:.~.h i.h h ~.:.P r . . ", " . . k.l.3.~.h ~.:.P r . . . . ", " . . k.d.3.~.:.# r . . . . . ", " . . m.d.~.P r . . . . ", " . . n.. q . . ", " . . . "}; dokvok-0.1.3/dokvok/kde/filedel.xpm 644 764 144 1303 7063407770 12272 /* XPM */ static char*filedel[]={ "22 22 6 1", "d c #b3b3b3", "c c #dedede", "# c #000000", ". c None", "a c #ee0000", "b c #ffffff", "......................", "......................", "......................", "......########........", "..aaa.#bbbbbbc#....a..", "...aaaacbbbbbcb#...a..", ".....aaacbbbb.cb#.aa..", "......#aaacbb.###aa...", "......#daaacb.ccaa....", "......#cddaaacaaa#....", "......#bbcdaaaaad#....", "......#bbbcaaaadb#....", "......#bbaaaadaab#....", "......#aaaaddcaac#....", ".....aaaaddcbbdaa#....", "...aaaaddcbbbbcdaa....", "..aaa.#cbbbbbbbcaa....", "......#bbbbbbbbbdaa...", "......###########aa...", "..................a...", "......................", "......................"}; dokvok-0.1.3/dokvok/kde/filenewfrom.xpm 644 764 144 1307 7063407503 13201 /* XPM */ static char*filenewfrom[]={ "22 22 6 1", "c c #c0c0c0", "# c #000000", "d c #999999", ". c None", "b c #dcdcdc", "a c #ffffff", "......................", "......................", "......................", "....#######...........", "....#aaaabb#..........", "....#aaaacab###.......", "....#aaaacaab#d#......", "....#aaaac####cd#.....", "....#aaaaaccc#ccd#....", "....#aaaaaaaa#####....", "....#aaaaaaaa#ccc#....", "....#aaaaaaaa#ccc#....", "....#aaaaaaaa#ccc#....", "....#aaaaaaaa#ccc#....", "....#aaaaaaaa#ccc#....", "....#aaaaaaaa#ccc#....", "....##########ccc#....", "........#cccccccc#....", "........##########....", "......................", "......................", "......................"}; dokvok-0.1.3/dokvok/kde/filenewfromthis.xpm 644 764 144 1351 7063407443 14073 /* XPM */ static char*filenewfromthis[]={ "22 22 8 1", "c c #c0c0c0", "e c #7f7f7f", "# c #000000", "d c #0000ff", "f c #cccccc", ". c None", "b c #dcdcdc", "a c #ffffff", "......................", "......................", "......................", "...#######............", "...#aaaabb#...........", "...#aaaacab#..........", "...#aaaacaab#.........", "...#aaaac##########...", "...#aaaaaccc#ddddd#e..", "...#aaaaaaaa#ddddd#e..", "...#aaaaaaaa#fffff#e..", "...#aaaaaaaa#fffff#e..", "...#aaaaaaaa#fffff#e..", "...#aaaaaaaa#fffff#e..", "...#aaaaaaaa#fffff#e..", "...#aaaaaaaa#fffff#e..", "...##########fffff#e..", ".....#ffffffffffff#e..", ".....##############e..", "......eeeeeeeeeeeeee..", "......................", "......................"}; dokvok-0.1.3/dokvok/kde/filerevert.xpm 644 764 144 1411 7063407434 13032 /* XPM */ static char*filerevert[]={ "22 24 7 1", "d c #c0c0c0", "# c #000000", "e c #49e50b", "a c #303030", ". c None", "c c #dcdcdc", "b c #ffffff", "......................", "......................", "......................", "......................", "......................", "......................", "......#######a........", "......#bbbbcc#aa......", ".....a#bbbbdbc#ea.....", "....ae#b#bbdbbc#e#....", "...#ee##e#bd####eea...", "...#ee##e#bbddd#eea...", "....#eeeee#bbbb#e#....", ".....#eeee#bbb#e#.....", "......#eeee#b#e#......", ".....#eee##b#e##......", ".....#e##bbbb#b#......", "......#bbbbbbbb#......", "......#bbbbbbbb#......", "......##########......", "......................", "......................", "......................", "......................"}; dokvok-0.1.3/dokvok/kde/languages.xpm 644 764 144 1401 7065714473 12636 /* XPM */ /* Drawn for the K Desktop Environment */ /* See http://www.kde.org */ static char*language[]={ "16 16 22 1", "# c #000000", "a c #ffffff", "e c #808080", "d c #c0c0c0", "h c #a0a0a4", "f c #585858", "c c #ff0000", "j c #400000", "o c #800000", "p c #c00000", "m c #000000", "n c #004040", "k c #303030", "l c #404000", "r c #c0c000", "s c #ffff00", "b c #ffc0c0", "g c #ffc0ff", "q c #ff8000", "t c #c05800", "i c #ffa858", ". c None", ".####....##.....", "#aabc####de#....", "#daccfccgah#....", "#daccccccgd#....", "#daicf#fcca###..", "#dajkf##f#fl##..", "#ea#lfl#mnfk###.", "#ea#oppoknff###.", "#h##pccpoooopo#.", "#k.#pccqoopccp#.", "#..#prssqftcct#.", "#..#qqssqjsssq#.", "#..#qr##ikssss#.", "...###..######..", "...#............", "...#............"}; dokvok-0.1.3/dokvok/pics/ 777 764 144 0 7070117366 10337 5dokvok-0.1.3/dokvok/pics/Makefile.in 644 764 144 16055 7070117366 12427 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ EXTRA_DIST = dokvokright.xpm dokvoksmiling.xpm dokvokwrong.xpm mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/pics/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/pics distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data-local install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-local uninstall: uninstall-am all-am: Makefile all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am -rm -f libtool distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: tags distdir info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-local install-data-am install-data install-am install \ uninstall-local uninstall-am uninstall all-redirect all-am all \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean install-data-local: $(mkinstalldirs) $(kde_datadir)/dokvok/pics/ $(INSTALL_DATA) dokvokright.xpm $(kde_datadir)/dokvok/pics/dokvokright.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/pics/ $(INSTALL_DATA) dokvoksmiling.xpm $(kde_datadir)/dokvok/pics/dokvoksmiling.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/pics/ $(INSTALL_DATA) dokvokwrong.xpm $(kde_datadir)/dokvok/pics/dokvokwrong.xpm uninstall-local: -rm -f $(kde_datadir)/dokvok/pics/dokvokright.xpm -rm -f $(kde_datadir)/dokvok/pics/dokvoksmiling.xpm -rm -f $(kde_datadir)/dokvok/pics/dokvokwrong.xpm ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/dokvok/pics/Makefile.am 644 764 144 1365 7066761424 12401 ####### kdevelop will overwrite this part!!! (begin)########## EXTRA_DIST = dokvokright.xpm dokvoksmiling.xpm dokvokwrong.xpm install-data-local: $(mkinstalldirs) $(kde_datadir)/dokvok/pics/ $(INSTALL_DATA) dokvokright.xpm $(kde_datadir)/dokvok/pics/dokvokright.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/pics/ $(INSTALL_DATA) dokvoksmiling.xpm $(kde_datadir)/dokvok/pics/dokvoksmiling.xpm $(mkinstalldirs) $(kde_datadir)/dokvok/pics/ $(INSTALL_DATA) dokvokwrong.xpm $(kde_datadir)/dokvok/pics/dokvokwrong.xpm uninstall-local: -rm -f $(kde_datadir)/dokvok/pics/dokvokright.xpm -rm -f $(kde_datadir)/dokvok/pics/dokvoksmiling.xpm -rm -f $(kde_datadir)/dokvok/pics/dokvokwrong.xpm ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/pics/dokvokright.xpm 644 764 144 2556 7064160352 13420 /* XPM */ static char * dokvokright_xpm[] = { "32 32 12 1", " c None", ". c #000000", "+ c #C3C3C3", "@ c #DCDCDC", "# c #A0A0A0", "$ c #808080", "% c #FFFFFF", "& c #C05800", "* c #FFFFC0", "= c #FFFF00", "- c #303030", "; c #C0C000", " . . . ..... ", " . . . .+@@##. . . ", " . . . .@@@@$. . . . ", " .......@%.@#. . . . ", " ...&&&&&.@%@+$..... . ", " .&&&&&&&.+@+$.&&&&&... ", " .&&**...=....&&&&&&&&. ", " .. .***.%%%.=====...=&&&. ", " .%%. .**.%%%%%.===.%%%.===. ", " .%. .**.%-.%%.#=.%%%%%.==. ", " ..%. .;**.%+-%%.#=.%..%%.==. ", ".%%%. .=**=.%%%.=#=.%+.%%.=. ", ".%%%. .**==$...==#==.%%%.==. ", ".%%%. .**==$==#==#==#...==;. ", ".%%%...*==$==#==#==#==#===;. ", " ... ..*==$==#==#==#==#==;. ", " .;*=...=#==#==#==#==;. ", " .==.=$==#==#==#=..==;. ", " .*=.=$..===#==#==#.;;. ", " .*===$.%.........#.;. ", " .*==$=.%%%%%%%.=#=;;. ", " .===$==.%%%%..==#=;;. ", " .===$==#....=#==#;;;.... ", " .===$==#==#==#==#;;..... ", " .===$==#==#==#==#;;.... ", " ....$==#==#==#==#;;.... ", " .................. ", " ................ ", " .................. ", " .%%.%.. .%.%%%. ", " .%%%%. .%%%%%. ", " .... ...... "}; dokvok-0.1.3/dokvok/pics/dokvoksmiling.xpm 666 764 144 2560 7064160257 13750 /* XPM */ static char * dokvoksmiling_xpm[] = { "32 32 12 1", " c None", ". c #000000", "+ c #C3C3C3", "@ c #DCDCDC", "# c #A0A0A0", "$ c #808080", "% c #FFFFFF", "& c #C05800", "* c #FFFFC0", "= c #FFFF00", "- c #303030", "; c #C0C000", " . . . ..... ", " . . . .+@@##. . . ", " . . . .@@@@$. . . . ", " .......@%.@#. . . . ", " ...&&&&&.@%@+$..... . ", " .&&&&&&&.+@+$.&&&&&... ", " .&&**...=....&&&&&&&&. ", " .***.%%%.=====...=&&&. ", " .**.%%%%%.===.%%%.===. ", " .**.%-.%%.#=.%%%%%.==. ", " .;**.%+-%%.#=.%..%%.==. ", " .=**=.%%%.=#=.%+.%%.=. ", " .**==$...==#==.%%%.==. ", " .**==$==#==#==#...==;. ", " .*==$==#==#==#==#===;. ", " .*==$==#==#==#==#==;. ", " .;*=...=#==#==#==#==;. ", " .==.=$==#==#==#=..==;. ", " .*=.=$..===#==#==#.;;. ", " .*===$.%.........#.;. ", " .*==$=.%%%%%%%.=#=;;. ", " .===$==.%%%%..==#=;;. ", " .===$==#....=#==#;;;.... ", " .===$==#==#==#==#;;..... ", " .===$==#==#==#==#;;.... ", " ....$==#==#==#==#;;.... ", " .................. ", " ................ ", " .................. ", " .%%.%.. .%.%%%. ", " .%%%%. .%%%%%. ", " .... ...... "}; dokvok-0.1.3/dokvok/pics/dokvokwrong.xpm 644 764 144 2556 7064160202 13431 /* XPM */ static char * dokvokwrong_xpm[] = { "32 32 12 1", " c None", ". c #000000", "+ c #C3C3C3", "@ c #DCDCDC", "# c #A0A0A0", "$ c #808080", "% c #FFFFFF", "& c #C05800", "* c #FFFFC0", "= c #FFFF00", "- c #303030", "; c #C0C000", " . . . ..... ", " . . . .+@@##. . . ", " . . . .@@@@$. . . . ", " .......@%.@#. . . . ", " ...&&&&&.@%@+$..... . ", " .&&&&&&&.+@+$.&&&&&... ", " .&&**...=....&&&&&&&&. ", " .***.%%%.=====...=&&&. ", " .**.%%%%%.===.%%%.===. ", " .**.%-.%%.#=.%%%%%.==. ", " .;**.%+-%%.#=.%..%%.==. ", " .. .=**=.%%%.=#=.%+.%%.=. ", " .%%. .**==$...==#==.%%%.==. ", ".%%%. .**==$==#==#==#...==;. ", ".%%%...*==$==#==#==#==#===;. ", ".%%%. .*==$==#==#==#==#==;. ", " ..%..;*=...=#==#==#==#==;. ", " .%%..==.=$==#==#==#=..==;. ", " .%. .*=.=$..===#==#==#.;;. ", " .%. .*===$.%.........#.;. ", " . .*==$=.%%%%%%%.=#=;;. ", " .===$==.%%%%..==#=;;. ", " .===$==#....=#==#;;;.... ", " .===$==#==#==#==#;;..... ", " .===$==#==#==#==#;;.... ", " ....$==#==#==#==#;;.... ", " .................. ", " ................ ", " .................. ", " .%%.%.. .%.%%%. ", " .%%%%. .%%%%%. ", " .... ...... "}; dokvok-0.1.3/dokvok/Dialoge/ 777 764 144 0 7070117411 10734 5dokvok-0.1.3/dokvok/Dialoge/Makefile.in 644 764 144 30177 7070117411 13025 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ INCLUDES = $(all_includes) libDialoge_a_METASOURCES = dokvokdialog.moc.cpp vdialog.moc.cpp veditdialog.moc.cpp vlangbox.moc.cpp vlangdialog.moc.cpp vlistdialog.moc.cpp vtypedit.moc.cpp noinst_LIBRARIES = libDialoge.a libDialoge_a_SOURCES = vtypedit.cpp vlistdialog.cpp vlangdialog.cpp dokvokdialog.cpp vlangbox.cpp veditdialog.cpp vdialog.cpp EXTRA_DIST = vdialog.cpp vdialog.h veditdialog.cpp veditdialog.h vlangbox.cpp vlangbox.h dokvokdialog.cpp dokvokdialog.h vlangdialog.cpp vlangdialog.h vlistdialog.cpp vlistdialog.h vtypedit.cpp vtypedit.h mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) DEFS = @DEFS@ -I. -I$(srcdir) -I../.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ libDialoge_a_LIBADD = libDialoge_a_OBJECTS = vtypedit.o vlistdialog.o vlangdialog.o dokvokdialog.moc.o vdialog.moc.o veditdialog.moc.o vlangbox.moc.o vlangdialog.moc.o vlistdialog.moc.o vtypedit.moc.o \ dokvokdialog.o vlangbox.o veditdialog.o vdialog.o AR = ar CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best SOURCES = $(libDialoge_a_SOURCES) OBJECTS = $(libDialoge_a_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .cpp .lo .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/Dialoge/Makefile cd $(top_srcdir) && perl automoc dokvok-0.1.3/dokvok/Dialoge/Makefile.in Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-noinstLIBRARIES: clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) distclean-noinstLIBRARIES: maintainer-clean-noinstLIBRARIES: .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .s.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .S.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: maintainer-clean-libtool: libDialoge.a: $(libDialoge_a_OBJECTS) $(libDialoge_a_DEPENDENCIES) -rm -f libDialoge.a $(AR) cru libDialoge.a $(libDialoge_a_OBJECTS) $(libDialoge_a_LIBADD) $(RANLIB) libDialoge.a .cpp.o: $(CXXCOMPILE) -c $< .cpp.lo: $(LTCXXCOMPILE) -c $< tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/Dialoge distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done dokvokdialog.moc.o: dokvokdialog.moc.cpp dokvokdialog.h vdialog.h dokvokdialog.o: dokvokdialog.cpp ../../config.h dokvokdialog.h vdialog.h vdialog.moc.o: vdialog.moc.cpp vdialog.h vdialog.o: vdialog.cpp ../../config.h vdialog.h veditdialog.moc.o: veditdialog.moc.cpp veditdialog.h vdialog.h veditdialog.o: veditdialog.cpp veditdialog.h vdialog.h vlangbox.moc.o: vlangbox.moc.cpp vlangbox.h ../vlanguage.h ../vtyplist.h \ ../vtyp.h vlangbox.o: vlangbox.cpp ../../config.h vlangbox.h ../vlanguage.h \ ../vtyplist.h ../vtyp.h vlangdialog.moc.o: vlangdialog.moc.cpp vlangdialog.h vdialog.h \ vlangbox.h ../vlanguage.h ../vtyplist.h ../vtyp.h vtypedit.h vlangdialog.o: vlangdialog.cpp ../../config.h veditdialog.h vdialog.h \ vlangdialog.h vlangbox.h ../vlanguage.h ../vtyplist.h ../vtyp.h \ vtypedit.h vlistdialog.moc.o: vlistdialog.moc.cpp vlistdialog.h vdialog.h \ vlangbox.h ../vlanguage.h ../vtyplist.h ../vtyp.h vlistdialog.o: vlistdialog.cpp ../../config.h vlistdialog.h vdialog.h \ vlangbox.h ../vlanguage.h ../vtyplist.h ../vtyp.h vtypedit.moc.o: vtypedit.moc.cpp vtypedit.h ../vtyplist.h ../vtyp.h vtypedit.o: vtypedit.cpp ../../config.h veditdialog.h vdialog.h \ vtypedit.h ../vtyplist.h ../vtyp.h info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile $(LIBRARIES) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ mostlyclean-libtool mostlyclean-tags \ mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-noinstLIBRARIES distclean-compile \ distclean-libtool distclean-tags distclean-generic \ clean-am -rm -f libtool distclean: distclean-metasources distclean-am maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ maintainer-clean-compile maintainer-clean-libtool \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile mostlyclean-libtool distclean-libtool \ clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvokdialog.moc.cpp: $(srcdir)/dokvokdialog.h $(MOC) $(srcdir)/dokvokdialog.h -o dokvokdialog.moc.cpp vdialog.moc.cpp: $(srcdir)/vdialog.h $(MOC) $(srcdir)/vdialog.h -o vdialog.moc.cpp veditdialog.moc.cpp: $(srcdir)/veditdialog.h $(MOC) $(srcdir)/veditdialog.h -o veditdialog.moc.cpp vlangbox.moc.cpp: $(srcdir)/vlangbox.h $(MOC) $(srcdir)/vlangbox.h -o vlangbox.moc.cpp vlangdialog.moc.cpp: $(srcdir)/vlangdialog.h $(MOC) $(srcdir)/vlangdialog.h -o vlangdialog.moc.cpp vlistdialog.moc.cpp: $(srcdir)/vlistdialog.h $(MOC) $(srcdir)/vlistdialog.h -o vlistdialog.moc.cpp vtypedit.moc.cpp: $(srcdir)/vtypedit.h $(MOC) $(srcdir)/vtypedit.h -o vtypedit.moc.cpp distclean-metasources: -rm -f dokvokdialog.moc.cpp vdialog.moc.cpp veditdialog.moc.cpp vlangbox.moc.cpp vlangdialog.moc.cpp vlistdialog.moc.cpp vtypedit.moc.cpp # DO_NOT_USE_AUTOMOC dokvok-0.1.3/dokvok/Dialoge/Makefile.am 644 764 144 1064 7066761424 13003 ####### kdevelop will overwrite this part!!! (begin)########## INCLUDES = $(all_includes) libDialoge_a_METASOURCES = USE_AUTOMOC noinst_LIBRARIES = libDialoge.a libDialoge_a_SOURCES = vtypedit.cpp vlistdialog.cpp vlangdialog.cpp dokvokdialog.cpp vlangbox.cpp veditdialog.cpp vdialog.cpp EXTRA_DIST = vdialog.cpp vdialog.h veditdialog.cpp veditdialog.h vlangbox.cpp vlangbox.h dokvokdialog.cpp dokvokdialog.h vlangdialog.cpp vlangdialog.h vlistdialog.cpp vlistdialog.h vtypedit.cpp vtypedit.h ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/Dialoge/vtypedit.cpp 644 764 144 15646 7066760212 13350 /*************************************************************************** vTypListEdit.cpp - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include "veditdialog.h" #include "vtypedit.h" VTypListEdit::VTypListEdit( VTypInfoList *GivenList, QWidget *parent, const char *name ) : QGroupBox( i18n("Types"), parent, name ), Layout( this, 10 ), TypLayout(), TypListBox( this ), LeftLayout(), TypControl( this ), NameEdit( this ), NameLabel( &NameEdit, i18n("Symbolic Name"), this ), LocalNameEdit( this ), LocalNameLabel( &LocalNameEdit, i18n("Name"), this ), SymbolEdit( this ), SymbolLabel( &SymbolEdit, i18n("Symbol"), this ) { setLayout(); setList( GivenList ); TypListBox.setMultiSelection( false ); connect( &TypListBox, SIGNAL(highlighted(int)), SLOT(selected(int)) ); connect( &LocalNameEdit, SIGNAL(textChanged(const char*)), SLOT(refreshLocalName(const char*)) ); connect( &SymbolEdit, SIGNAL(textChanged(const char*)), SLOT(refreshSymbol(const char*)) ); connect( New, SIGNAL(clicked()), SLOT(createTyp()) ); connect( Delete, SIGNAL(clicked()), SLOT(deleteTyp()) ); } VTypListEdit::~VTypListEdit() { } void VTypListEdit::setEnabled ( bool Enable ) { QGroupBox::setEnabled( Enable ); SymbolEdit.setEnabled( Enable ); NameEdit.setEnabled( Enable ); LocalNameEdit.setEnabled( Enable ); SymbolLabel.setEnabled( Enable ); NameLabel.setEnabled( Enable ); LocalNameLabel.setEnabled( Enable ); Delete->setEnabled( Enable ); New->setEnabled( Enable ); TypListBox.setEnabled( Enable ); } /** sets the layout */ void VTypListEdit::setLayout() { // the layout Layout.addSpacing( fontMetrics().height() ); Layout.addLayout( &TypLayout ); TypLayout.addLayout( &LeftLayout,2 ); TypLayout.addWidget( &TypListBox,1 ); // the left layout LeftLayout.addWidget( &TypControl ); LeftLayout.addWidget( &NameLabel, 0, AlignLeft ); LeftLayout.addWidget( &NameEdit ); LeftLayout.addWidget( &LocalNameLabel, 0, AlignLeft ); LeftLayout.addWidget( &LocalNameEdit ); LeftLayout.addWidget( &SymbolLabel, 0, AlignLeft ); LeftLayout.addWidget( &SymbolEdit, 0, AlignLeft ); // the typ control New = TypControl.addButton( i18n("&New") ); Delete = TypControl.addButton( i18n("&Delete") ); TypControl.layout(); // the name edit NameLabel.setFixedSize( NameLabel.sizeHint() ); NameEdit.setFixedHeight( NameEdit.sizeHint().height() ); NameEdit.setMinimumWidth( NameEdit.sizeHint().width() ); NameEdit.setFocusPolicy( QWidget::NoFocus ); NameEdit.setCursor( arrowCursor ); // the local name edit LocalNameLabel.setFixedSize( LocalNameLabel.sizeHint() ); LocalNameEdit.setFixedHeight( LocalNameEdit.sizeHint().height() ); LocalNameEdit.setMinimumWidth( LocalNameEdit.sizeHint().width() ); // the symbol edit SymbolLabel.setFixedSize( SymbolLabel.sizeHint() ); SymbolEdit.setFixedHeight( SymbolEdit.sizeHint().height() ); QFontMetrics SEFontMetrics( SymbolEdit.fontMetrics() ); SymbolEdit.setFixedWidth( SEFontMetrics.width("0")*3 ); SymbolEdit.setMaxLength( 1 ); // the typ listbox // TypListBox.setMinimumSize( TypListBox.sizeHint() ); Layout.activate(); } void VTypListEdit::setList( VTypInfoList *GivenList ) { TypInfo = 0; List = GivenList; fillBox(); } void VTypListEdit::createTyp() { QString Name = ""; if( !VEditDialog::edit(Name,i18n("Symbolic name"),this,0) ) return; if( Name.isEmpty() ) { KMsgBox::message( this, i18n("Sorry"), i18n("An empty Name is not possible."), KMsgBox::STOP ); return; } VTypInfo *NewTypInfo = new VTypInfo(Name[0],Name,Name); // NewTyp->LocalName = Name; // NewTyp->Name = Name; // NewTyp->Symbol = ' '; List->append( NewTypInfo ); TypListBox.insertItem( Name ); TypListBox.setCurrentItem( TypListBox.count()-1 ); } void VTypListEdit::deleteTyp() { int Index = TypListBox.currentItem(); if( Index != -1 ) { QString Question = NameEdit.text(); Question = i18n("Are you sure that you want\nto delete the typ ") + Question + "?"; if( KMsgBox::yesNo( 0L, i18n("Resurance"), Question, KMsgBox::QUESTION ) == 2 ) return; List->remove( Index ); TypListBox.removeItem( Index ); } if( TypListBox.count() == 0 ) selected( -1 ); } void VTypListEdit::refreshLocalName( const char *Text ) { if( TypInfo ) TypInfo->localName() = Text; TypListBox.changeItem( Text, TypListBox.currentItem() ); } void VTypListEdit::refreshSymbol( const char *Text ) { if( TypInfo ) { if( *Text == '\0' ) TypInfo->initSymbol(); else TypInfo->setSymbol( *Text ); } } void VTypListEdit::selected( int Index ) { if( Index == -1 ) { SymbolEdit.setText( "" ); NameEdit.setText( "" ); LocalNameEdit.setText( "" ); } else if( List ) { // set new Typ TypInfo = List->at( Index ); // fill edit with data of new typ if( TypInfo ) { LocalNameEdit.setText( TypInfo->localName() ); NameEdit.setText( TypInfo->name() ); SymbolEdit.setText( TypInfo->symbolString() ); } } bool Enable = (Index != -1); if( NameEdit.isEnabled() != Enable ) { SymbolEdit.setEnabled( Enable ); NameEdit.setEnabled( Enable ); LocalNameEdit.setEnabled( Enable ); SymbolLabel.setEnabled( Enable ); NameLabel.setEnabled( Enable ); LocalNameLabel.setEnabled( Enable ); Delete->setEnabled( Enable ); TypListBox.setEnabled( Enable ); } } /** fills the ListBox with all types in the list */ void VTypListEdit::fillBox() { TypListBox.setAutoUpdate( false ); TypListBox.clear(); if( List ) { VTypInfo *TypInfoDummy; for( TypInfoDummy=List->first(); TypInfoDummy; TypInfoDummy=List->next() ) TypListBox.insertItem( TypInfoDummy->localName().data() ); } TypListBox.setAutoUpdate( true ); if( TypListBox.count() == 0 ) selected( -1 ); else { TypListBox.setCurrentItem( 0 ); selected( 0 ); } } dokvok-0.1.3/dokvok/Dialoge/vlistdialog.cpp 644 764 144 14754 7066737351 14030 /*************************************************************************** VListDialog.cpp - description ------------------- begin : Tue Jan 4 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include "vlistdialog.h" VListDialog::VListDialog(QWidget *parent, const char *name) : VDialog(parent,name,true), // the general block General( this ), GeneralLayout( &General, 6, 2, 10 ), TitelEdit( &General ), TitelLabel( &TitelEdit, i18n("&Titel"), &General ), TermTitelEdit( &General ), TermTitelLabel( &TermTitelEdit, i18n("&1. Column"), &General ), TranslationTitelEdit( &General ), TranslationTitelLabel( &TranslationTitelEdit, i18n("&2. Column"), &General ), TermLanguageBox( 0, &General ), TranslationLanguageBox( 0, &General ), // the additional block Additional( this ), AdditionalLayout( &Additional, 7, 2, 10 ), CommentEdit( &Additional ), CommentLabel( &CommentEdit, i18n("&Comment"), &Additional ), KeyWordsEdit( &Additional ), KeyWordsLabel( &KeyWordsEdit, i18n("&Keywords"), &Additional ), AuthorEdit( &Additional ), AuthorLabel( &AuthorEdit, i18n("&Author"), &Additional ) { setLayout(); // set Inputdefaults TitelEdit.setFocus(); } VListDialog::~VListDialog() { } /** sets the layout */ void VListDialog::setLayout() { setCaption( i18n("Properties of the list") ); // the global layout Layout.addWidget( &General ); Layout.addWidget( &Additional, 10 ); // the general box General.setTitle( i18n( "General" ) ); // GeneralLayout.addRowSpacing( 0, fontMetrics().height() ); GeneralLayout.addWidget( &TitelLabel, 1, 0, AlignLeft); GeneralLayout.addMultiCellWidget( &TitelEdit, 2,2,0,1 ); GeneralLayout.addWidget( &TermTitelLabel, 3, 0, AlignLeft ); GeneralLayout.addWidget( &TermTitelEdit, 4, 0 ); GeneralLayout.addWidget( &TranslationTitelLabel, 3, 1, AlignLeft ); GeneralLayout.addWidget( &TranslationTitelEdit, 4, 1 ); GeneralLayout.addWidget( &TermLanguageBox, 5, 0 ); GeneralLayout.addWidget( &TranslationLanguageBox, 5, 1 ); /* KQuickHelp::add( &General, i18n("Here a comment can be given\nto have some information about the list.\n\nAs you may have noticed,\nthis is displayed in the windowtitel.\n\n" \ "The two columns and the author can also be named.")); */ // the titel edit TitelEdit.setFixedHeight( TitelEdit.sizeHint().height() ); TitelEdit.setMinimumWidth( TitelEdit.sizeHint().width() ); TitelLabel.setFixedSize( TitelLabel.sizeHint() ); // the term titel edit TermTitelEdit.setFixedHeight( TermTitelEdit.sizeHint().height() ); TermTitelLabel.setFixedSize( TermTitelLabel.sizeHint() ); // the translation column edit TranslationTitelEdit.setFixedHeight( TranslationTitelEdit.sizeHint().height() ); TranslationTitelLabel.setFixedSize( TranslationTitelLabel.sizeHint() ); // the language selection TermLanguageBox.setMinimumSize( TermLanguageBox.sizeHint() ); TranslationLanguageBox.setMinimumSize( TranslationLanguageBox.sizeHint() ); GeneralLayout.activate(); // the additional box Additional.setTitle( i18n( "Additional" ) ); //TODO: fix distance setting to upper border and the boxtitel // AdditionalLayout.addRowSpacing( 0, fontMetrics().height() ); AdditionalLayout.addWidget( &CommentLabel, 1, 0, AlignLeft); AdditionalLayout.addMultiCellWidget( &CommentEdit, 2, 2, 0, 1 ); AdditionalLayout.setRowStretch( 2, 1 ); AdditionalLayout.addWidget( &KeyWordsLabel, 3, 0, AlignLeft ); AdditionalLayout.addMultiCellWidget( &KeyWordsEdit, 4,4,0,1 ); AdditionalLayout.addWidget( &AuthorLabel, 5, 0, AlignLeft ); AdditionalLayout.addMultiCellWidget( &AuthorEdit, 6,6,0,1 ); // the comment edit QFontMetrics CEFontMetrics( CommentEdit.fontMetrics() ); CommentEdit.setMinimumSize( CEFontMetrics.width("0")*24, CEFontMetrics.lineSpacing()*3); CommentLabel.setFixedSize( CommentLabel.sizeHint() ); // the keywords edit KeyWordsEdit.setFixedHeight( KeyWordsEdit.sizeHint().height() ); KeyWordsLabel.setFixedSize( KeyWordsLabel.sizeHint() ); // the author edit AuthorEdit.setFixedHeight( AuthorEdit.sizeHint().height() ); AuthorLabel.setFixedSize( AuthorLabel.sizeHint() ); AdditionalLayout.activate(); finishLayout(); } /** opens the dialog and returns true if anything was modified * TODO: if anything is default it will be selected to have quick deleting */ bool VListDialog::wasModified( const QString &Titel, const QString &TermTitel, const QString &TranslationTitel, const QString &TermLanguage, const QString &TranslationLanguage, const QString &Comment, const QString &KeyWords, const QString &Author ) { TitelEdit.setText( Titel ); TermTitelEdit.setText( TermTitel ); TranslationTitelEdit.setText( TranslationTitel ); CommentEdit.setText( Comment ); KeyWordsEdit.setText( KeyWords ); AuthorEdit.setText( Author ); VLanguageList *LanguageList = new VLanguageList(); TermLanguageBox.fill( LanguageList ); TermLanguageBox.setLanguage( TermLanguage ); TranslationLanguageBox.fill( LanguageList ); TranslationLanguageBox.setLanguage( TranslationLanguage ); /* if( Comment == i18n("no comment") ) CommentEdit.selectAll(); if( TermColumnTitel == i18n("Term") ) TermColumnEdit.selectAll(); if( TranslationColumnTitel == i18n("Translation") ) TranslationColumnEdit.selectAll(); if( Author == i18n("Author") ) AuthorEdit.selectAll(); didn't work; seems there can only be one text marked at the same time */ return exec(); } dokvok-0.1.3/dokvok/Dialoge/vlangdialog.cpp 644 764 144 17505 7066710333 13762 /*************************************************************************** languageedit.cpp - description ------------------- begin : Tue Mar 21 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include "veditdialog.h" #include "vlangdialog.h" VLanguagesDialog::VLanguagesDialog(QWidget *parent, const char *name ) : VDialog(parent,name), // the language select row LanguageLayout(), LanguageControl( this ), LanguageBox( 0, this ), // the general block General( this ), GeneralLayout( &General, 10 ), NameEdit( &General ), NameLabel( &NameEdit, i18n("&Name"), &General ), ShortEdit( &General ), ShortLabel( &ShortEdit, i18n("&Short"), &General ), FontLayout(), FontSelect( &General ), FontEdit( &General ), FontLabel( &FontEdit, i18n("&Font"), &General ), TypListEdit( 0, this ) { setLayout(); List = new VLanguageList( false ); LanguageBox.fill( List ); LanguageBox.setCurrentItem( 0 ); selected( 0 ); connect( &LanguageBox, SIGNAL(activated(int)), SLOT(selected(int)) ); connect( &NameEdit, SIGNAL(textChanged(const char*)), SLOT(refreshBox(const char*)) ); connect( &FontSelect, SIGNAL(clicked()), SLOT(selectFont()) ); connect( New, SIGNAL(clicked()), SLOT(createLanguage()) ); connect( Delete, SIGNAL(clicked()), SLOT(deleteLanguage()) ); } VLanguagesDialog::~VLanguagesDialog() { } /** */ void VLanguagesDialog::edit() { if( exec() ) { List->write(); } } /** */ void VLanguagesDialog::setLayout() { setCaption( i18n("Languages") ); // the global layout Layout.addLayout( &LanguageLayout ); Layout.addWidget( &General ); Layout.addWidget( &TypListEdit ); // the language box LanguageLayout.addWidget( &LanguageControl ); LanguageLayout.addWidget( &LanguageBox, 1 ); New = LanguageControl.addButton( i18n("&New") ); Delete = LanguageControl.addButton( i18n("&Delete") ); LanguageControl.layout(); // the general box General.setTitle( i18n( "General" ) ); GeneralLayout.addSpacing( fontMetrics().height() ); GeneralLayout.addWidget( &ShortLabel, 0, AlignLeft ); GeneralLayout.addWidget( &ShortEdit ); GeneralLayout.addWidget( &NameLabel, 0, AlignLeft ); GeneralLayout.addWidget( &NameEdit ); GeneralLayout.addWidget( &FontLabel, 0, AlignLeft ); GeneralLayout.addLayout( &FontLayout ); FontLayout.addWidget( &FontSelect ); FontLayout.addWidget( &FontEdit, 1 ); // the name edit NameLabel.setFixedSize( NameLabel.sizeHint() ); NameEdit.setFixedHeight( NameEdit.sizeHint().height() ); NameEdit.setMinimumWidth( NameEdit.sizeHint().width() ); // the short edit ShortLabel.setFixedSize( ShortLabel.sizeHint() ); ShortEdit.setFixedHeight( ShortEdit.sizeHint().height() ); ShortEdit.setMinimumWidth( ShortEdit.sizeHint().width() ); ShortEdit.setFocusPolicy( QWidget::NoFocus ); ShortEdit.setCursor( arrowCursor ); // the font edit FontLabel.setFixedSize( FontLabel.sizeHint() ); FontEdit.setFixedHeight( FontEdit.sizeHint().height() ); FontEdit.setMinimumWidth( FontEdit.sizeHint().width() ); KPixmap Pix; Pix.load( KApplication::kde_toolbardir() + "/text.xpm" ); FontSelect.setPixmap( Pix ); FontSelect.setMinimumHeight( FontEdit.sizeHint().height() ); FontSelect.setMinimumWidth( Pix.width()+4 ); finishLayout(); } /** */ void VLanguagesDialog::refreshBox( const char* Name ) { LanguageBox.changeItem( Name, LanguageBox.currentItem() ); LanguageBox.update(); VLanguage *Language = List->at( LanguageBox.currentItem() ); if( Language ) Language->Name = Name; } /** */ void VLanguagesDialog::selected( int Index ) { if( List->isEmpty() ) Index = -1; bool Enable = (Index != -1); if( General.isEnabled() != Enable ) { General.setEnabled( Enable ); ShortEdit.setEnabled( Enable ); NameEdit.setEnabled( Enable ); FontEdit.setEnabled( Enable ); ShortLabel.setEnabled( Enable ); NameLabel.setEnabled( Enable ); FontLabel.setEnabled( Enable ); FontSelect.setEnabled( Enable ); Delete->setEnabled( Enable ); LanguageBox.setEnabled( Enable ); TypListEdit.setEnabled( Enable ); } fill( Index ); } /** */ void VLanguagesDialog::fill( int Index ) { if( Index == -1 ) { ShortEdit.setText( "" ); NameEdit.setText( "" ); FontEdit.setText( "" ); TypListEdit.setList( 0 ); } else { VLanguage *Language = List->at( Index ); ShortEdit.setText( Language->Short ); NameEdit.setText( Language->Name ); displayFont( Language->Font ); TypListEdit.setList( &Language->TypInfoList ); } } void VLanguagesDialog::selectFont() { int Index = LanguageBox.currentItem(); VLanguage *Language = List->at( Index ); QFont Font = Language->Font; if( KFontDialog::getFont( Font ) ) { displayFont( Font ); Language->Font = Font; } } void VLanguagesDialog::createLanguage() { QString Short = ""; if( !VEditDialog::edit( Short,i18n("Short"),this,0) ) return; if( Short.isEmpty() ) { KMsgBox::message( this, i18n("Sorry"), i18n("An empty Code is not possible."), KMsgBox::STOP ); return; } LanguageBox.appendNew( Short ); } void VLanguagesDialog::deleteLanguage() { QString Question = NameEdit.text(); Question = i18n("Are you sure that you want\nto delete the language ") + Question + "?"; if( KMsgBox::yesNo( 0L, i18n("Resurance"), Question, KMsgBox::QUESTION ) == 2 ) return; LanguageBox.deleteCurrent(); } void VLanguagesDialog::displayFont( QFont &Font ) { QString Text; QString Size; if( Font.bold() ) Text = i18n("-Bold"); if( Font.italic() ) Text = i18n("-Italic") + Text; else Text = i18n("-Roman") + Text; // charset QString CharSet; switch( Font.charSet() ) { case QFont::AnyCharSet: CharSet = "*"; break; case QFont::Latin1: CharSet = "ISO8859-1"; break; case QFont::Latin2: CharSet = "ISO8859-2"; break; case QFont::Latin3: CharSet = "ISO8859-3"; break; case QFont::Latin4: CharSet = "ISO8859-4"; break; case QFont::Latin5: CharSet = "ISO8859-5"; break; case QFont::Latin6: CharSet = "ISO8859-6"; break; case QFont::Latin7: CharSet = "ISO8859-7"; break; case QFont::Latin8: CharSet = "ISO8859-8"; break; case QFont::Latin9: CharSet = "ISO8859-9"; break; case QFont::KOI8R: CharSet = "KOI8-R"; break; default: CharSet = "*"; } Text = Font.family() + Text+", " + Size.setNum( Font.pointSize() ) + ", " + CharSet; Text[0] = Text.left(1).upper().at(0); FontEdit.setText( Text ); FontEdit.setFont( Font ); FontEdit.setFixedHeight( FontEdit.sizeHint().height() ); FontSelect.setMinimumHeight( FontEdit.sizeHint().height() ); }dokvok-0.1.3/dokvok/Dialoge/dokvokdialog.cpp 644 764 144 10101 7066454470 14140 /*************************************************************************** dokvokDialog.cpp - description ------------------- begin : Wed Jan 12 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include "dokvokdialog.h" DokVokDialog::DokVokDialog(QWidget *parent, const char *name) : VDialog( parent, name), General( this ), GeneralLayout( &General, 10 ), DirectoryLayout(), DirectoryEdit( &General, "StandardDirectoryEdit" ), DirectoryLabel( &DirectoryEdit, i18n("&Standard Directory"), &General ), Select( &General ), AutoLoadLastFileCheck( &General ) { setLayout(); // power to the buttons connect( &Select, SIGNAL(clicked()), SLOT(slotDirectorySelect()) ); // set Inputdefaults DirectoryEdit.setFocus(); } DokVokDialog::~DokVokDialog() { } /** sets the layout */ void DokVokDialog::setLayout() { setCaption( i18n("Properties of DokVok") ); // the general box General.setTitle( i18n( "General" ) ); GeneralLayout.addSpacing( fontMetrics().height() ); // to gain distance to box titel GeneralLayout.addWidget( &DirectoryLabel, 0, AlignLeft ); GeneralLayout.addLayout( &DirectoryLayout ); GeneralLayout.addWidget( &AutoLoadLastFileCheck ); GeneralLayout.addStretch(); DirectoryLayout.addWidget( &DirectoryEdit, 1 ); DirectoryLayout.addWidget( &Select ); // the standard directory edit DirectoryLabel.setFixedSize( DirectoryLabel.sizeHint() ); QFontMetrics SDFontMetrics( DirectoryEdit.fontMetrics()); DirectoryEdit.setFixedHeight( DirectoryEdit.sizeHint().height() ); DirectoryEdit.setMinimumWidth( SDFontMetrics.width("0")*55 ); KPixmap Pix; Pix.load( KApplication::kde_toolbardir() + "/fileopen.xpm" ); Select.setPixmap( Pix ); Select.setMinimumHeight( DirectoryEdit.sizeHint().height() ); Select.setFixedWidth( Pix.width()+4 ); // the autoload last file checker AutoLoadLastFileCheck.setText( i18n("Start with last file") ); AutoLoadLastFileCheck.setFixedHeight( AutoLoadLastFileCheck.sizeHint().height() ); AutoLoadLastFileCheck.setMinimumWidth( AutoLoadLastFileCheck.sizeHint().width() ); GeneralLayout.activate(); Layout.addWidget( &General ); finishLayout(); } /** opens the dialog and returns true if anything was modified * TODO: if anything is default it will be selected to have quick deleting */ bool DokVokDialog::wasModified( QString StandardDirectory, bool AutoLoadLastFile ) { DirectoryEdit.setText( StandardDirectory ); AutoLoadLastFileCheck.setChecked( AutoLoadLastFile ); return exec(); } void DokVokDialog::slotDirectorySelect() { QString DirectoryName; bool Done = false; while( !Done ) { DirectoryName = KDirDialog::getDirectory( DirectoryEdit.text() ); if (!DirectoryName.isEmpty()) { if( !QFileInfo( DirectoryName ).isDir() ) { Done = ( 1 != KMsgBox::yesNo( this, i18n("Warning"), i18n("The selected file is not a directory. Please choose a directory."), 0, i18n("Back"), i18n("Cancel") ) ); } else { DirectoryEdit.setText( DirectoryName ); Done = true; } } else Done = true; } } dokvok-0.1.3/dokvok/Dialoge/vlangbox.cpp 644 764 144 5514 7066471014 13270 /*************************************************************************** vlangbox.cpp - description ------------------- begin : Mon Mar 20 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include "vlangbox.h" VLanguageBox::VLanguageBox( VLanguageList *List, QWidget *parent, const char *name ) : QComboBox(parent,name), LanguageList( 0 ) { fill( List ); } VLanguageBox::~VLanguageBox() { } void VLanguageBox::fill( VLanguageList *NewList = 0 ) { // if there is a new List take it if( NewList ) LanguageList = NewList; // if there is no list still return if( !LanguageList ) return; clear(); VLanguage *Language; for( Language=LanguageList->first(); Language; Language=LanguageList->next() ) insertItem ( Language->Name ); } void VLanguageBox::appendNew( QString Short ) { if( !LanguageList ) return; VLanguage *Language = LanguageList->appendNew( Short ); if( Language ) { insertItem( Language->Name ); int Index = count()-1; setCurrentItem( Index ); emit activated( Index ); } } void VLanguageBox::deleteCurrent() { if( !LanguageList ) return; QString FileName = KApplication::localkdedir().copy(); FileName += "/share/apps/dokvok/languages/"; FileName += language(); FileName += ".dvlc"; //DokVok Language Config QFile::remove( FileName ); int Index = currentItem(); LanguageList->remove( Index ); removeItem( Index ); if( Index >= count() ) Index = count() - 1; setCurrentItem( Index ); emit activated( Index ); } const QString VLanguageBox::language() { return LanguageList->at( currentItem() )->Short; } void VLanguageBox::setLanguage( const QString &Short ) { int Index = 0; VLanguage *Language; for( Language=LanguageList->first(); Language; Language=LanguageList->next() ) { if( Short == Language->Short ) { setCurrentItem( Index ); break; } Index++; } }dokvok-0.1.3/dokvok/Dialoge/veditdialog.cpp 644 764 144 3542 7066455474 13756 /*************************************************************************** veditdialog.cpp - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "veditdialog.h" VEditDialog::VEditDialog( QString &LabelText, QWidget *parent, const char *name ) : VDialog( parent,name ), EditLine( this ), Label( &EditLine, LabelText, this ) { Layout.addWidget( &Label, 0, AlignLeft ); Layout.addWidget( &EditLine ); EditLine.setFixedHeight( EditLine.sizeHint().height() ); EditLine.setMinimumWidth( EditLine.sizeHint().width() ); Label.setFixedSize( Label.sizeHint() ); finishLayout(); EditLine.setFocus(); } VEditDialog::~VEditDialog() { } bool VEditDialog::edit( QString &Text, QString LabelText, QWidget *parent=0, const char *caption=0 ) { VEditDialog *Dialog = new VEditDialog( LabelText,parent); Dialog->setText( Text ); bool Accepted = Dialog->exec(); if( Accepted ) Text = Dialog->text(); delete Dialog; return Accepted; } dokvok-0.1.3/dokvok/Dialoge/vdialog.cpp 644 764 144 3714 7066452200 13071 /*************************************************************************** vdialog.cpp - description ------------------- begin : Tue Mar 21 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "vdialog.h" VDialog::VDialog( QWidget *parent=0, const char *name=0, bool modal = true ) : QDialog( parent, name, modal ), Layout( this, 10 ), ButtonRow( this ) { } VDialog::~VDialog() { } /** sets the layout */ void VDialog::finishLayout() { // to separate the buttonrow Layout.addSpacing( 10 ); Layout.addStretch( 1 ); Layout.addWidget( &ButtonRow, 0, AlignBottom ); // buttonrow at bottom of Window ButtonRow.addStretch(); // push buttons to the right side Ok = ButtonRow.addButton( i18n("&Ok") ); Cancel = ButtonRow.addButton( i18n("&Cancel") ); ButtonRow.layout(); // finally set the arrangment Layout.activate(); // power to the buttons connect( Ok, SIGNAL(clicked()), SLOT(accept()) ); connect( Cancel, SIGNAL(clicked()), SLOT(reject()) ); // set Inputdefaults Ok->setDefault(true); // yes, all should be able to be default Ok->setAutoDefault(true); } dokvok-0.1.3/dokvok/Dialoge/vdialog.h 644 764 144 3073 7066737130 12544 /*************************************************************************** vdialog.h - description ------------------- begin : Tue Mar 21 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VDIALOG_H #define VDIALOG_H #include #include #include /**a dialog, ok and cancel ready *@author Friedrich W. H. Kossebau */ class VDialog : public QDialog { Q_OBJECT public: VDialog(QWidget *parent=0, const char *name=0, bool modal = true ); ~VDialog(); protected: /** finishes the layout */ void finishLayout(); protected: QVBoxLayout Layout; // button row at bottom KButtonBox ButtonRow; QPushButton *Cancel; QPushButton *Ok; }; #endif dokvok-0.1.3/dokvok/Dialoge/veditdialog.h 644 764 144 3255 7066467645 13427 /*************************************************************************** veditdialog.h - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VEDITDIALOG_H #define VEDITDIALOG_H #include #include #include "vdialog.h" /**a dialog that asks for an input *@author Friedrich W. H. Kossebau */ class VEditDialog : public VDialog { Q_OBJECT public: VEditDialog( QString &LabelText, QWidget *parent=0, const char *name=0 ); ~VEditDialog(); static bool edit( QString &Text, QString LabelText, QWidget *parent=0, const char *caption=0 ); protected: QString text() { return EditLine.text(); } void setText( QString &NewText ) { if( NewText ) EditLine.setText(NewText); } protected: QLineEdit EditLine; QLabel Label; }; #endif dokvok-0.1.3/dokvok/Dialoge/vlangbox.h 644 764 144 3142 7066471716 12741 /*************************************************************************** vlangbox.h - description ------------------- begin : Mon Mar 20 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VLANGBOX_H #define VLANGBOX_H #include #include "../vlanguage.h" /**a combobox which shows usable languages *@author Friedrich W. H. Kossebau */ class VLanguageBox : public QComboBox { Q_OBJECT public: VLanguageBox( VLanguageList *List = 0, QWidget *parent=0, const char *name=0); ~VLanguageBox(); const QString language(); void setLanguage( const QString &Short ); void fill( VLanguageList *NewList = 0 ); void appendNew( QString Short ); void deleteCurrent(); protected: VLanguageList *LanguageList; }; #endif dokvok-0.1.3/dokvok/Dialoge/dokvokdialog.h 644 764 144 4276 7066454414 13603 /*************************************************************************** dokvokDialog.h - description ------------------- begin : Wed Jan 12 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef DOKVOKDIALOG_H #define DOKVOKDIALOG_H #include #include #include #include #include #include "vdialog.h" /** *@author Friedrich W. H. Kossebau */ class DokVokDialog : public VDialog { Q_OBJECT public: DokVokDialog(QWidget *parent=0, const char *name=0); ~DokVokDialog(); /** opens the dialog and returns true if anything was modified * TODO: if anything is default it will be selected to have quick deleting */ bool wasModified( QString StandardDirectory, bool AutoLoadLastFile ); /** returns the comment */ QString standardDirectory() { return DirectoryEdit.text(); }; /** returns the state of AutoLoadLastFile*/ bool autoLoadLastFile() { return AutoLoadLastFileCheck.isChecked(); }; protected: /** sets the layout */ void setLayout(); protected: // general box QGroupBox General; QVBoxLayout GeneralLayout; QHBoxLayout DirectoryLayout; QLineEdit DirectoryEdit; QLabel DirectoryLabel; QPushButton Select; QCheckBox AutoLoadLastFileCheck; protected slots: void slotDirectorySelect(); private: }; #endif dokvok-0.1.3/dokvok/Dialoge/vlangdialog.h 644 764 144 4304 7066522121 13374 /*************************************************************************** languageedit.h - description ------------------- begin : Tue Mar 21 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef LANGUAGESEDIT_H #define LANGUAGESEDIT_H #include #include #include #include "vdialog.h" #include "vlangbox.h" #include "vtypedit.h" /** *@author Friedrich W. H. Kossebau */ class VLanguagesDialog : public VDialog { Q_OBJECT public: VLanguagesDialog(QWidget *parent=0, const char *name=0); ~VLanguagesDialog(); void edit(); protected: QHBoxLayout LanguageLayout; KButtonBox LanguageControl; QPushButton *New; QPushButton *Delete; VLanguageBox LanguageBox; QGroupBox General; QVBoxLayout GeneralLayout; QLineEdit NameEdit; QLabel NameLabel; QLineEdit ShortEdit; QLabel ShortLabel; QHBoxLayout FontLayout; QPushButton FontSelect; QLineEdit FontEdit; QLabel FontLabel; VTypListEdit TypListEdit; VLanguageList *List; protected: // Protected methods /** */ void setLayout(); void fill( int Index ); void displayFont( QFont &Font ); protected slots: void selected( int Index ); void refreshBox( const char* Name ); void selectFont(); void createLanguage(); void deleteLanguage(); }; #endif dokvok-0.1.3/dokvok/Dialoge/vlistdialog.h 644 764 144 6455 7066737620 13453 /*************************************************************************** listpropedit.h - description ------------------- begin : Tue Jan 4 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VLISTDIALOG_H #define VLISTDIALOG_H #include #include #include #include #include "vdialog.h" #include "vlangbox.h" /** *@author Friedrich W. H. Kossebau */ class VListDialog : public VDialog { Q_OBJECT public: VListDialog( QWidget *parent=0, const char *name=0 ); ~VListDialog(); /** opens the dialog and returns true if anything was modified */ bool wasModified( const QString &Titel, const QString &TermTitel, const QString &TranslationTitel, const QString &TermLanguage, const QString &TranslationLanguage, const QString &Comment, const QString &KeyWords, const QString &Author ); protected: /** sets the layout */ void setLayout(); protected: // the general block QGroupBox General; QGridLayout GeneralLayout; QLineEdit TitelEdit; QLabel TitelLabel; QLineEdit TermTitelEdit; QLabel TermTitelLabel; QLineEdit TranslationTitelEdit; QLabel TranslationTitelLabel; VLanguageBox TermLanguageBox; VLanguageBox TranslationLanguageBox; // layout of the block additional QGroupBox Additional; QGridLayout AdditionalLayout; QMultiLineEdit CommentEdit; QLabel CommentLabel; QLineEdit KeyWordsEdit; QLabel KeyWordsLabel; QLineEdit AuthorEdit; QLabel AuthorLabel; public: /** returns the titel */ const QString titel() { return TitelEdit.text(); }; /** returns the comment */ const QString comment() { return CommentEdit.text(); }; /** returns the keywords */ const QString keyWords() { return KeyWordsEdit.text(); }; /** returns the term column titel */ const QString termTitel() { return TermTitelEdit.text(); }; /** returns the translation column titel */ const QString translationTitel() { return TranslationTitelEdit.text(); } /** returns the term language */ const QString termLanguage() { return TermLanguageBox.language(); }; /** returns the translation language */ const QString translationLanguage() { return TranslationLanguageBox.language(); } /** returns the author */ const QString author() { return AuthorEdit.text(); }; private: VLanguageList *LanguageList; }; #endif dokvok-0.1.3/dokvok/Dialoge/vtypedit.h 644 764 144 4300 7066707723 12766 /*************************************************************************** vtypedit.h - description ------------------- begin : Thu Mar 23 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VTYPEDIT_H #define VTYPEDIT_H #include #include #include #include #include #include #include "../vtyplist.h" /** *@author Friedrich W. H. Kossebau */ class VTypListEdit : public QGroupBox { Q_OBJECT public: VTypListEdit( VTypInfoList *GivenList = 0, QWidget *parent=0, const char *name=0 ); ~VTypListEdit(); void setList( VTypInfoList *GivenList ); virtual void setEnabled ( bool Enable ); protected: void setLayout(); void fillBox(); protected slots: void refreshLocalName( const char *Text ); void refreshSymbol( const char *Text ); void createTyp(); void deleteTyp(); void selected( int Index ); protected: QVBoxLayout Layout; QHBoxLayout TypLayout; QListBox TypListBox; QVBoxLayout LeftLayout; KButtonBox TypControl; QPushButton *New; QPushButton *Delete; // edit QLineEdit NameEdit; QLabel NameLabel; QLineEdit LocalNameEdit; QLabel LocalNameLabel; QLineEdit SymbolEdit; QLabel SymbolLabel; VTypInfoList *List; VTypInfo *TypInfo; }; #endif dokvok-0.1.3/dokvok/Abfrage/ 777 764 144 0 7070117411 10717 5dokvok-0.1.3/dokvok/Abfrage/Makefile.in 644 764 144 27552 7070117411 13013 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ INCLUDES = $(all_includes) libAbfrage_a_METASOURCES = dokvokfigure.moc.cpp vabfragedialog.moc.cpp vabfrage.moc.cpp vchecker.moc.cpp vquestdialog.moc.cpp noinst_LIBRARIES = libAbfrage.a libAbfrage_a_SOURCES = vquestdialog.cpp vstring.cpp vchecker.cpp vabfragedialog.cpp vabfrage.cpp dokvokfigure.cpp EXTRA_DIST = dokvokfigure.cpp dokvokfigure.h vabfrage.cpp vabfrage.h vabfragedialog.cpp vabfragedialog.h vchecker.cpp vchecker.h vstring.cpp vstring.h vquestdialog.cpp vquestdialog.h mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) DEFS = @DEFS@ -I. -I$(srcdir) -I../.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ libAbfrage_a_LIBADD = libAbfrage_a_OBJECTS = vquestdialog.o vstring.o vchecker.o dokvokfigure.moc.o vabfragedialog.moc.o vabfrage.moc.o vchecker.moc.o vquestdialog.moc.o \ vabfragedialog.o vabfrage.o dokvokfigure.o AR = ar CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best SOURCES = $(libAbfrage_a_SOURCES) OBJECTS = $(libAbfrage_a_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .cpp .lo .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/Abfrage/Makefile cd $(top_srcdir) && perl automoc dokvok-0.1.3/dokvok/Abfrage/Makefile.in Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-noinstLIBRARIES: clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) distclean-noinstLIBRARIES: maintainer-clean-noinstLIBRARIES: .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .s.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .S.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: maintainer-clean-libtool: libAbfrage.a: $(libAbfrage_a_OBJECTS) $(libAbfrage_a_DEPENDENCIES) -rm -f libAbfrage.a $(AR) cru libAbfrage.a $(libAbfrage_a_OBJECTS) $(libAbfrage_a_LIBADD) $(RANLIB) libAbfrage.a .cpp.o: $(CXXCOMPILE) -c $< .cpp.lo: $(LTCXXCOMPILE) -c $< tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/Abfrage distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done dokvokfigure.moc.o: dokvokfigure.moc.cpp dokvokfigure.h dokvokfigure.o: dokvokfigure.cpp ../../config.h dokvokfigure.h vabfragedialog.moc.o: vabfragedialog.moc.cpp vabfragedialog.h \ ../../config.h ../vvokabellist.h ../vvokabel.h ../vtyp.h \ ../vwissen.h dokvokfigure.h vabfrage.h vstring.h vchecker.h vabfragedialog.o: vabfragedialog.cpp vabfragedialog.h ../../config.h \ ../vvokabellist.h ../vvokabel.h ../vtyp.h ../vwissen.h \ dokvokfigure.h vabfrage.h vstring.h vchecker.h vquestdialog.h vabfrage.moc.o: vabfrage.moc.cpp vabfrage.h ../../config.h ../vvokabel.h \ ../vtyp.h ../vwissen.h vstring.h vabfrage.o: vabfrage.cpp vabfrage.h ../../config.h ../vvokabel.h \ ../vtyp.h ../vwissen.h vstring.h ../File/vlangfile.h vchecker.moc.o: vchecker.moc.cpp vchecker.h ../../config.h vstring.h vchecker.o: vchecker.cpp vchecker.h ../../config.h vstring.h vquestdialog.moc.o: vquestdialog.moc.cpp vquestdialog.h vquestdialog.o: vquestdialog.cpp ../../config.h vquestdialog.h \ ../Abfrage/vabfragedialog.h ../Abfrage/../vvokabellist.h \ ../Abfrage/../vvokabel.h ../Abfrage/../vtyp.h \ ../Abfrage/../vwissen.h ../Abfrage/dokvokfigure.h \ ../Abfrage/vabfrage.h ../Abfrage/vstring.h \ ../Abfrage/vchecker.h vstring.o: vstring.cpp vstring.h info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile $(LIBRARIES) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ mostlyclean-libtool mostlyclean-tags \ mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-noinstLIBRARIES distclean-compile \ distclean-libtool distclean-tags distclean-generic \ clean-am -rm -f libtool distclean: distclean-metasources distclean-am maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ maintainer-clean-compile maintainer-clean-libtool \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile mostlyclean-libtool distclean-libtool \ clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvokfigure.moc.cpp: $(srcdir)/dokvokfigure.h $(MOC) $(srcdir)/dokvokfigure.h -o dokvokfigure.moc.cpp vabfragedialog.moc.cpp: $(srcdir)/vabfragedialog.h $(MOC) $(srcdir)/vabfragedialog.h -o vabfragedialog.moc.cpp vabfrage.moc.cpp: $(srcdir)/vabfrage.h $(MOC) $(srcdir)/vabfrage.h -o vabfrage.moc.cpp vchecker.moc.cpp: $(srcdir)/vchecker.h $(MOC) $(srcdir)/vchecker.h -o vchecker.moc.cpp vquestdialog.moc.cpp: $(srcdir)/vquestdialog.h $(MOC) $(srcdir)/vquestdialog.h -o vquestdialog.moc.cpp distclean-metasources: -rm -f dokvokfigure.moc.cpp vabfragedialog.moc.cpp vabfrage.moc.cpp vchecker.moc.cpp vquestdialog.moc.cpp # DO_NOT_USE_AUTOMOC dokvok-0.1.3/dokvok/Abfrage/Makefile.am 644 764 144 1022 7066761424 12760 ####### kdevelop will overwrite this part!!! (begin)########## INCLUDES = $(all_includes) libAbfrage_a_METASOURCES = USE_AUTOMOC noinst_LIBRARIES = libAbfrage.a libAbfrage_a_SOURCES = vquestdialog.cpp vstring.cpp vchecker.cpp vabfragedialog.cpp vabfrage.cpp dokvokfigure.cpp EXTRA_DIST = dokvokfigure.cpp dokvokfigure.h vabfrage.cpp vabfrage.h vabfragedialog.cpp vabfragedialog.h vchecker.cpp vchecker.h vstring.cpp vstring.h vquestdialog.cpp vquestdialog.h ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/Abfrage/vquestdialog.cpp 644 764 144 11543 7066450601 14160 /*************************************************************************** questsettingsedit.cpp - description ------------------- begin : Wed Mar 08 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include "vquestdialog.h" #include "../Abfrage/vabfragedialog.h" // wegen VQuestionSettings VQuestionDialog::VQuestionDialog(QWidget *parent, const char *name) : QDialog( parent, name, true), Layout( this, 10 ), General( this ), GeneralLayout( &General, 10 ), PartialCheck( i18n("&Partial knowledge sufficient"), &General ), SecondChanceCheck( i18n( "&Second Chance" ), &General ), ShowCorrectedInputCheck( i18n( "Show &Corrected Input" ), &General ), CharacterLayout(), UnknownCharacterEdit( &General, "UnknownCharacterEdit" ), UnknownCharacterLabel( &UnknownCharacterEdit, i18n("&Unknown Character"), &General ), ButtonRow( this ) { setLayout(); // power to the buttons connect( Ok, SIGNAL(clicked()), SLOT(accept()) ); connect( Cancel, SIGNAL(clicked()), SLOT(reject()) ); // set Inputdefaults PartialCheck.setFocus(); Ok->setDefault(true); // yes, all should be able to be default Ok->setAutoDefault(true); } VQuestionDialog::~VQuestionDialog() { } /** sets the layout */ void VQuestionDialog::setLayout() { setCaption( i18n("Settings for questioning") ); // the general box General.setTitle( i18n( "General" ) ); // layout for edit: right to the editline is a button for selecting GeneralLayout.addSpacing( fontMetrics().height() ); // to gain distance to box titel GeneralLayout.addWidget( &PartialCheck ); GeneralLayout.addWidget( &SecondChanceCheck ); GeneralLayout.addWidget( &ShowCorrectedInputCheck ); GeneralLayout.addLayout( &CharacterLayout ); // partial PartialCheck.setFixedHeight( PartialCheck.sizeHint().height() ); // second chance SecondChanceCheck.setFixedHeight( SecondChanceCheck.sizeHint().height() ); // show correct input ShowCorrectedInputCheck.setFixedHeight( ShowCorrectedInputCheck.sizeHint().height() ); // unknown character UnknownCharacterLabel.setFixedSize( UnknownCharacterLabel.sizeHint() ); QFontMetrics SDFontMetrics( UnknownCharacterEdit.fontMetrics()); UnknownCharacterEdit.setMaxLength( 1 ); UnknownCharacterEdit.setFixedHeight( UnknownCharacterEdit.sizeHint().height() ); UnknownCharacterEdit.setFixedWidth( SDFontMetrics.width("0")*3 ); CharacterLayout.addWidget( &UnknownCharacterLabel ); CharacterLayout.addSpacing( 10 ); CharacterLayout.addWidget( &UnknownCharacterEdit ); CharacterLayout.addStretch( 1 ); GeneralLayout.activate(); Layout.addWidget( &General ); // to separate the buttonrow Layout.addSpacing( 10 ); Layout.addStretch( 1 ); // buttonrow at bottom of Window ButtonRow.addStretch(); // push buttons to the right side Ok = ButtonRow.addButton( i18n("&Ok") ); Cancel = ButtonRow.addButton( i18n("&Cancel") ); ButtonRow.layout(); Layout.addWidget( &ButtonRow, 0, AlignBottom ); // finally set the arrangment Layout.activate(); } /** opens the dialog and returns true if anything was modified * TODO: if anything is default it will be selected to have quick deleting */ void VQuestionDialog::edit( VQuestionSettings *Settings ) { PartialCheck.setChecked( Settings->CheckerSettings.Partial ); ShowCorrectedInputCheck.setChecked( Settings->ShowCorrectedInput ); SecondChanceCheck.setChecked( Settings->SecondChance ); UnknownCharacterEdit.setText( &Settings->CheckerSettings.UnknownCharacter ); exec(); Settings->CheckerSettings.Partial = PartialCheck.isChecked(); Settings->ShowCorrectedInput = ShowCorrectedInputCheck.isChecked(); Settings->SecondChance = SecondChanceCheck.isChecked(); //TODO: give feedback about empty input for character if( UnknownCharacterEdit.text() ) Settings->CheckerSettings.UnknownCharacter = UnknownCharacterEdit.text()[0]; else Settings->CheckerSettings.UnknownCharacter = '·'; } dokvok-0.1.3/dokvok/Abfrage/vstring.cpp 644 764 144 13637 7062465712 13160 /*************************************************************************** vstring.cpp - description ------------------- { : Tue Feb 15 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ //TODO: think about an entry in the languages for possible letters and marks // which are used to find the words etc. #include #include "vstring.h" VString::VString() : QString() { Letters = 0; } VString::VString( const QString &QS ) : QString( QS ) { Letters = 0; } VString::VString( QRegExp *RegExp ) : QString() { Letters = RegExp; } VString::~VString() { } /** Assigns a deep copy of \a str, interpretted a classic C string to this string and returns a reference to this string. If \a str is 0 a null string is created. \sa isNull()*/ VString &VString::operator=( const char *str ) { QString::operator=( str ); return *this; } /** removes blanks at the end and/or the beginning * void VString::deblank( char where ) CONST Hinten = 1; {3: Vorne und Hinten} Vorne = 2; VAR k : byte absolute kette; e : byte; { IF Welche AND Hinten = Hinten THEN WHILE (kette[k] = ' ') AND (k > 0) DO dec (k); IF Welche AND Vorne = Vorne THEN { e := 0; WHILE (kette[e+1] = ' ') AND (e < k) DO inc (e); delete (kette,1,e); } } */ /** removes part that is included by brackets of type bracket */ VString &VString::delInBrackets( VString::BracketTyp Bracket, int Pos = 0, bool All = false, bool StripOneWhite = true ) { int End = 0; Start: int Length = length() - 1; // well, Pos should be somewhere in the text if( ( Pos > Length ) || ( Pos < 0 ) ) return *this; Schleife1: //cout << "Pos: " << Pos << ", at( Pos ): " << at( Pos ) <<'\n'; // search the opening bracket if( at( Pos ) != OpenBracket[Bracket] ) { if( at( Pos ) == CloseBracket[Bracket] ) goto Ende; if( Pos >= Length ) goto Ende; else { Pos++; goto Schleife1; } } if( Pos == Length ) // opening bracket is at the end, no removing goto Ende; else { // start at next character End = Pos + 1; Schleife2: // search the closing bracket if( at( End ) != CloseBracket[Bracket] ) { if( End < Length ) { // check if there are inner brackets if( at( End ) == OpenBracket[Bracket] ) { delInBrackets( Bracket, End ); Length = length() - 1; } else End++; goto Schleife2; } else End = Length; } } // remove one whitechar if possible if( StripOneWhite ) { if( (Pos > 0) && (at(Pos-1) == ' ') ) Pos--; else if( (End < Length) && (at(End+1) == ' ') ) End++; } // finally cut the found region remove( Pos, End-Pos+1 ); if( All ) goto Start; Ende: return *this; } /** returns true if Letter is in the assigned Letters or if there are no Letters assigned is in a..z or A..Z */ bool VString::isLetter( int Pos ) { // check if inside string if( ( Pos < 0 ) || ( Pos >= (int)length() ) ) return false; char Letter = at(Pos); if( Letters ) { return( Letters->match( &Letter ) != -1 ); } else { return ( ( 'a' <= Letter ) && ( 'z' >= Letter ) ) || ( ( 'A' <= Letter ) && ( 'Z' >= Letter ) ); } } /** searches next left wordbegin from pos, returns pos of first letter or -1 if nothing found or outside of string */ int VString::findLeftWord( int Pos ) { int Length = length()-1; if( (Pos > Length) || (Pos < 0) ) return -1; // is outside string //search word end while( (Pos > -1) && !isLetter( Pos ) ) Pos--; //cout << "Wordend: " << Pos; //word end found? if( Pos > -1 ) { //search word begin while( (Pos > -1) && isLetter( Pos ) ) Pos--; Pos++; // there will always be one step to much } return Pos; } /** searches next word from pos, returns pos of first letter or -1 if nothing found or outside of string */ int VString::findRightWord( int Pos = 0 ) { int Length = length()-1; if( (Pos > Length) || (Pos < 0) ) return -1; // is outside string // find next letter while( ( Pos <= Length) && !isLetter( Pos ) ) Pos++; // none found? if( Pos > Length ) Pos = -1; return Pos; } /** searches next word from pos, returns pos of first letter or -1 if nothing found or outside of string */ int VString::findWordBegin( int Pos = 0 ) { int Length = length()-1; if( (Pos > Length) || (Pos < 0) ) return -1; // is outside string // find next letter while( ( Pos <= Length) && !isLetter( Pos ) ) Pos++; // none found? if( Pos > Length ) Pos = -1; return Pos; } /** searches word end from pos, returns pos of last letter or -1 if nothing found or outside of string */ int VString::findWordEnd( int Pos = 0 ) { int Length = length()-1; // -1 for better operation if( (Pos > Length) || (Pos < 0) ) return -1; // is outside string // search next non-letter while( isLetter( Pos ) && ( Pos <= Length ) ) Pos++; return Pos-1; // as it will stop 1 after the last letter } dokvok-0.1.3/dokvok/Abfrage/vchecker.cpp 644 764 144 14641 7067237605 13255 /*************************************************************************** vchecker.cpp - description ------------------- begin : Sun Feb 20 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vchecker.h" #include VChecker::VChecker( VCheckerSettings *GivenSettings, QObject *parent=0, const char *name=0 ) : QObject(parent,name), Original( "" ) { Settings = GivenSettings; } VChecker::~VChecker() { } /** checks if Input does fit to the original */ void VChecker::check( const QString &Input ) { VCorrectness Correctness; // Input.parse( Input ) if( Input == Original ) Correctness = Right; else if( Input.isEmpty() ) Correctness = NoInput; else { RecognizedInput = recognized( Input ); if( RecognizedInput == Original ) Correctness = PartiallyRight; else if( Settings->Partial && checkPart( Input ) ) Correctness = PartiallyRight; else if( (unsigned int)RecognizedInput.contains('#')+5 < Original.length() ) Correctness = Faulty; else Correctness = Wrong; } emit result( Correctness ); } /** recognizing methods that works in 4 steps: 1. find equal words 2. find equal pairs of characters 3. compare first and last letters as they are not honored by step 2 4. sets marks */ //TODO: implement step 3!!! QString VChecker::recognized( const QString &Input ) { unsigned int OriginalLength = Original.length(); QString KnownOriginal; // inhabits known parts of the original KnownOriginal.fill( Settings->UnknownCharacter, OriginalLength ); QString UsedOriginal; // a mask that blinds used original parts UsedOriginal.fill( ' ', OriginalLength ); QString UsedInput; // a mask that blinds used input parts UsedInput.fill( ' ', Input.length() ); QString Part; int Position; // check presence of words from original: // if contained in input and not used already take them over to known int WordBegin; int WordEnd = -1; while( WordEnd < (int)OriginalLength ) { WordBegin = Original.findWordBegin( WordEnd+1 ); if( WordBegin == -1 ) { WordEnd = OriginalLength; } else { WordEnd = Original.findWordEnd( WordBegin ); int WordLength = WordEnd-WordBegin+1; Part = Original.mid( WordBegin, WordLength ); Position = Input.find( Part, 0, false ); if( Position != -1 ) // word from original is found in input { if( UsedInput.mid(Position, WordLength).find('#') == -1 ) // not used already { KnownOriginal.replace( WordBegin, WordLength, Part ); // set used part to used Part.fill( '#', WordLength ); UsedOriginal.replace( WordBegin, WordLength, Part ); UsedInput.replace( Position, WordLength, Part ); } } } } // check all pairs of characters from original: // if contained in input and not used already take them over to known unsigned int Number; QString Mask; unsigned int Index; for( Number = 4; Number > 1; Number-- ) { unsigned int LastPair = OriginalLength - Number; Mask.fill( '#', Number ); for( Index = 0; Index <= LastPair; Index++ ) { Part = Original.mid( Index, Number ); Position = Input.find( Part, 0, false ); if( Position != -1 ) // pair from original is found in input { if( (UsedOriginal.mid( Index, Number ) != Mask ) && (UsedInput.mid( Position, Number ).find( '#' ) == -1) ) // not used yet { KnownOriginal.replace( Index, Number, Part ); // only set first character as used UsedOriginal[Index] = '#'; UsedInput[Position] = '#'; } } } } // check first and last letters // set all known marks static const QString AllMarks = " ,;.()-:+/?'!\""; for( Index = 0; Index < OriginalLength; Index++ ) { char Character = Original[Index]; if( AllMarks.find(Character) != -1 ) { // write mark KnownOriginal[Index] = Character; } } return KnownOriginal; } /** divides Original in parts, given by separators, and compares with input returns true if one is in the answer (should be turned to equal) */ bool VChecker::checkPart( const QString &Input ) { VString Text = Input.copy(); const char Mark[3] = { ';', ',', '/' }; // remove additional entries Text.delInBrackets ( VString::Curved ); //TODO: Make this configurable (-> languages ) Text.delInBrackets ( VString::Round ); bool PartIsCorrect = false; int Pos; int Length = Text.length() - 1; // so Length starts with 0 int MarkIndex; // separate by all given marks and compare parts with input for( MarkIndex = 1; MarkIndex < 3; MarkIndex++ ) { Pos = 0; while( Pos <= Length ) // go through the whole text { // ignore any characters in front of the next word int WordBegin = Text.findWordBegin( Pos ); if( WordBegin == -1 ) // no more words after Pos, so set Pos after end Pos = Length + 1; else { // search next separating mark Pos = Text.find( Mark[MarkIndex], WordBegin ); if( Pos == -1 ) // this part reaches till the end Pos = Length + 1; // compare selected part with input: is part in input? //TODO: think about... would be isequal better? if( Original.find( Text.mid( WordBegin, Pos-WordBegin ) ) != -1 ) PartIsCorrect = true; } } } return PartIsCorrect; } dokvok-0.1.3/dokvok/Abfrage/vabfragedialog.cpp 644 764 144 22511 7067236636 14416 /*************************************************************************** vabfragedialog.cpp - description ------------------- begin : Tue Jan 18 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vabfragedialog.h" #include "vquestdialog.h" VAbfrageDialog::VAbfrageDialog( VVokabelList *VokList, QString GivenLanguage, QString AskLanguage, VQuestionSettings *QSettings, QWidget *parent=0, const char *name=0 ) : QDialog( parent,name,true ), Layout( this, 10 ), AbfrageRahmen( this ), RahmenLayout( &AbfrageRahmen, 10 ), LeftLayout(), Figure( &AbfrageRahmen ), Abfrage( &AbfrageRahmen ), ReportBox( &AbfrageRahmen ), Buttons( this ), Checker( &(QSettings->CheckerSettings) ), GoOn( false ), WasNoInput( false ) { FullList = VokList; UnknownList = new VVokabelList; GivenColumn = 0; AskedColumn = 1; RightSoundFileName = KApplication::kde_datadir() + "/dokvok/sounds/right.wav"; WrongSoundFileName = KApplication::kde_datadir() + "/dokvok/sounds/wrong.wav"; QuestionSettings = QSettings; setLayout(); Abfrage.setLanguage( 0, GivenLanguage ); Abfrage.setLanguage( 1, AskLanguage ); // power to the buttons connect( Cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( Settings, SIGNAL(clicked()), SLOT(editSettings()) ); connect( &Abfrage, SIGNAL( inputFinished( const QString & ) ), &Checker, SLOT( check(const QString & ) ) ); connect( &Abfrage, SIGNAL(confirmed()), SLOT(askNext()) ); connect( &Figure, SIGNAL(looksNormalAgain()), SLOT(reactionFinished()) ); // and power to checker connect( &Checker, SIGNAL( result( VCorrectness ) ), SLOT( answerIs( VCorrectness ) ) ); } VAbfrageDialog::~VAbfrageDialog() { // check if no groups were used and therefor a FullLists list was used if( (FullList != RoundList) && (FullList != UnknownList) ) delete FullList; delete RoundList; delete UnknownList; } /** sets the layout */ void VAbfrageDialog::setLayout() { setCaption( i18n("Learning") ); // layout Layout.addWidget( &AbfrageRahmen, 10 ); Layout.addSpacing( 10 ); Layout.addWidget( &Buttons, 0, AlignBottom ); // the AbfrageRahmen... RahmenLayout.addLayout( &LeftLayout ); RahmenLayout.addWidget( &ReportBox ); LeftLayout.addWidget( &Figure, 0, AlignRight ); LeftLayout.addWidget( &Abfrage ); LeftLayout.addStretch( 1 ); AbfrageRahmen.setFrameStyle( QFrame::Panel | QFrame::Sunken ); AbfrageRahmen.setLineWidth( 1 ); AbfrageRahmen.setBackgroundColor( QColor( 60,207,6) ); AbfrageRahmen.setMinimumHeight( Abfrage.sizeHint().height() ); // DokVok itself... Figure.setMinimumHeight( Figure.sizeHint().height() ); Figure.setBackgroundColor( QColor( 60,207,6) ); // the Abfrage Abfrage.setMinimumHeight( Abfrage.sizeHint().height() ); // the report box ReportBox.setFrameStyle( QFrame::Panel | QFrame::Plain ); ReportBox.setLineWidth( 1 ); ReportBox.setMargin( 10 ); RahmenLayout.activate(); // buttonrow at bottom of Window Help = Buttons.addButton( i18n("&Help") ); Settings = Buttons.addButton( i18n("&Settings") ); Buttons.addStretch(); Cancel = Buttons.addButton( i18n("&Cancel") ); Buttons.layout(); // finally do it! Layout.activate(); } /** */ bool VAbfrageDialog::learn() { KnowledgeChange = false; QuestionSettings->GroupSize = 3; // prepare round list if( QuestionSettings->GroupSize < 1 ) // no group size specified so RoundList gets the whole list RoundList = FullList; else { RoundList = new VVokabelList; fillRoundList(); } if( (Vokabel = RoundList->first()) ) { Round = 1; ask(); show(); } return KnowledgeChange; } /** asks the next vocabel or opens new round if actual is done */ void VAbfrageDialog::askNext() { if( WasNoInput ) WasNoInput = false; else Vokabel = RoundList->next(); if( !Vokabel ) // no vocabel left in the round list { // so clear the list... RoundList->clear(); if( !UnknownList->isEmpty() ) // have the list of unknown as round list and start another round { VVokabelList *Helper = RoundList; RoundList = UnknownList; UnknownList = Helper; Round++; } else if( !FullList->isEmpty() ) // all vocabels of last round are done, but some in the full list aren't yet { fillRoundList(); } Vokabel = RoundList->first(); } // after all, do we have a vocabel to ask? if( Vokabel ) { ReportBox.clear(); Abfrage.setFocusPolicy( QWidget::ClickFocus ); ask(); } else done(0); } /** */ void VAbfrageDialog::ask() { Trial = 1; Checker.setOriginal( Vokabel->string(AskedColumn) ); Abfrage.ask( Vokabel->string(GivenColumn) ); } /** */ void VAbfrageDialog::reportWrongAnswer( const char *Report1, const char *Report2, const char *Report3 ) { if( (QuestionSettings->SecondChance) && (Trial == 1) ) // was only the first try, a second is allowed... { Trial = 2; ReportBox.setText( Report1 ); if( QuestionSettings->ShowCorrectedInput ) Abfrage.askAgain( Checker.recognizedInput(), true ); else Abfrage.askAgain( 0, true ); } else // no, wrong, tell user and ask next { UnknownList->append( Vokabel ); if( (QuestionSettings->SecondChance) ) ReportBox.setText( Report2 ); else ReportBox.setText( Report3 ); Abfrage.askAgain( Vokabel->string(AskedColumn), true, true ); } Figure.lookWrong(); } /** */ void VAbfrageDialog::answerIs( VCorrectness Correctness ) { // adjust knowledge data of vocabel if( Round == 1 ) { if( Correctness < PartiallyRight ) Vokabel->decLevel(); else Vokabel->incLevel(); KnowledgeChange = true; } // AudioServer.play( RightSoundFileName ); // AudioServer.play( WrongSoundFileName ); QString Faulty1TryFailedR = i18n("Faulty.\n\nBut there was\nsomething right...\n\nTry it again."); QString Faulty2TryFailedR = i18n("Still Faulty.\n\nMemorize..."); QString FaultyR = i18n("Faulty.\n\nSomething was right but not enough..."); QString Wrong1TryFailedR = i18n("Wrong.\n\nOne more guess, please!"); QString Wrong2TryFailedR = i18n("Wrong again.\n\nConcentrate."); QString WrongR = i18n("Wrong.\n\nYou had no clue, had you..."); // react switch( Correctness ) { // Melde kurz Erfolg und frage nächste case Right : ReportBox.setText( i18n("Right!") ); GoOn = true; Figure.lookRight(); break; // Entweder melde Erfolg, zeige Richtig an, lasse bestätigen (?) und frage nächste // (oder melde Mißerfolg, zeige Richtig an, lasse bestätigen und gib 2. Chance oder frage nächste) case PartiallyRight : ReportBox.setText( i18n("Right!\n\nAt least it's sufficient.") ); Abfrage.askAgain( Vokabel->string(AskedColumn), true, true ); Figure.lookRight(); break; // Melde Misserfolg, zeige Richtig an, lasse bestätigen und gib 2. Chance oder frage nächste case Faulty : reportWrongAnswer( Faulty1TryFailedR, Faulty2TryFailedR, FaultyR ); break; // Melde Misserfolg, zeige Richtig an, lasse bestätigen und gib 2. Chance oder frage nächste case Wrong : reportWrongAnswer( Wrong1TryFailedR, Wrong2TryFailedR, WrongR ); break; // Melde Misserfolg, zeige Richtig an, lasse bestätigen und frage erneut ab ( wieder Versuch 1, aber ohne Wissenssteigerung? ) case NoInput : ReportBox.setText( i18n("Oh, too sad.\nYou don't know.\n\nWell, look what it was supposed to be...") ); WasNoInput = true; Abfrage.askAgain( Vokabel->string(AskedColumn), true, true ); break; } } /** */ void VAbfrageDialog::editSettings() { VQuestionDialog Dialog; Dialog.edit( QuestionSettings ); } /** moves vocabels from full list to round list according to groupsize */ void VAbfrageDialog::fillRoundList() { int Index; int GroupSize = QuestionSettings->GroupSize; for( Index = 0; Index < GroupSize; Index++ ) { if( !(Vokabel = FullList->take(0)) ) break; RoundList->append( Vokabel ); } } /** */ void VAbfrageDialog::reactionFinished() { if( GoOn ) askNext(); GoOn = false; }dokvok-0.1.3/dokvok/Abfrage/vabfrage.cpp 644 764 144 10317 7067244461 13232 /*************************************************************************** vabfrage.cpp - description ------------------- begin : Tue Jan 18 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vabfrage.h" #include "../File/vlangfile.h" #include VAbfrage::VAbfrage(QWidget *parent, const char *name) : QFrame(parent,name), Layout( this, 6, 1, 10, 0 ), GivenText( this, "GivenText" ), GivenColumn( &GivenText, i18n("Given"), this, "GivenColumn" ), AskingLine( this, "AskingLine" ), AskedColumn( &AskingLine, " ", this, "AskedColumn" ), LastTry( this, "LastTry" ) { setLayout(); // What do when... connect( &AskingLine, SIGNAL( returnPressed() ), SLOT( finish() ) ); } VAbfrage::~VAbfrage(){ } /** sets the layout */ void VAbfrage::setLayout() { setFrameStyle( Panel | Plain ); setLineWidth( 1 ); // layout Layout.addWidget( &GivenColumn, 0, 0, AlignLeft | AlignBottom ); Layout.addWidget( &GivenText, 1, 0 ); Layout.addRowSpacing( 2, 10 ); Layout.addWidget( &AskedColumn, 3, 0, AlignLeft ); Layout.addWidget( &AskingLine, 4, 0 ); Layout.addWidget( &LastTry, 5, 0, AlignLeft | AlignTop ); Layout.setRowStretch( 0, 1 ); Layout.setRowStretch( 5, 1 ); // Given is: GivenText.setFixedHeight( GivenText.sizeHint().height() ); GivenText.setMinimumWidth( GivenText.sizeHint().width() ); GivenText.setFocusPolicy( QWidget::NoFocus ); GivenText.setCursor( arrowCursor ); GivenColumn.setFixedSize( GivenColumn.sizeHint() ); // Asked is: AskedColumn.setFixedHeight( AskedColumn.sizeHint().height() ); AskedColumn.setMinimumWidth( AskedColumn.sizeHint().width() ); AskingLine.setFixedHeight( AskingLine.sizeHint().height() ); AskingLine.setMinimumWidth( AskingLine.sizeHint().width() ); AskingLine.setFocus(); // Last try was: LastTry.setText(" "); LastTry.setMinimumSize( LastTry.sizeHint() ); // Layout is finally prepared Layout.activate(); } /** checks if the input is correct */ void VAbfrage::finish() { if( OnlyConfirmation ) emit confirmed(); else emit inputFinished( AskingLine.text() ); } /** sets the output */ void VAbfrage::setInputLabel() { if( OnlyConfirmation ) AskedColumn.setText( i18n("Right is") ); else AskedColumn.setText( i18n("Asked") ); } /** sets the output */ void VAbfrage::askAgain( QString Answer = 0, bool ShowLastInput = false, bool LetOnlyConfirm = false ) { if( ShowLastInput ) LastTry.setText( AskingLine.text() ); else LastTry.setText( "" ); if( Answer ) AskingLine.setText( Answer ); AskingLine.setFocus(); OnlyConfirmation = LetOnlyConfirm; setInputLabel(); } /** sets the output */ void VAbfrage::ask( QString GivenTerm ) { GivenText.setText( GivenTerm ); LastTry.setText( "" ); AskingLine.setText( "" ); AskingLine.setFocus(); OnlyConfirmation = false; setInputLabel(); } /** */ QSize VAbfrage::sizeHint() const { int Height = 3*AskedColumn.sizeHint().height() + 2*AskingLine.sizeHint().height() + 12; int Width = AskingLine.sizeHint().width(); QSize Size( Width, Height ); return Size; } void VAbfrage::setLanguage( int Line, const char *Language ) { if( Language && (Language != "") ) { VLanguageFile *LanguageFile = new VLanguageFile( Language, true ); if( Line == 0 ) GivenText.setFont( LanguageFile->font() ); else AskingLine.setFont( LanguageFile->font() ); delete LanguageFile; } } dokvok-0.1.3/dokvok/Abfrage/dokvokfigure.cpp 644 764 144 3350 7067231776 14140 /*************************************************************************** dokvokfigure.cpp - description ------------------- begin : Tue Feb 8 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "dokvokfigure.h" DokVokFigure::DokVokFigure(QWidget *parent, const char *name ) : QLabel(parent,name) { // setup normal DokVok DokVokSmiling = new KPixmap; DokVokSmiling->load( KApplication::kde_datadir() + "/dokvok/pics/dokvoksmiling.xpm" ); // setup DokVok signaling Right! DokVokRight = new KPixmap; DokVokRight->load( KApplication::kde_datadir() + "/dokvok/pics/dokvokright.xpm" ); // setup DokVok signaling Wrong! DokVokWrong = new KPixmap; DokVokWrong->load( KApplication::kde_datadir() + "/dokvok/pics/dokvokwrong.xpm" ); // setup Timer Timer = new QTimer( this ); connect( Timer, SIGNAL(timeout()), SLOT(lookNormal()) ); lookNormal(); setFixedSize( 32, 32); } dokvok-0.1.3/dokvok/Abfrage/dokvokfigure.h 644 764 144 3437 7067231774 13611 /*************************************************************************** dokvokfigure.h - description ------------------- begin : Tue Feb 8 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef DOKVOKFIGURE_H #define DOKVOKFIGURE_H #include #include #include /** *@author Friedrich W. H. Kossebau */ class DokVokFigure : public QLabel { Q_OBJECT public: DokVokFigure(QWidget *parent=0, const char *name=0); ~DokVokFigure() {} void lookRight() { setPixmap( *DokVokRight ); Timer->start( 2 * 1000, true ); } void lookWrong() { setPixmap( *DokVokWrong ); Timer->start( 2 * 1000, true ); } public slots: void lookNormal() { setPixmap( *DokVokSmiling ); emit looksNormalAgain(); } signals: void looksNormalAgain(); private: KPixmap *DokVokSmiling; KPixmap *DokVokRight; KPixmap *DokVokWrong; // timer to end reporting QTimer *Timer; }; #endif dokvok-0.1.3/dokvok/Abfrage/vabfrage.h 644 764 144 4146 7067243075 12662 /*************************************************************************** abfrage.h - description ------------------- begin : Tue Jan 18 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VABFRAGE_H #define VABFRAGE_H #include #include #include #include #include #include #include "../vvokabel.h" #include "vstring.h" /** *@author Friedrich W. H. Kossebau */ class VAbfrage : public QFrame { Q_OBJECT public: VAbfrage( QWidget *parent=0, const char *name=0 ); ~VAbfrage(); void askAgain( QString Answer = 0, bool ShowLastInput = false, bool LetOnlyConfirm = false ); void ask( QString GivenTerm ); virtual QSize sizeHint() const; void setLanguage( int Line, const char *Language ); protected: /** sets the layout */ void setLayout(); /** switches label*/ void setInputLabel(); protected slots: // Public slots /** emits returnPressed */ void finish(); protected: QGridLayout Layout; QLineEdit GivenText; QLabel GivenColumn; QLineEdit AskingLine; QLabel AskedColumn; QLabel LastTry; bool OnlyConfirmation; signals: // Signals void inputFinished( const QString & ); void confirmed(); }; #endif dokvok-0.1.3/dokvok/Abfrage/vabfragedialog.h 644 764 144 6230 7067235620 14033 /*************************************************************************** vabfragedialog.h - description ------------------- begin : Tue Jan 18 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VABFRAGEDIALOG_H #define VABFRAGEDIALOG_H #include #include #include #include #include #include #include "../vvokabellist.h" #include "dokvokfigure.h" #include "vabfrage.h" #include "vchecker.h" struct VQuestionSettings { VCheckerSettings CheckerSettings; bool SecondChance; bool ShowCorrectedInput; int GroupSize; }; /** *@author Friedrich W. H. Kossebau */ class VAbfrageDialog : public QDialog { Q_OBJECT public: VAbfrageDialog( VVokabelList *VokList, QString GivenLanguage, QString AskLanguage, VQuestionSettings *QuestionSettings, QWidget *parent=0, const char *name=0 ); ~VAbfrageDialog(); /** */ bool learn(); protected: /** sets the layout */ void setLayout(); void wait(); void ask(); void fillRoundList(); protected slots: void answerIs( VCorrectness ); void reactionFinished(); void reportWrongAnswer( const char *Report1, const char *Report2, const char *Report3 ); protected: // view design QVBoxLayout Layout; QFrame AbfrageRahmen; QHBoxLayout RahmenLayout; QVBoxLayout LeftLayout; DokVokFigure Figure; VAbfrage Abfrage; QLabel ReportBox; KButtonBox Buttons; QPushButton *Help; QPushButton *Settings; QPushButton *Cancel; // checking of knowledge VChecker Checker; VQuestionSettings* QuestionSettings; unsigned int GivenColumn; unsigned int AskedColumn; bool KnowledgeChange; unsigned int Trial; unsigned int Round; bool GoOn; bool WasNoInput; // for vocabel list treatment VVokabelList *FullList; VVokabelList *RoundList; VVokabelList *UnknownList; VVokabel *Vokabel; // sound support // KAudio AudioServer; QString RightSoundFileName; QString WrongSoundFileName; signals: void isModified(); public slots: // Public slots /** asks the next vocabel or opens new round if actual is done */ void askNext(); /** */ void editSettings(); }; #endif dokvok-0.1.3/dokvok/Abfrage/vchecker.h 644 764 144 4517 7067163316 12700 /*************************************************************************** vchecker.h - description ------------------- begin : Sun Feb 20 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VCHECKER_H #define VCHECKER_H #include #include #include "vstring.h" struct VCheckerSettings { bool Partial; char UnknownCharacter; }; /** checks a string whether it meets the given with contribution to settings * @author Friedrich W. H. Kossebau * @short * @see VAbfrageDialog */ enum VCorrectness { Right, PartiallyRight, Faulty, Wrong, NoInput }; class VChecker : public QObject { Q_OBJECT public: VChecker( VCheckerSettings *GivenSettings, QObject *parent=0, const char *name=0 ); ~VChecker(); /** divides Original in parts, given by separators, and compares with input returns true if one is in the answer (should be turned to equal) */ bool checkPart( const QString &Input ); /** sets new original */ void setOriginal( const VString &NewOriginal ) { Original = NewOriginal; } QString &recognizedInput() { return RecognizedInput; } public slots: /** checks if Input does fit to the original */ void check( const QString &Input ); protected: QString recognized( const QString &Input ); protected: VString Original; QString RecognizedInput; VCheckerSettings *Settings; signals: // Signals void result( VCorrectness ); }; #endif dokvok-0.1.3/dokvok/Abfrage/vstring.h 644 764 144 4727 7062465712 12605 /*************************************************************************** vstring.h - description ------------------- begin : Tue Feb 15 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VSTRING_H #define VSTRING_H #include #include /**has some extra abilities like word recognition *@author Friedrich W. H. Kossebau */ static const char OpenBracket[3] = { '(', '[', '{'}; static const char CloseBracket[3] = { ')', ']', '}'}; class VString : public QString { public: enum BracketTyp { Round, Angular, Curved }; VString(); VString( const QString &QS ); VString( QRegExp* RegExp ); ~VString(); VString & operator=( const char *str ); /** removes part that is included by brackets of type bracket */ VString &delInBrackets( VString::BracketTyp Bracket, int Pos = 0, bool All = false, bool StripOneWhite = true ); /** finds the */ int findWordBegin( int Pos = 0 ); /** searches word end from pos, returns pos of last letter or -1 if nothing found or outside of string */ int findWordEnd( int Pos = 0 ); /** searches next word from pos, returns pos of first letter or -1 if nothing found or outside of string */ int findRightWord( int Pos = 0 ); /** searches next left wordbegin from pos, returns pos of first letter or -1 if nothing found or outside of string */ int findLeftWord( int Pos ); // protected: //methods /** returns true if Letter is in the assigned Letters or if there are no Letters assigned is in a..z or A..Z */ bool isLetter( int Pos ); protected: /** */ QRegExp *Letters; }; #endif dokvok-0.1.3/dokvok/Abfrage/vquestdialog.h 644 764 144 4341 7066445413 13610 /*************************************************************************** questsettingsedit.h - description ------------------- begin : Wed Mar 08 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef QUESTSETTINGSEDIT_H #define QUESTSETTINGSEDIT_H #include #include #include #include #include #include #include #include #include #include /** *@author Friedrich W. H. Kossebau */ struct VQuestionSettings; class VQuestionDialog : public QDialog { Q_OBJECT public: VQuestionDialog(QWidget *parent=0, const char *name=0); ~VQuestionDialog(); /** opens the dialog and returns true if anything was modified * TODO: if anything is default it will be selected to have quick deleting */ void edit( VQuestionSettings *Settings ); protected: /** sets the layout */ void setLayout(); protected: QVBoxLayout Layout; // the group general QGroupBox General; QVBoxLayout GeneralLayout; QCheckBox PartialCheck; QCheckBox SecondChanceCheck; QCheckBox ShowCorrectedInputCheck; QHBoxLayout CharacterLayout; QLineEdit UnknownCharacterEdit; QLabel UnknownCharacterLabel; // button row at the bottom KButtonBox ButtonRow; QPushButton *Cancel; QPushButton *Ok; private: }; #endif dokvok-0.1.3/dokvok/File/ 777 764 144 0 7070117411 10247 5dokvok-0.1.3/dokvok/File/Makefile.in 644 764 144 23455 7070117411 12341 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ INCLUDES = $(all_includes) libFile_a_METASOURCES = noinst_LIBRARIES = libFile.a libFile_a_SOURCES = vvokfile.cpp vlangfile.cpp EXTRA_DIST = vlangfile.cpp vlangfile.h vvokfile.cpp vvokfile.h mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) DEFS = @DEFS@ -I. -I$(srcdir) -I../.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ libFile_a_LIBADD = libFile_a_OBJECTS = vvokfile.o vlangfile.o AR = ar CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best SOURCES = $(libFile_a_SOURCES) OBJECTS = $(libFile_a_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .cpp .lo .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/File/Makefile cd $(top_srcdir) && perl automoc dokvok-0.1.3/dokvok/File/Makefile.in Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-noinstLIBRARIES: clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) distclean-noinstLIBRARIES: maintainer-clean-noinstLIBRARIES: .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .s.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .S.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: maintainer-clean-libtool: libFile.a: $(libFile_a_OBJECTS) $(libFile_a_DEPENDENCIES) -rm -f libFile.a $(AR) cru libFile.a $(libFile_a_OBJECTS) $(libFile_a_LIBADD) $(RANLIB) libFile.a .cpp.o: $(CXXCOMPILE) -c $< .cpp.lo: $(LTCXXCOMPILE) -c $< tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/File distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done vlangfile.o: vlangfile.cpp ../../config.h vlangfile.h ../vtyplist.h \ ../vtyp.h vvokfile.o: vvokfile.cpp vvokfile.h ../vvocabulary.h ../vlanguage.h \ ../vtyplist.h ../vtyp.h ../vvokabellist.h ../vvokabel.h \ ../vwissen.h info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile $(LIBRARIES) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ mostlyclean-libtool mostlyclean-tags \ mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-noinstLIBRARIES distclean-compile \ distclean-libtool distclean-tags distclean-generic \ clean-am -rm -f libtool distclean: distclean-metasources distclean-am maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ maintainer-clean-compile maintainer-clean-libtool \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile mostlyclean-libtool distclean-libtool \ clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: distclean-metasources: # DO_NOT_USE_AUTOMOC dokvok-0.1.3/dokvok/File/Makefile.am 644 764 144 521 7066761424 12273 ####### kdevelop will overwrite this part!!! (begin)########## INCLUDES = $(all_includes) libFile_a_METASOURCES = USE_AUTOMOC noinst_LIBRARIES = libFile.a libFile_a_SOURCES = vvokfile.cpp vlangfile.cpp EXTRA_DIST = vlangfile.cpp vlangfile.h vvokfile.cpp vvokfile.h ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/File/vvokfile.cpp 644 764 144 22366 7066766775 12661 /*************************************************************************** vvokfile.cpp - description ------------------- begin : Wed Feb 9 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vvokfile.h" #include "../vvocabulary.h" static QString printableToString(const QString& s) { if (!s.contains('\\')) return s; QString Result=""; unsigned int i = 0; if (s.length()>1){ // remember: s.length() is unsigned.... for (i=0; i0) // remember: s.length() is unsigned.... { for (i=0; i"), GroupDict( 37, false ) { GroupDict.setAutoDelete( true ); } VVokFile::~VVokFile() { } void VVokFile::clear() { GroupDict.clear(); } void VVokFile::close() { File.close(); } /** */ bool VVokFile::isReadable( const QString &Filename ) { File.setName( Filename ); return( File.open( IO_ReadOnly ) ); } /** */ void VVokFile::readExtraData( VVocabulary *Vocabulary ) { //reset the lists GroupDict.clear(); // prepare the operators QString CurrentLine; QString CurrentGroup = ""; VEntryDict* CurrentDict = GroupDict[ "" ]; // reset the stream's device File.at(0); QTextStream *Stream = new QTextStream( &File ); while( !Stream->eof() ) { CurrentLine = Stream->readLine(); // check for a group int LeftBracket = CurrentLine.find( '[' ); int RightBracket = CurrentLine.find( ']', 1 ); if( LeftBracket == 0 && RightBracket != -1 ) { // group found; get the group name by taking everything in // between the brackets CurrentGroup = CurrentLine.mid( 1, RightBracket-1 ); // if the vocabulary starts return if( CurrentGroup == "Vocabulary" ) { delete Stream; return; } // check if there already is such a group in the group // dictionary CurrentDict = GroupDict[ CurrentGroup ]; if( !CurrentDict ) { // no such group and not the vocabulary -> create a new entry dictionary VEntryDict* NewDict = new VEntryDict( 37, false ); NewDict->setAutoDelete( true ); GroupDict.insert( CurrentGroup, NewDict ); // this is now the current group CurrentDict = NewDict; } continue; }; if( CurrentLine[0] == '#' ) // comment character in the first column, skip the line continue; int EqualsPos = CurrentLine.find( '=' ); if( EqualsPos == -1 ) // no equals sign: incorrect or empty line, skip it continue; // insert the key/value line into the current dictionary QString *Entry = new QString; (*Entry) = printableToString(CurrentLine.right( CurrentLine.length()-EqualsPos-1 ) ).stripWhiteSpace(); CurrentDict->insert( CurrentLine.left( EqualsPos ).stripWhiteSpace(), Entry ); } delete Stream; } /** */ void VVokFile::readData( VVocabulary *Vocabulary ) { QTextStream *Stream = new QTextStream( &File ); while( !Stream->eof() ) { Vocabulary->newVokabel( Stream->readLine() ); } delete Stream; } /** */ bool VVokFile::isWriteable( const QString &Filename ) { File.setName( Filename ); return File.open( IO_Truncate | IO_WriteOnly ); } /** */ void VVokFile::write( VVocabulary *Vocabulary ) { QTextStream* Stream = new QTextStream( &File ); *Stream << "# DokVok File\n"; // write back -- start with the default group VEntryDict* DefWriteGroup = GroupDict[ "" ]; if( DefWriteGroup ) { QDictIterator WriteInnerIt( *DefWriteGroup ); while( WriteInnerIt.current() ) { *Stream << WriteInnerIt.currentKey() << "=" << stringToPrintable( WriteInnerIt.current()->data() ) << '\n'; ++WriteInnerIt; } } VGroupIterator WriteIt( GroupDict ); while( WriteIt.current() ) { // check if it's not the default group (which has already been written) if( strcmp (WriteIt.currentKey(), "" ) ) { *Stream << '[' << WriteIt.currentKey() << ']' << '\n'; VEntryIterator WriteInnerIt( *WriteIt.current() ); while( WriteInnerIt.current() ) { *Stream << WriteInnerIt.currentKey() << "=" << stringToPrintable( WriteInnerIt.current()->data()) << '\n'; ++WriteInnerIt; } } ++WriteIt; } // write the vocabulary *Stream << "#Term TAB Translation TAB Typ TAB Knowledge TAB Remark TAB Mistakes\n[Vocabulary]\n"; QString Line; for ( Line=Vocabulary->firstLine(); !Line.isEmpty(); Line=Vocabulary->nextLine() ) *Stream << Line << "\n"; // clean up delete Stream; } void VVokFile::setGroup( const char* NewGroup ) { if( !NewGroup ) Group = ""; else Group = NewGroup; } const char* VVokFile::group() const { static QString EmptyStr = ""; if( Group == "" ) return EmptyStr; else return Group; } const QString VVokFile::readEntry( const char* Key, const char* Default ) const { QString Value; // retrieve the current group dictionary VEntryDict* CurrentDict = GroupDict[ Group ]; if( CurrentDict ) { QString *Entry = (*CurrentDict)[ Key ]; if( Entry ) Value = *Entry; else if( Default ) { Value = Default; } } else if( Default ) Value = Default; return Value; } int VVokFile::readListEntry( const char* Key, QStrList &List, char Separator ) const { if( !hasKey( Key ) ) return 0; QString ListString, Value; ListString = readEntry( Key ); if( ListString.isEmpty() ) return 0; List.clear(); int i; Value = ""; int Length = ListString.length(); for( i = 0; i < Length; i++ ) { if( ListString[i] != Separator && ListString[i] != '\\' ) { Value += ListString[i]; continue; } if( ListString[i] == '\\' ) { i++; Value += ListString[i]; continue; } List.append( Value ); Value.truncate(0); } if ( ListString[Length-1] != Separator ) List.append( Value ); return List.count(); } int VVokFile::readNumEntry( const char* Key, int Default) const { bool ok; int rc; QString Value = readEntry( Key ); if( Value.isNull() ) return Default; else if( Value == "true" ) return 1; else if( Value == "on" ) return 1; else { rc = Value.toInt( &ok ); return( ok ? rc : 0 ); } } bool VVokFile::readBoolEntry( const char* Key, const bool Default ) const { QString Value = readEntry( Key ); if( Value.isNull() ) return Default; else { if( Value == "true" || Value == "on" ) return true; else { bool OK; int Val = Value.toInt( &OK ); if( OK && Val != 0 ) return true; else return false; } } } bool VVokFile::hasKey( const char* Key ) const { QString Value = readEntry( Key ); return !Value.isNull(); } void VVokFile::writeEntry( const char* Key, const char* Value ) { // retrieve the current group dictionary VEntryDict* CurrentDict = GroupDict[ Group ]; if( !CurrentDict ) { // no such group -> create a new entry dictionary VEntryDict* NewDict = new VEntryDict( 37, false ); NewDict->setAutoDelete( true ); GroupDict.insert( Group, NewDict ); // this is now the current group CurrentDict = NewDict; } // try to retrieve the current entry for this key QString *Entry = (*CurrentDict)[ Key ]; if( !Entry ) { // the key currently does not exist Entry = new QString; // insert the new entry into group dictionary CurrentDict->insert( Key, Entry ); } (*Entry) = Value; // set new value } dokvok-0.1.3/dokvok/File/vlangfile.cpp 644 764 144 21060 7066760161 12750 /*************************************************************************** vlangfile.cpp - description ------------------- begin : Sun Feb 20 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include "vlangfile.h" #include "../vtyplist.h" VLanguageFile::VLanguageFile( QString Language, bool ReadOnly = true ) { // QString Filename = KApplication::kde_datadir() + "/dokvok/languages/" // + Language + ".dvlc"; // now for the local lang config file QString FileName = KApplication::localkdedir().copy(); FileName += "/share/apps/dokvok/languages/"; FileName += Language; FileName += ".dvlc"; //DokVok Language Config QFile File( FileName ); bool Success; if( ReadOnly ) Success = File.open( IO_ReadOnly ); else { if( (Success = checkAccess(FileName.data(), W_OK)) ) { // open or create if it does not exist yet. Success = File.open( IO_ReadWrite ); // Set uid/gid (necessary for SUID programs) if ( Success ) chown( File.name(), getuid(), getgid() ); } } if( Success ) LanguageFile = new KSimpleConfig( FileName, ReadOnly ); else LanguageFile = 0; } VLanguageFile::~VLanguageFile() { } QString VLanguageFile::name() { if( LanguageFile ) { LanguageFile->setGroup( "General" ); return LanguageFile->readEntry( "Name" ); } return ""; } QFont VLanguageFile::font() { if( LanguageFile ) { LanguageFile->setGroup( "General" ); return LanguageFile->readFontEntry( "Font" ); } return QFont(); } VTypInfoList VLanguageFile::typInfoList() { VTypInfoList TypInfoList; if( LanguageFile ) { // get list of type names QStrList NameList; LanguageFile->setGroup( "General" ); LanguageFile->readListEntry( "Types", NameList ); // get data of all types QString TypName; for( TypName=NameList.first(); TypName; TypName=NameList.next() ) { VTypInfo *TypInfo = new VTypInfo; // read data LanguageFile->setGroup( "T:"+TypName ); TypInfo->name() = TypName; TypInfo->localName() = LanguageFile->readEntry( "Name" ); QString Symbol = LanguageFile->readEntry( "Symbol" ); if( Symbol.isEmpty() ) TypInfo->initSymbol(); else TypInfo->setSymbol( Symbol[0] ); TypInfoList.append( TypInfo ); } } return TypInfoList; } void VLanguageFile::writeFont( const QFont &Font ) { if( LanguageFile ) { LanguageFile->setGroup( "General" ); LanguageFile->writeEntry( "Font", Font, true, false, false ); } } void VLanguageFile::writeName( const QString &Name ) { if( LanguageFile ) { LanguageFile->setGroup( "General" ); LanguageFile->writeEntry( "Name", Name, true, false, true ); } } void VLanguageFile::writeTypInfoList( VTypInfoList &List ) { if( LanguageFile ) { // get all former types QStrList FileList; LanguageFile->readListEntry( "Types", FileList ); QStrList NameList; VTypInfo *TypInfo; for( TypInfo=List.first(); TypInfo; TypInfo=List.next() ) { NameList.append( TypInfo->name() ); if( FileList.find(TypInfo->name()) != -1 ) FileList.remove(); LanguageFile->setGroup( "T:"+TypInfo->name() ); LanguageFile->writeEntry( "Name", TypInfo->name(), true, false, false ); LanguageFile->writeEntry( "Name", TypInfo->localName(), true, false, true ); LanguageFile->writeEntry( "Symbol", TypInfo->symbolString(), true, false, false ); } // remove all QString LeftTyp; for( LeftTyp=FileList.first(); LeftTyp; LeftTyp=FileList.next() ) { LanguageFile->deleteGroup( LeftTyp ); } LanguageFile->setGroup( "General" ); LanguageFile->writeEntry( "Types", NameList ); } } void VLanguageFile::writeFile() { if( LanguageFile ) { LanguageFile->sync(); } } /* // try to read a global application file QString GlobalLangConfigName = kde_datadir() + "/dokvok/languages/" + LangName + ".dvlc"; QFile GlobalLangConfigFile( GlobalLangConfigName ); // try to open it read-only bool Success = aGlobalLangConfigFile.open( IO_ReadOnly ); if( !Success ) // there is no global lang config file GlobalLangConfigName = ""; GlobalLangConfigFile.close(); // now for the local lang config file QString ConfigName = KApplication::localkdedir(); ConfigName += "/share/apps/dokvok/languages/"; ConfigName += LangName; ConfigName += ".dvlc"; //DokVok Language Config QFile ConfigFile( ConfigName ); // We may write to the file if ( ! checkAccess(ConfigName.data(), W_OK ) ) Success = false; else { // Open the language-specific config file. It will be created if // it does not exist yet. Success = ConfigFile.open( IO_ReadWrite ); // Set uid/gid (necessary for SUID programs) if ( Success ) chown( ConfigFile.name(), getuid(), getgid() ); } if( !Success ) { // try to open at least read-only Success = ConfigFile.open( IO_ReadOnly ); if( !Success ) { // we didn't succeed to open a local lang config file Config = new KConfig( GlobalLangConfigName ); ConfigState = APPCONFIG_NONE; } else { // we succeeded to open an app-config file read-only Config = new KConfig( GlobalLangConfigName, ConfigName ); ConfigState = APPCONFIG_READONLY; } } else { // we succeeded to open an app-config file read-write Config = new KConfig( GlobalLangConfigName, ConfigName ); ConfigState = APPCONFIG_READWRITE; } void KApplication::readSettings() { // use the global config files KConfig* config = getConfig(); config->reparseConfiguration(); QString str; // Read the color scheme group from config file // If unavailable set color scheme to KDE default config->setGroup( "General"); // this default is Qt black textColor = config->readColorEntry( "foreground", &black ); // this default is the Qt lightGray backgroundColor = config->readColorEntry( "background", &lightGray ); // this default is Qt darkBlue selectColor = config->readColorEntry( "selectBackground", &darkBlue ); // this default is Qt white selectTextColor = config->readColorEntry( "selectForeground", &white); // this default is Qt white windowColor = config->readColorEntry( "windowBackground", &white ); // this default is Qt black windowTextColor = config->readColorEntry( "windowForeground", &black ); config->setGroup( "WM"); // this default is Qt lightGray inactiveTitleColor = config->readColorEntry( "inactiveBackground", &lightGray ); // this default is Qt darkGrey inactiveTextColor = config->readColorEntry( "inactiveForeground", &darkGray ); // this default is Qt darkBlue activeTitleColor = config->readColorEntry( "activeBackground", &darkBlue ); // this default is Qt white activeTextColor = config->readColorEntry( "activeForeground", &white ); config->setGroup( "KDE"); contrast = config->readNumEntry( "contrast", 7 ); // Read the font specification from config. // Initialize fonts to default first or it won't work !! pCharsets->setDefault(klocale->charset()); generalFont = QFont("helvetica", 12, QFont::Normal); pCharsets->setQFont(generalFont); fixedFont = QFont("fixed", 12, QFont::Normal); pCharsets->setQFont(fixedFont); config->setGroup( "General" ); generalFont = config->readFontEntry( "font", &generalFont ); fixedFont = config->readFontEntry( "fixedFont", &fixedFont ); // Finally, read GUI style from config. config->setGroup( "KDE" ); if ( config->readEntry( "widgetStyle", "Windows 95" ) == "Windows 95" ) applicationStyle=WindowsStyle; else applicationStyle=MotifStyle; } */dokvok-0.1.3/dokvok/File/vlangfile.h 644 764 144 3142 7066711066 12376 /*************************************************************************** vlangfile.h - description ------------------- begin : Sun Feb 20 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VLANGFILE_H #define VLANGFILE_H #include struct VTypInfoList; /**handles the read of the language config file *@author Friedrich W. H. Kossebau */ class VLanguageFile { public: VLanguageFile( QString Language, bool ReadOnly = true ); ~VLanguageFile(); QString name(); QFont font(); VTypInfoList typInfoList(); void writeName( const QString &Name ); void writeFont( const QFont &Font ); void writeTypInfoList( VTypInfoList &List ); void writeFile(); protected: KSimpleConfig *LanguageFile; }; #endif dokvok-0.1.3/dokvok/File/vvokfile.h 644 764 144 7457 7066431133 12263 /*************************************************************************** vvokfile.h - description ------------------- begin : Wed Feb 9 2000 copyright : (C) 2000 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VVOKFILE_H #define VVOKFILE_H #include #include #include #include #include class VVocabulary; /** An io-handler for the vocabulary files. Works similar to the config files * who were basics for this * * @author Friedrich W. H. Kossebau */ typedef QDict VEntryDict; typedef QDict VGroupDict; typedef QDictIterator VEntryIterator; typedef QDictIterator VGroupIterator; class VVokFile { private: QString Group; VGroupDict GroupDict; QFile File; public: VVokFile(); ~VVokFile(); /** */ bool isWriteable( const QString &Filename ); /** */ void write( VVocabulary *Vocabulary ); /** */ bool isReadable( const QString &Filename ); /** */ void readExtraData( VVocabulary *Vocabulary ); /** */ void readData( VVocabulary *Vocabulary ); void close(); void clear(); void setGroup( const char* NewGroup ); const char* group() const; /** * Read the value of an entry specified by rKey in the current group * * @param pKey The key to search for. * @param pDefault A default value returned if the key was not found. * @return The value for this key or an empty string if no value * was found. */ const QString readEntry( const char* Key, const char* Default = 0L ) const; /** * Read a list of strings. * * @param pKey The key to search for * @param list In this object, the read list will be returned. * @param sep The list separator (default ",") * @return The number of entries in the list. */ int readListEntry( const char* Key, QStrList &List, char sep = ',' ) const; /** * Read a numerical value. * * Read the value of an entry specified by rKey in the current group * and interpret it numerically. * * @param pKey The key to search for. * @param nDefault A default value returned if the key was not found. * @return The value for this key or 0 if no value was found. */ int readNumEntry( const char* Key, int Default = 0 ) const; /** * Read a boolean entry. * * Read the value of an entry specified by pKey in the current group * and interpret it as a boolean value. Currently "on" and "true" are * accepted as true, everything else if false. * * @param pKey The key to search for * @param bDefault A default value returned if the key was not * found. * @return The value for this key or a default value if no value was * found. */ bool readBoolEntry( const char* Key, const bool Default = false ) const; void writeEntry( const char* Key, const char* Value ); bool hasKey( const char* Key ) const; }; #endif dokvok-0.1.3/dokvok/View/ 777 764 144 0 7070117412 10303 5dokvok-0.1.3/dokvok/View/Makefile.in 644 764 144 25671 7070117412 12377 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ GMSGFMT = @GMSGFMT@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ MSGFMT = @MSGFMT@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XGETTEXT = @XGETTEXT@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ INCLUDES = $(all_includes) libView_a_METASOURCES = dokvokview.moc.cpp listedit.moc.cpp vvoklist.moc.cpp noinst_LIBRARIES = libView.a libView_a_SOURCES = vvoklist.cpp listedit.cpp dokvokview.cpp EXTRA_DIST = dokvokview.cpp dokvokview.h listedit.cpp listedit.h vvoklist.cpp vvoklist.h mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) DEFS = @DEFS@ -I. -I$(srcdir) -I../.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ libView_a_LIBADD = libView_a_OBJECTS = vvoklist.o listedit.o dokvokview.o dokvokview.moc.o listedit.moc.o vvoklist.moc.o AR = ar CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best SOURCES = $(libView_a_SOURCES) OBJECTS = $(libView_a_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .cpp .lo .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps dokvok/View/Makefile cd $(top_srcdir) && perl automoc dokvok-0.1.3/dokvok/View/Makefile.in Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-noinstLIBRARIES: clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) distclean-noinstLIBRARIES: maintainer-clean-noinstLIBRARIES: .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .s.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< .S.lo: $(LIBTOOL) --mode=compile $(COMPILE) -c $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: maintainer-clean-libtool: libView.a: $(libView_a_OBJECTS) $(libView_a_DEPENDENCIES) -rm -f libView.a $(AR) cru libView.a $(libView_a_OBJECTS) $(libView_a_LIBADD) $(RANLIB) libView.a .cpp.o: $(CXXCOMPILE) -c $< .cpp.lo: $(LTCXXCOMPILE) -c $< tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = dokvok/View distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done dokvokview.moc.o: dokvokview.moc.cpp dokvokview.h ../../config.h \ ../vtyplist.h ../vtyp.h vvoklist.h ../vvokabellist.h \ ../vvokabel.h ../vwissen.h listedit.h dokvokview.o: dokvokview.cpp vvoklist.h ../vvokabellist.h ../vvokabel.h \ ../vtyp.h ../vwissen.h listedit.h ../File/vlangfile.h \ ../../config.h dokvokview.h ../vtyplist.h ../dokvokdoc.h \ ../vvocabulary.h ../vlanguage.h ../File/vvokfile.h \ ../Abfrage/vabfragedialog.h ../Abfrage/../vvokabellist.h \ ../Abfrage/dokvokfigure.h ../Abfrage/vabfrage.h \ ../Abfrage/../vvokabel.h ../Abfrage/vstring.h \ ../Abfrage/vchecker.h ../dokvok.h listedit.moc.o: listedit.moc.cpp listedit.h listedit.o: listedit.cpp listedit.h vvoklist.moc.o: vvoklist.moc.cpp vvoklist.h ../vvokabellist.h \ ../vvokabel.h ../vtyp.h ../vwissen.h listedit.h vvoklist.o: vvoklist.cpp vvoklist.h ../vvokabellist.h ../vvokabel.h \ ../vtyp.h ../vwissen.h listedit.h info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile $(LIBRARIES) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ mostlyclean-libtool mostlyclean-tags \ mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-noinstLIBRARIES distclean-compile \ distclean-libtool distclean-tags distclean-generic \ clean-am -rm -f libtool distclean: distclean-metasources distclean-am maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ maintainer-clean-compile maintainer-clean-libtool \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile mostlyclean-libtool distclean-libtool \ clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvokview.moc.cpp: $(srcdir)/dokvokview.h $(MOC) $(srcdir)/dokvokview.h -o dokvokview.moc.cpp listedit.moc.cpp: $(srcdir)/listedit.h $(MOC) $(srcdir)/listedit.h -o listedit.moc.cpp vvoklist.moc.cpp: $(srcdir)/vvoklist.h $(MOC) $(srcdir)/vvoklist.h -o vvoklist.moc.cpp distclean-metasources: -rm -f dokvokview.moc.cpp listedit.moc.cpp vvoklist.moc.cpp # DO_NOT_USE_AUTOMOC dokvok-0.1.3/dokvok/View/Makefile.am 644 764 144 571 7066761424 12333 ####### kdevelop will overwrite this part!!! (begin)########## INCLUDES = $(all_includes) libView_a_METASOURCES = USE_AUTOMOC noinst_LIBRARIES = libView.a libView_a_SOURCES = vvoklist.cpp listedit.cpp dokvokview.cpp EXTRA_DIST = dokvokview.cpp dokvokview.h listedit.cpp listedit.h vvoklist.cpp vvoklist.h ####### kdevelop will overwrite this part!!! (end)############ dokvok-0.1.3/dokvok/View/vvoklist.cpp 644 764 144 14252 7066762742 12731 /*************************************************************************** vvoklist.cpp - description ------------------- begin : Fri Sep 24 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "vvoklist.h" #include VVokItem::VVokItem( QListView * parent, VVokabel *Vok ) : ListEditItem ( parent ) { Vokabel = Vok; } VVokItem::VVokItem( QListView * parent, QListViewItem * after, VVokabel *Vok ) : ListEditItem ( parent, after ) { Vokabel = Vok; } VVokItem::~VVokItem(){ } /** sets text direct in the basic list */ void VVokItem::setText( int Column, const char * Text) { Vokabel->setString( Column, Text ); } /** returns the text right out of the basic list */ const char *VVokItem::text( int Column ) const { return Vokabel->string( Column ); } /** returns a pointer to its vokabel */ VVokabel * VVokItem::vokabel() { return Vokabel; } VVokList::VVokList( QWidget *parent, const char *name = 0 ) : ListEdit(parent,name) { setMultiSelection ( true ); setAllColumnsShowFocus ( true ); // initialize the list, create the two columns setHScrollBarMode ( AlwaysOff ); addColumn( 0 ); addColumn( 0 ); setColumnWidthMode ( TermColumn, QListView::Manual ); setColumnWidthMode ( TranslationColumn, QListView::Manual ); } VVokList::~VVokList() { } /** */ bool VVokList::handleEnterPress( const QKeyEvent *k ) { if ( !ListEdit::handleEnterPress( k ) && !(k->key() == Key_Tab)) { emit enterPressedLastLine(); } return true; } /** appends new vokabel at the end */ void VVokList::appendVokabel( VVokabel *Vokabel, bool UpdateView = true ) { VVokItem *NewItem; if( childCount() == 0 ) // voklist empty ? { NewItem = new VVokItem( this, Vokabel ); } // create new item at begin=end else // create new item at end { NewItem = new VVokItem( this, lastItem(), Vokabel ); } if( NewItem ) // new item successfull created? { NewItem->setup(); // sets lookup height to needed size for display if( UpdateView ) { setEditedColumn( 0 ); setCursorPos( 0 ); setEditMode(); ensureItemVisible( NewItem ); adjustHeaderWidth(); emit justModified(); } setCurrentItem( NewItem ); // also needed for faster tracking (above) } } /** changes the size of the header to fit in the view as standard there should be no horizontal Scrollbar */ void VVokList::adjustHeaderWidth( int Width = -1, int Height = -1 ) { // cerr << "Weite: " << Width << ", Höhe: " << Height; if( Width == -1 ) Width = width(); if( Height == -1 ) Height = height(); if ( Height < contentsHeight() + header()->height() ) { // cerr << " scroll"; Width -= verticalScrollBar()->width(); } // cerr << " dann Weite: " << Width << ", Höhe: " << Height << "\n"; int LeftWidth = Width / 2; int RightWidth = Width - LeftWidth; if( RightWidth != columnWidth(header()->mapToActual( TranslationColumn )) ) { setColumnWidth( header()->mapToActual( TermColumn ), LeftWidth ); setColumnWidth( header()->mapToActual( TranslationColumn ), RightWidth ); header()->resize( Width, header()->height() ); } triggerUpdate(); // updateEditField(); } ///** ensures correct headersetting */ //void VVokList::show() //{ // setUpdatesEnabled( false ); // // ListEdit::show(); // // setUpdatesEnabled( true ); // //// cerr << "show "; // adjustHeaderWidth(); // //repaint(); //} /** ensures correct headersetting */ void VVokList::resizeEvent ( QResizeEvent * e ) { // cerr << "re "; adjustHeaderWidth( /*e->size().width(), e->size().height()*/ ); ListEdit::resizeEvent( e ); } /** returns the current vok */ VVokabel *VVokList::currentVok() { VVokItem *Item = (VVokItem*)currentItem(); if( Item ) return Item->vokabel(); else return 0; } /** returns the first selected vok */ VVokabel *VVokList::firstSelectedVok() { SelectedIterator = (VVokItem*)firstChild(); return nextSelectedVok( true ); } /** returns the next selected vok */ VVokabel *VVokList::nextSelectedVok( bool first = false ) { if( !first ) SelectedIterator = (VVokItem*)SelectedIterator->nextSibling(); while( SelectedIterator ) { if( SelectedIterator->isSelected() ) return SelectedIterator->vokabel(); SelectedIterator = (VVokItem*)SelectedIterator->nextSibling(); } return 0; // nothing is selected } void VVokList::focusInEvent( QFocusEvent * Event ) { QListView::focusInEvent ( Event ); QString text=QApplication::clipboard()->text(); emit clipboardHasData( !text.isEmpty() ); } /** */ void VVokList::insertText() { QClipboard *Clipboard = QApplication::clipboard(); EditField->insert( Clipboard->text() ); } /** void VVokList::paintEvent( QPaintEvent * Event ) { adjustHeaderWidth(); ListEdit::paintEvent( Event ); }*/ /** selects all */ void VVokList::selectAll() { VVokItem* Item; for( Item = (VVokItem*)firstChild(); Item; Item = (VVokItem*)Item->nextSibling() ) { Item->setSelected( true ); } triggerUpdate(); } /** deselects all */ void VVokList::deselectAll() { VVokItem* Item; for( Item = (VVokItem*)firstChild(); Item; Item = (VVokItem*)Item->nextSibling() ) { Item->setSelected( false ); } triggerUpdate(); } /** inverts Selection */ void VVokList::invertSelection() { VVokItem* Item; for( Item = (VVokItem*)firstChild(); Item; Item = (VVokItem*)Item->nextSibling() ) { Item->setSelected( !Item->isSelected() ); } triggerUpdate(); } dokvok-0.1.3/dokvok/View/listedit.cpp 644 764 144 33232 7066632517 12664 /*************************************************************************** listedit.cpp - description ------------------- begin : Fri Sep 24 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include "listedit.h" ListEdit::ListEdit(QWidget *parent, const char *name ) : QListView(parent,name), EditedColumn( 0 ), EditMode( true ), FontMetricsHeight( 0 ) { FontList.setAutoDelete( true ); checkFontMetricHeight( font() ); // initialize needed listview properties setSorting( -1 ); // noAutoSorting as user would loose control if list shuffles often setItemMargin( 2 ); // QLineEdit has a left margin of two pixels, so adjust the listmargin // initialize edit properties setEditMode( false ); // no editing in the beginning because of no items Header = header(); // connect( this, SIGNAL( selectionChanged() ), this, SLOT( updateEditField() ) ); connect( Header, SIGNAL( sectionClicked(int) ), this, SLOT( slotSortingChanged( int ) ) ); } /** creates the EditField */ void ListEdit::initEditField() { // initialize the Field which is used for editing EditField = new QLineEdit( viewport() ); // lays Editfield direct on moving viewport addChild( EditField ); // needed by QListView (see doc) but doesn't work EditField->installEventFilter( this ); // to catch the key events which might change field EditField->setFrame( false ); // doesn't look nice to me with a border connect( EditField, SIGNAL( textChanged( const char * ) ), this, SLOT( setText( const char * ) ) ); connect( Header, SIGNAL( sizeChange( int, int, int ) ), this, SLOT( updateEditField() ) ); connect( this, SIGNAL( currentChanged ( QListViewItem * ) ), SLOT( updateEditField() ) ); } /** well, it comes the time to die */ ListEdit::~ListEdit() { delete EditField; // delete fonts VFontEntry *Entry; for( Entry = FontList.first(); Entry; Entry = FontList.next() ) { if( Entry->Font ) delete Entry->Font; } } /** moves the EditField to the according place */ void ListEdit::updateEditField() { // check if updating makes sense if( !EditField ) return; // bool hadFocus = EditField->hasFocus(); // why that? so commented it out if (( childCount() == 0 ) // without a child no editing is possible || ( currentItem() == 0 )) // nothing selected to be edited return; // to avoid flickering bool updatesWereEnabled = EditField->isUpdatesEnabled(); EditField->setUpdatesEnabled( false ); // now start to set up the needed properties... // set the new editing characteristics ItemIsChanging = true; EditField->setText( currentItem()->text( header()->mapToLogical( editedColumn() ) ) ); ItemIsChanging = false; EditField->setCursorPosition( cursorPos() ); // set size of EditField to fit for actual edited item EditField->resize( columnWidth( editedColumn() )-1, currentItem()->height() ); // set the font EditField->setFont( columnFont( editedColumn() ) ); // and move it to take a seat in its place moveChild( EditField, header()->cellPos(editedColumn()), itemPos(currentItem()) ); //TODO: move sizeinformation to ListEditItem (margin, offset, ...) // now makeup is complete, so go back to the party if( updatesWereEnabled ) EditField->setUpdatesEnabled( true ); EditField->repaint(); // if( hadFocus ) EditField->setFocus(); // why that? s.a. } /** passes text to list */ void ListEdit::setText( const char *Text ) { if ( currentItem() ) currentItem()->setText( header()->mapToLogical( editedColumn() ), Text ); if ( !ItemIsChanging ) emit justModified(); } /** */ bool ListEdit::eventFilter ( QObject * o, QEvent * e ) { if ( o == EditField ) { if ( e->type() == Event_KeyPress ) { // key press QKeyEvent *k = (QKeyEvent*)e; switch (k->key()) { case Key_Left: if ( EditField->cursorPosition() == 0 ) { changeColumn( ToLeft, -1 ); return true; } else break; case Key_Right: if ( EditField->cursorPosition() == int( QString( EditField->text() ).length() ) ) { changeColumn( ToRight, 0 ); return true; } else break; case Key_Return: case Key_Enter: case Key_Tab: return handleEnterPress( k ); case Key_Up: case Key_Down: setCursorPos( EditField->cursorPosition() ); return false; // let QListView handle the display of current item /* EditField->fontMetrics().width( EditField()->text().left( cursor ) ) oder falls schon offset (nicht ermittelbar ;-( da, allein Cursorposition */ default: break; } return FALSE; } return FALSE; // standard event processing } return QListView::eventFilter( o, e ); } /** finds the next editable column Direction is +1 or -1 NewCursorPos is -1 for end else as is returns FALSE if nothing found */ bool ListEdit::changeColumn ( const int Direction, const int NewCursorPos = -1 ){ if( Direction == +1 ) { if( editedColumn() < header()->count()-1 ) EditedColumn++; // TODO: no direct account to EditedColumn else return false; } else if( editedColumn() > 0 ) EditedColumn-- ; // TODO: no direct account to EditedColumn else return false; setCursorPos( NewCursorPos ); updateEditField(); return true; } /** */ void ListEdit::resize ( int w, int h ) { QListView::resize ( w, h ); updateEditField(); } /** switches Editing on and off who would have guessed ;-) */ void ListEdit::setEditMode ( const bool Editing = true ) { // is there anything to be edited if( !firstChild() ) EditMode = false; else { if ( EditMode == Editing ) return; // nothing to do EditMode = Editing; } if( EditMode ) { if( !EditField ) initEditField(); setEditedColumn( editedColumn() ); // TODO: check rightmax Column... if( !currentItem() ) setCurrentItem( firstChild() ); viewport()->setCursor( ibeamCursor ); updateEditField(); EditField->show(); EditField->setFocus(); } else { viewport()->setCursor( arrowCursor ); if( EditField ) EditField->hide(); } } /** */ void ListEdit::mousePressEvent ( QMouseEvent *e ){ if ( isEditMode() ) { QMouseEvent *MouseEvent = e; if ( MouseEvent->button() == LeftButton ) { int NewColumn = header()->cellAt( MouseEvent->x() ); if ( NewColumn != -1 ) { setEditedColumn( NewColumn ); QListViewItem *ClickedItem = itemAt( MouseEvent->pos() ); if ( ClickedItem ) { // move EditField to new object of interest setCurrentItem( ClickedItem ); } else { setCurrentItem( lastItem() ); } EditField->setUpdatesEnabled( false ); updateEditField(); // create Mouseevent with according coordinates to hand it to EditField QPoint Point = MouseEvent->pos(); Point.setX( Point.x() - header()->cellPos( NewColumn ) ); QMouseEvent* NewMouseEvent = new QMouseEvent ( Event_MouseButtonPress, Point, LeftButton, LeftButton ); QApplication::sendEvent( EditField, NewMouseEvent ); //TODO: fix that mouseclick is not treated like a normal one e.g. doubleclick EditField->setUpdatesEnabled( true ); EditField->repaint(); ensureItemVisible( ClickedItem ); return; } } /* else if ( MouseEvent->button() == RightButton ) { QPoint p = mapToGlobal( _mouse->pos() ); select( 0L, false ); QStrList list; list.append( manager->getURL() ); slotPopupMenu( list, p, true ); return true; }*/ } QListView::mousePressEvent( e ); } /** sets EditField to new position */ void ListEdit::slotSortingChanged( int column ){ // TODO: enable Sorting as SIGNAL from HeaderClicking is emitted before sorting... // could be done by moving setSorting(-1) to appendVokabel setSorting(-1); // see ListEdit::ListEdit; avoids new (empty) lines to be set at listbegin if(EditField) setCursorPos( EditField->cursorPosition() ); updateEditField(); } /** handles the pressing of Return, Enter and Tab */ bool ListEdit::handleEnterPress( const QKeyEvent *k ) { if ( !changeColumn( ToRight ) ) return goNextLine(); return true; } /** sets the EditField to the next line in the column Column */ bool ListEdit::goNextLine ( const int Direction = 1, const int NewCursorPos= -1, const int Column = 0 ) { QListViewItem *NextItem; if( Direction == +1 ) NextItem = currentItem()->itemBelow(); else if (Direction == -1 ) NextItem = currentItem()->itemAbove(); else return false; if ( NextItem ) { setEditedColumn( Column ); setCurrentItem( NextItem ); setCursorPos( NewCursorPos ); ensureItemVisible( NextItem ); updateEditField(); return true; } else return false; } /** sets the edited Column */ void ListEdit::setEditedColumn( const int NewColumn ) { if ( NewColumn >= header()->count() ) // Columnindex starts with 0 EditedColumn = header()->count() - 1; else if ( NewColumn < 0 ) EditedColumn = 0; else EditedColumn = NewColumn; } /** sets the cursor position */ void ListEdit::setCursorPos( const int NewCursorPos = -1 ) { if( NewCursorPos != -1 ) CursorPos = NewCursorPos; else if( currentItem() ) CursorPos = QString(currentItem()->text( editedColumn() )).length(); else CursorPos = 0; } /** clears list and resets all edit data */ void ListEdit::clear() { QListView::clear(); setEditMode( false); // no editing possible } /** */ const QFont &ListEdit::columnFont( int Column ) { if( FontList.at( Column ) && FontList.at( Column )->Font ) { // cout << "Font der Spalte " << Column << ": " << FontList.at( Column )->Font->family() << "\n"; return *(FontList.at( Column )->Font); } else return font(); } /** sets the font of column Column */ void ListEdit::setColumnFont( int Column, const QFont & Font ) { if( !FontList.at( Column ) ) return; if( FontList.at( Column )->Font ) (*FontList.at( Column )->Font) = Font; else { // no font set until now, so create one QFont *NewFont = new QFont( Font ); FontList.at( Column )->Font = NewFont; } checkFontMetricHeight( Font ); } /** sets the standard font for all columns */ void ListEdit::setFont ( const QFont & f ) { QListView::setFont( f ); //cout << "setFont: " << f.rawName() << "\n"; checkFontMetricHeight( f ); } /** */ int ListEdit::addColumn( const char * label, int width = -1 ) { int index = QListView::addColumn( label, width ); //cout << "addColumn: " << label << "\n"; VFontEntry NewEntry = { 0 }; VFontEntry *Entry = new VFontEntry; (*Entry) = NewEntry; FontList.append( Entry ); return index; } /** check if new font is higher than the one used */ void ListEdit::checkFontMetricHeight( const QFont &Font ) { QFont CheckFont = Font; QFontMetrics FontMetrics( CheckFont ); uint Height = FontMetrics.height(); if( Height >= FontMetricsHeight ) // new height is higher so have it as list height FontMetricsHeight = Height; else { // find highest of used fonts, set standard height as reference FontMetrics = QFontMetrics( font() ); FontMetricsHeight = FontMetrics.height(); VFontEntry *Entry; for( Entry = FontList.first(); Entry; Entry = FontList.next() ) { if( Entry->Font ) { FontMetrics = QFontMetrics( (*Entry->Font) ); Height = FontMetrics.height(); if( Height >= FontMetricsHeight ) FontMetricsHeight = Height; } } } } /** returns last item or 0*/ QListViewItem *ListEdit::lastItem() { QListViewItem *Item; if( currentItem() ) Item = currentItem(); // get last used item as that is closer to end -> faster search else Item = firstChild(); if( Item ) { while ( Item->nextSibling() ) // find last item Item = Item->nextSibling(); return Item; } else return 0; } /** */ ListEditItem::ListEditItem( QListView * parent, const char *Term1 = 0, const char *Term2 = 0 ) : QListViewItem ( parent, Term1, Term2 ) { } /** */ ListEditItem::ListEditItem( QListView * parent, QListViewItem * after, const char *Term1 = 0, const char *Term2 = 0 ) : QListViewItem ( parent, after, Term1, Term2 ) { } /** */ ListEditItem::~ListEditItem() { } /** draws the text with individuell fonts */ void ListEditItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) { ListEdit *List = (ListEdit*)listView(); p->setFont( List->columnFont( column ) ); // cerr << "Länge: " << List->childCount() << ", Zeile: " << column << ", Font: " << p->font().family() << "\n"; QListViewItem::paintCell ( p, cg, column, width, align ); } /** Performs setup. */ void ListEditItem::setup() { widthChanged(); ListEdit *List = (ListEdit*)listView(); int Height = List->FontMetricsHeight + 2*List->itemMargin(); // equal number of pixels looks better (see ListViewItem::setup) if ( Height % 2 > 0 ) Height++; setHeight( Height ); } dokvok-0.1.3/dokvok/View/dokvokview.cpp 644 764 144 7634 7066762016 13220 /*************************************************************************** dokvokview.cpp - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ // include files for Qt #include #include #include // application specific includes #include "vvoklist.h" #include "../File/vlangfile.h" #include "dokvokview.h" #include "../dokvokdoc.h" #include "../dokvok.h" DokVokView::DokVokView(QWidget *parent, const char *name) : QWidget(parent, name), VokList( this ), TypInfoList(), EditingPalette( palette().normal(), palette().disabled(), palette().normal() ) { setBackgroundMode(PaletteBase); VokList.setGeometry( 0, 0, width(), height() ); connect( &VokList, SIGNAL( enterPressedLastLine() ), SLOT( askForNewVokabel() ) ); connect( &VokList, SIGNAL( justModified() ), SLOT( setModified() ) ); connect( &VokList, SIGNAL( clipboardHasData( bool ) ), SLOT( setPasteFromClipboard( bool ) ) ); } DokVokView::~DokVokView() { } DokVokDoc *DokVokView::getDocument() const { DokVokApp *theApp=(DokVokApp *) parentWidget(); return theApp->getDocument(); } void DokVokView::print(QPrinter *pPrinter) { QPainter printpainter; printpainter.begin(pPrinter); // TODO: add your printing code here printpainter.end(); } /** tells the Doc to append new Vokabel to list */ void DokVokView::askForNewVokabel() { getDocument()->appendVokabel(); } /** sets modified */ void DokVokView::setModified() { getDocument()->setModified(); } /** appends new vokabel */ void DokVokView::appendVokabel ( VVokabel *Vokabel, bool UpdateView = true ) { VokList.appendVokabel( Vokabel, UpdateView ); } /** returns the current vok */ VVokabel *DokVokView::currentVok() { return VokList.currentVok(); } /** returns the first selected vok */ VVokabel *DokVokView::firstSelectedVok() { return VokList.firstSelectedVok(); } /** returns the first selected vok */ VVokabel *DokVokView::nextSelectedVok() { return VokList.nextSelectedVok(); } /** returns true if items are selected */ bool DokVokView::hasSelectedItems() { return ( firstSelectedVok() ); //TODO: think about a better solution direct in VokList... counters or so? } /** selects all */ void DokVokView::selectAll() { VokList.selectAll(); } /** deselects all */ void DokVokView::deselectAll() { VokList.deselectAll(); } /** inverts Selection */ void DokVokView::invertSelection() { VokList.invertSelection(); } /** sets the EditMode */ void DokVokView::setEditMode ( bool Editing = true ) { if( Editing ) VokList.setPalette( EditingPalette ); else VokList.setPalette( palette() ); VokList.setEditMode( Editing ); } void DokVokView::setLanguage( int Column, const char *Language ) { if( Language && (Language != "") ) { VLanguageFile *LanguageFile = new VLanguageFile( Language, true ); VokList.setColumnFont( Column, LanguageFile->font() ); if( Column == TermColumn ) { TypInfoList = LanguageFile->typInfoList(); emit newTypInfoList( &TypInfoList ); } delete LanguageFile; } } dokvok-0.1.3/dokvok/View/dokvokview.h 644 764 144 11131 7066762035 12671 /*************************************************************************** dokvokview.h - description ------------------- begin : Son Dez 19 13:14:00 CET 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef DOKVOKVIEW_H #define DOKVOKVIEW_H #ifdef HAVE_CONFIG_H #include #endif // include files for Qt #include #include #include //include my files #include "../vtyplist.h" #include "vvoklist.h" #include class DokVokDoc; /** The DokVokView class provides the view widget for the DokVokApp instance. * The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As DokVokView is part of the * docuement-view model, it needs a reference to the document object connected with it by the DokVokApp class to manipulate and display * the document structure provided by the DokVokDoc class. * * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. * @version KDevelop version 0.4 code generation */ class DokVokView : public QWidget { Q_OBJECT public: /** Constructor for the main view */ DokVokView(QWidget *parent = 0, const char *name=0); /** Destructor for the main view */ ~DokVokView(); /** returns a pointer to the document connected to the view instance. Mind that this method requires a DokVokApp instance as a parent * widget to get to the window document pointer by calling the DokVokApp::getDocument() method. * * @see DokVokApp#getDocument */ DokVokDoc *getDocument() const; /** */ virtual void resizeEvent( QResizeEvent *ResizeEvent ) { VokList.resize( width(), height() ); } /** contains the implementation for printing functionality */ void print(QPrinter *pPrinter); /** appends new vokabel */ void appendVokabel ( VVokabel *Vokabel, bool UpdateView = true ); /** clears the VokList */ void clearVokList() { VokList.clear(); } /** returns the Editmode */ const bool &isEditMode() { return VokList.isEditMode(); }; /** returns the currentl vok */ VVokabel *currentVok(); /** returns the first seleted vok */ VVokabel *firstSelectedVok(); /** returns the next selected vok */ VVokabel *nextSelectedVok(); /** if there is marked text in the EditField it will be returned */ // QString selectedText(); /** returns true if items are selected */ bool hasSelectedItems();; /** inserts text in the editfield */ void insertText() { VokList.insertText(); } /** cuts text in the editfield */ void cutText() { VokList.cutText(); } /** copies text in the editfield */ void copyText() { VokList.copyText(); } /** selects all */ void selectAll(); /** deselects all */ void deselectAll(); /** inverts Selection */ void invertSelection(); VTypInfoList *typInfoList() { return &TypInfoList; } private: /** */ VVokList VokList; /** */ VTypInfoList TypInfoList; /** a palette where active looks like normal BUT SEEMS TO HAVE NO EFFECT :( */ QPalette EditingPalette; protected slots: // Protected slots /** tells the Doc to append new Vokabel to list */ void askForNewVokabel(); /** sets modified */ void setModified(); public slots: // Public slots /** sets the titel of a column */ void setColumnTitel( int Column, const char *Titel ) { VokList.setColumnText( Column, Titel ); } /** sets the titel of a column */ void setLanguage( int Column, const char *Titel ); /** sets the EditMode */ void setEditMode ( bool Editing = true ); /** */ void setPasteFromClipboard ( bool Switch ) { emit clipboardHasData( Switch ); } signals: /** */ void clipboardHasData( bool ); /** */ void newTypInfoList( VTypInfoList * ); }; #endif // DOKVOKVIEW_H dokvok-0.1.3/dokvok/View/listedit.h 644 764 144 11635 7066633345 12334 /*************************************************************************** listedit.h - description ------------------- begin : Fri Sep 24 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef LISTEDIT_H #define LISTEDIT_H #include #include #include #include #include #include #include #define ToLeft -1 #define ToRight 1 /**implements a editable listview *@author Friedrich W. H. Kossebau */ struct VFontEntry { QFont *Font; }; class ListEditItem; class ListEdit : public QListView { Q_OBJECT friend class ListEditItem; public: ListEdit(QWidget *parent=0, const char *name=0); ~ListEdit(); /** */ virtual bool eventFilter( QObject * o, QEvent * e ); /** */ virtual void resize( int w, int h ); /** clears list and resets all edit data */ virtual void clear(); /** returns the Editmode */ const bool &isEditMode() { return EditMode; }; /** sets the mode to or from Editing who would have guessed ;-) */ void setEditMode( const bool Editing = true ); /** sets the Edited Column */ void setEditedColumn( const int NewColumn ); /** returns edited column */ const int editedColumn() { return EditedColumn; } /** returns last item else 0*/ QListViewItem *lastItem(); /** returns the font of column Column */ const QFont &columnFont( int Column ); /** sets the font of column Column */ void setColumnFont( int Column, const QFont & f ); /** sets the standard font for all columns */ virtual void setFont ( const QFont & f ); /** */ virtual int addColumn ( const char * label, int width = -1 ); public slots: /** passes text to list */ void setText( const char * ); /** sets EditField to new position */ void slotSortingChanged( int column ); protected: // Protected methods /** */ virtual void mousePressEvent ( QMouseEvent *e ); /** handles the pressing of Return, Enter and Tab */ virtual bool handleEnterPress( const QKeyEvent *k ); /** finds the next editable column, direction is +1 or -1, returns FALSE if nothing found */ bool changeColumn ( const int Direction, const int NewCursorPos = -1 ); /** sets the EditField to the next line in the column Column */ bool goNextLine ( const int Direction = 1, const int NewCursorPos = -1, const int Column = 0 ); /** sets the new cursor position */ void setCursorPos( const int NewCursorPos = -1 ); /** returns cursor position */ const int cursorPos() { return CursorPos; } /** creates the EditField */ void initEditField(); /** check if new font is higher than the one used */ void checkFontMetricHeight( const QFont &Font ); protected slots: /** sets the new coordinates */ virtual void updateEditField(); protected: // Protected attributes /** the field for enabling direct editing in the list */ QLineEdit *EditField; /** needed for signaling of size changes */ QHeader *Header; /** the column in which is actually edited */ int EditedColumn; /** holds the information about the state of the list */ bool EditMode; /** used to set the position of the cursor */ int CursorPos; /** is set true if item is just changing to prevent sending of justModified */ bool ItemIsChanging; /** */ uint FontMetricsHeight; /** */ QList FontList; signals: // Signals /** is emmited if any change was made to the list */ void justModified(); }; /**special type of QListViewItem that supports the editing facility of ListEdit *@author Friedrich W. H. Kossebau */ class ListEditItem : public QListViewItem { public: ListEditItem( QListView * parent, const char * = 0, const char * = 0 ); ListEditItem( QListView * parent, QListViewItem * after, const char * = 0, const char * = 0 ); ~ListEditItem(); /** draws the text with individuell fonts*/ void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ); /** Performs setup. */ void setup(); }; #endif dokvok-0.1.3/dokvok/View/vvoklist.h 644 764 144 7041 7066761673 12356 /*************************************************************************** voklist.h - description ------------------- begin : Fri Sep 24 1999 copyright : (C) 1999 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VVOKLIST_H #define VVOKLIST_H #include #include #include #include "../vvokabellist.h" #include "listedit.h" /** *@author Friedrich W. H. Kossebau */ class VVokList; class VVokItem : public ListEditItem { public: VVokItem( QListView * parent, VVokabel *Vok ); VVokItem( QListView * parent, QListViewItem * after, VVokabel *Vok ); ~VVokItem(); /** returns the text right out of the basic list */ virtual const char *text( int column ) const; /** sets text direct in the basic list */ virtual void setText( int column, const char *text); /** returns a pointer to its vokabel */ VVokabel * vokabel(); protected: VVokabel *Vokabel; }; /**implements the view of the list of the vocabulary *@author Friedrich W. H. Kossebau */ class VVokList : public ListEdit { Q_OBJECT friend class VVokItem; public: VVokList( QWidget *parent=0, const char *name=0 ); ~VVokList(); /** appends new vokabel at the end */ virtual void appendVokabel( VVokabel *Vokabel, bool UpdateView = true ); /** changes the size of the header to fit in the view as standard there should be no horizontal Scrollbar */ void adjustHeaderWidth( int Width = -1, int Height = -1 ); /** ensures correct headersetting */ // void show(); /** ensures correct headersetting */ void resizeEvent ( QResizeEvent * e ); /** returns the first seleted vok */ VVokabel *currentVok(); /** returns the first seleted vok */ VVokabel *firstSelectedVok(); /** returns the next selected vok */ VVokabel *nextSelectedVok( bool first = false ); /** inserts text in the editfield from the clipboard*/ void insertText(); /** copies text from the editfield*/ void copyText() { EditField->copy(); } /** cuts text from the editfield*/ void cutText() { EditField->cut(); } /** selects all */ void selectAll(); /** deselects all */ void deselectAll(); /** inverts Selection */ void invertSelection(); private: /** */ VVokItem *SelectedIterator; VVokItem *Iterator; protected: // Protected methods /** */ virtual bool handleEnterPress( const QKeyEvent *k ); /** reimplemented for Clipboard Checking*/ virtual void focusInEvent( QFocusEvent * Event ); // virtual void paintEvent ( QPaintEvent * ); signals: // Signals /** is emmited if Enter is pressed at the last line */ void enterPressedLastLine(); /** */ void clipboardHasData( bool ); }; #endif dokvok-0.1.3/po/ 777 764 144 0 7070117405 6514 5dokvok-0.1.3/po/Makefile.in 644 764 144 20341 7070117405 10575 # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ####### kdevelop will overwrite this part!!! (begin)########## SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ GLINC = @GLINC@ GLLIB = @GLLIB@ IDL = @IDL@ KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ KDE_INCLUDES = @KDE_INCLUDES@ KDE_LDFLAGS = @KDE_LDFLAGS@ KDE_RPATH = @KDE_RPATH@ LD = @LD@ LIBCOMPAT = @LIBCOMPAT@ LIBCRYPT = @LIBCRYPT@ LIBDL = @LIBDL@ LIBJPEG = @LIBJPEG@ LIBMICO = @LIBMICO@ LIBOBJS = @LIBOBJS@ LIBPNG = @LIBPNG@ LIBPTHREAD = @LIBPTHREAD@ LIBPYTHON = @LIBPYTHON@ LIBQIMGIO = @LIBQIMGIO@ LIBSOCKET = @LIBSOCKET@ LIBTIFF = @LIBTIFF@ LIBTOOL = @LIBTOOL@ LIBUCB = @LIBUCB@ LIBUTIL = @LIBUTIL@ LIBXDMCP = @LIBXDMCP@ LIBZ = @LIBZ@ LIB_KDECORE = @LIB_KDECORE@ LIB_KDEUI = @LIB_KDEUI@ LIB_KFILE = @LIB_KFILE@ LIB_KFM = @LIB_KFM@ LIB_KHTML = @LIB_KHTML@ LIB_KHTMLW = @LIB_KHTMLW@ LIB_KIMGIO = @LIB_KIMGIO@ LIB_LIBS = @LIB_LIBS@ LIB_QT = @LIB_QT@ LIB_X11 = @LIB_X11@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MICO_INCLUDES = @MICO_INCLUDES@ MICO_LDFLAGS = @MICO_LDFLAGS@ MOC = @MOC@ NM = @NM@ PACKAGE = @PACKAGE@ PAMINC = @PAMINC@ PAMLIBPATHS = @PAMLIBPATHS@ PAMLIBS = @PAMLIBS@ PASSWDLIB = @PASSWDLIB@ PYTHONINC = @PYTHONINC@ PYTHONLIB = @PYTHONLIB@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ RANLIB = @RANLIB@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XBINDIR = @XBINDIR@ XPMINC = @XPMINC@ XPMLIB = @XPMLIB@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_INCLUDES = @X_INCLUDES@ X_LDFLAGS = @X_LDFLAGS@ X_SERVER = @X_SERVER@ ac_xdmdir = @ac_xdmdir@ all_includes = @all_includes@ all_libraries = @all_libraries@ install_root = @install_root@ kde_appsdir = @kde_appsdir@ kde_bindir = @kde_bindir@ kde_cgidir = @kde_cgidir@ kde_confdir = @kde_confdir@ kde_datadir = @kde_datadir@ kde_htmldir = @kde_htmldir@ kde_icondir = @kde_icondir@ kde_includes = @kde_includes@ kde_libraries = @kde_libraries@ kde_locale = @kde_locale@ kde_mimedir = @kde_mimedir@ kde_minidir = @kde_minidir@ kde_partsdir = @kde_partsdir@ kde_sounddir = @kde_sounddir@ kde_toolbardir = @kde_toolbardir@ kde_wallpaperdir = @kde_wallpaperdir@ qt_includes = @qt_includes@ qt_libraries = @qt_libraries@ x_includes = @x_includes@ x_libraries = @x_libraries@ xdmconfigsubdir = @xdmconfigsubdir@ POFILES = de.po EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES) ####### kdevelop will overwrite this part!!! (end)############ GMOFILES = $(POFILES:.po=.gmo) localedir = $(kde_locale) MAINTAINERCLEANFILES = $(GMOFILES) GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ SUFFIXES = .po .gmo mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best all: all-redirect .SUFFIXES: .SUFFIXES: .gmo .po $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps po/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = po distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data-local install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-local uninstall: uninstall-am all-am: Makefile all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am -rm -f libtool distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: tags distdir info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-local install-data-am install-data install-am install \ uninstall-local uninstall-am uninstall all-redirect all-am all \ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean install-data-local: $(mkinstalldirs) $(kde_localedir)/de/LC_MESSAGES/ $(INSTALL_DATA) de.gmo $(kde_localedir)/de/LC_MESSAGES/dokvok.mo uninstall-local: -rm -f $(kde_localedir)/de/LC_MESSAGES/dokvok.mo all: all-@USE_NLS@ install-data-local: install-@USE_NLS@ .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< all-yes: $(GMOFILES) all-no: install-yes: all @catalogs='$(GMOFILES)'; \ for cat in $$catalogs; do \ destdir=$(localedir); \ lang=`echo $$cat | sed 's/\.gmo//'`; \ name=$(PACKAGE).mo \ dir=$$destdir/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $$dir; \ $(INSTALL_DATA) $$cat $$dir/$$name; \ echo "installing $$cat as $$dir/$$name"; \ done install-no: uninstall-local: @catalogs='$(GMOFILES)'; \ for cat in $$catalogs; do \ destdir=$(localedir); \ lang=`echo $$cat | sed 's/\.gmo//'`; \ name=$(PACKAGE).mo; \ dir=$$destdir/$$lang/LC_MESSAGES; \ rm -f $$cat $$dir/$$name; \ echo "removing $$dir/$$name" ; \ done merge: @catalogs='$(POFILES)'; \ for cat in $$catalogs; do \ name=$(PACKAGE).pot ; \ echo $$cat $$name; \ msgmerge $$cat $$name > $$cat.new ; \ if diff $$cat $$cat.new; then \ rm $$cat.new; \ else \ mv $$cat.new $$cat ; \ fi; \ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dokvok-0.1.3/po/Makefile.am 644 764 144 3206 7066761424 10560 ####### kdevelop will overwrite this part!!! (begin)########## POFILES = de.po EXTRA_DIST = de.gmo install-data-local: $(mkinstalldirs) $(kde_localedir)/de/LC_MESSAGES/ $(INSTALL_DATA) de.gmo $(kde_localedir)/de/LC_MESSAGES/dokvok.mo uninstall-local: -rm -f $(kde_localedir)/de/LC_MESSAGES/dokvok.mo ####### kdevelop will overwrite this part!!! (end)############ GMOFILES = $(POFILES:.po=.gmo) localedir = $(kde_locale) MAINTAINERCLEANFILES = $(GMOFILES) GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES) all: all-@USE_NLS@ install-data-local: install-@USE_NLS@ SUFFIXES = .po .gmo .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< all-yes: $(GMOFILES) all-no: install-yes: all @catalogs='$(GMOFILES)'; \ for cat in $$catalogs; do \ destdir=$(localedir); \ lang=`echo $$cat | sed 's/\.gmo//'`; \ name=$(PACKAGE).mo \ dir=$$destdir/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $$dir; \ $(INSTALL_DATA) $$cat $$dir/$$name; \ echo "installing $$cat as $$dir/$$name"; \ done install-no: uninstall-local: @catalogs='$(GMOFILES)'; \ for cat in $$catalogs; do \ destdir=$(localedir); \ lang=`echo $$cat | sed 's/\.gmo//'`; \ name=$(PACKAGE).mo; \ dir=$$destdir/$$lang/LC_MESSAGES; \ rm -f $$cat $$dir/$$name; \ echo "removing $$dir/$$name" ; \ done merge: @catalogs='$(POFILES)'; \ for cat in $$catalogs; do \ name=$(PACKAGE).pot ; \ echo $$cat $$name; \ msgmerge $$cat $$name > $$cat.new ; \ if diff $$cat $$cat.new; then \ rm $$cat.new; \ else \ mv $$cat.new $$cat ; \ fi; \ done dokvok-0.1.3/po/dokvok.pot 644 764 144 23423 7067513357 10571 # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2000-03-27 01:02+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: ENCODING\n" #: Dialoge/vlangdialog.cpp:96 Dialoge/vtypedit.cpp:95 dokvok.cpp:118 msgid "&New" msgstr "" #: dokvok.cpp:119 msgid "New &from..." msgstr "" #: dokvok.cpp:120 msgid "New from &this" msgstr "" #: dokvok.cpp:122 msgid "Open &recent" msgstr "" #: dokvok.cpp:124 msgid "Re&vert" msgstr "" #: dokvok.cpp:151 msgid "Cu&t" msgstr "" #: dokvok.cpp:155 msgid "&Set Typ" msgstr "" #: dokvok.cpp:156 msgid "&New Vokabel" msgstr "" #: dokvok.cpp:159 msgid "&Editmode" msgstr "" #: dokvok.cpp:162 msgid "&Select all" msgstr "" #: dokvok.cpp:163 msgid "&Deselect all" msgstr "" #: dokvok.cpp:164 msgid "&Invert Selection" msgstr "" #: dokvok.cpp:170 msgid "&Toolbar" msgstr "" #: dokvok.cpp:171 msgid "&Statusbar" msgstr "" #: dokvok.cpp:176 msgid "&Properties" msgstr "" #: dokvok.cpp:186 msgid "&General" msgstr "" #: dokvok.cpp:187 msgid "&Questioning" msgstr "" #: dokvok.cpp:188 msgid "&Languages" msgstr "" #: dokvok.cpp:204 msgid "&List" msgstr "" #: dokvok.cpp:205 msgid "&Learning" msgstr "" #: Abfrage/vabfragedialog.cpp:122 dokvok.cpp:206 msgid "&Settings" msgstr "" #: dokvok.cpp:240 msgid "New File" msgstr "" #: dokvok.cpp:241 msgid "Open File" msgstr "" #: dokvok.cpp:242 msgid "Save File" msgstr "" #: dokvok.cpp:249 msgid "Editmode" msgstr "" #: dokvok.cpp:274 dokvok.cpp:1030 msgid "Ready." msgstr "" #: dokvok.cpp:372 msgid "no typ" msgstr "" #: dokvok.cpp:386 msgid "The file " msgstr "" #: dokvok.cpp:386 msgid " couldn't be opened." msgstr "" #: dokvok.cpp:399 msgid "" "This document couldn't be saved\n" "under the filename " msgstr "" #: dokvok.cpp:399 msgid "." msgstr "" #: dokvok.cpp:408 dokvok.cpp:715 dokvok.cpp:738 dokvok.cpp:798 msgid "Opening file..." msgstr "" #: dokvok.cpp:565 dokvok.cpp:682 dokvok.cpp:724 msgid "" "*.vok|DokVok files (*.vok)\n" "*|All files (*)" msgstr "" #: dokvok.cpp:579 msgid "The selected filename\n" msgstr "" #: dokvok.cpp:581 msgid "" "\n" " is in use.\n" "Save anyway?" msgstr "" #: dokvok.cpp:605 msgid "" "The current document has been modified.\n" "Do you want to save it?" msgstr "" #: dokvok.cpp:646 dokvok.cpp:1324 msgid "Opening a new application window..." msgstr "" #: dokvok.cpp:656 msgid "Creating new document..." msgstr "" #: dokvok.cpp:673 msgid "Creating new list from..." msgstr "" #: dokvok.cpp:682 dokvok.cpp:724 msgid "Open File..." msgstr "" #: dokvok.cpp:698 msgid "Creating new list from this..." msgstr "" #: dokvok.cpp:763 msgid "Saving file..." msgstr "" #: dokvok.cpp:779 msgid "Saving file with a new filename..." msgstr "" #: dokvok.cpp:789 msgid "Closing file..." msgstr "" #: dokvok.cpp:800 msgid "Should really all changes get lost?" msgstr "" #: dokvok.cpp:811 msgid "Printing..." msgstr "" #: dokvok.cpp:824 msgid "Exiting..." msgstr "" #: dokvok.cpp:844 msgid "Deleting selection..." msgstr "" #: dokvok.cpp:853 msgid "Cutting selection..." msgstr "" #: dokvok.cpp:862 msgid "Copying selection to clipboard..." msgstr "" #: dokvok.cpp:871 msgid "Inserting clipboard contents..." msgstr "" #: dokvok.cpp:880 msgid "Selecting all..." msgstr "" #: dokvok.cpp:889 msgid "Deselecting all..." msgstr "" #: dokvok.cpp:898 msgid "Inverting Selection..." msgstr "" #: dokvok.cpp:912 msgid "Inserting new vokabel..." msgstr "" #: dokvok.cpp:925 msgid "Toggle the edit mode..." msgstr "" #: dokvok.cpp:938 msgid "Toggle the toolbar..." msgstr "" #: dokvok.cpp:957 msgid "Toggle the statusbar..." msgstr "" #: dokvok.cpp:977 msgid "Editing list properties..." msgstr "" #: dokvok.cpp:987 msgid "Starting learning..." msgstr "" #: dokvok.cpp:997 msgid "Editing DokVok general settings..." msgstr "" #: dokvok.cpp:1007 msgid "Editing DokVok questioning settings..." msgstr "" #: dokvok.cpp:1017 msgid "Editing DokVok languages..." msgstr "" #: dokvok.cpp:1170 msgid "Opens a new application window" msgstr "" #: dokvok.cpp:1174 msgid "Creates a new list" msgstr "" #: dokvok.cpp:1178 msgid "Creates a new list based on an existing list" msgstr "" #: dokvok.cpp:1182 msgid "Creates a new list based on the actual list" msgstr "" #: dokvok.cpp:1186 msgid "Opens an existing list" msgstr "" #: dokvok.cpp:1190 msgid "Opens a recently used file" msgstr "" #: dokvok.cpp:1194 msgid "Saves the actual list" msgstr "" #: dokvok.cpp:1198 msgid "Saves the actual list as..." msgstr "" #: dokvok.cpp:1202 msgid "Closes the actual list" msgstr "" #: dokvok.cpp:1206 msgid "Prints out the actual list" msgstr "" #: dokvok.cpp:1210 msgid "Quits the application" msgstr "" #: dokvok.cpp:1214 msgid "Cuts the selected section and puts it to the clipboard" msgstr "" #: dokvok.cpp:1218 msgid "Copies the selected section to the clipboard" msgstr "" #: dokvok.cpp:1222 msgid "Pastes the clipboard contents to actual position" msgstr "" #: dokvok.cpp:1226 msgid "Appends a new vokabel to the list" msgstr "" #: dokvok.cpp:1230 msgid "Sets the typ of the vocabel(s)" msgstr "" #: dokvok.cpp:1234 msgid "Enables/disables the edit mode" msgstr "" #: dokvok.cpp:1238 msgid "Enables/disables the toolbar" msgstr "" #: dokvok.cpp:1242 msgid "Enables/disables the statusbar" msgstr "" #: dokvok.cpp:1246 msgid "Opens a dialog for editing of the list properties" msgstr "" #: dokvok.cpp:1250 msgid "Opens a dialog for editing of the general settings" msgstr "" #: dokvok.cpp:1254 msgid "Opens a dialog for editing of the questioning settings" msgstr "" #: dokvok.cpp:1258 msgid "Opens a dialog for editing of the languages" msgstr "" #: Abfrage/vabfrage.cpp:25 msgid "Given" msgstr "" #: Abfrage/vabfrage.cpp:92 msgid "Right is" msgstr "" #: Abfrage/vabfrage.cpp:93 msgid "Asked" msgstr "" #: Abfrage/vabfragedialog.cpp:84 msgid "Learning" msgstr "" #: Abfrage/vabfragedialog.cpp:264 msgid "" "Faulty.\n" "\n" "But there was\n" "something right...\n" "\n" "Try it again." msgstr "" #: Abfrage/vabfragedialog.cpp:265 msgid "" "Still Faulty.\n" "\n" "Memorize..." msgstr "" #: Abfrage/vabfragedialog.cpp:266 msgid "" "Faulty.\n" "\n" "Something was right but not enough..." msgstr "" #: Abfrage/vabfragedialog.cpp:268 msgid "" "Wrong.\n" "\n" "One more guess, please!" msgstr "" #: Abfrage/vabfragedialog.cpp:269 msgid "" "Wrong again.\n" "\n" "Concentrate." msgstr "" #: Abfrage/vabfragedialog.cpp:270 msgid "" "Wrong.\n" "\n" "You had no clue, had you..." msgstr "" #: Abfrage/vabfragedialog.cpp:276 msgid "Right!" msgstr "" #: Abfrage/vabfragedialog.cpp:282 msgid "" "Right!\n" "\n" "At least it's sufficient." msgstr "" #: Abfrage/vabfragedialog.cpp:293 msgid "" "Oh, too sad.\n" "You don't know.\n" "\n" "Well, look what it was supposed to be..." msgstr "" #: Abfrage/vquestdialog.cpp:32 msgid "&Partial knowledge sufficient" msgstr "" #: Abfrage/vquestdialog.cpp:33 msgid "&Second Chance" msgstr "" #: Abfrage/vquestdialog.cpp:34 msgid "Show &Corrected Input" msgstr "" #: Abfrage/vquestdialog.cpp:37 msgid "&Unknown Character" msgstr "" #: Abfrage/vquestdialog.cpp:64 msgid "Settings for questioning" msgstr "" #: Abfrage/vquestdialog.cpp:67 Dialoge/dokvokdialog.cpp:56 #: Dialoge/vlangdialog.cpp:101 Dialoge/vlistdialog.cpp:69 msgid "General" msgstr "" #: Abfrage/vquestdialog.cpp:105 Dialoge/vdialog.cpp:47 msgid "&Ok" msgstr "" #: dokvokdoc.cpp:111 dokvokdoc.cpp:145 msgid "No comment" msgstr "" #: dokvokdoc.cpp:114 dokvokdoc.cpp:148 msgid "Term" msgstr "" #: dokvokdoc.cpp:115 dokvokdoc.cpp:149 msgid "Translation" msgstr "" #: dokvokdoc.cpp:304 msgid "Copy of " msgstr "" #: vlanguage.cpp:65 msgid "No language" msgstr "" #: vlanguage.cpp:105 msgid "New language" msgstr "" #: Dialoge/vlangdialog.cpp:38 msgid "&Name" msgstr "" #: Dialoge/vlangdialog.cpp:40 msgid "&Short" msgstr "" #: Dialoge/vlangdialog.cpp:44 msgid "&Font" msgstr "" #: Dialoge/vlangdialog.cpp:85 msgid "Languages" msgstr "" #: Dialoge/vlangdialog.cpp:216 msgid "Short" msgstr "" #: Dialoge/vlangdialog.cpp:221 msgid "An empty Code is not possible." msgstr "" #: Dialoge/vlangdialog.cpp:233 msgid "" "Are you sure that you want\n" "to delete the language " msgstr "" #: Dialoge/vlangdialog.cpp:235 Dialoge/vtypedit.cpp:169 msgid "Resurance" msgstr "" #: Dialoge/vlangdialog.cpp:248 msgid "-Bold" msgstr "" #: Dialoge/vlangdialog.cpp:250 msgid "-Italic" msgstr "" #: Dialoge/vlangdialog.cpp:252 msgid "-Roman" msgstr "" #: Dialoge/vlistdialog.cpp:28 msgid "&Titel" msgstr "" #: Dialoge/vlistdialog.cpp:30 msgid "&1. Column" msgstr "" #: Dialoge/vlistdialog.cpp:32 msgid "&2. Column" msgstr "" #: Dialoge/vlistdialog.cpp:40 msgid "&Comment" msgstr "" #: Dialoge/vlistdialog.cpp:42 msgid "&Keywords" msgstr "" #: Dialoge/vlistdialog.cpp:44 msgid "&Author" msgstr "" #: Dialoge/vlistdialog.cpp:62 msgid "Properties of the list" msgstr "" #: Dialoge/vlistdialog.cpp:105 msgid "Additional" msgstr "" #: Dialoge/dokvokdialog.cpp:31 msgid "&Standard Directory" msgstr "" #: Dialoge/dokvokdialog.cpp:53 msgid "Properties of DokVok" msgstr "" #: Dialoge/dokvokdialog.cpp:79 msgid "Start with last file" msgstr "" #: Dialoge/dokvokdialog.cpp:117 msgid "The selected file is not a directory. Please choose a directory." msgstr "" #: Dialoge/vtypedit.cpp:26 msgid "Types" msgstr "" #: Dialoge/vtypedit.cpp:34 msgid "Symbolic Name" msgstr "" #: Dialoge/vtypedit.cpp:36 msgid "Name" msgstr "" #: Dialoge/vtypedit.cpp:38 msgid "Symbol" msgstr "" #: Dialoge/vtypedit.cpp:139 msgid "Symbolic name" msgstr "" #: Dialoge/vtypedit.cpp:144 msgid "An empty Name is not possible." msgstr "" #: Dialoge/vtypedit.cpp:167 msgid "" "Are you sure that you want\n" "to delete the typ " msgstr "" dokvok-0.1.3/po/de.po 644 764 144 33177 7067513360 7501 # KTranslator Generated File # KTranslator Generated File # SOME DESCRIPTIVE TITLE. # Copyright (C) 2000 Free Software Foundation, Inc. # Friedrich W. H. Kossebau \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: ENCODING\n" #: Dialoge/vlangdialog.cpp:96 Dialoge/vtypedit.cpp:95 dokvok.cpp:118 msgid "&New" msgstr "&Neu" #: dokvok.cpp:119 msgid "New &from..." msgstr "Neu &von..." #: dokvok.cpp:120 msgid "New from &this" msgstr "Neu von &diesem" #: dokvok.cpp:122 msgid "Open &recent" msgstr "&Zuletzt geöffnete" #: dokvok.cpp:124 msgid "Re&vert" msgstr "&Wiederherstellen" #: dokvok.cpp:151 msgid "Cu&t" msgstr "&Ausschneiden" #: dokvok.cpp:155 msgid "&Set Typ" msgstr "" #: dokvok.cpp:156 msgid "&New Vokabel" msgstr "&Neue Vokabel" #: dokvok.cpp:159 msgid "&Editmode" msgstr "&Editiermodus" #: dokvok.cpp:162 msgid "&Select all" msgstr "&Alles wählen" #: dokvok.cpp:163 msgid "&Deselect all" msgstr "Alles abwählen" #: dokvok.cpp:164 msgid "&Invert Selection" msgstr "Auswahl &umkehren" #: dokvok.cpp:170 msgid "&Toolbar" msgstr "&Werkzeugleiste" #: dokvok.cpp:171 msgid "&Statusbar" msgstr "&Statusleiste anzeigen" #: dokvok.cpp:176 msgid "&Properties" msgstr "&Eigenschaften" #: dokvok.cpp:186 msgid "&General" msgstr "&Allgemein" #: dokvok.cpp:187 msgid "&Questioning" msgstr "&Abfragend" #: dokvok.cpp:188 msgid "&Languages" msgstr "" #: dokvok.cpp:204 msgid "&List" msgstr "&Liste" #: dokvok.cpp:205 msgid "&Learning" msgstr "L&ernen" #: Abfrage/vabfragedialog.cpp:122 dokvok.cpp:206 msgid "&Settings" msgstr "&Einstellungen" #: dokvok.cpp:240 msgid "New File" msgstr "Neue Datei" #: dokvok.cpp:241 msgid "Open File" msgstr "Datei öffnen" #: dokvok.cpp:242 msgid "Save File" msgstr "Datei speichern" #: dokvok.cpp:249 msgid "Editmode" msgstr "Editiermodus" #: dokvok.cpp:274 dokvok.cpp:1030 msgid "Ready." msgstr "Bereit." #: dokvok.cpp:372 msgid "no typ" msgstr "" #: dokvok.cpp:386 msgid "The file " msgstr "Die Datei " #: dokvok.cpp:386 msgid " couldn't be opened." msgstr " konnte nicht geöffnet werden." #: dokvok.cpp:399 msgid "" "This document couldn't be saved\n" "under the filename " msgstr "" "Dieses Dokument konnte nicht\n" "gespeichert werden\n" "mit diesem Dateinamen" #: dokvok.cpp:399 #, fuzzy msgid "." msgstr "1." #: dokvok.cpp:408 dokvok.cpp:715 dokvok.cpp:738 dokvok.cpp:798 msgid "Opening file..." msgstr "Öffne Datei..." #: dokvok.cpp:565 dokvok.cpp:682 dokvok.cpp:724 msgid "" "*.vok|DokVok files (*.vok)\n" "*|All files (*)" msgstr "" "*.vok|DokVok-Dateien (*.vok)\n" "*|Alle Dateien (*)" #: dokvok.cpp:579 msgid "The selected filename\n" msgstr "Der gewählte Dateiname\n" #: dokvok.cpp:581 msgid "" "\n" " is in use.\n" "Save anyway?" msgstr "" "\n" "ist in Benutzung.\n" "Trotzdem speichern?" #: dokvok.cpp:605 #, fuzzy msgid "" "The current document has been modified.\n" "Do you want to save it?" msgstr "" "Die Änderungen wurden nicht gespeichert!\n" "Wollen Sie sie jetzt speichern?" #: dokvok.cpp:646 dokvok.cpp:1324 msgid "Opening a new application window..." msgstr "Öffne ein neues Anwendungsfenster..." #: dokvok.cpp:656 msgid "Creating new document..." msgstr "Erzeuge ein neues Dokument..." #: dokvok.cpp:673 #, fuzzy msgid "Creating new list from..." msgstr "Erzeuge ein neues Dokument von..." #: dokvok.cpp:682 dokvok.cpp:724 msgid "Open File..." msgstr "Öffne Datei..." # #: dokvok.cpp:698 msgid "Creating new list from this..." msgstr "Erzeuge ein neues Dokument von diesem..." #: dokvok.cpp:763 msgid "Saving file..." msgstr "Sichere Datei..." #: dokvok.cpp:779 msgid "Saving file with a new filename..." msgstr "Speichere Datei unter einem neuen Dateinamen..." #: dokvok.cpp:789 msgid "Closing file..." msgstr "Schließe Datei..." #: dokvok.cpp:800 msgid "Should really all changes get lost?" msgstr "Sollen wirklich alle Änderungen verworfen werden?" #: dokvok.cpp:811 msgid "Printing..." msgstr "Drucken..." #: dokvok.cpp:824 msgid "Exiting..." msgstr "Beende..." # #: dokvok.cpp:844 msgid "Deleting selection..." msgstr "Auswahl wird gelöscht...." #: dokvok.cpp:853 msgid "Cutting selection..." msgstr "Auswahl wird ausgeschnitten...." #: dokvok.cpp:862 msgid "Copying selection to clipboard..." msgstr "Auswahl wird auf die Zwischenablage kopiert..." #: dokvok.cpp:871 msgid "Inserting clipboard contents..." msgstr "Inhalt der Zwischenablage wird eingefügt..." # #: dokvok.cpp:880 msgid "Selecting all..." msgstr "Wähle alles..." #: dokvok.cpp:889 msgid "Deselecting all..." msgstr "Wähle alles ab..." # #: dokvok.cpp:898 msgid "Inverting Selection..." msgstr "Auswahl wird invertiert...." #: dokvok.cpp:912 msgid "Inserting new vokabel..." msgstr "Neue Vokabel wird eingefügt..." #: dokvok.cpp:925 msgid "Toggle the edit mode..." msgstr "Schalte den Editiermodus ein/aus..." #: dokvok.cpp:938 msgid "Toggle the toolbar..." msgstr "Schalte die Werkzeugleiste an/aus..." #: dokvok.cpp:957 msgid "Toggle the statusbar..." msgstr "Schalte die Statuszeile an/aus..." #: dokvok.cpp:977 msgid "Editing list properties..." msgstr "Editiere die Eigenschaften der Liste..." # #: dokvok.cpp:987 msgid "Starting learning..." msgstr "Lernen...." #: dokvok.cpp:997 msgid "Editing DokVok general settings..." msgstr "Bearbeite allgemeine Einstellungen..." #: dokvok.cpp:1007 #, fuzzy msgid "Editing DokVok questioning settings..." msgstr "Bearbeite die Einstellungen für das Abfragen..." #: dokvok.cpp:1017 #, fuzzy msgid "Editing DokVok languages..." msgstr "Bearbeite allgemeine Einstellungen..." #: dokvok.cpp:1170 msgid "Opens a new application window" msgstr "Öffnet ein neues Fenster " #: dokvok.cpp:1174 #, fuzzy msgid "Creates a new list" msgstr "Erzeugt ein neues Dokument" #: dokvok.cpp:1178 msgid "Creates a new list based on an existing list" msgstr "Erzeugt eine neue Liste basierend auf einer existierenden Liste" #: dokvok.cpp:1182 msgid "Creates a new list based on the actual list" msgstr "Erzeugt eine neue Liste auf Basis der aktuellen" #: dokvok.cpp:1186 #, fuzzy msgid "Opens an existing list" msgstr "Öffnet ein bestehendes Dokument" #: dokvok.cpp:1190 msgid "Opens a recently used file" msgstr "Öffnet eine kürzlich bearbeitete Datei" #: dokvok.cpp:1194 #, fuzzy msgid "Saves the actual list" msgstr "Speichert das aktuelle Dokument" #: dokvok.cpp:1198 #, fuzzy msgid "Saves the actual list as..." msgstr "Speichert das aktuelle Dokument unter..." #: dokvok.cpp:1202 #, fuzzy msgid "Closes the actual list" msgstr "Schließt das aktuelle Dokument" #: dokvok.cpp:1206 msgid "Prints out the actual list" msgstr "" #: dokvok.cpp:1210 msgid "Quits the application" msgstr "Beendet die Anwendung" #: dokvok.cpp:1214 msgid "Cuts the selected section and puts it to the clipboard" msgstr "Schneidet die Auswahl aus und legt sie in die Zwischenablage" #: dokvok.cpp:1218 msgid "Copies the selected section to the clipboard" msgstr "Kopiert die markierte Auswahl zur Zwischenablage" #: dokvok.cpp:1222 msgid "Pastes the clipboard contents to actual position" msgstr "Fügt Inhalte aus der Zwischenablage an der aktuellen Position ein" #: dokvok.cpp:1226 msgid "Appends a new vokabel to the list" msgstr "Hängt eine neue Vokabel an die Liste" #: dokvok.cpp:1230 msgid "Sets the typ of the vocabel(s)" msgstr "" #: dokvok.cpp:1234 msgid "Enables/disables the edit mode" msgstr "" #: dokvok.cpp:1238 msgid "Enables/disables the toolbar" msgstr "" #: dokvok.cpp:1242 msgid "Enables/disables the statusbar" msgstr "" #: dokvok.cpp:1246 msgid "Opens a dialog for editing of the list properties" msgstr "Öffnet einen Dialog zur Bearbeitung der Listeneigenschaften" #: dokvok.cpp:1250 msgid "Opens a dialog for editing of the general settings" msgstr "Öffnet einen Dialog zum Bearbeiten der allgemeinen Einstellungen" #: dokvok.cpp:1254 #, fuzzy msgid "Opens a dialog for editing of the questioning settings" msgstr "Öffnet einen Dialog zum Bearbeiten der Einstellungen für das Abfragen" #: dokvok.cpp:1258 #, fuzzy msgid "Opens a dialog for editing of the languages" msgstr "Öffnet einen Dialog zum Bearbeiten der allgemeinen Einstellungen" #: Abfrage/vabfrage.cpp:25 msgid "Given" msgstr "Gegeben" #: Abfrage/vabfrage.cpp:92 msgid "Right is" msgstr "" #: Abfrage/vabfrage.cpp:93 msgid "Asked" msgstr "Gefragt" #: Abfrage/vabfragedialog.cpp:84 #, fuzzy msgid "Learning" msgstr "Lernen" #: Abfrage/vabfragedialog.cpp:264 msgid "" "Faulty.\n" "\n" "But there was\n" "something right...\n" "\n" "Try it again." msgstr "" #: Abfrage/vabfragedialog.cpp:265 msgid "" "Still Faulty.\n" "\n" "Memorize..." msgstr "" #: Abfrage/vabfragedialog.cpp:266 msgid "" "Faulty.\n" "\n" "Something was right but not enough..." msgstr "" #: Abfrage/vabfragedialog.cpp:268 msgid "" "Wrong.\n" "\n" "One more guess, please!" msgstr "" #: Abfrage/vabfragedialog.cpp:269 msgid "" "Wrong again.\n" "\n" "Concentrate." msgstr "" #: Abfrage/vabfragedialog.cpp:270 msgid "" "Wrong.\n" "\n" "You had no clue, had you..." msgstr "" #: Abfrage/vabfragedialog.cpp:276 msgid "Right!" msgstr "" #: Abfrage/vabfragedialog.cpp:282 msgid "" "Right!\n" "\n" "At least it's sufficient." msgstr "" #: Abfrage/vabfragedialog.cpp:293 msgid "" "Oh, too sad.\n" "You don't know.\n" "\n" "Well, look what it was supposed to be..." msgstr "" #: Abfrage/vquestdialog.cpp:32 msgid "&Partial knowledge sufficient" msgstr "&Teilweises Wissen ausreichend" #: Abfrage/vquestdialog.cpp:33 msgid "&Second Chance" msgstr "&Zweite Chance" #: Abfrage/vquestdialog.cpp:34 msgid "Show &Corrected Input" msgstr "Zeige &korrigierte Eingabe" #: Abfrage/vquestdialog.cpp:37 msgid "&Unknown Character" msgstr "&unbekanntes Zeichen" #: Abfrage/vquestdialog.cpp:64 msgid "Settings for questioning" msgstr "Einstellungen für das Abfragen" #: Abfrage/vquestdialog.cpp:67 Dialoge/dokvokdialog.cpp:56 #: Dialoge/vlangdialog.cpp:101 Dialoge/vlistdialog.cpp:69 #, fuzzy msgid "General" msgstr "Allgemein" #: Abfrage/vquestdialog.cpp:105 Dialoge/vdialog.cpp:47 #, fuzzy msgid "&Ok" msgstr "&Ok" #: dokvokdoc.cpp:111 dokvokdoc.cpp:145 #, fuzzy msgid "No comment" msgstr "unkommentiert" #: dokvokdoc.cpp:114 dokvokdoc.cpp:148 msgid "Term" msgstr "Ausdruck" #: dokvokdoc.cpp:115 dokvokdoc.cpp:149 msgid "Translation" msgstr "Übersetzung" #: dokvokdoc.cpp:304 msgid "Copy of " msgstr "Kopie von " #: vlanguage.cpp:65 msgid "No language" msgstr "" #: vlanguage.cpp:105 #, fuzzy msgid "New language" msgstr "Neue Datei" #: Dialoge/vlangdialog.cpp:38 #, fuzzy msgid "&Name" msgstr "&Neu" #: Dialoge/vlangdialog.cpp:40 #, fuzzy msgid "&Short" msgstr "&Autor" # #: Dialoge/vlangdialog.cpp:44 #, fuzzy msgid "&Font" msgstr "&Kommentar" #: Dialoge/vlangdialog.cpp:85 msgid "Languages" msgstr "" #: Dialoge/vlangdialog.cpp:216 msgid "Short" msgstr "" #: Dialoge/vlangdialog.cpp:221 msgid "An empty Code is not possible." msgstr "" #: Dialoge/vlangdialog.cpp:233 msgid "" "Are you sure that you want\n" "to delete the language " msgstr "" #: Dialoge/vlangdialog.cpp:235 Dialoge/vtypedit.cpp:169 msgid "Resurance" msgstr "" #: Dialoge/vlangdialog.cpp:248 msgid "-Bold" msgstr "" #: Dialoge/vlangdialog.cpp:250 msgid "-Italic" msgstr "" #: Dialoge/vlangdialog.cpp:252 msgid "-Roman" msgstr "" #: Dialoge/vlistdialog.cpp:28 msgid "&Titel" msgstr "&Titel" #: Dialoge/vlistdialog.cpp:30 #, fuzzy msgid "&1. Column" msgstr "&1. Spalte" #: Dialoge/vlistdialog.cpp:32 #, fuzzy msgid "&2. Column" msgstr "&2. Spalte" # #: Dialoge/vlistdialog.cpp:40 #, fuzzy msgid "&Comment" msgstr "&Kommentar" #: Dialoge/vlistdialog.cpp:42 msgid "&Keywords" msgstr "&Stichworte" #: Dialoge/vlistdialog.cpp:44 #, fuzzy msgid "&Author" msgstr "&Autor" #: Dialoge/vlistdialog.cpp:62 #, fuzzy msgid "Properties of the list" msgstr "Eigenschaften der Liste" #: Dialoge/vlistdialog.cpp:105 msgid "Additional" msgstr "Weiteres" #: Dialoge/dokvokdialog.cpp:31 #, fuzzy msgid "&Standard Directory" msgstr "&Standardverzeichnis" #: Dialoge/dokvokdialog.cpp:53 #, fuzzy msgid "Properties of DokVok" msgstr "Einstellungen von DokVok" #: Dialoge/dokvokdialog.cpp:79 msgid "Start with last file" msgstr "Lade bei Beginn die zuletzt bearbeitete Datei" #: Dialoge/dokvokdialog.cpp:117 msgid "The selected file is not a directory. Please choose a directory." msgstr "" "Der gewählte Pfad ist kein Verzeichnis.\n" "Bitte wählen Sie ein Verzeichnis." #: Dialoge/vtypedit.cpp:26 msgid "Types" msgstr "" #: Dialoge/vtypedit.cpp:34 msgid "Symbolic Name" msgstr "" #: Dialoge/vtypedit.cpp:36 msgid "Name" msgstr "" #: Dialoge/vtypedit.cpp:38 msgid "Symbol" msgstr "" #: Dialoge/vtypedit.cpp:139 msgid "Symbolic name" msgstr "" #: Dialoge/vtypedit.cpp:144 msgid "An empty Name is not possible." msgstr "" #: Dialoge/vtypedit.cpp:167 msgid "" "Are you sure that you want\n" "to delete the typ " msgstr "" #~ msgid "Label" #~ msgstr "Beschriftung" #~ msgid "" #~ "Here a comment can be given\n" #~ "to have some information about\n" #~ "the list.\n" #~ "\n" #~ "As you may have noticed,\n" #~ "this is displayed in the windowtitel." #~ msgstr "" #~ "Hier kann ein Kommentar\n" #~ "mit ein paar Informationen\n" #~ "über die Liste eingegeben werden.\n" #~ "\n" #~ "Wie Du vielleicht schon gemerkt hast,\n" #~ "wird dies im Fenstertitel angezeigt." #~ msgid "Here the two columns can be named." #~ msgstr "Hier können die beiden Spalten benannt werden." #~ msgid "2." #~ msgstr "2." #~ msgid "Right, here the author of the list can be named..." #~ msgstr "Genau, hier kann der Autor der Liste angegeben werden..." #~ msgid "Settings" #~ msgstr "Einstellungen" #~ msgid "New &Window" #~ msgstr "Neues &Fenster" #~ msgid "Save &As..." #~ msgstr "Speichern &unter..." dokvok-0.1.3/po/de.gmo 644 764 144 12776 7067515751 7655 Þ•Q¤m,àú  '0 B LV\ an Œ ˜¥ ´ À ÊÕÜå*ø #!.PV,f“!œ,¾+ë 0 O 6T ‹   ¶ "É ì    ! A Z q ~ ‡ – £ ­ #º Þ 2î 1! S r 0 ¾ Ê à è ï "ù  + < #U y  ¤ ¹ ¾ @È  3 T l „ š &¦ Í ì û  &2:A FTs ‚ œª¹Ð×ç/ü,$5Zb0t ¥.°?ß/O(m –<¤á%-'S { ˆ’+šÆå  ( ;H$W|@‹;Ì&"AI ‹–¬¾Æ/Ö&1Ew-’ ÀË ÔIß)EA#‡!«$Í òO9&/; A )'."K5>HB:L+<30G*4# 1ENI$8, 6Q!C =?M2JP% 7-D@(F is in use. Save anyway? couldn't be opened.&Deselect all&Editmode&General&Invert Selection&Keywords&Learning&List&New&New Vokabel&Partial knowledge sufficient&Properties&Questioning&Second Chance&Select all&Settings&Statusbar&Titel&Toolbar&Unknown Character*.vok|DokVok files (*.vok) *|All files (*)AdditionalAppends a new vokabel to the listAskedClosing file...Copies the selected section to the clipboardCopy of Copying selection to clipboard...Creates a new list based on an existing listCreates a new list based on the actual listCreating new document...Creating new list from this...Cu&tCuts the selected section and puts it to the clipboardCutting selection...Deleting selection...Deselecting all...Editing DokVok general settings...Editing list properties...EditmodeExiting...GivenInserting clipboard contents...Inserting new vokabel...Inverting Selection...New &from...New FileNew from &thisOpen &recentOpen FileOpen File...Opening a new application window...Opening file...Opens a dialog for editing of the general settingsOpens a dialog for editing of the list propertiesOpens a new application windowOpens a recently used filePastes the clipboard contents to actual positionPrinting...Quits the applicationRe&vertReady.Save FileSaving file with a new filename...Saving file...Selecting all...Settings for questioningShould really all changes get lost?Show &Corrected InputStart with last fileStarting learning...TermThe file The selected file is not a directory. Please choose a directory.The selected filename This document couldn't be saved under the filename Toggle the edit mode...Toggle the statusbar...Toggle the toolbar...Translation ist in Benutzung. Trotzdem speichern? konnte nicht geöffnet werden.Alles abwählen&Editiermodus&AllgemeinAuswahl &umkehren&StichworteL&ernen&Liste&Neu&Neue Vokabel&Teilweises Wissen ausreichend&Eigenschaften&Abfragend&Zweite Chance&Alles wählen&Einstellungen&Statusleiste anzeigen&Titel&Werkzeugleiste&unbekanntes Zeichen*.vok|DokVok-Dateien (*.vok) *|Alle Dateien (*)WeiteresHängt eine neue Vokabel an die ListeGefragtSchließe Datei...Kopiert die markierte Auswahl zur ZwischenablageKopie von Auswahl wird auf die Zwischenablage kopiert...Erzeugt eine neue Liste basierend auf einer existierenden ListeErzeugt eine neue Liste auf Basis der aktuellenErzeuge ein neues Dokument...Erzeuge ein neues Dokument von diesem...&AusschneidenSchneidet die Auswahl aus und legt sie in die ZwischenablageAuswahl wird ausgeschnitten....Auswahl wird gelöscht....Wähle alles ab...Bearbeite allgemeine Einstellungen...Editiere die Eigenschaften der Liste...EditiermodusBeende...GegebenInhalt der Zwischenablage wird eingefügt...Neue Vokabel wird eingefügt...Auswahl wird invertiert....Neu &von...Neue DateiNeu von &diesem&Zuletzt geöffneteDatei öffnenÖffne Datei...Öffne ein neues Anwendungsfenster...Öffne Datei...Öffnet einen Dialog zum Bearbeiten der allgemeinen EinstellungenÖffnet einen Dialog zur Bearbeitung der ListeneigenschaftenÖffnet ein neues Fenster Öffnet eine kürzlich bearbeitete DateiFügt Inhalte aus der Zwischenablage an der aktuellen Position einDrucken...Beendet die Anwendung&WiederherstellenBereit.Datei speichernSpeichere Datei unter einem neuen Dateinamen...Sichere Datei...Wähle alles...Einstellungen für das AbfragenSollen wirklich alle Änderungen verworfen werden?Zeige &korrigierte EingabeLade bei Beginn die zuletzt bearbeitete DateiLernen....AusdruckDie Datei Der gewählte Pfad ist kein Verzeichnis. Bitte wählen Sie ein Verzeichnis.Der gewählte Dateiname Dieses Dokument konnte nicht gespeichert werden mit diesem DateinamenSchalte den Editiermodus ein/aus...Schalte die Statuszeile an/aus...Schalte die Werkzeugleiste an/aus...Übersetzung