Browse Source

Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.

BUG:215923


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/admin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19
tags/v3.5.13
toma 9 years ago
commit
5dc1ccc699
28 changed files with 29071 additions and 0 deletions
  1. 102
    0
      Doxyfile.am
  2. 192
    0
      Doxyfile.global
  3. 37
    0
      Makefile.common
  4. 5999
    0
      acinclude.m4.in
  5. 2445
    0
      am_edit
  6. 157
    0
      bcheck.pl
  7. 142
    0
      compile
  8. 191
    0
      conf.change.pl
  9. 1464
    0
      config.guess
  10. 238
    0
      config.pl
  11. 1575
    0
      config.sub
  12. 45
    0
      configure.in.bot.end
  13. 57
    0
      configure.in.min
  14. 661
    0
      cvs.sh
  15. 43
    0
      debianrules
  16. 530
    0
      depcomp
  17. 19
    0
      deps.am
  18. 256
    0
      detect-autoconf.pl
  19. 883
    0
      doxygen.sh
  20. 401
    0
      install-sh
  21. 5891
    0
      libtool.m4.in
  22. 6389
    0
      ltmain.sh
  23. 353
    0
      missing
  24. 158
    0
      mkinstalldirs
  25. 371
    0
      nmcheck
  26. 192
    0
      oldinclude.m4.in
  27. 57
    0
      pkg.m4.in
  28. 223
    0
      ylwrap

+ 102
- 0
Doxyfile.am View File

