Autotools for glemon.
1.1 --- a/Makefile.am Wed Jun 21 08:42:01 2006 +0000
1.2 +++ b/Makefile.am Wed Jun 21 11:10:00 2006 +0000
1.3 @@ -1,5 +1,6 @@
1.4 AM_CPPFLAGS = -I$(top_srcdir) -DLOCALEDIR=\""$(datadir)/locale"\"
1.5 -LDADD = $(top_builddir)/lemon/libemon.la
1.6 +
1.7 +SUBDIRS = po m4
1.8
1.9 bin_PROGRAMS = glemon
1.10 BUILT_SOURCES = guipixbufs.h
1.11 @@ -43,8 +44,8 @@
1.12 i18n.h \
1.13 gettext.h
1.14
1.15 -glemon_CXXFLAGS = $(GTK_CFLAGS)
1.16 -glemon_LDFLAGS = $(GTK_LIBS)
1.17 +glemon_CXXFLAGS = $(GTK_CFLAGS) $(LEMON_CFLAGS)
1.18 +glemon_LDFLAGS = $(GTK_LIBS) $(LEMON_LIBS)
1.19 glemon_LDADD = $(LIBINTL)
1.20
1.21 IMAGES = \
1.22 @@ -70,4 +71,66 @@
1.23 --raw --build-list $(VARIABLES) > guipixbufs.h || \
1.24 ( rm -f guipixbufs.h && false )
1.25
1.26 -EXTRA_DIST = $(IMAGES) guipixbufs.h
1.27 +EXTRA_DIST = \
1.28 + $(IMAGES) \
1.29 + guipixbufs.h \
1.30 + ABOUT-NLS
1.31 +
1.32 +MRPROPERFILES = \
1.33 + Makefile.in \
1.34 + configure \
1.35 + config.h.in \
1.36 + aclocal.m4 \
1.37 + ABOUT-NLS \
1.38 + m4/Makefile.in \
1.39 + m4/lib-link.m4 \
1.40 + m4/printf-posix.m4 \
1.41 + m4/uintmax_t.m4 \
1.42 + m4/signed.m4 \
1.43 + m4/iconv.m4 \
1.44 + m4/inttypes.m4 \
1.45 + m4/longlong.m4 \
1.46 + m4/glibc21.m4 \
1.47 + m4/inttypes_h.m4 \
1.48 + m4/codeset.m4 \
1.49 + m4/longdouble.m4 \
1.50 + m4/nls.m4 \
1.51 + m4/intmax.m4 \
1.52 + m4/lib-prefix.m4 \
1.53 + m4/glibc2.m4 \
1.54 + m4/xsize.m4 \
1.55 + m4/lcmessage.m4 \
1.56 + m4/lib-ld.m4 \
1.57 + m4/ulonglong.m4 \
1.58 + m4/wint_t.m4 \
1.59 + m4/progtest.m4 \
1.60 + m4/inttypes-pri.m4 \
1.61 + m4/stdint_h.m4 \
1.62 + m4/intdiv0.m4 \
1.63 + m4/isc-posix.m4 \
1.64 + m4/po.m4 \
1.65 + m4/size_max.m4 \
1.66 + m4/gettext.m4 \
1.67 + m4/wchar_t.m4 \
1.68 + po/Rules-quot \
1.69 + po/en@quot.header \
1.70 + po/insert-header.sin \
1.71 + po/quot.sed \
1.72 + po/en@boldquot.header \
1.73 + po/boldquot.sed \
1.74 + po/Makevars.template \
1.75 + po/remove-potcdate.sin \
1.76 + po/Makefile.in.in \
1.77 + build-aux/mkinstalldirs \
1.78 + build-aux/config.rpath \
1.79 + build-aux/depcomp \
1.80 + build-aux/missing \
1.81 + build-aux/config.guess \
1.82 + build-aux/config.sub \
1.83 + build-aux/install-sh
1.84 +
1.85 +mrproper:
1.86 + $(MAKE) $(AM_MAKEFLAGS) maintainer-clean
1.87 + -rm -f $(MRPROPERFILES)
1.88 +
1.89 +.PHONY: mrproper
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/bootstrap Wed Jun 21 11:10:00 2006 +0000
2.3 @@ -0,0 +1,85 @@
2.4 +#!/bin/bash
2.5 +
2.6 +quiet=0
2.7 +function quiet { [[ $quiet == 1 ]]; }
2.8 +
2.9 +if [[ "$1" == "-q" ]]; then
2.10 + quiet=1
2.11 + shift
2.12 +fi
2.13 +
2.14 +prev=
2.15 +for option
2.16 +do
2.17 + if test -n "$prev"
2.18 + then
2.19 + eval "$prev=\$option"
2.20 + prev=
2.21 + continue
2.22 + fi
2.23 +
2.24 + optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
2.25 +
2.26 + case $option in
2.27 +
2.28 + -amver | --amver)
2.29 + prev=amver ;;
2.30 + -amver=* | --amver=*)
2.31 + amver=$optarg ;;
2.32 +
2.33 + -acver | --acver)
2.34 + prev=acver ;;
2.35 + -acver=* | --acver=*)
2.36 + acver=$optarg ;;
2.37 +
2.38 + --help | -h)
2.39 + cat << EOF
2.40 +Usage: $0 [OPTION]
2.41 +
2.42 +Options:
2.43 + -h, --help display this help and exit
2.44 + --amver=VERSION use VERSION version of automake
2.45 + --acver=VERSION use VERSION version of autoconf
2.46 +
2.47 +Expamle:
2.48 + $0 --amver=1.8 --acver=2.59
2.49 +EOF
2.50 + exit 0
2.51 + ;;
2.52 +
2.53 + *)
2.54 + cat << EOF >&2
2.55 +$0: unrecognized option: $option
2.56 +Try \`$0 --help' for more information.
2.57 +EOF
2.58 + exit 1
2.59 + ;;
2.60 +
2.61 + esac
2.62 +done
2.63 +
2.64 +automake=automake
2.65 +aclocal=aclocal
2.66 +autoconf=autoconf
2.67 +autoheader=autoheader
2.68 +
2.69 +if test -n "$amver"
2.70 +then
2.71 + automake=automake-$amver
2.72 + aclocal=aclocal-$amver
2.73 +fi
2.74 +
2.75 +if test -n "$acver"
2.76 +then
2.77 + autoconf=autoconf-$acver
2.78 + autoheader=autoheader-$acver
2.79 +fi
2.80 +
2.81 +set -e
2.82 +quiet || set -x
2.83 +
2.84 +autopoint
2.85 +$aclocal -I m4
2.86 +$autoconf
2.87 +$autoheader
2.88 +$automake --add-missing --copy --gnu
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/configure.ac Wed Jun 21 11:10:00 2006 +0000
3.3 @@ -0,0 +1,36 @@
3.4 +dnl Process this file with autoconf to produce a configure script.
3.5 +AC_PREREQ([2.59])
3.6 +AC_INIT([gLEMON], [svn-head], [etik-ol@cs.elte.hu], [glemon])
3.7 +AC_CONFIG_AUX_DIR([build-aux])
3.8 +AC_CONFIG_MACRO_DIR([m4])
3.9 +AM_INIT_AUTOMAKE([-Wall -Werror foreign])
3.10 +AC_CONFIG_SRCDIR([main_win.h])
3.11 +AC_CONFIG_HEADERS([config.h])
3.12 +
3.13 +dnl Checks for programs.
3.14 +AC_PROG_CXX
3.15 +AC_PROG_CC
3.16 +AM_GNU_GETTEXT_VERSION([0.14.2])
3.17 +AM_GNU_GETTEXT([external])
3.18 +
3.19 +dnl Checks for libraries.
3.20 +PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
3.21 +PKG_CHECK_MODULES([LEMON], [lemon >= 0.5])
3.22 +
3.23 +dnl Checks for header files.
3.24 +AC_CHECK_HEADERS([libintl.h locale.h])
3.25 +
3.26 +dnl Checks for typedefs, structures, and compiler characteristics.
3.27 +AC_HEADER_STDBOOL
3.28 +AC_C_CONST
3.29 +
3.30 +dnl Checks for library functions.
3.31 +AC_CHECK_FUNCS([setlocale sqrt])
3.32 +
3.33 +AC_CONFIG_FILES([
3.34 +Makefile
3.35 +po/Makefile.in
3.36 +m4/Makefile
3.37 +])
3.38 +
3.39 +AC_OUTPUT
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/m4/Makefile.am Wed Jun 21 11:10:00 2006 +0000
4.3 @@ -0,0 +1,30 @@
4.4 +EXTRA_DIST = \
4.5 + codeset.m4 \
4.6 + gettext.m4 \
4.7 + glibc21.m4 \
4.8 + glibc2.m4 \
4.9 + iconv.m4 \
4.10 + intdiv0.m4 \
4.11 + intmax.m4 \
4.12 + inttypes_h.m4 \
4.13 + inttypes.m4 \
4.14 + inttypes-pri.m4 \
4.15 + isc-posix.m4 \
4.16 + lcmessage.m4 \
4.17 + lib-ld.m4 \
4.18 + lib-link.m4 \
4.19 + lib-prefix.m4 \
4.20 + longdouble.m4 \
4.21 + longlong.m4 \
4.22 + nls.m4 \
4.23 + po.m4 \
4.24 + printf-posix.m4 \
4.25 + progtest.m4 \
4.26 + signed.m4 \
4.27 + size_max.m4 \
4.28 + stdint_h.m4 \
4.29 + uintmax_t.m4 \
4.30 + ulonglong.m4 \
4.31 + wchar_t.m4 \
4.32 + wint_t.m4 \
4.33 + xsize.m4
5.1 --- a/po/POTFILES.in Wed Jun 21 08:42:01 2006 +0000
5.2 +++ b/po/POTFILES.in Wed Jun 21 11:10:00 2006 +0000
5.3 @@ -1,35 +1,35 @@
5.4 # List of source files which contain translatable strings.
5.5 -gui/algobox.cc
5.6 -gui/algobox.h
5.7 -gui/algowin.cc
5.8 -gui/algowin.h
5.9 -gui/all_include.h
5.10 -gui/gdc-broken_edge.cc
5.11 -gui/gettext.h
5.12 -gui/graph_displayer_canvas.cc
5.13 -gui/graph_displayer_canvas-edge.cc
5.14 -gui/graph_displayer_canvas-event.cc
5.15 -gui/graph_displayer_canvas.h
5.16 -gui/graph_displayer_canvas-node.cc
5.17 -gui/graph_displayer_canvas-zoom.cc
5.18 -gui/graph-displayer.cc
5.19 -gui/gui_reader.cc
5.20 -gui/gui_reader.h
5.21 -gui/gui_writer.cc
5.22 -gui/gui_writer.h
5.23 -gui/kruskalbox.cc
5.24 -gui/kruskalbox.h
5.25 -gui/main_win.cc
5.26 -gui/main_win.h
5.27 -gui/mapselector.cc
5.28 -gui/mapselector.h
5.29 -gui/mapstorage.cc
5.30 -gui/mapstorage.h
5.31 -gui/map_win.cc
5.32 -gui/map_win.h
5.33 -gui/nbtab.cc
5.34 -gui/nbtab.h
5.35 -gui/new_map_win.cc
5.36 -gui/new_map_win.h
5.37 -gui/xml.h
5.38 -gui/xymap.h
5.39 +algobox.cc
5.40 +algobox.h
5.41 +algowin.cc
5.42 +algowin.h
5.43 +all_include.h
5.44 +gdc-broken_edge.cc
5.45 +gettext.h
5.46 +graph_displayer_canvas.cc
5.47 +graph_displayer_canvas-edge.cc
5.48 +graph_displayer_canvas-event.cc
5.49 +graph_displayer_canvas.h
5.50 +graph_displayer_canvas-node.cc
5.51 +graph_displayer_canvas-zoom.cc
5.52 +graph-displayer.cc
5.53 +gui_reader.cc
5.54 +gui_reader.h
5.55 +gui_writer.cc
5.56 +gui_writer.h
5.57 +kruskalbox.cc
5.58 +kruskalbox.h
5.59 +main_win.cc
5.60 +main_win.h
5.61 +mapselector.cc
5.62 +mapselector.h
5.63 +mapstorage.cc
5.64 +mapstorage.h
5.65 +map_win.cc
5.66 +map_win.h
5.67 +nbtab.cc
5.68 +nbtab.h
5.69 +new_map_win.cc
5.70 +new_map_win.h
5.71 +xml.h
5.72 +xymap.h
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/po/glemon.pot Wed Jun 21 11:10:00 2006 +0000
6.3 @@ -0,0 +1,89 @@
6.4 +# SOME DESCRIPTIVE TITLE.
6.5 +# Copyright (C) YEAR Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
6.6 +# This file is distributed under the same license as the PACKAGE package.
6.7 +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
6.8 +#
6.9 +#, fuzzy
6.10 +msgid ""
6.11 +msgstr ""
6.12 +"Project-Id-Version: PACKAGE VERSION\n"
6.13 +"Report-Msgid-Bugs-To: etik-ol@cs.elte.hu\n"
6.14 +"POT-Creation-Date: 2006-04-14 20:37+0200\n"
6.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
6.16 +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
6.18 +"MIME-Version: 1.0\n"
6.19 +"Content-Type: text/plain; charset=CHARSET\n"
6.20 +"Content-Transfer-Encoding: 8bit\n"
6.21 +
6.22 +#: main_win.cc:80
6.23 +msgid "_File"
6.24 +msgstr ""
6.25 +
6.26 +#: main_win.cc:85
6.27 +msgid "Clear Tab"
6.28 +msgstr ""
6.29 +
6.30 +#: main_win.cc:96
6.31 +msgid "_View"
6.32 +msgstr ""
6.33 +
6.34 +#: main_win.cc:106
6.35 +msgid "_Show"
6.36 +msgstr ""
6.37 +
6.38 +#: main_win.cc:107
6.39 +msgid "_Maps"
6.40 +msgstr ""
6.41 +
6.42 +#: main_win.cc:110
6.43 +msgid "_Algorithms"
6.44 +msgstr ""
6.45 +
6.46 +#: main_win.cc:111
6.47 +msgid "_General"
6.48 +msgstr ""
6.49 +
6.50 +#: main_win.cc:113
6.51 +msgid "_Kruskal"
6.52 +msgstr ""
6.53 +
6.54 +#: main_win.cc:117
6.55 +msgid "Move"
6.56 +msgstr ""
6.57 +
6.58 +#: main_win.cc:119
6.59 +msgid "Create node"
6.60 +msgstr ""
6.61 +
6.62 +#: main_win.cc:121
6.63 +msgid "Create edge"
6.64 +msgstr ""
6.65 +
6.66 +#: main_win.cc:123
6.67 +msgid "Delete"
6.68 +msgstr ""
6.69 +
6.70 +#: main_win.cc:126
6.71 +msgid "Edit edge map"
6.72 +msgstr ""
6.73 +
6.74 +#: main_win.cc:128
6.75 +msgid "Edit node map"
6.76 +msgstr ""
6.77 +
6.78 +#: main_win.cc:259
6.79 +msgid "unsaved file"
6.80 +msgstr ""
6.81 +
6.82 +#: main_win.cc:269
6.83 +msgid "<b>Save changes before closing?</b>"
6.84 +msgstr ""
6.85 +
6.86 +#: main_win.cc:271
6.87 +msgid "Close file _without Saving"
6.88 +msgstr ""
6.89 +
6.90 +#: main_win.cc:458 main_win.cc:487
6.91 +msgid "Create New Map - "
6.92 +msgstr ""
7.1 --- a/po/hu.po Wed Jun 21 08:42:01 2006 +0000
7.2 +++ b/po/hu.po Wed Jun 21 11:10:00 2006 +0000
7.3 @@ -5,7 +5,7 @@
7.4 #
7.5 msgid ""
7.6 msgstr ""
7.7 -"Project-Id-Version: LEMON svn-head\n"
7.8 +"Project-Id-Version: gLEMON svn-head\n"
7.9 "Report-Msgid-Bugs-To: etik-ol@cs.elte.hu\n"
7.10 "POT-Creation-Date: 2006-04-14 20:37+0200\n"
7.11 "PO-Revision-Date: 2006-03-22 15:55+0100\n"
7.12 @@ -16,74 +16,74 @@
7.13 "Content-Transfer-Encoding: 8bit\n"
7.14 "Plural-Forms: nplurals=1; plural=0;\n"
7.15
7.16 -#: gui/main_win.cc:80
7.17 +#: main_win.cc:80
7.18 msgid "_File"
7.19 msgstr "_Fájl"
7.20
7.21 -#: gui/main_win.cc:85
7.22 +#: main_win.cc:85
7.23 msgid "Clear Tab"
7.24 msgstr "Lap törlése"
7.25
7.26 -#: gui/main_win.cc:96
7.27 +#: main_win.cc:96
7.28 msgid "_View"
7.29 msgstr "_Nézet"
7.30
7.31 -#: gui/main_win.cc:106
7.32 +#: main_win.cc:106
7.33 msgid "_Show"
7.34 msgstr "_Mutat"
7.35
7.36 -#: gui/main_win.cc:107
7.37 +#: main_win.cc:107
7.38 msgid "_Maps"
7.39 msgstr "_Mapek"
7.40
7.41 -#: gui/main_win.cc:110
7.42 +#: main_win.cc:110
7.43 msgid "_Algorithms"
7.44 msgstr "_Algoritmusok"
7.45
7.46 -#: gui/main_win.cc:111
7.47 +#: main_win.cc:111
7.48 msgid "_General"
7.49 msgstr "_Általános"
7.50
7.51 -#: gui/main_win.cc:113
7.52 +#: main_win.cc:113
7.53 msgid "_Kruskal"
7.54 msgstr "_Kruskal"
7.55
7.56 -#: gui/main_win.cc:117
7.57 +#: main_win.cc:117
7.58 msgid "Move"
7.59 msgstr "Mozgat"
7.60
7.61 -#: gui/main_win.cc:119
7.62 +#: main_win.cc:119
7.63 msgid "Create node"
7.64 msgstr "Csúcs létrehozása"
7.65
7.66 -#: gui/main_win.cc:121
7.67 +#: main_win.cc:121
7.68 msgid "Create edge"
7.69 msgstr "Él létrehozása"
7.70
7.71 -#: gui/main_win.cc:123
7.72 +#: main_win.cc:123
7.73 msgid "Delete"
7.74 msgstr "Törlés"
7.75
7.76 -#: gui/main_win.cc:126
7.77 +#: main_win.cc:126
7.78 msgid "Edit edge map"
7.79 msgstr "Él map szerkesztése"
7.80
7.81 -#: gui/main_win.cc:128
7.82 +#: main_win.cc:128
7.83 msgid "Edit node map"
7.84 msgstr "Csúcs map szerkesztése"
7.85
7.86 -#: gui/main_win.cc:259
7.87 +#: main_win.cc:259
7.88 msgid "unsaved file"
7.89 msgstr "nem mentett fájl"
7.90
7.91 -#: gui/main_win.cc:269
7.92 +#: main_win.cc:269
7.93 msgid "<b>Save changes before closing?</b>"
7.94 msgstr "Menti a változásokat mielőtt bezárja?"
7.95
7.96 -#: gui/main_win.cc:271
7.97 +#: main_win.cc:271
7.98 msgid "Close file _without Saving"
7.99 msgstr "Bezárás mentés _nékül"
7.100
7.101 -#: gui/main_win.cc:458 gui/main_win.cc:487
7.102 +#: main_win.cc:458 main_win.cc:487
7.103 msgid "Create New Map - "
7.104 msgstr "Új map létrehozása - "
8.1 --- a/po/lemon.pot Wed Jun 21 08:42:01 2006 +0000
8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
8.3 @@ -1,89 +0,0 @@
8.4 -# SOME DESCRIPTIVE TITLE.
8.5 -# Copyright (C) YEAR Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
8.6 -# This file is distributed under the same license as the PACKAGE package.
8.7 -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
8.8 -#
8.9 -#, fuzzy
8.10 -msgid ""
8.11 -msgstr ""
8.12 -"Project-Id-Version: PACKAGE VERSION\n"
8.13 -"Report-Msgid-Bugs-To: etik-ol@cs.elte.hu\n"
8.14 -"POT-Creation-Date: 2006-04-14 20:37+0200\n"
8.15 -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8.16 -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8.17 -"Language-Team: LANGUAGE <LL@li.org>\n"
8.18 -"MIME-Version: 1.0\n"
8.19 -"Content-Type: text/plain; charset=CHARSET\n"
8.20 -"Content-Transfer-Encoding: 8bit\n"
8.21 -
8.22 -#: gui/main_win.cc:80
8.23 -msgid "_File"
8.24 -msgstr ""
8.25 -
8.26 -#: gui/main_win.cc:85
8.27 -msgid "Clear Tab"
8.28 -msgstr ""
8.29 -
8.30 -#: gui/main_win.cc:96
8.31 -msgid "_View"
8.32 -msgstr ""
8.33 -
8.34 -#: gui/main_win.cc:106
8.35 -msgid "_Show"
8.36 -msgstr ""
8.37 -
8.38 -#: gui/main_win.cc:107
8.39 -msgid "_Maps"
8.40 -msgstr ""
8.41 -
8.42 -#: gui/main_win.cc:110
8.43 -msgid "_Algorithms"
8.44 -msgstr ""
8.45 -
8.46 -#: gui/main_win.cc:111
8.47 -msgid "_General"
8.48 -msgstr ""
8.49 -
8.50 -#: gui/main_win.cc:113
8.51 -msgid "_Kruskal"
8.52 -msgstr ""
8.53 -
8.54 -#: gui/main_win.cc:117
8.55 -msgid "Move"
8.56 -msgstr ""
8.57 -
8.58 -#: gui/main_win.cc:119
8.59 -msgid "Create node"
8.60 -msgstr ""
8.61 -
8.62 -#: gui/main_win.cc:121
8.63 -msgid "Create edge"
8.64 -msgstr ""
8.65 -
8.66 -#: gui/main_win.cc:123
8.67 -msgid "Delete"
8.68 -msgstr ""
8.69 -
8.70 -#: gui/main_win.cc:126
8.71 -msgid "Edit edge map"
8.72 -msgstr ""
8.73 -
8.74 -#: gui/main_win.cc:128
8.75 -msgid "Edit node map"
8.76 -msgstr ""
8.77 -
8.78 -#: gui/main_win.cc:259
8.79 -msgid "unsaved file"
8.80 -msgstr ""
8.81 -
8.82 -#: gui/main_win.cc:269
8.83 -msgid "<b>Save changes before closing?</b>"
8.84 -msgstr ""
8.85 -
8.86 -#: gui/main_win.cc:271
8.87 -msgid "Close file _without Saving"
8.88 -msgstr ""
8.89 -
8.90 -#: gui/main_win.cc:458 gui/main_win.cc:487
8.91 -msgid "Create New Map - "
8.92 -msgstr ""