@@ -0,0 +1,102 @@
1
+## generate API documentation with doxygen
2
+apidox-am-yes:
3
+	@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$DOXDATA" ; then \
4
+		export DOXDATA=$(kde_libs_htmldir)/en/common ; \
5
+	fi ; \
6
+	abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
7
+	test -d $(top_builddir)/apidocs || \
8
+		( cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
9
+		--no-modulename --installdir=$(kde_libs_htmldir)/en \
10
+		--no-recurse $(abs_top_srcdir) . ) ; \
11
+	cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
12
+		--recurse --no-modulename --installdir=$(kde_libs_htmldir)/en \
13
+		$$abs_top_srcdir $(subdir)
14
+
15
+apidox-am-toplevel-yes:
16
+	@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$ADMIN" ; then \
17
+		export DOXDATA=$(kde_libs_htmldir)/en/common ; \
18
+	fi ; \
19
+	abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
20
+	cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
21
+		--no-modulename --installdir=$(kde_libs_htmldir)/en \
22
+		$$abs_top_srcdir
23
+
24
+## Don't generate API documentation without doxygen
25
+apidox-am-no:
26
+
27
+apidox-am-toplevel-no:
28
+
29
+
30
+apidox:
31
+	@if test "$(subdir)" != "."; then \
32
+		$(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
33
+	else \
34
+		$(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
35
+	fi
36
+
37
+
38
+
39
+install-data-local: install-apidox
40
+
41
+## install API documentation
42
+install-apidox:
43
+	@if test "$(subdir)" != "."; then \
44
+		$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html ; \
45
+		if test -f $(top_builddir)/apidocs/$(subdir)/$(subdir).tag; then \
46
+		echo $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
47
+		$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
48
+		fi; \
49
+		if test -d $(top_builddir)/apidocs/$(subdir)/html; then \
50
+			list=`ls $(top_builddir)/apidocs/$(subdir)/html`; \
51
+			echo "installing $(top_builddir)/apidocs/$(subdir)/html" ;\
52
+			for file in $$list; do \
53
+				$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
54
+		done; \
55
+		fi; \
56
+	else\
57
+		if test -d $(top_builddir)/apidocs; then \
58
+		$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs ;\
59
+		list=`cd $(top_builddir)/apidocs && ls -1`; \
60
+		echo "installing $(top_builddir)/apidocs/$$file" ;\
61
+		echo "target directory $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs" ; \
62
+		for file in $$list; do \
63
+			if test -f $(top_builddir)/apidocs/$$file; then \
64
+				$(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
65
+			fi; \
66
+		done ; fi; \
67
+	fi
68
+
69
+uninstall-local: uninstall-apidox
70
+
71
+## uninstall API documentation
72
+uninstall-apidox:
73
+	@if test "$(subdir)" != "."; then \
74
+		if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
75
+			rm -rf $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
76
+		fi \
77
+	else \
78
+		if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
79
+			rm -rf $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
80
+		fi \
81
+	fi
82
+
83
+install-apidox-recurse: install-apidox
84
+	@set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
85
+	    list='$(SUBDIRS)'; \
86
+	    for subdir in $$list; do \
87
+		if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am > /dev/null ; then \
88
+		echo "Installing apidox from $$subdir"; \
89
+		if test "$$subdir" != "."; then \
90
+			(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=no install-apidox-recurse) || exit 1; \
91
+		fi ; fi ;\
92
+	    done; \
93
+	fi
94
+
95
+
96
+
97
+.PHONY: apidox-am-yes apidox-am-no install-data-local install-apidox install-apidox uninstall-local uninstall-apidox uninstall-apidox apidox apidox-am-toplevel-no apidox-am-toplevel-yes
98
+
99
+
100
+# Local Variables:
101
+# mode: makefile
102
+# End:

+ 192
- 0
Doxyfile.global View File

@@ -0,0 +1,192 @@
1
+OUTPUT_LANGUAGE        = English
2
+USE_WINDOWS_ENCODING   = NO
3
+BRIEF_MEMBER_DESC      = NO
4
+REPEAT_BRIEF           = YES
5
+ABBREVIATE_BRIEF       = 
6
+ALWAYS_DETAILED_SEC    = YES
7
+INLINE_INHERITED_MEMB  = NO
8
+FULL_PATH_NAMES        = NO
9
+STRIP_FROM_PATH        = 
10
+SHORT_NAMES            = NO
11
+JAVADOC_AUTOBRIEF      = YES
12
+MULTILINE_CPP_IS_BRIEF = NO
13
+INHERIT_DOCS           = YES
14
+DISTRIBUTE_GROUP_DOC   = NO
15
+TAB_SIZE               = 4
16
+OPTIMIZE_OUTPUT_FOR_C  = NO
17
+OPTIMIZE_OUTPUT_JAVA   = NO
18
+SUBGROUPING            = YES
19
+EXTRACT_ALL            = NO
20
+EXTRACT_PRIVATE        = NO
21
+EXTRACT_STATIC         = YES
22
+EXTRACT_LOCAL_CLASSES  = NO
23
+HIDE_UNDOC_MEMBERS     = NO
24
+HIDE_UNDOC_CLASSES     = YES
25
+HIDE_FRIEND_COMPOUNDS  = NO
26
+HIDE_IN_BODY_DOCS      = NO
27
+INTERNAL_DOCS          = NO
28
+CASE_SENSE_NAMES       = YES
29
+HIDE_SCOPE_NAMES       = NO
30
+SHOW_INCLUDE_FILES     = YES
31
+INLINE_INFO            = YES
32
+SORT_BRIEF_DOCS        = NO
33
+SORT_BY_SCOPE_NAME     = NO
34
+GENERATE_TESTLIST      = NO
35
+GENERATE_BUGLIST       = YES
36
+GENERATE_DEPRECATEDLIST= YES
37
+ENABLED_SECTIONS       = 
38
+MAX_INITIALIZER_LINES  = 30
39
+SHOW_USED_FILES        = YES
40
+QUIET                  = YES
41
+WARNINGS               = NO
42
+WARN_IF_UNDOCUMENTED   = NO
43
+WARN_IF_DOC_ERROR      = YES
44
+WARN_FORMAT            = 
45
+WARN_LOGFILE           = 
46
+INPUT                  = 
47
+FILE_PATTERNS          = *.h \
48
+                         *.cpp \
49
+                         *.cc \
50
+                         *.hpp \
51
+                         *.dox \
52
+                         *.c++ \
53
+                         *.cxx \
54
+                         *.h++ \
55
+                         *.hh
56
+RECURSIVE              = YES
57
+EXCLUDE                = 
58
+EXCLUDE_SYMLINKS       = NO
59
+EXCLUDE_PATTERNS       = *.moc.* \
60
+                         moc* \
61
+                         *.all_cpp.* \
62
+                         *unload.* \
63
+                         */test/* \
64
+                         */tests/* \
65
+                         *_p.h 
66
+EXAMPLE_PATH           = 
67
+EXAMPLE_PATTERNS       = 
68
+EXAMPLE_RECURSIVE      = NO
69
+IMAGE_PATH             = 
70
+INPUT_FILTER           = 
71
+FILTER_SOURCE_FILES    = NO
72
+SOURCE_BROWSER         = YES
73
+INLINE_SOURCES         = NO
74
+STRIP_CODE_COMMENTS    = YES
75
+REFERENCED_BY_RELATION = YES
76
+REFERENCES_RELATION    = YES
77
+VERBATIM_HEADERS       = YES
78
+ALPHABETICAL_INDEX     = YES
79
+COLS_IN_ALPHA_INDEX    = 3
80
+HTML_OUTPUT            = 
81
+HTML_FILE_EXTENSION    = .html
82
+HTML_HEADER            = ../apidocs/common/header.html
83
+HTML_FOOTER            = ../apidocs/common/footer.html
84
+HTML_STYLESHEET        = ../apidocs/common/doxygen.css
85
+HTML_ALIGN_MEMBERS     = YES
86
+GENERATE_HTMLHELP      = NO
87
+CHM_FILE               = 
88
+HHC_LOCATION           = 
89
+GENERATE_CHI           = NO
90
+BINARY_TOC             = NO
91
+TOC_EXPAND             = NO
92
+DISABLE_INDEX          = YES
93
+ENUM_VALUES_PER_LINE   = 4
94
+GENERATE_TREEVIEW      = NO
95
+TREEVIEW_WIDTH         = 250
96
+GENERATE_LATEX         = NO
97
+LATEX_OUTPUT           = 
98
+LATEX_CMD_NAME         = latex
99
+MAKEINDEX_CMD_NAME     = makeindex
100
+COMPACT_LATEX          = NO
101
+PAPER_TYPE             = a4wide
102
+EXTRA_PACKAGES         = 
103
+LATEX_HEADER           = 
104
+PDF_HYPERLINKS         = NO
105
+USE_PDFLATEX           = NO
106
+LATEX_BATCHMODE        = NO
107
+LATEX_HIDE_INDICES     = NO
108
+GENERATE_RTF           = NO
109
+RTF_OUTPUT             = 
110
+COMPACT_RTF            = NO
111
+RTF_HYPERLINKS         = NO
112
+RTF_STYLESHEET_FILE    = 
113
+RTF_EXTENSIONS_FILE    = 
114
+GENERATE_MAN           = NO
115
+MAN_OUTPUT             = 
116
+MAN_EXTENSION          = .kde3
117
+MAN_LINKS              = YES
118
+GENERATE_XML           = NO
119
+XML_OUTPUT             = xml
120
+XML_SCHEMA             = 
121
+XML_DTD                = 
122
+XML_PROGRAMLISTING     = NO
123
+GENERATE_AUTOGEN_DEF   = NO
124
+GENERATE_PERLMOD       = NO
125
+PERLMOD_LATEX          = NO
126
+PERLMOD_PRETTY         = YES
127
+PERLMOD_MAKEVAR_PREFIX = 
128
+ENABLE_PREPROCESSING   = YES
129
+SEARCH_INCLUDES        = YES
130
+INCLUDE_PATH           = 
131
+INCLUDE_FILE_PATTERNS  = 
132
+PREDEFINED             = QT_VERSION=320 \
133
+                         __cplusplus \
134
+                         Q_WS_X11
135
+EXPAND_AS_DEFINED      = 
136
+SKIP_FUNCTION_MACROS   = YES
137
+TAGFILES               = 
138
+GENERATE_TAGFILE       = 
139
+ALLEXTERNALS           = NO
140
+EXTERNAL_GROUPS        = NO
141
+PERL_PATH              = 
142
+CLASS_DIAGRAMS         = YES
143
+HIDE_UNDOC_RELATIONS   = NO
144
+HAVE_DOT               = NO
145
+UML_LOOK               = NO
146
+TEMPLATE_RELATIONS     = YES
147
+INCLUDE_GRAPH          = YES
148
+INCLUDED_BY_GRAPH      = YES
149
+CALL_GRAPH             = NO
150
+GRAPHICAL_HIERARCHY    = YES
151
+DOT_IMAGE_FORMAT       = png
152
+DOT_PATH               = 
153
+DOTFILE_DIRS           = 
154
+MAX_DOT_GRAPH_WIDTH    = 800
155
+MAX_DOT_GRAPH_HEIGHT   = 1024
156
+MAX_DOT_GRAPH_DEPTH    = 0
157
+GENERATE_LEGEND        = YES
158
+DOT_CLEANUP            = YES
159
+SEARCHENGINE           = NO
160
+
161
+### KDE Settings
162
+ALIASES = \
163
+	"intern=\par<b>Internal use only.</b>" \
164
+	"reimp=\par<b>Reimplemented from superclass.</b>" \
165
+	"obsolete=@deprecated" \
166
+	"feature=\xrefitem features \"Feature(s)\" \"Features\"" \
167
+	"maintainer=\xrefitem maintainers \"Maintainer(s)\" \"Maintainers\"" \
168
+	"unmaintained=\xrefitem unmaintained \"Unmaintained\" \"Unmaintained\"" \
169
+	"requirement=\xrefitem requirements \"Requirement(s)\" \"Requirements\"" \
170
+	"faq=\xrefitem FAQ \"F.A.Q.\" \"F.A.Q.\"" \
171
+	"authors=\xrefitem authors \"Author(s)\" \"Authors\"" \
172
+	"FIXME=\xrefitem fixme \"Fixme\" \"Fixme\""
173
+
174
+HTML_ALIGN_MEMBERS     = YES
175
+REFERENCED_BY_RELATION = NO
176
+REFERENCES_RELATION    = NO
177
+VERBATIM_HEADERS       = NO
178
+GENERATE_HTML          = YES
179
+SOURCE_BROWSER         = YES
180
+GENERATE_AUTOGEN_DEF   = NO
181
+DETAILS_AT_TOP         = YES
182
+SORT_MEMBER_DOCS       = YES
183
+GENERATE_TODOLIST      = YES
184
+IGNORE_PREFIX          = K
185
+GENERATE_HTML          = YES
186
+CLASS_GRAPH            = YES
187
+COLLABORATION_GRAPH    = NO
188
+
189
+
190
+MACRO_EXPANSION = YES
191
+EXPAND_ONLY_PREDEF = YES
192
+

+ 37
- 0
Makefile.common View File

@@ -0,0 +1,37 @@
1
+### Makefile.common
2
+###
3
+### Copyright (C) 2002 by the KDE developers
4
+
5
+### All the real work is done by the shellscript cvs.sh
6
+
7
+SHELL=/bin/sh
8
+
9
+cvs dist configure configure.in configure.files subdirs package-messages package-merge Makefile.am acinclude.m4 extract-messages:
10
+	@admindir=$(admindir); \
11
+	if test "x$$admindir" = x; then \
12
+	  admindir=.; until test -f $$admindir/admin/cvs.sh; do \
13
+	    admindir=$$admindir/..; \
14
+	    if test `cd $$admindir && pwd` = / ; then break; fi; \
15
+	  done; \
16
+	  admindir=$$admindir/admin; \
17
+	  if test -f $$admindir/cvs.sh; then :; else \
18
+	    echo "Can't find the admin/ directory in any parent of the"; \
19
+	    echo "current directory.  Please set it with admindir=..."; \
20
+	    exit 1; \
21
+	  fi; \
22
+	fi; \
23
+	if test "$@" = "package-merge"; then \
24
+		MAKE="$(MAKE)" POFILES="$(POFILES)" PACKAGE="$(PACKAGE)" \
25
+	  	$(SHELL) $$admindir/cvs.sh package-merge ;\
26
+	else \
27
+		MAKE="$(MAKE)" $(SHELL) $$admindir/cvs.sh $@ ;\
28
+	fi
29
+
30
+configure.in: configure.files subdirs
31
+configure.files: subdirs
32
+
33
+svn: cvs
34
+
35
+.SILENT:
36
+
37
+.PHONY: svn cvs dist package-merge package-messages

+ 5999
- 0
acinclude.m4.in
File diff suppressed because it is too large
View File


+ 2445
- 0
am_edit
File diff suppressed because it is too large
View File


+ 157
- 0
bcheck.pl View File

@@ -0,0 +1,157 @@
1
+#!/usr/bin/perl -w
2
+
3
+use DB_File;
4
+use Fcntl ':flock';
5
+
6
+if (!defined($ARGV[0])) {
7
+    print "usage: requires .class dump as parameter!\n";
8
+    exit;
9
+}
10
+
11
+sub bailout
12
+{
13
+    untie %bcheckdb if(defined(%bcheckdb));
14
+
15
+    if(defined(MYLOCK)) {
16
+        flock MYLOCK, LOCK_UN;
17
+        close(MYLOCK);
18
+    }
19
+
20
+    print @_;
21
+    exit 5;
22
+}
23
+
24
+sub ask_user
25
+{
26
+    my ($dbkey, $dbchunk) = @_;
27
+
28
+    if (defined($ENV{"BCHECK_UPDATE"})) {
29
+        $bcheckdb{$dbkey} = $dbchunk;
30
+        return;
31
+    }
32
+
33
+    &bailout("BC problem detected") if (! -t STDIN);
34
+
35
+    print "(I)gnore / (Q)uit / (U)pdate: ";
36
+
37
+    my $key;
38
+    while(defined(read STDIN, $key, 1)) {
39
+        $key = lc($key);
40
+
41
+        print "got: >$key<\n";
42
+
43
+        return if ($key eq 'i');
44
+
45
+        &bailout("BC problem. aborted") if ($key eq 'q');
46
+
47
+        if ($key eq 'u') {
48
+            $bcheckdb{$dbkey} = $dbchunk;
49
+            return;
50
+        }
51
+        print "\n(I)gnore / (Q)uit / (U)pdate: ";
52
+    }
53
+}
54
+
55
+sub diff_chunk($$)
56
+{
57
+    my ($oldl, $newl) = @_;
58
+    my @old = split /^/m, $oldl;
59
+    my @new = split /^/m, $newl;
60
+    my $haschanges = 0;
61
+    my $max = $#old > $#new ? $#old : $#new;
62
+
63
+    die "whoops. key different" if ($old[0] ne $new[0]);
64
+
65
+    if ($#old != $#new) {
66
+        warn ("Structural difference.\n");
67
+        print @old;
68
+        print "-----------------------------------------------\n";
69
+        print @new;
70
+        $haschanges = 1;
71
+        return $haschanges;
72
+    }
73
+
74
+    print $old[0];
75
+
76
+    my ($class) = ($old[0] =~ /^(?:Class |Vtable for )(\S+)/);
77
+
78
+    my $c = 1;
79
+    while ($c < $max) {
80
+        my ($o, $n) = ($old[$c], $new[$c]);
81
+        chomp $o;
82
+        chomp $n;
83
+        $c++;
84
+        next if ($o eq $n);
85
+
86
+        if(defined($class) and $n =~ /^(\d+\s+)\w+(::\S+\s*.*)$/) {
87
+            next if ($n eq "$1$class$2");
88
+        }
89
+
90
+        $haschanges = 1;
91
+
92
+        print "-$o\n+$n\n\n";
93
+    }
94
+
95
+    return $haschanges;
96
+}
97
+
98
+local $dblock = $ENV{"HOME"} . "/bcheck.lock";
99
+my $dbfile = $ENV{"HOME"} . "/bcheck.db";
100
+my $cdump  = $ARGV[0];
101
+
102
+die "file $cdump is not readable: $!" if (! -f $cdump);
103
+
104
+# make sure the advisory lock exists
105
+open(MYLOCK, ">$dblock");
106
+print MYLOCK "";
107
+
108
+flock MYLOCK, LOCK_EX;
109
+
110
+tie %bcheckdb, 'DB_File', $dbfile;
111
+
112
+my $chunk = "";
113
+
114
+open (IN, "<$cdump") or die "cannot open $cdump: $!";
115
+while (<IN>) {
116
+
117
+    chop;
118
+
119
+    s/0x[0-9a-fA-F]+/0x......../g;
120
+    s/base size=/size=/g;
121
+    s/\(\)\s*$//g;
122
+    s/base align=/align=/g;
123
+
124
+    $chunk .= $_ . "\n";
125
+
126
+    if(/^\s*$/) {
127
+        my @lines = split /^/m, $chunk;
128
+        my $key = $lines[0];
129
+        chomp $key;
130
+
131
+        if($key !~ /<anonymous struct>/ &&
132
+           $key !~ /<anonymous union>/) {
133
+            if(defined($bcheckdb{$key})) {
134
+                my $dbversion = $bcheckdb{$key};
135
+
136
+                if($dbversion ne $chunk) {
137
+                     &ask_user($key, $chunk) if(&diff_chunk($dbversion, $chunk));
138
+                }
139
+            }
140
+            else {
141
+                $bcheckdb{$key} = $chunk;
142
+                print "NEW: $key\n";
143
+            }
144
+        }
145
+
146
+        $chunk = "";
147
+        next;
148
+    }
149
+
150
+}
151
+close(IN);
152
+
153
+untie %bcheckdb;
154
+flock MYLOCK, LOCK_UN;
155
+close(MYLOCK);
156
+
157
+exit 0;

+ 142
- 0
compile View File

@@ -0,0 +1,142 @@
1
+#! /bin/sh
2
+# Wrapper for compilers which do not understand `-c -o'.
3
+
4
+scriptversion=2005-05-14.22
5
+
6
+# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
7
+# Written by Tom Tromey <tromey@cygnus.com>.
8
+#
9
+# This program is free software; you can redistribute it and/or modify
10
+# it under the terms of the GNU General Public License as published by
11
+# the Free Software Foundation; either version 2, or (at your option)
12
+# any later version.
13
+#
14
+# This program is distributed in the hope that it will be useful,
15
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+# GNU General Public License for more details.
18
+#
19
+# You should have received a copy of the GNU General Public License
20
+# along with this program; if not, write to the Free Software
21
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
+
23
+# As a special exception to the GNU General Public License, if you
24
+# distribute this file as part of a program that contains a
25
+# configuration script generated by Autoconf, you may include it under
26
+# the same distribution terms that you use for the rest of that program.
27
+
28
+# This file is maintained in Automake, please report
29
+# bugs to <bug-automake@gnu.org> or send patches to
30
+# <automake-patches@gnu.org>.
31
+
32
+case $1 in
33
+  '')
34
+     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
35
+     exit 1;
36
+     ;;
37
+  -h | --h*)
38
+    cat <<\EOF
39
+Usage: compile [--help] [--version] PROGRAM [ARGS]
40
+
41
+Wrapper for compilers which do not understand `-c -o'.
42
+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
43
+arguments, and rename the output as expected.
44
+
45
+If you are trying to build a whole package this is not the
46
+right script to run: please start by reading the file `INSTALL'.
47
+
48
+Report bugs to <bug-automake@gnu.org>.
49
+EOF
50
+    exit $?
51
+    ;;
52
+  -v | --v*)
53
+    echo "compile $scriptversion"
54
+    exit $?
55
+    ;;
56
+esac
57
+
58
+ofile=
59
+cfile=
60
+eat=
61
+
62
+for arg
63
+do
64
+  if test -n "$eat"; then
65
+    eat=
66
+  else
67
+    case $1 in
68
+      -o)
69
+	# configure might choose to run compile as `compile cc -o foo foo.c'.
70
+	# So we strip `-o arg' only if arg is an object.
71
+	eat=1
72
+	case $2 in
73
+	  *.o | *.obj)
74
+	    ofile=$2
75
+	    ;;
76
+	  *)
77
+	    set x "$@" -o "$2"
78
+	    shift
79
+	    ;;
80
+	esac
81
+	;;
82
+      *.c)
83
+	cfile=$1
84
+	set x "$@" "$1"
85
+	shift
86
+	;;
87
+      *)
88
+	set x "$@" "$1"
89
+	shift
90
+	;;
91
+    esac
92
+  fi
93
+  shift
94
+done
95
+
96
+if test -z "$ofile" || test -z "$cfile"; then
97
+  # If no `-o' option was seen then we might have been invoked from a
98
+  # pattern rule where we don't need one.  That is ok -- this is a
99
+  # normal compilation that the losing compiler can handle.  If no
100
+  # `.c' file was seen then we are probably linking.  That is also
101
+  # ok.
102
+  exec "$@"
103
+fi
104
+
105
+# Name of file we expect compiler to create.
106
+cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
107
+
108
+# Create the lock directory.
109
+# Note: use `[/.-]' here to ensure that we don't use the same name
110
+# that we are using for the .o file.  Also, base the name on the expected
111
+# object file name, since that is what matters with a parallel build.
112
+lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
113
+while true; do
114
+  if mkdir "$lockdir" >/dev/null 2>&1; then
115
+    break
116
+  fi
117
+  sleep 1
118
+done
119
+# FIXME: race condition here if user kills between mkdir and trap.
120
+trap "rmdir '$lockdir'; exit 1" 1 2 15
121
+
122
+# Run the compile.
123
+"$@"
124
+ret=$?
125
+
126
+if test -f "$cofile"; then
127
+  mv "$cofile" "$ofile"
128
+elif test -f "${cofile}bj"; then
129
+  mv "${cofile}bj" "$ofile"
130
+fi
131
+
132
+rmdir "$lockdir"
133
+exit $ret
134
+
135
+# Local Variables:
136
+# mode: shell-script
137
+# sh-indentation: 2
138
+# eval: (add-hook 'write-file-hooks 'time-stamp)
139
+# time-stamp-start: "scriptversion="
140
+# time-stamp-format: "%:y-%02m-%02d.%02H"
141
+# time-stamp-end: "$"
142
+# End:

+ 191
- 0
conf.change.pl View File

@@ -0,0 +1,191 @@
1
+#!/usr/bin/env perl
2
+
3
+# this script patches a config.status file, to use our own perl script
4
+# in the main loop
5
+# we do it this way to circumvent hacking (and thereby including)
6
+# autoconf function (which are GPL) into our LGPL acinclude.m4.in
7
+# written by Michael Matz <matz@kde.org>
8
+# adapted by Dirk Mueller <mueller@kde.org>
9
+#
10
+#   This file is free software; you can redistribute it and/or
11
+#   modify it under the terms of the GNU Library General Public
12
+#   License as published by the Free Software Foundation; either
13
+#   version 2 of the License, or (at your option) any later version.
14
+
15
+#   This library is distributed in the hope that it will be useful,
16
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
+#   Library General Public License for more details.
19
+
20
+#   You should have received a copy of the GNU Library General Public License
21
+#   along with this library; see the file COPYING.LIB.  If not, write to
22
+#   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
+#   Boston, MA 02110-1301, USA.
24
+
25
+# we have to change two places
26
+# 1. the splitting of the substitutions into chunks of 90 (or even 48 in
27
+#    later autoconf's
28
+# 2. the big main loop which patches all Makefile.in's
29
+
30
+use strict;
31
+use File::Basename;
32
+
33
+my $ac_aux_dir = dirname($0);
34
+my ($flag);
35
+my $ac_version = 0;
36
+my $vpath_seen = 0;
37
+$flag = 0;
38
+
39
+while (<>) {
40
+# usage of $flag: 0 -- we have seen nothing yet
41
+#   1 -- we are in (1)
42
+#   2 -- we have ended (1)
43
+#   3 -- we are in (2)
44
+#   4 -- we ended (2)
45
+
46
+    if ($flag == 4) {
47
+        print;
48
+    } elsif ($flag == 0) {
49
+# 1. begins with (including): "ac_max_sed_\S+\s*=\s*[0-9]+..."
50
+#    ends with (excluding) "CONFIG_FILE=..."
51
+#    in later autoconf (2.14.1) there is no CONFIG_FILES= line,
52
+#    but instead the (2) directly follow (1)
53
+        if (/^\s*ac_max_sed_([a-z]+).*=\s*([0-9]+)/ ) {
54
+	    $flag = 1;
55
+	    if ($1 eq 'lines') {
56
+                # lets hope its different with 2141, 
57
+                # wasn't able to verify that
58
+              if ($2 eq '48') {
59
+                $ac_version = 250;
60
+              }
61
+              else {
62
+	        $ac_version = 2141;
63
+              }
64
+	    } elsif ($1 eq 'cmds') {
65
+	        $ac_version = 213;
66
+	    }
67
+	    # hmm, we don't know the autoconf version, but we try anyway
68
+	} else {
69
+	    print;
70
+	}
71
+    } elsif ($flag == 1) {
72
+        if (/^\s*CONFIG_FILES=/ && ($ac_version != 250)) {
73
+	     print;
74
+	     $flag = 2;
75
+	} elsif (/^\s*for\s+ac_file\s+in\s+.*CONFIG_FILES/ ) {
76
+	     $flag = 3;
77
+	}
78
+    } elsif ($flag == 2) {
79
+# 2. begins with: "for ac_file in.*CONFIG_FILES"  (the next 'for' after (1))
80
+#    end with: "rm -f conftest.s\*"
81
+# on autoconf 250, it ends with '# CONFIG_HEADER section'
82
+#
83
+# gg: if a post-processing commands section is found first, 
84
+#    stop there and insert a new loop to honor the case/esac.
85
+# (pattern: /^\s+#\sRun the commands associated with the file./)
86
+
87
+	if (/^\s*for\s+ac_file\s+in\s+.*CONFIG_FILES/ ) {
88
+	    $flag = 3;
89
+	} else {
90
+	    print;
91
+	}
92
+    } elsif ($flag == 3) {
93
+        if (/^\s*rm\s+-f\s+conftest/ ) {
94
+	    $flag = 4;
95
+	    &insert_main_loop();
96
+	} elsif (/^\s*rm\s+-f\s+.*ac_cs_root/ ) {
97
+	    $flag = 4;
98
+	    &insert_main_loop();
99
+	    #die "hhhhhhh";
100
+	    if ($ac_version != 2141) {
101
+	        print STDERR "hmm, don't know autoconf version\n";
102
+	    }
103
+        } elsif (/^\#\s*CONFIG_(HEADER|COMMANDS) section.*|^\s+#\s(Run) the commands associated/) {
104
+          $flag = 4;
105
+          my $commands = defined $2;
106
+          &insert_main_loop();
107
+          $commands && insert_command_loop();
108
+          if($ac_version != 250) {
109
+            print STDERR "hmm, something went wrong :-(\n";
110
+          }
111
+	} elsif (/VPATH/ ) {
112
+	    $vpath_seen = 1;
113
+	}
114
+    }
115
+}
116
+
117
+die "wrong input (flag != 4)" unless $flag == 4;
118
+print STDERR "hmm, don't know autoconf version\n" unless $ac_version;
119
+
120
+sub insert_main_loop {
121
+
122
+  if ($ac_version == 250) {
123
+    &insert_main_loop_250();
124
+  }
125
+  else {
126
+    &insert_main_loop_213();
127
+  }
128
+}
129
+
130
+sub insert_main_loop_250 {
131
+
132
+  print <<EOF;
133
+  #echo Doing the fast build of Makefiles -- autoconf $ac_version
134
+EOF
135
+    if ($vpath_seen) {
136
+        print <<EOF;
137
+        # VPATH subst was seen in original config.status main loop
138
+  echo '/^[ 	]*VPATH[ 	]*=[^:]*\$/d' >>\$tmp/subs.sed
139
+EOF
140
+      }
141
+  print <<EOF;
142
+  rm -f \$tmp/subs.files
143
+  for ac_file in .. \$CONFIG_FILES ; do
144
+      if test "x\$ac_file" != x..; then
145
+          echo \$ac_file >> \$tmp/subs.files
146
+      fi
147
+  done
148
+  if test -f \$tmp/subs.files ; then
149
+      perl $ac_aux_dir/config.pl "\$tmp/subs.sed" "\$tmp/subs.files" "\$srcdir" "\$INSTALL"
150
+  fi
151
+  rm -f \$tmp/subs.files
152
+
153
+fi
154
+EOF
155
+  return;
156
+}
157
+
158
+sub insert_main_loop_213 {
159
+    print <<EOF;
160
+#echo Doing the fast build of Makefiles -- autoconf $ac_version
161
+if test "x\$ac_cs_root" = "x" ; then
162
+    ac_cs_root=conftest
163
+fi
164
+EOF
165
+    if ($vpath_seen) {
166
+      print <<EOF;
167
+# VPATH subst was seen in original config.status main loop
168
+echo '/^[ 	]*VPATH[ 	]*=[^:]*\$/d' >> \$ac_cs_root.subs
169
+EOF
170
+    }
171
+    print <<EOF;
172
+rm -f \$ac_cs_root.sacfiles
173
+for ac_file in .. \$CONFIG_FILES ; do
174
+    if test "x\$ac_file" != x..; then
175
+        echo \$ac_file >> \$ac_cs_root.sacfiles
176
+    fi
177
+done
178
+if test -f \$ac_cs_root.sacfiles ; then
179
+    perl $ac_aux_dir/config.pl "\$ac_cs_root.subs" "\$ac_cs_root.sacfiles" "\$ac_given_srcdir" "\$ac_given_INSTALL"
180
+fi
181
+rm -f \$ac_cs_root.s*
182
+
183
+EOF
184
+    return;
185
+}
186
+
187
+sub insert_command_loop {
188
+    print <<EOF;
189
+  for ac_file in .. \$CONFIG_FILES ; do
190
+EOF
191
+}

+ 1464
- 0
config.guess
File diff suppressed because it is too large
View File


+ 238
- 0
config.pl View File

@@ -0,0 +1,238 @@
1
+#!/usr/bin/env perl
2
+# a script for use by autoconf to make the Makefiles
3
+# from the Makefile.in's
4
+#
5
+# the original autoconf mechanism first splits all substitutions into groups
6
+# of ca. 90, and than invokes sed for _every_ Makefile.in and every group
7
+# (so around 2-3 times per Makefile.in). So this takes forever, as sed
8
+# has to recompile the regexps every time.
9
+#
10
+# this script does better. It changes all Makefile.ins in one process.
11
+# in kdelibs the time for building Makefile went down from 2:59 min to 13 sec!
12
+#
13
+# written by Michael Matz <matz@kde.org>
14
+# adapted by Dirk Mueller <mueller@kde.org>
15
+
16
+#   This file is free software; you can redistribute it and/or
17
+#   modify it under the terms of the GNU Library General Public
18
+#   License as published by the Free Software Foundation; either
19
+#   version 2 of the License, or (at your option) any later version.
20
+
21
+#   This library is distributed in the hope that it will be useful,
22
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
24
+#   Library General Public License for more details.
25
+
26
+#   You should have received a copy of the GNU Library General Public License
27
+#   along with this library; see the file COPYING.LIB.  If not, write to
28
+#   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29
+#   Boston, MA 02110-1301, USA.
30
+
31
+use strict;
32
+
33
+use File::Path;
34
+
35
+my $ac_subs=$ARGV[0];
36
+my $ac_sacfiles = $ARGV[1];
37
+my $ac_given_srcdir=$ARGV[2];
38
+my $ac_given_INSTALL=$ARGV[3];
39
+
40
+my @comp_match;
41
+my @comp_subs;
42
+
43
+#print "ac_subs=$ac_subs\n";
44
+#print "ac_sacfiles=$ac_sacfiles\n";
45
+#print "ac_given_srcdir=$ac_given_srcdir\n";
46
+#print "ac_given_INSTALL=$ac_given_INSTALL\n";
47
+
48
+my $configure_input;
49
+my ($srcdir, $top_srcdir);
50
+my $INSTALL;
51
+my $bad_perl = ($] < 5.005);
52
+my $created_file_count = 0;
53
+
54
+open(CF, "< $ac_subs") || die "can't open $ac_subs: $!";
55
+my @subs = <CF>;
56
+my $pat;
57
+close(CF);
58
+chomp @subs;
59
+@comp_match=();
60
+@comp_subs=();
61
+
62
+if ($bad_perl) {
63
+    print "Using perl older than version 5.005\n";
64
+    foreach $pat (@subs) {
65
+	if (  ($pat =~ m/s%([^%]*)%([^%]*)%g/ )
66
+	   || ($pat =~ m/s%([^%]*)%([^%]*)%;t/ )
67
+           || ($pat =~ m/s,([^,]*),(.*),;t/)
68
+	   || ($pat =~ m%s/([^/]*)/([^/]*)/g% )
69
+	   || ($pat =~ m%s/([^/]*)/([^/]*)/;t% )
70
+	   ) {
71
+            # form : s%bla%blubb%g
72
+            # or     s%bla%blubb%;t t   (autoconf > 2.13 and < 2.52 ?)
73
+            # or     s,bla,blubb,;t t   (autoconf 2.52)
74
+            my $srch = $1;
75
+            my $repl = $2;
76
+            $repl =~ s/\\(.)/$1/g;
77
+	    push @comp_subs, make_closure($srch, $repl);
78
+
79
+	} elsif ( ($pat =~ /%([^%]*)%d/ )
80
+	   || ($pat =~ m%/([^/]*)/d% )
81
+	   ) {
82
+	    push @comp_subs, make_closure($1, "");
83
+	} else {
84
+	    die "Uhh. Malformed pattern in $ac_subs ($pat)"
85
+		unless ( $pat =~ /^\s*$/ );   # ignore white lines
86
+	}
87
+    }
88
+} else {
89
+    foreach $pat (@subs) {
90
+       if ( ($pat =~ /s%([^%]*)%([^%]*)%g/ ) ||
91
+            ($pat =~ /s%([^%]*)%([^%]*)%;t/ ) ||
92
+            ($pat =~ /s,([^,]*),(.*),;t/) ) {
93
+         # form : s%bla%blubb%g
94
+         # or     s%bla%blubb%;t t   (autoconf > 2.13 and < 2.52 ?)
95
+         # or     s,bla,blubb,;t t   (autoconf 2.52)
96
+         my $srch = $1;
97
+         my $repl = $2;
98
+         push @comp_match, eval "qr/\Q$srch\E/";  # compile match pattern
99
+         $repl =~ s/\\(.)/$1/g;
100
+         push @comp_subs, $repl;
101
+      } elsif ( ($pat =~ /%([^%]*)%d/ )
102
+                || ($pat =~ m%/([^/]*)/d% )
103
+              ) {
104
+        push @comp_match, eval "qr/\Q$1\E/";
105
+        push @comp_subs, "";
106
+      } else {
107
+          die "Uhh. Malformed pattern in $ac_subs ($pat)"
108
+          unless ( $pat =~ /^\s*$/ );   # ignore white lines
109
+      }
110
+    }
111
+}
112
+undef @subs;
113
+
114
+# read the list of files to be patched, form:
115
+# ./Makefile arts/Makefile arts/examples/Makefile arts/flow/Makefile
116
+
117
+open(CF, "< $ac_sacfiles") || die "can't open $ac_sacfiles: $!";
118
+my @ac_files = <CF>;
119
+close(CF);
120
+chomp @ac_files;
121
+
122
+
123
+my $ac_file;
124
+foreach $ac_file (@ac_files) {
125
+    next if $ac_file =~ /\.\./;
126
+    next if $ac_file =~ /^\s*$/;
127
+    my $ac_file_in;
128
+    my ($ac_dir, $ac_dots, $ac_dir_suffix);
129
+
130
+    if ($ac_file =~ /.*:.*/ ) {
131
+	($ac_file_in = $ac_file) =~ s%[^:]*:%%;
132
+	$ac_file =~ s%:.*%%;
133
+    } else {
134
+	$ac_file_in = $ac_file.".in";
135
+    }
136
+
137
+# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
138
+
139
+# Remove last slash and all that follows it.  Not all systems have dirname.
140
+    ($ac_dir = $ac_file) =~ s%/[^/][^/]*$%%;
141
+    if ( ($ac_dir ne $ac_file) && ($ac_dir ne ".")) {
142
+# The file is in a subdirectory.
143
+	if (! -d "$ac_dir") { mkpath "$ac_dir", 0, 0777; }
144
+	($ac_dir_suffix = $ac_dir) =~ s%^./%%;
145
+	$ac_dir_suffix="/".$ac_dir_suffix;
146
+# A "../" for each directory in $ac_dir_suffix.
147
+	($ac_dots = $ac_dir_suffix) =~ s%/[^/]*%../%g;
148
+    } else {
149
+	$ac_dir_suffix="";
150
+	$ac_dots="";
151
+    }
152
+
153
+    if ($ac_given_srcdir eq ".") {
154
+	$srcdir=".";
155
+	if ($ac_dots) {
156
+	    ( $top_srcdir = $ac_dots) =~ s%/$%%;
157
+	} else { $top_srcdir="."; }
158
+    } elsif ($ac_given_srcdir =~ m%^/%) {
159
+	$srcdir=$ac_given_srcdir.$ac_dir_suffix;
160
+	$top_srcdir = $ac_given_srcdir;
161
+    } else {
162
+	$srcdir = $ac_dots.$ac_given_srcdir.$ac_dir_suffix;
163
+	$top_srcdir = $ac_dots.$ac_given_srcdir;
164
+    }
165
+
166
+    if ($ac_given_INSTALL) {
167
+	if ($ac_given_INSTALL =~ m%^/% ) {
168
+	    $INSTALL = $ac_given_INSTALL;
169
+	} else {
170
+	    $INSTALL = $ac_dots.$ac_given_INSTALL;
171
+	}
172
+    }
173
+
174
+    print "fast creating $ac_file\n";
175
+    unlink $ac_file;
176
+    my $ac_comsub="";
177
+    my $fname=$ac_file_in;
178
+    $fname =~ s%.*/%%;
179
+    $configure_input="$ac_file.  Generated from $fname by config.pl.";
180
+
181
+    my $ac_file_inputs;
182
+    ($ac_file_inputs = $ac_file_in) =~ s%^%$ac_given_srcdir/%;
183
+    $ac_file_inputs =~ s%:% $ac_given_srcdir/%g;
184
+
185
+    patch_file($ac_file, $ac_file_inputs);
186
+    ++$created_file_count;
187
+}
188
+
189
+print "config.pl: fast created $created_file_count file(s).\n";
190
+
191
+sub patch_file {
192
+    my ($outf, $infiles) = @_;
193
+    my $filedata;
194
+    my @infiles=split(' ', $infiles);
195
+    my $i=0;
196
+    my $name;
197
+
198
+    foreach $name (@infiles) {
199
+	if (open(CF, "< $name")) {
200
+	    while (<CF>) {
201
+		$filedata .= $_;
202
+	    }
203
+	    close(CF);
204
+	} else {
205
+	    print STDERR "can't open $name: $!"."\n";
206
+	}
207
+    }
208
+
209
+    $filedata =~ s%\@configure_input\@%$configure_input%g;
210
+    $filedata =~ s%\@srcdir\@%$srcdir%g;
211
+    $filedata =~ s%\@top_srcdir\@%$top_srcdir%g;
212
+    $filedata =~ s%\@INSTALL\@%$INSTALL%g;
213
+
214
+    if ($bad_perl) {
215
+	while ($i <= $#comp_subs) {
216
+	    my $ref = $comp_subs[$i];
217
+	    &$ref(\$filedata);
218
+	    $i++;
219
+	}
220
+    } else {
221
+	while ($i <= $#comp_match) {
222
+	    $filedata =~ s/$comp_match[$i]/$comp_subs[$i]/g;
223
+	    $i++;
224
+	}
225
+    }
226
+    open(CF, "> $outf") || die "can't create $outf: $!";
227
+    print CF $filedata;
228
+    close(CF);
229
+}
230
+
231
+sub make_closure {
232
+    my ($pat, $sub) = @_;
233
+    my $ret = eval "return sub { my \$ref=shift; \$\$ref =~ s%\Q$pat\E%\Q$sub\E%g; }";
234
+    if ($@) {
235
+        print "can't create CODE: $@\n";
236
+    }
237
+    return $ret;
238
+}

+ 1575
- 0
config.sub
File diff suppressed because it is too large
View File


+ 45
- 0
configure.in.bot.end View File

@@ -0,0 +1,45 @@
1
+# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
2
+if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
3
+  # And if so, warn when they don't match
4
+  if test "$kde_libs_prefix" != "$given_prefix"; then
5
+    # And if kde doesn't know about the prefix yet
6
+    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
7
+    if test $? -ne 0; then
8
+      echo ""
9
+      echo "Warning: you chose to install this package in $given_prefix,"
10
+      echo "but KDE was found in $kde_libs_prefix."
11
+      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
12
+      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
13
+      echo "Then restart KDE."
14
+      echo ""
15
+    fi
16
+  fi
17
+fi
18
+
19
+if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
20
+  echo ""
21
+  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
22
+  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
23
+  echo ""
24
+  echo "For better performance, consider including the Qt visibility supporting patch"
25
+  echo "located at:"
26
+  echo ""
27
+  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
28
+  echo ""
29
+  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
30
+  echo "everything will continue to work just fine without it."
31
+  echo ""
32
+fi
33
+
34
+if test "$all_tests" = "bad"; then
35
+  if test ! "$cache_file" = "/dev/null"; then
36
+    echo ""
37
+    echo "Please remove the file $cache_file after changing your setup"
38
+    echo "so that configure will find the changes next time."
39
+    echo ""
40
+  fi
41
+else
42
+  echo ""
43
+  echo "Good - your configure finished. Start make now"
44
+  echo ""
45
+fi

+ 57
- 0
configure.in.min View File

@@ -0,0 +1,57 @@
1
+dnl    This file is part of the KDE libraries/packages
2
+dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
3
+ 
4
+dnl    This file is free software; you can redistribute it and/or
5
+dnl    modify it under the terms of the GNU Library General Public
6
+dnl    License as published by the Free Software Foundation; either
7
+dnl    version 2 of the License, or (at your option) any later version.
8
+ 
9
+dnl    This library is distributed in the hope that it will be useful,
10
+dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
+dnl    Library General Public License for more details.
13
+ 
14
+dnl    You should have received a copy of the GNU Library General Public License
15
+dnl    along with this library; see the file COPYING.LIB.  If not, write to
16
+dnl    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
+dnl    Boston, MA 02110-1301, USA.
18
+
19
+# Original Author was Kalle@kde.org
20
+# I lifted it in some mater. (Stephan Kulow)
21
+# I used much code from Janos Farkas
22
+
23
+dnl Process this file with autoconf to produce a configure script.
24
+
25
+AC_INIT(acinclude.m4) dnl a source file from your sub dir
26
+
27
+dnl This is so we can use kde-common
28
+AC_CONFIG_AUX_DIR(admin)
29
+
30
+dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
31
+unset CDPATH
32
+
33
+dnl Checking host/target/build systems, for make, install etc.
34
+AC_CANONICAL_SYSTEM 
35
+dnl Perform program name transformation
36
+AC_ARG_PROGRAM
37
+
38
+dnl Automake doc recommends to do this only here. (Janos)
39
+AM_INIT_AUTOMAKE(@MODULENAME@, @VERSION@) dnl searches for some needed programs
40
+
41
+KDE_SET_PREFIX
42
+
43
+dnl generate the config header
44
+AM_CONFIG_HEADER(config.h) dnl at the distribution this done
45
+
46
+dnl Checks for programs.
47
+AC_CHECK_COMPILERS
48
+AC_ENABLE_SHARED(yes)
49
+AC_ENABLE_STATIC(no)
50
+KDE_PROG_LIBTOOL
51
+
52
+dnl for NLS support. Call them in this order!
53
+dnl WITH_NLS is for the po files
54
+AM_KDE_WITH_NLS
55
+
56
+dnl KDE_USE_QT
57
+AC_PATH_KDE

+ 661
- 0
cvs.sh View File

@@ -0,0 +1,661 @@
1
+#! /bin/sh
2
+#
3
+# cvs.sh
4
+#
5
+# This file contains support code from Makefile.common
6
+# It defines a shell function for each known target
7
+# and then does a case to call the correct function.
8
+
9
+unset MAKEFLAGS
10
+
11
+call_and_fix_autoconf()
12
+{
13
+  $AUTOCONF || exit 1
14
+  if test -r configure.in.in ; then
15
+    perl -pi -e "print \"if test \\\"x\\\$with_fast_perl\\\" = \\\"xyes\\\"; then\
16
+    \\n  perl -i.bak \\\$ac_aux_dir/conf.change.pl \\\$CONFIG_STATUS\
17
+    \\\\\\n    || mv \\\$CONFIG_STATUS.bak \\\$CONFIG_STATUS\
18
+    \\n  rm -f \\\$CONFIG_STATUS.bak\\nfi\
19
+    \\n\" if /^\\s*chmod\\s+.*\\+x\\s+.*CONFIG_STATUS/; s,^#line.*LINENO.*\$,/* \$& */, ;" configure
20
+  fi
21
+}
22
+
23
+strip_makefile()
24
+{
25
+  if test ! -f $makefile_wo; then
26
+    perl -e '$in=0; while ( <> ) { $in = 1 if ($_ =~ m/^if / ); print $_ unless ($in || $_ =~ m/^include /); $in = 0 if ($_ =~ m/^endif/); }' < $makefile_am > $makefile_wo
27
+  fi
28
+}
29
+
30
+check_autotool_versions()
31
+{
32
+required_autoconf_version="2.53 or newer"
33
+AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
34
+case $AUTOCONF_VERSION in
35
+  Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
36
+  "" )
37
+    echo "*** AUTOCONF NOT FOUND!."
38
+    echo "*** KDE requires autoconf $required_autoconf_version"
39
+    exit 1
40
+    ;;
41
+  * )
42
+    echo "*** YOU'RE USING $AUTOCONF_VERSION."
43
+    echo "*** KDE requires autoconf $required_autoconf_version"
44
+    exit 1
45
+    ;;
46
+esac
47
+
48
+AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1`
49
+case $AUTOHEADER_VERSION in
50
+  Autoconf*2.5* | autoheader*2.5* | autoheader*2.6* ) : ;;
51
+  "" )
52
+    echo "*** AUTOHEADER NOT FOUND!."
53
+    echo "*** KDE requires autoheader $required_autoconf_version"
54
+    exit 1
55
+    ;;
56
+  * )
57
+    echo "*** YOU'RE USING $AUTOHEADER_VERSION."
58
+    echo "*** KDE requires autoheader $required_autoconf_version"
59
+    exit 1
60
+    ;;
61
+esac
62
+
63
+AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
64
+required_automake_version="1.6.1 or newer"
65
+case $AUTOMAKE_STRING in
66
+  automake*1.5d* | automake*1.5* | automake*1.5-* )
67
+    echo "*** YOU'RE USING $AUTOMAKE_STRING."
68
+    echo "*** KDE requires automake $required_automake_version"
69
+    exit 1
70
+    ;;
71
+  automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10*)
72
+    echo "*** $AUTOMAKE_STRING found."
73
+    UNSERMAKE=no
74
+    ;;
75
+  "" )
76
+    echo "*** AUTOMAKE NOT FOUND!."
77
+    echo "*** KDE requires automake $required_automake_version"
78
+    exit 1
79
+    ;;
80
+  *unsermake* ) :
81
+    echo "*** YOU'RE USING UNSERMAKE."
82
+    echo "*** GOOD LUCK!! :)"
83
+    UNSERMAKE=unsermake
84
+    ;;
85
+  * )
86
+    echo "*** YOU'RE USING $AUTOMAKE_STRING."
87
+    echo "*** KDE requires automake $required_automake_version"
88
+    exit 1
89
+    ;;
90
+esac
91
+unset required_automake_version
92
+}
93
+
94
+cvs()
95
+{
96
+check_autotool_versions
97
+acinclude_m4 
98
+
99
+### Make new subdirs and configure.in.
100
+### The make calls could be optimized away here,
101
+### with a little thought.
102
+if test -r configure.in.in; then
103
+    rm -f configure.in
104
+    echo "*** Creating list of subdirectories"
105
+    create_subdirs
106
+
107
+    if test -r Makefile.am.in; then
108
+        echo "*** Creating Makefile.am"
109
+        if grep '\$(top_srcdir)/Makefile.am:' $makefile_am >/dev/null; then 
110
+            strip_makefile
111
+            $MAKE -f $makefile_wo top_srcdir=. ./Makefile.am || exit 1
112
+        else
113
+            Makefile_am
114
+        fi
115
+     fi
116
+     configure_files
117
+     echo "*** Creating configure.in"
118
+     if grep '\$(top_srcdir)/configure.in:' $makefile_am >/dev/null; then 
119
+       strip_makefile
120
+       $MAKE -f $makefile_wo top_srcdir=. ./configure.in || exit 1
121
+     else
122
+       configure_in
123
+     fi
124
+fi
125
+
126
+echo "*** Creating aclocal.m4"
127
+$ACLOCAL $ACLOCALFLAGS || exit 1
128
+echo "*** Creating configure"
129
+call_and_fix_autoconf
130
+
131
+if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
132
+  echo "*** Creating config.h template"
133
+  $AUTOHEADER || exit 1
134
+  touch config.h.in
135
+fi
136
+
137
+echo "*** Creating Makefile templates"
138
+$AUTOMAKE || exit 1
139
+
140
+if test "$UNSERMAKE" = no; then
141
+  echo "*** Postprocessing Makefile templates"
142
+  perl -w admin/am_edit || exit 1
143
+fi
144
+
145
+if egrep "^cvs-local:" $makefile_am >/dev/null; then \
146
+  strip_makefile
147
+  $MAKE -f $makefile_wo cvs-local top_srcdir=. || exit 1
148
+fi
149
+
150
+echo "*** Creating date/time stamp"
151
+touch stamp-h.in
152
+
153
+echo "*** Finished"
154
+echo "    Don't forget to run ./configure"
155
+echo "    If you haven't done so in a while, run ./configure --help"
156
+}
157
+
158
+dist()
159
+{
160
+check_autotool_versions
161
+
162
+###
163
+### First build all of the files necessary to do just "make"
164
+###
165
+acinclude_m4
166
+if test -r configure.in.in; then
167
+  rm -f configure.in
168
+  create_subdirs
169
+
170
+  if test -r Makefile.am.in; then
171
+    if grep '\$(top_srcdir)/Makefile.am:' $makefile_am >/dev/null; then 
172
+      strip_makefile
173
+      $MAKE -f $makefile_wo top_srcdir=. ./Makefile.am || exit 1
174
+    else
175
+      Makefile_am
176
+    fi
177
+  fi
178
+  configure_files
179
+  if grep '\$(top_srcdir)/configure.in:' $makefile_am >/dev/null; then 
180
+    strip_makefile
181
+    $MAKE -f $makefile_wo top_srcdir=. ./configure.in || exit 1
182
+  else
183
+    configure_in
184
+  fi
185
+fi
186
+$ACLOCAL $ACLOCALFLAGS
187
+if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
188
+  echo "*** Creating config.h template"
189
+  $AUTOHEADER || exit 1
190
+  touch config.h.in
191
+fi
192
+$AUTOMAKE --foreign || exit 1
193
+if test "$UNSERMAKE" = no; then
194
+  echo "*** Postprocessing Makefile templates"
195
+  perl -w admin/am_edit || exit 1
196
+fi
197
+call_and_fix_autoconf
198
+touch stamp-h.in
199
+if grep "^cvs-local:" $makefile_am >/dev/null; then
200
+  strip_makefile
201
+  $MAKE -f $makefile_wo cvs-local top_srcdir=.
202
+fi
203
+
204
+###
205
+### Then make messages
206
+###
207
+if test -d po; then
208
+ LIST=`find ./po -name "*.po"`
209
+ for i in $LIST; do
210
+  file2=`echo $i | sed -e "s#\.po#\.gmo#"`
211
+  msgfmt -o $file2 $i || touch $file2
212
+ done
213
+fi
214
+if grep "^cvs-dist-local:" $makefile_am >/dev/null; then
215
+  strip_makefile
216
+  $MAKE -f $makefile_wo cvs-dist-local top_srcdir=.
217
+fi
218
+}
219
+
220
+subdir_dist()
221
+{
222
+$ACLOCAL $ACLOCALFLAGS
223
+$AUTOHEADER
224
+touch config.h.in
225
+$AUTOMAKE
226
+AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
227
+case $AUTOMAKE_STRING in
228
+  *unsermake* ) :
229
+    ;;
230
+  *)
231
+     perl -w ../admin/am_edit --path=../admin
232
+esac
233
+call_and_fix_autoconf
234
+touch stamp-h.in
235
+}
236
+
237
+configure_in()
238
+{
239
+rm -f configure.in configure.in.new
240
+kde_use_qt_param=
241
+test -f configure.files || { echo "need configure.files for configure.in"; exit 1; }
242
+list=`fgrep -v "configure.in.bot" < configure.files | fgrep -v "configure.in.mid"`
243
+: > configure.in.new
244
+for file in $list; do 
245
+  echo "dnl =======================================================" >> configure.in.new
246
+  echo "dnl FILE: $file" >> configure.in.new
247
+  echo "dnl =======================================================" >> configure.in.new
248
+  echo "" >> configure.in.new
249
+  cat $file >> configure.in.new
250
+done
251
+echo "KDE_CREATE_SUBDIRSLIST" >> configure.in.new
252
+if test -f Makefile.am.in; then
253
+  subdirs=`cat subdirs`
254
+  for dir in $subdirs; do
255
+    vdir=`echo $dir | sed -e 's,[-+.@],_,g'`
256
+    echo "AM_CONDITIONAL($vdir""_SUBDIR_included, test \"x\$$vdir""_SUBDIR_included\" = xyes)" >> configure.in.new
257
+    if test -f "$dir/configure.in"; then
258
+        echo "if test \"x\$$vdir""_SUBDIR_included\" = xyes; then " >> configure.in.new
259
+        echo "  AC_CONFIG_SUBDIRS($dir)" >> configure.in.new
260
+        echo "fi" >> configure.in.new
261
+    fi
262
+  done
263
+fi
264
+
265
+echo "AC_CONFIG_FILES([ Makefile ])" >> configure.in.new
266
+
267
+if test -f inst-apps; then
268
+    topleveldirs=`cat inst-apps`
269
+else
270
+    topleveldirs=
271
+    for dir in `ls -1d * | sort`; do
272
+	if test "$dir" != "debian" && test -d $dir; then
273
+	    topleveldirs="$topleveldirs $dir"
274
+	fi
275
+    done
276
+fi
277
+
278
+for topleveldir in $topleveldirs; do 
279
+  if test -f $topleveldir/configure.in; then
280
+	continue
281
+  fi
282
+  if test -f $topleveldir/Makefile.am; then :; else
283
+	continue
284
+  fi
285
+
286
+  mfs=`find $topleveldir -follow -name Makefile.am -print | fgrep -v "/." | \
287
+       sed -e 's#\./##; s#/Makefile.am$##' | sort | sed -e 's#$#/Makefile#'`
288
+  for i in $mfs; do
289
+     echo "AC_CONFIG_FILES([ $i ])" >> configure.in.new
290
+  done
291
+done
292
+
293
+files=`cat configure.files`
294
+list=`egrep '^dnl AC_OUTPUT\(.*\)' $files | sed -e "s#^.*dnl AC_OUTPUT(\(.*\))#\1#"`
295
+for file in $list; do 
296
+    echo "AC_CONFIG_FILES([ $file ])" >>  configure.in.new
297
+done
298
+
299
+midfiles=`cat configure.files | fgrep "configure.in.mid"`
300
+test -n "$midfiles" && cat $midfiles >> configure.in.new
301
+
302
+echo "AC_OUTPUT" >> configure.in.new
303
+modulename=
304
+if test -f configure.in.in; then
305
+   if head -n 2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then
306
+      kde_use_qt_param=`cat configure.in.in | sed -n -e "s/#MIN_CONFIG(\(.*\))/\1/p"`
307
+   fi
308
+   if head -n 2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then
309
+      line=`grep "^AM_INIT_AUTOMAKE(" configure.in.in`
310
+      if test -n "$line"; then
311
+	  modulename=`echo $line | sed -e "s#AM_INIT_AUTOMAKE(\([^,]*\),.*#\1#"`
312
+	  VERSION=`echo $line | sed -e "s#AM_INIT_AUTOMAKE([^,]*, *\([^)]*\)).*#\1#"`
313
+      fi
314
+      sed -e "s#AM_INIT_AUTOMAKE([^@].*#dnl PACKAGE set before#" \
315
+          configure.in.new > configure.in && mv configure.in configure.in.new
316
+   fi
317
+fi
318
+if test -z "$VERSION" || test "$VERSION" = "@VERSION@"; then
319
+     VERSION="\"3.5.10\""
320
+fi
321
+if test -z "$modulename" || test "$modulename" = "@MODULENAME@"; then
322
+   modulename=`pwd`; 
323
+   modulename=`basename $modulename`
324
+   esc_VERSION=`echo $VERSION | sed -e "s#[^.0-9a-zA-Z]##g"`
325
+   modulename=`echo $modulename | sed -e "s#-$esc_VERSION##"`   
326
+
327
+fi
328
+if test -n "$kde_use_qt_param"; then
329
+      sed -e "s#^dnl KDE_USE_QT#KDE_USE_QT($kde_use_qt_param)#" \
330
+      	configure.in.new > configure.in && mv configure.in configure.in.new
331
+fi
332
+sed -e "s#@MODULENAME@#$modulename#" configure.in.new |
333
+	sed -e "s#@VERSION@#$VERSION#" > configure.in
334
+botfiles=`cat configure.files | egrep "configure.in.bot"`
335
+test -n "$botfiles" && cat $botfiles >> configure.in
336
+cat $admindir/configure.in.bot.end >> configure.in
337
+rm -f configure.in.new
338
+}
339
+
340
+configure_files()
341
+{
342
+echo "*** Creating configure.files"
343
+admindir=NO
344
+for i in . .. ../.. ../../..; do
345
+  if test -x $i/admin; then admindir=$i/admin; break; fi
346
+done
347
+rm -f configure.files
348
+touch configure.files
349
+if test -f configure.in.in && head -n 2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then
350
+	echo $admindir/configure.in.min >> configure.files
351
+fi
352
+test -f configure.in.in && echo configure.in.in >> configure.files
353
+# we collect files in the subdirs and do some sorting tricks, so subsubdirs come after subdirs
354
+if test -f inst-apps; then
355
+   inst=`cat inst-apps`
356
+   list=""
357
+   for i in $inst; do
358
+      list="$list `find $i/ -follow -name "configure.in.in" -o -name "configure.in.bot" -o -name "configure.in.mid" | \
359
+		sed -e "s,/configure,/aaaconfigure," | sort | sed -e "s,/aaaconfigure,/configure,"`"
360
+   done
361
+else
362
+   list=`find . -follow -name "configure.in.in" -o -name "configure.in.bot" -o -name "configure.in.mid" | \
363
+		sed -e "s,/configure,/aaaconfigure," | sort | sed -e "s,/aaaconfigure,/configure,"`
364
+fi
365
+for i in $list; do if test -f $i && test `dirname $i` != "." ; then
366
+  echo $i >> configure.files
367
+fi; done
368
+test -f configure.in.mid && echo configure.in.mid >> configure.files
369
+test -f configure.in.bot && echo configure.in.bot >> configure.files
370
+if test ! -s configure.files; then
371
+   echo "There are no files to build a configure. Please check your checkout."
372
+   exit 1
373
+fi
374
+}
375
+
376
+create_subdirs()
377
+{
378
+if grep '\$(top_srcdir)/subdirs:' $makefile_am >/dev/null; then 
379
+    # as many modules contain rules to create subdirs without any
380
+    # dependencies make won't create it unless there is no file.
381
+    # so we check if that's a dummy rule or one that works
382
+    rm -f subdirs.cvs.sh.$$
383
+    if test -f subdirs; then
384
+	mv subdirs subdirs.cvs.sh.$$
385
+    fi
386
+    strip_makefile
387
+    $MAKE -f $makefile_wo top_srcdir=. ./subdirs || exit 1
388
+    if test -f subdirs.cvs.sh.$$; then
389
+	if test -s subdirs; then
390
+	    rm subdirs.cvs.sh.$$ 
391
+	else
392
+	    mv subdirs.cvs.sh.$$ subdirs
393
+	fi
394
+    fi
395
+else
396
+    subdirs
397
+fi
398
+}
399
+
400
+subdirs()
401
+{
402
+dirs=
403
+idirs=
404
+if test -f inst-apps; then
405
+   idirs=`cat inst-apps`
406
+else
407
+   idirs=`ls -1 | sort`
408
+fi
409
+
410
+compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1`
411
+compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1`
412
+for i in $idirs; do
413
+    if test -f $i/Makefile.am; then
414
+       case " $compilefirst $compilelast " in
415
+         *" $i "*) ;;
416
+         *) dirs="$dirs $i"
417
+       esac
418
+    fi
419
+done
420
+
421
+: > ./_SUBDIRS
422
+
423
+for d in $compilefirst; do
424
+   echo $d >> ./_SUBDIRS
425
+done
426
+
427
+(for d in $dirs; do 
428
+   list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1`
429
+   for s in $list; do
430
+      echo $s $d
431
+   done
432
+   list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1`
433
+   for s in $list; do
434
+      echo $d $s
435
+   done
436
+   echo $d $d
437
+done ) | tsort >> ./_SUBDIRS
438
+
439
+for d in $compilelast; do
440
+   echo $d >> ./_SUBDIRS
441
+done
442
+
443
+if test -r subdirs && cmp -s subdirs _SUBDIRS; then
444
+    rm -f _SUBDIRS
445
+fi
446
+test -r _SUBDIRS && mv _SUBDIRS subdirs || true
447
+}
448
+
449
+Makefile_am()
450
+{
451
+if test -f Makefile.am.in; then
452
+  compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1`
453
+  compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1`
454
+
455
+  idirs=
456
+  dirs=
457
+  if test -f inst-apps; then
458
+     idirs=`cat inst-apps`
459
+  else
460
+     idirs=`cat subdirs`
461
+  fi
462
+  for i in $idirs; do
463
+    case " $compilefirst $compilelast " in
464
+      *" $i "*) ;;
465
+      *) dirs="$dirs $i"
466
+    esac
467
+  done
468
+
469
+  adds=`fgrep '$(top_srcdir)/acinclude.m4:' Makefile.am.in | sed -e 's,^[^:]*: *,,; s,\$(top_srcdir)/,,g'`
470
+  if echo "$adds" | fgrep "*" >/dev/null ; then
471
+    adds=`ls -d -1 $adds 2>/dev/null`
472
+    fgrep -v  '$(top_srcdir)/acinclude.m4:' Makefile.am.in > Makefile.am.in.adds
473
+    str='$(top_srcdir)/acinclude.m4:'
474
+    for add in $adds; do 
475
+	str="$str \$(top_srcdir)/$add"
476
+    done
477
+    echo $str >> Makefile.am.in.adds
478
+  else
479
+    cat Makefile.am.in > Makefile.am.in.adds
480
+  fi
481
+
482
+  cat Makefile.am.in.adds | \
483
+      sed -e 's,^\s*\(COMPILE_BEFORE.*\),# \1,' | \
484
+      sed -e 's,^\s*\(COMPILE_AFTER.*\),# \1,' > Makefile.am
485
+    echo "SUBDIRS="'$(TOPSUBDIRS)' >> Makefile.am
486
+  rm Makefile.am.in.adds
487
+fi
488
+}
489
+
490
+acinclude_m4()
491
+{
492
+  echo "*** Creating acinclude.m4"
493
+  adds=
494
+  if grep '\$(top_srcdir)/acinclude.m4:' $makefile_am >/dev/null; then 
495
+    strip_makefile
496
+    rm -f acinclude.m4
497
+    adds=`grep '\$(top_srcdir)/acinclude.m4:' $makefile_wo | sed -e 's,^[^:]*: *,,; s,\$(top_srcdir),.,g'`
498
+    if echo $adds | fgrep "*" >/dev/null ; then
499
+      adds=`ls -d -1 $adds 2>/dev/null`
500
+    else
501
+      $MAKE -f $makefile_wo top_srcdir=. ./acinclude.m4 || exit 1
502
+    fi
503
+  else
504
+    rm -f acinclude.m4
505
+  fi
506
+  # if it wasn't created up to now, then we do it better
507
+  if test ! -f acinclude.m4; then
508
+     cat admin/acinclude.m4.in admin/libtool.m4.in admin/pkg.m4.in $adds > acinclude.m4
509
+  fi
510
+}
511
+
512
+package_merge()
513
+{
514
+catalogs=$POFILES
515
+for cat in $catalogs; do
516
+  msgmerge -o $cat.new $cat $PACKAGE.pot
517
+  if test -s $cat.new; then
518
+    grep -v "\"POT-Creation" $cat.new > $cat.new.2
519
+    grep -v "\"POT-Creation" $cat >> $cat.new.1
520
+    if diff $cat.new.1 $cat.new.2; then
521
+	rm $cat.new
522
+    else
523
+	mv $cat.new $cat
524
+    fi
525
+    rm -f $cat.new.1 $cat.new.2
526
+  fi
527
+done
528
+}
529
+
530
+extract_messages()
531
+{
532
+podir=${podir:-$PWD/po}
533
+files=`find . -name Makefile.am | xargs egrep -l '^messages:' `
534
+dirs=`for i in $files; do echo \`dirname $i\`; done`
535
+tmpname="$PWD/messages.log"
536
+if test -z "$EXTRACTRC"; then EXTRACTRC=extractrc ; fi
537
+if test -z "$PREPARETIPS"; then PREPARETIPS=preparetips ; fi
538
+export EXTRACTRC PREPARETIPS
539
+
540
+for subdir in $dirs; do
541
+  test -z "$VERBOSE" || echo "Making messages in $subdir"
542
+  (cd $subdir
543
+   if test -n "`grep -e '^messages:.*rc.cpp' Makefile.am`"; then
544
+	$EXTRACTRC *.rc *.ui *.kcfg > rc.cpp
545
+   else
546
+	candidates=`ls -1 *.rc *.ui *.kcfg 2>/dev/null`
547
+	if test -n "$candidates"; then
548
+	    echo "$subdir has *.rc, *.ui or *.kcfg files, but not correct messages line"
549
+	fi
550
+   fi
551
+   if find . -name \*.c\* -o -name \*.h\* | fgrep -v ".svn" | xargs fgrep -s -q KAboutData ; then
552
+	echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp
553
+   else echo " " > _translatorinfo.cpp
554
+   fi
555
+   perl -e '$mes=0; while (<STDIN>) { next if (/^(if\s|else\s|endif)/); if (/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/$\\(XGETTEXT\)/ && / -o/) { s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile
556
+
557
+   kdepotpath=${includedir:-`kde-config --expandvars --install include`}/kde.pot
558
+   if ! test -f $kdepotpath; then
559
+	kdepotpath=`kde-config --expandvars --prefix`/include/kde.pot
560
+   fi
561
+
562
+   $MAKE -s -f _transMakefile podir=$podir EXTRACTRC="$EXTRACTRC" PREPARETIPS="$PREPARETIPS" srcdir=. \
563
+	XGETTEXT="${XGETTEXT:-xgettext} --foreign-user -C -ci18n -ki18n -ktr2i18n -kI18N_NOOP -kI18N_NOOP2 -kaliasLocale -x $kdepotpath" messages
564
+   exit_code=$?
565
+   if test "$exit_code" != 0; then
566
+       echo "make exit code: $exit_code"
567
+   fi
568
+   ) 2>&1 | grep -v '^make\[1\]' > $tmpname
569
+   test -s $tmpname && { echo $subdir ; cat "$tmpname"; }
570
+   test -f $subdir/rc.cpp && rm -f $subdir/rc.cpp
571
+   rm -f $subdir/_translatorinfo.cpp
572
+   rm -f $subdir/_transMakefile
573
+done
574
+rm -f $tmpname
575
+}
576
+
577
+package_messages()
578
+{
579
+rm -rf po.backup
580
+mkdir po.backup
581
+
582
+for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do
583
+  egrep -v '^#[^,]' po/$i | egrep '^.*[^ ]+.*$' | grep -v "\"POT-Creation" > po.backup/$i
584
+  cat po/$i > po.backup/backup_$i
585
+  touch -r po/$i po.backup/backup_$i
586
+  rm po/$i
587
+done
588
+
589
+extract_messages
590
+
591
+for i in `ls -1 po.backup/*.pot 2>/dev/null | sed -e "s#po.backup/##" | egrep -v '^backup_'`; do
592
+  test -f po/$i || echo "disappeared: $i"
593
+done
594
+for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do
595
+  sed -e 's,^"Content-Type: text/plain; charset=CHARSET\\n"$,"Content-Type: text/plain; charset=UTF-8\\n",' po/$i > po/$i.new && mv po/$i.new po/$i
596
+  #msgmerge -q -o po/$i po/$i po/$i
597
+  egrep -v '^#[^,]' po/$i | egrep '^.*[^ ]+.*$' | grep -v "\"POT-Creation" > temp.pot
598
+  if test -f po.backup/$i && ! cmp -s temp.pot po.backup/$i; then
599
+    echo "will update $i"
600
+  else
601
+    if test -f po.backup/backup_$i; then
602
+      test -z "$VERBOSE" || echo "I'm restoring $i"
603
+      mv po.backup/backup_$i po/$i
604
+      rm po.backup/$i
605
+    else
606
+      echo "will add $i"
607
+    fi
608
+  fi
609
+done
610
+rm -f temp.pot
611
+rm -rf po.backup
612
+}
613
+
614
+# Make sure that sorting is always done the same way
615
+LC_ALL=C
616
+export LC_ALL
617
+unset LANG || :
618
+unset LC_CTYPE || :
619
+unset LANGUAGE || :
620
+
621
+unset CDPATH || :
622
+admindir=`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
623
+test "x$admindir" = "x$0" && admindir=.
624
+
625
+test "x$MAKE" = x && MAKE=make
626
+makefile_am=Makefile.am
627
+makefile_wo=Makefile.am.wo
628
+if test -f Makefile.am.in; then
629
+  makefile_am=Makefile.am.in
630
+  makefile_wo=Makefile.am.in.wo
631
+  rm -f $makefile_wo
632
+fi
633
+
634
+# Call script to find autoconf and friends.  Uses eval since the script outputs
635
+# sh-compatible code.
636
+eval `$admindir/detect-autoconf.pl`
637
+
638
+###
639
+### Main
640
+###
641
+
642
+arg=`echo $1 | tr .- __`
643
+case $arg in
644
+  cvs | dist | subdir_dist | configure_in | configure_files | subdirs | \
645
+  cvs_clean | package_merge | package_messages | Makefile_am | acinclude_m4 | extract_messages ) $arg ;;
646
+  configure ) call_and_fix_autoconf ;;
647
+  * ) echo "Usage: cvs.sh <target>"
648
+      echo "Target can be one of:"
649
+      echo "    cvs svn dist"
650
+      echo "    configure.in configure.files"
651
+      echo "    package-merge package-messages"
652
+      echo ""
653
+      echo "Usage: anything but $1"
654
+      exit 1 ;;
655
+esac
656
+
657
+if test -f $makefile_wo; then
658
+  rm $makefile_wo
659
+fi
660
+
661
+exit 0

+ 43
- 0
debianrules View File

@@ -0,0 +1,43 @@
1
+#!/usr/bin/perl -w
2
+
3
+use Shell qw(mv cp mkdir rm) ;
4
+use File::Find;
5
+use Cwd;
6
+
7
+$origPwd = `pwd`;
8
+chomp $origPwd;
9
+
10
+$kde_prefix	=	"/usr";
11
+$sysconfdir	=	"/etc";
12
+$kde_includedir	=	"$kde_prefix/include/kde";
13
+$infodir	=	"$kde_prefix/share/info";
14
+$mandir		=	"$kde_prefix/share/man";
15
+$qtdir		=	"/usr/share/qt3";
16
+
17
+$kde_cgidir	=	"$kde_prefix/lib/cgi-bin";
18
+$kde_confdir	=	"$sysconfdir/kde3";
19
+$kde_htmldir	=	"$kde_prefix/share/doc/kde/HTML";
20
+
21
+if (defined $ENV{DEB_BUILD_OPTIONS} &&
22
+    $ENV{DEB_BUILD_OPTIONS} =~ /\bnostrip\b/) {
23
+	$enable_debug="--enable-debug=full";
24
+} else {
25
+	$enable_debug="--disable-debug";
26
+}
27
+
28
+if (@ARGV && $ARGV[0] eq 'echodirs') {
29
+  print STDOUT "export kde_prefix=$kde_prefix\n";
30
+  print STDOUT "export sysconfdir=$sysconfdir\n";
31
+  print STDOUT "export kde_includedir=$kde_includedir\n";
32
+  print STDOUT "export infodir=$infodir\n";
33
+  print STDOUT "export mandir=$mandir\n";
34
+  print STDOUT "export qtdir=$qtdir\n";
35
+
36
+  print STDOUT "export kde_cgidir=$kde_cgidir\n";
37
+  print STDOUT "export kde_confdir=$kde_confdir\n";
38
+  print STDOUT "export kde_htmldir=$kde_htmldir\n";
39
+
40
+  print STDOUT "configkde=$enable_debug --disable-rpath --prefix=\$(kde_prefix) --sysconfdir=\$(sysconfdir) --includedir=\$(kde_includedir) --infodir=\$(infodir) --mandir=\$(mandir) --with-qt-dir=\$(qtdir)\n";
41
+
42
+  exit
43
+}

+ 530
- 0
depcomp View File

@@ -0,0 +1,530 @@
1
+#! /bin/sh
2
+# depcomp - compile a program generating dependencies as side-effects
3
+
4
+scriptversion=2005-07-09.11
5
+
6
+# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
7
+
8
+# This program is free software; you can redistribute it and/or modify
9
+# it under the terms of the GNU General Public License as published by
10
+# the Free Software Foundation; either version 2, or (at your option)
11
+# any later version.
12
+
13
+# This program is distributed in the hope that it will be useful,
14
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+# GNU General Public License for more details.
17
+
18
+# You should have received a copy of the GNU General Public License
19
+# along with this program; if not, write to the Free Software
20
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
+# 02110-1301, USA.
22
+
23
+# As a special exception to the GNU General Public License, if you
24
+# distribute this file as part of a program that contains a
25
+# configuration script generated by Autoconf, you may include it under
26
+# the same distribution terms that you use for the rest of that program.
27
+
28
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
29
+
30
+case $1 in
31
+  '')
32
+     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
33
+     exit 1;
34
+     ;;
35
+  -h | --h*)
36
+    cat <<\EOF
37
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
38
+
39
+Run PROGRAMS ARGS to compile a file, generating dependencies
40
+as side-effects.
41
+
42
+Environment variables:
43
+  depmode     Dependency tracking mode.
44
+  source      Source file read by `PROGRAMS ARGS'.
45
+  object      Object file output by `PROGRAMS ARGS'.
46
+  DEPDIR      directory where to store dependencies.
47
+  depfile     Dependency file to output.
48
+  tmpdepfile  Temporary file to use when outputing dependencies.
49
+  libtool     Whether libtool is used (yes/no).
50
+
51
+Report bugs to <bug-automake@gnu.org>.
52
+EOF
53
+    exit $?
54
+    ;;
55
+  -v | --v*)
56
+    echo "depcomp $scriptversion"
57
+    exit $?
58
+    ;;
59
+esac
60
+
61
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
62
+  echo "depcomp: Variables source, object and depmode must be set" 1>&2
63
+  exit 1
64
+fi
65
+
66
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
67
+depfile=${depfile-`echo "$object" |
68
+  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
69
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
70
+
71
+rm -f "$tmpdepfile"
72
+
73
+# Some modes work just like other modes, but use different flags.  We
74
+# parameterize here, but still list the modes in the big case below,
75
+# to make depend.m4 easier to write.  Note that we *cannot* use a case
76
+# here, because this file can only contain one case statement.
77
+if test "$depmode" = hp; then
78
+  # HP compiler uses -M and no extra arg.
79
+  gccflag=-M
80
+  depmode=gcc
81
+fi
82
+
83
+if test "$depmode" = dashXmstdout; then
84
+   # This is just like dashmstdout with a different argument.
85
+   dashmflag=-xM
86
+   depmode=dashmstdout
87
+fi
88
+
89
+case "$depmode" in
90
+gcc3)
91
+## gcc 3 implements dependency tracking that does exactly what
92
+## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
93
+## it if -MD -MP comes after the -MF stuff.  Hmm.
94
+  "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
95
+  stat=$?
96
+  if test $stat -eq 0; then :
97
+  else
98
+    rm -f "$tmpdepfile"
99
+    exit $stat
100
+  fi
101
+  mv "$tmpdepfile" "$depfile"
102
+  ;;
103
+
104
+gcc)
105
+## There are various ways to get dependency output from gcc.  Here's
106
+## why we pick this rather obscure method:
107
+## - Don't want to use -MD because we'd like the dependencies to end
108
+##   up in a subdir.  Having to rename by hand is ugly.
109
+##   (We might end up doing this anyway to support other compilers.)
110
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
111
+##   -MM, not -M (despite what the docs say).
112
+## - Using -M directly means running the compiler twice (even worse
113
+##   than renaming).
114
+  if test -z "$gccflag"; then
115
+    gccflag=-MD,
116
+  fi
117
+  "$@" -Wp,"$gccflag$tmpdepfile"
118
+  stat=$?
119
+  if test $stat -eq 0; then :
120
+  else
121
+    rm -f "$tmpdepfile"
122
+    exit $stat
123
+  fi
124
+  rm -f "$depfile"
125
+  echo "$object : \\" > "$depfile"
126
+  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
127
+## The second -e expression handles DOS-style file names with drive letters.
128
+  sed -e 's/^[^:]*: / /' \
129
+      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
130
+## This next piece of magic avoids the `deleted header file' problem.
131
+## The problem is that when a header file which appears in a .P file
132
+## is deleted, the dependency causes make to die (because there is
133
+## typically no way to rebuild the header).  We avoid this by adding
134
+## dummy dependencies for each header file.  Too bad gcc doesn't do
135
+## this for us directly.
136
+  tr ' ' '
137
+' < "$tmpdepfile" |
138
+## Some versions of gcc put a space before the `:'.  On the theory
139
+## that the space means something, we add a space to the output as
140
+## well.
141
+## Some versions of the HPUX 10.20 sed can't process this invocation
142
+## correctly.  Breaking it into two sed invocations is a workaround.
143
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
144
+  rm -f "$tmpdepfile"
145
+  ;;
146
+
147
+hp)
148
+  # This case exists only to let depend.m4 do its work.  It works by
149
+  # looking at the text of this script.  This case will never be run,
150
+  # since it is checked for above.
151
+  exit 1
152
+  ;;
153
+
154
+sgi)
155
+  if test "$libtool" = yes; then
156
+    "$@" "-Wp,-MDupdate,$tmpdepfile"
157
+  else
158
+    "$@" -MDupdate "$tmpdepfile"
159
+  fi
160
+  stat=$?
161
+  if test $stat -eq 0; then :
162
+  else
163
+    rm -f "$tmpdepfile"
164
+    exit $stat
165
+  fi
166
+  rm -f "$depfile"
167
+
168
+  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
169
+    echo "$object : \\" > "$depfile"
170
+
171
+    # Clip off the initial element (the dependent).  Don't try to be
172
+    # clever and replace this with sed code, as IRIX sed won't handle
173
+    # lines with more than a fixed number of characters (4096 in
174
+    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
175
+    # the IRIX cc adds comments like `#:fec' to the end of the
176
+    # dependency line.
177
+    tr ' ' '
178
+' < "$tmpdepfile" \
179
+    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
180
+    tr '
181
+' ' ' >> $depfile
182
+    echo >> $depfile
183
+
184
+    # The second pass generates a dummy entry for each header file.
185
+    tr ' ' '
186
+' < "$tmpdepfile" \
187
+   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
188
+   >> $depfile
189
+  else
190
+    # The sourcefile does not contain any dependencies, so just
191
+    # store a dummy comment line, to avoid errors with the Makefile
192
+    # "include basename.Plo" scheme.
193
+    echo "#dummy" > "$depfile"
194
+  fi
195
+  rm -f "$tmpdepfile"
196
+  ;;
197
+
198
+aix)
199
+  # The C for AIX Compiler uses -M and outputs the dependencies
200
+  # in a .u file.  In older versions, this file always lives in the
201
+  # current directory.  Also, the AIX compiler puts `$object:' at the
202
+  # start of each line; $object doesn't have directory information.
203
+  # Version 6 uses the directory in both cases.
204
+  stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
205
+  tmpdepfile="$stripped.u"
206
+  if test "$libtool" = yes; then
207
+    "$@" -Wc,-M
208
+  else
209
+    "$@" -M
210
+  fi
211
+  stat=$?
212
+
213
+  if test -f "$tmpdepfile"; then :
214
+  else
215
+    stripped=`echo "$stripped" | sed 's,^.*/,,'`
216
+    tmpdepfile="$stripped.u"
217
+  fi
218
+
219
+  if test $stat -eq 0; then :
220
+  else
221
+    rm -f "$tmpdepfile"
222
+    exit $stat
223
+  fi
224
+
225
+  if test -f "$tmpdepfile"; then
226
+    outname="$stripped.o"
227
+    # Each line is of the form `foo.o: dependent.h'.
228
+    # Do two passes, one to just change these to
229
+    # `$object: dependent.h' and one to simply `dependent.h:'.
230
+    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
231
+    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
232
+  else
233
+    # The sourcefile does not contain any dependencies, so just
234
+    # store a dummy comment line, to avoid errors with the Makefile
235
+    # "include basename.Plo" scheme.
236
+    echo "#dummy" > "$depfile"
237
+  fi
238
+  rm -f "$tmpdepfile"
239
+  ;;
240
+
241
+icc)
242
+  # Intel's C compiler understands `-MD -MF file'.  However on
243
+  #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
244
+  # ICC 7.0 will fill foo.d with something like
245
+  #    foo.o: sub/foo.c
246
+  #    foo.o: sub/foo.h
247
+  # which is wrong.  We want:
248
+  #    sub/foo.o: sub/foo.c
249
+  #    sub/foo.o: sub/foo.h
250
+  #    sub/foo.c:
251
+  #    sub/foo.h:
252
+  # ICC 7.1 will output
253
+  #    foo.o: sub/foo.c sub/foo.h
254
+  # and will wrap long lines using \ :
255
+  #    foo.o: sub/foo.c ... \
256
+  #     sub/foo.h ... \
257
+  #     ...
258
+
259
+  "$@" -MD -MF "$tmpdepfile"
260
+  stat=$?
261
+  if test $stat -eq 0; then :
262
+  else
263
+    rm -f "$tmpdepfile"
264
+    exit $stat
265
+  fi
266
+  rm -f "$depfile"
267
+  # Each line is of the form `foo.o: dependent.h',
268
+  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
269
+  # Do two passes, one to just change these to
270
+  # `$object: dependent.h' and one to simply `dependent.h:'.
271
+  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
272
+  # Some versions of the HPUX 10.20 sed can't process this invocation
273
+  # correctly.  Breaking it into two sed invocations is a workaround.
274
+  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
275
+    sed -e 's/$/ :/' >> "$depfile"
276
+  rm -f "$tmpdepfile"
277
+  ;;
278
+
279
+tru64)
280
+   # The Tru64 compiler uses -MD to generate dependencies as a side
281
+   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
282
+   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
283
+   # dependencies in `foo.d' instead, so we check for that too.
284
+   # Subdirectories are respected.
285
+   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
286
+   test "x$dir" = "x$object" && dir=
287
+   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
288
+
289
+   if test "$libtool" = yes; then
290
+      # With Tru64 cc, shared objects can also be used to make a
291
+      # static library.  This mecanism is used in libtool 1.4 series to
292
+      # handle both shared and static libraries in a single compilation.
293
+      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
294
+      #
295
+      # With libtool 1.5 this exception was removed, and libtool now
296
+      # generates 2 separate objects for the 2 libraries.  These two
297
+      # compilations output dependencies in in $dir.libs/$base.o.d and
298
+      # in $dir$base.o.d.  We have to check for both files, because
299
+      # one of the two compilations can be disabled.  We should prefer
300
+      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
301
+      # automatically cleaned when .libs/ is deleted, while ignoring
302
+      # the former would cause a distcleancheck panic.
303
+      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4
304
+      tmpdepfile2=$dir$base.o.d          # libtool 1.5
305
+      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5
306
+      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504
307
+      "$@" -Wc,-MD
308
+   else
309
+      tmpdepfile1=$dir$base.o.d
310
+      tmpdepfile2=$dir$base.d
311
+      tmpdepfile3=$dir$base.d
312
+      tmpdepfile4=$dir$base.d
313
+      "$@" -MD
314
+   fi
315
+
316
+   stat=$?
317
+   if test $stat -eq 0; then :
318
+   else
319
+      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
320
+      exit $stat
321
+   fi
322
+
323
+   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
324
+   do
325
+     test -f "$tmpdepfile" && break
326
+   done
327
+   if test -f "$tmpdepfile"; then
328
+      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
329
+      # That's a tab and a space in the [].
330
+      sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
331
+   else
332
+      echo "#dummy" > "$depfile"
333
+   fi
334
+   rm -f "$tmpdepfile"
335
+   ;;
336
+
337
+#nosideeffect)
338
+  # This comment above is used by automake to tell side-effect
339
+  # dependency tracking mechanisms from slower ones.
340
+
341
+dashmstdout)
342
+  # Important note: in order to support this mode, a compiler *must*
343
+  # always write the preprocessed file to stdout, regardless of -o.
344
+  "$@" || exit $?
345
+
346
+  # Remove the call to Libtool.
347
+  if test "$libtool" = yes; then
348
+    while test $1 != '--mode=compile'; do
349
+      shift
350
+    done
351
+    shift
352
+  fi
353
+
354
+  # Remove `-o $object'.
355
+  IFS=" "
356
+  for arg
357
+  do
358
+    case $arg in
359
+    -o)
360
+      shift
361
+      ;;
362
+    $object)
363
+      shift
364
+      ;;
365
+    *)
366
+      set fnord "$@" "$arg"
367
+      shift # fnord
368
+      shift # $arg
369
+      ;;
370
+    esac
371
+  done
372
+
373
+  test -z "$dashmflag" && dashmflag=-M
374
+  # Require at least two characters before searching for `:'
375
+  # in the target name.  This is to cope with DOS-style filenames:
376
+  # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
377
+  "$@" $dashmflag |
378
+    sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile"
379
+  rm -f "$depfile"
380
+  cat < "$tmpdepfile" > "$depfile"
381
+  tr ' ' '
382
+' < "$tmpdepfile" | \
383
+## Some versions of the HPUX 10.20 sed can't process this invocation
384
+## correctly.  Breaking it into two sed invocations is a workaround.
385
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
386
+  rm -f "$tmpdepfile"
387
+  ;;
388
+
389
+dashXmstdout)
390
+  # This case only exists to satisfy depend.m4.  It is never actually
391
+  # run, as this mode is specially recognized in the preamble.
392
+  exit 1
393
+  ;;
394
+
395
+makedepend)
396
+  "$@" || exit $?
397
+  # Remove any Libtool call
398
+  if test "$libtool" = yes; then
399
+    while test $1 != '--mode=compile'; do
400
+      shift
401
+    done
402
+    shift
403
+  fi
404
+  # X makedepend
405
+  shift
406
+  cleared=no
407
+  for arg in "$@"; do
408
+    case $cleared in
409
+    no)
410
+      set ""; shift
411
+      cleared=yes ;;
412
+    esac
413
+    case "$arg" in
414
+    -D*|-I*)
415
+      set fnord "$@" "$arg"; shift ;;
416
+    # Strip any option that makedepend may not understand.  Remove
417
+    # the object too, otherwise makedepend will parse it as a source file.
418
+    -*|$object)
419
+      ;;
420
+    *)
421
+      set fnord "$@" "$arg"; shift ;;
422
+    esac
423
+  done
424
+  obj_suffix="`echo $object | sed 's/^.*\././'`"
425
+  touch "$tmpdepfile"
426
+  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
427
+  rm -f "$depfile"
428
+  cat < "$tmpdepfile" > "$depfile"
429
+  sed '1,2d' "$tmpdepfile" | tr ' ' '
430
+' | \
431
+## Some versions of the HPUX 10.20 sed can't process this invocation
432
+## correctly.  Breaking it into two sed invocations is a workaround.
433
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
434
+  rm -f "$tmpdepfile" "$tmpdepfile".bak
435
+  ;;
436
+
437
+cpp)
438
+  # Important note: in order to support this mode, a compiler *must*
439
+  # always write the preprocessed file to stdout.
440
+  "$@" || exit $?
441
+
442
+  # Remove the call to Libtool.
443
+  if test "$libtool" = yes; then
444
+    while test $1 != '--mode=compile'; do
445
+      shift
446
+    done
447
+    shift
448
+  fi
449
+
450
+  # Remove `-o $object'.
451
+  IFS=" "
452
+  for arg
453
+  do
454
+    case $arg in
455
+    -o)
456
+      shift
457
+      ;;
458
+    $object)
459
+      shift
460
+      ;;
461
+    *)
462
+      set fnord "$@" "$arg"
463
+      shift # fnord
464
+      shift # $arg
465
+      ;;
466
+    esac
467
+  done
468
+
469
+  "$@" -E |
470
+    sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
471
+       -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
472
+    sed '$ s: \\$::' > "$tmpdepfile"
473
+  rm -f "$depfile"
474
+  echo "$object : \\" > "$depfile"
475
+  cat < "$tmpdepfile" >> "$depfile"
476
+  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
477
+  rm -f "$tmpdepfile"
478
+  ;;
479
+
480
+msvisualcpp)
481
+  # Important note: in order to support this mode, a compiler *must*
482
+  # always write the preprocessed file to stdout, regardless of -o,
483
+  # because we must use -o when running libtool.
484
+  "$@" || exit $?
485
+  IFS=" "
486
+  for arg
487
+  do
488
+    case "$arg" in
489
+    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
490
+	set fnord "$@"
491
+	shift
492
+	shift
493
+	;;
494
+    *)
495
+	set fnord "$@" "$arg"
496
+	shift
497
+	shift
498
+	;;
499
+    esac
500
+  done
501
+  "$@" -E |
502
+  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
503
+  rm -f "$depfile"
504
+  echo "$object : \\" > "$depfile"
505
+  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
506
+  echo "	" >> "$depfile"
507
+  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
508
+  rm -f "$tmpdepfile"
509
+  ;;
510
+
511
+none)
512
+  exec "$@"
513
+  ;;
514
+
515
+*)
516
+  echo "Unknown depmode $depmode" 1>&2
517
+  exit 1
518
+  ;;
519
+esac
520
+
521
+exit 0
522
+
523
+# Local Variables:
524
+# mode: shell-script
525
+# sh-indentation: 2
526
+# eval: (add-hook 'write-file-hooks 'time-stamp)
527
+# time-stamp-start: "scriptversion="
528
+# time-stamp-format: "%:y-%02m-%02d.%02H"
529
+# time-stamp-end: "$"
530
+# End:

+ 19
- 0
deps.am View File

@@ -0,0 +1,19 @@
1
+$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in $(top_srcdir)/admin/cvs.sh $(top_srcdir)/admin/pkg.m4.in
2
+	@cd $(top_srcdir) && $(SHELL) admin/cvs.sh acinclude_m4
3
+
4
+$(top_srcdir)/configure.in: $(top_srcdir)/subdirs $(top_srcdir)/configure.files $(top_srcdir)/admin/cvs.sh
5
+	@cd $(top_srcdir) && $(SHELL) admin/cvs.sh configure_in
6
+
7
+$(top_srcdir)/configure.files: $(top_srcdir)/subdirs $(CONF_FILES)
8
+	@cd $(top_srcdir) && $(SHELL) admin/cvs.sh configure.files $(top_srcdir)/admin/cvs.sh
9
+
10
+$(top_srcdir)/Makefile.am: $(top_srcdir)/Makefile.am.in $(top_srcdir)/subdirs $(top_srcdir)/admin/cvs.sh
11
+	@cd $(top_srcdir) && $(SHELL) admin/cvs.sh Makefile_am
12
+
13
+$(top_srcdir)/subdirs: $(top_srcdir)/Makefile.am.in $(top_srcdir)/admin/cvs.sh
14
+	@cd $(top_srcdir) && $(SHELL) admin/cvs.sh subdirs
15
+
16
+# defining default rules for files that may not be present
17
+$(top_srcdir)/Makefile.am.in:
18
+$(CONF_FILES):
19
+

+ 256
- 0
detect-autoconf.pl View File

@@ -0,0 +1,256 @@
1
+#!/usr/bin/env perl
2
+
3
+# Try to locate best version of auto*
4
+# By Michael Pyne <michael.pyne@kdemail.net>
5
+#
6
+# Copyright (c) 2005.
7
+# This code is public domain.  You may use it however you like (including
8
+# relicensing).
9
+
10
+# Emulate the 'which' program.
11
+sub which
12
+{
13
+    my $prog = shift;
14
+    my @paths = split(/:/, $ENV{'PATH'});
15
+
16
+    for $path (@paths)
17
+    {
18
+	return "$path/$prog" if -x "$path/$prog";
19
+    }
20
+
21
+    return "";
22
+}
23
+
24
+# Subroutine to lexicographically compare two version strings, a and b.
25
+# If a > b, 1 is returned.
26
+# If a == b, 0 is returned.
27
+# If a < b, -1 is returned.
28
+#
29
+# If the strings are of uneven number length then the shorter string is
30
+# prepended by enough zeroes to make the two string lengths equal in order to
31
+# allow an accurate comparison.  Note that the zero-padding only occurs in
32
+# between version separators (i.e. 1.6 and 1.10, results in 1.06 vs. 1.10).
33
+# Parts of the version ending in -foo (or any other text) are not considered
34
+# when doing the compare. (i.e. 2.53a vs 2.53 doesn't end up in 2.53a vs.
35
+# 2.053)
36
+sub compareVersions
37
+{
38
+    my ($a, $b) = @_;
39
+
40
+    # Split the strings up by '.' (version separator) and start comparing digit
41
+    # length.
42
+
43
+    my @aParts = split(/\./, $a);
44
+    my @bParts = split(/\./, $b);
45
+
46
+    # Make the arrays equal in length by adding missing zeroes to the end of the
47
+    # version.
48
+    push @aParts, '0' while scalar @aParts < scalar @bParts;
49
+    push @bParts, '0' while scalar @bParts < scalar @aParts;
50
+
51
+    # Now compare each individual portion.
52
+    for (my $i = 0; $i < scalar @aParts; ++$i)
53
+    {
54
+	# Make sure that any portion that has numbers is contiguous.  I'm sure
55
+	# there's a technique for saving stuff like 2.52a2 but I don't feel
56
+	# like implementing it.
57
+	if ($aParts[$i] !~ /^[^\d]*\d+[^\d]*$/ or
58
+	    $bParts[$i] !~ /^[^\d]*\d+[^\d]*$/)
59
+	{
60
+	    die "Not able to compare $a to $b!\n";
61
+	}
62
+
63
+	my ($aDigits) = ($aParts[$i] =~ /(\d+)/);
64
+	my ($bDigits) = ($bParts[$i] =~ /(\d+)/);
65
+
66
+	# Perl is $MODERATELY_INSULTING_TERM, don't remove the parentheses in
67
+	# the delta calculation below.
68
+	my $delta = (length $aDigits) - (length $bDigits);
69
+	if ($delta < 0) # b is longer
70
+	{
71
+	    my $replacement = ('0' x (-$delta)) . $aDigits;
72
+	    $aParts[$i] =~ s/$aDigits/$replacement/;
73
+	}
74
+	elsif ($delta > 0) # a is longer
75
+	{
76
+	    my $replacement = ('0' x $delta) . $bDigits;
77
+	    $bParts[$i] =~ s/$bDigits/$replacement/;
78
+	}
79
+    }
80
+
81
+    # Arrays now have standardized version components, let's re-merge them
82
+    # to strings to do the compare.
83
+    my $newA = join('.', @aParts);
84
+    my $newB = join('.', @bParts);
85
+
86
+    return 1 if ($newA gt $newB);
87
+    return -1 if ($newA lt $newB);
88
+    return 0;
89
+}
90
+
91
+# Subroutine to determine the highest installed version of the given program,
92
+# searching from the given paths.
93
+sub findBest
94
+{
95
+    my ($program, @paths) = @_;
96
+    my $best_version_found = '0'; # Deliberately a string.
97
+    my %versions;
98
+    my %minimumVersions = (
99
+	'autoconf' => '2.5',
100
+	'automake' => '1.6',
101
+    );
102
+    my $sgn; # Used for compareVersions results.
103
+
104
+    # Allow user to use environment variable to override search.
105
+    return $ENV{uc $program} if $ENV{uc $program};
106
+
107
+    for $prefix (@paths)
108
+    {
109
+	@files = glob "$prefix/$program*";
110
+	for $file (@files)
111
+	{
112
+	    # Don't check non-executable scripts.
113
+	    next unless -x $file;
114
+
115
+	    ($version) = $file =~ /$prefix\/$program-?(.*)$/;
116
+
117
+	    # Don't check the -wrapper ones (or any other non program one).
118
+	    # The real deal should start with a version number, or have no
119
+	    # suffix at all.
120
+	    next if $version =~ /^[^\d]/;
121
+
122
+	    # Special case some programs to make sure it has a minimum version.
123
+	    if (not $version and exists $minimumVersions{$program})
124
+	    {
125
+		my $min_version = $minimumVersions{$program};
126
+		my $versionOutput = `$program --version 2>/dev/null | head -n 1`;
127
+
128
+		# If we can't run the script to get the version it likely won't work later.
129
+		next unless $versionOutput;
130
+
131
+		# Use number.number for version (we don't need the excess in general).
132
+		($versionOutput) = ($versionOutput =~ /(\d+\.\d+)/);
133
+
134
+		# compareVersions returns -1 if the left argument is less than
135
+		# the right argument.  It can also die for invalid input so
136
+		# wrap with eval.
137
+		eval {
138
+		    $sgn = compareVersions($versionOutput, $min_version);
139
+		};
140
+
141
+		# $@ would be set if an error was encountered.
142
+		if ($@ or not $versionOutput or $sgn == -1) {
143
+		    next;
144
+		}
145
+	    }
146
+
147
+	    # If no version suffix then use it in favor of a versioned autotool
148
+	    # since the ever-popular WANT_AUTOFOO should then work (in theory).
149
+	    return $file unless $version;
150
+
151
+	    # Emulate 'which', and abort if we've already seen this version.
152
+	    next if exists $versions{$version};
153
+
154
+	    # Save filename of program.
155
+	    $versions{$version} = $file;
156
+
157
+	    # Use string comparison so that e.g. 253a will be > 253 but < 254.
158
+	    # See above about the need for eval.
159
+	    eval {
160
+		$sgn = compareVersions($version, $best_version_found);
161
+	    };
162
+
163
+	    if (not $@ and $sgn == 1)
164
+	    {
165
+		$best_version_found = $version;
166
+	    }
167
+	}
168
+    }
169
+
170
+    return $versions{$best_version_found};
171
+}
172
+
173
+# Find an appropriate "which" program for later use by the shell script calling
174
+# us.
175
+sub findWhich
176
+{
177
+    for $candidate ('type -p', 'which', 'type')
178
+    {
179
+	$test = `$candidate sh 2>/dev/null`;
180
+	chomp $test;
181
+
182
+	return $candidate if -x $test;
183
+    }
184
+}
185
+
186
+# Uses which() to find a program unless the user provided its path in the
187
+# environment (the upper case program name is searched).
188
+sub findProgram
189
+{
190
+    $suffix = ""; # For use if @_ has only one param.
191
+    my ($program, $suffix) = @_;