diff options
author | Nils Durner <durner@gnunet.org> | 2005-06-03 21:10:20 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2005-06-03 21:10:20 +0000 |
commit | 3982daf6a80cb15d5ee8c68034270b909219a997 (patch) | |
tree | a3f4d2f523562bdcc7b46b2c5bcbee314b8e9234 | |
parent | 23ecc701bff859107abe89c0093c8d1e372cb48e (diff) | |
download | gnunet-gtk-3982daf6a80cb15d5ee8c68034270b909219a997.tar.gz gnunet-gtk-3982daf6a80cb15d5ee8c68034270b909219a997.zip |
mingw
-rw-r--r-- | m4/pkg.m4 | 57 | ||||
-rw-r--r-- | mkinstalldirs | 143 | ||||
-rw-r--r--[l---------] | po/Makefile.in.in | 1 | ||||
-rw-r--r--[l---------] | po/Rules-quot | 1 |
4 files changed, 200 insertions, 2 deletions
diff --git a/m4/pkg.m4 b/m4/pkg.m4 new file mode 100644 index 00000000..f2bfc2d4 --- /dev/null +++ b/m4/pkg.m4 | |||
@@ -0,0 +1,57 @@ | |||
1 | |||
2 | dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) | ||
3 | dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page | ||
4 | dnl also defines GSTUFF_PKG_ERRORS on error | ||
5 | AC_DEFUN([PKG_CHECK_MODULES], [ | ||
6 | succeeded=no | ||
7 | |||
8 | if test -z "$PKG_CONFIG"; then | ||
9 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
10 | fi | ||
11 | |||
12 | if test "$PKG_CONFIG" = "no" ; then | ||
13 | echo "*** The pkg-config script could not be found. Make sure it is" | ||
14 | echo "*** in your path, or set the PKG_CONFIG environment variable" | ||
15 | echo "*** to the full path to pkg-config." | ||
16 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | ||
17 | else | ||
18 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
19 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
20 | AC_MSG_CHECKING(for $2) | ||
21 | |||
22 | if $PKG_CONFIG --exists "$2" ; then | ||
23 | AC_MSG_RESULT(yes) | ||
24 | succeeded=yes | ||
25 | |||
26 | AC_MSG_CHECKING($1_CFLAGS) | ||
27 | $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` | ||
28 | AC_MSG_RESULT($$1_CFLAGS) | ||
29 | |||
30 | AC_MSG_CHECKING($1_LIBS) | ||
31 | $1_LIBS=`$PKG_CONFIG --libs "$2"` | ||
32 | AC_MSG_RESULT($$1_LIBS) | ||
33 | else | ||
34 | $1_CFLAGS="" | ||
35 | $1_LIBS="" | ||
36 | ## If we have a custom action on failure, don't print errors, but | ||
37 | ## do set a variable so people can do so. | ||
38 | $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | ||
39 | ifelse([$4], ,echo $$1_PKG_ERRORS,) | ||
40 | fi | ||
41 | |||
42 | AC_SUBST($1_CFLAGS) | ||
43 | AC_SUBST($1_LIBS) | ||
44 | else | ||
45 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
46 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
47 | fi | ||
48 | fi | ||
49 | |||
50 | if test $succeeded = yes; then | ||
51 | ifelse([$3], , :, [$3]) | ||
52 | else | ||
53 | ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) | ||
54 | fi | ||
55 | ]) | ||
56 | |||
57 | |||
diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100644 index 00000000..6504b744 --- /dev/null +++ b/mkinstalldirs | |||
@@ -0,0 +1,143 @@ | |||
1 | #! /bin/sh | ||
2 | # mkinstalldirs --- make directory hierarchy | ||
3 | |||
4 | scriptversion=2003-11-08.23 | ||
5 | |||
6 | # Original author: Noah Friedman <friedman@prep.ai.mit.edu> | ||
7 | # Created: 1993-05-16 | ||
8 | # Public domain. | ||
9 | # | ||
10 | # This file is maintained in Automake, please report | ||
11 | # bugs to <bug-automake@gnu.org> or send patches to | ||
12 | # <automake-patches@gnu.org>. | ||
13 | |||
14 | errstatus=0 | ||
15 | dirmode="" | ||
16 | |||
17 | usage="\ | ||
18 | Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... | ||
19 | |||
20 | Create each directory DIR (with mode MODE, if specified), including all | ||
21 | leading file name components. | ||
22 | |||
23 | Report bugs to <bug-automake@gnu.org>." | ||
24 | |||
25 | # process command line arguments | ||
26 | while test $# -gt 0 ; do | ||
27 | case $1 in | ||
28 | -h | --help | --h*) # -h for help | ||
29 | echo "$usage" | ||
30 | exit 0 | ||
31 | ;; | ||
32 | -m) # -m PERM arg | ||
33 | shift | ||
34 | test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } | ||
35 | dirmode=$1 | ||
36 | shift | ||
37 | ;; | ||
38 | --version) | ||
39 | echo "$0 $scriptversion" | ||
40 | exit 0 | ||
41 | ;; | ||
42 | --) # stop option processing | ||
43 | shift | ||
44 | break | ||
45 | ;; | ||
46 | -*) # unknown option | ||
47 | echo "$usage" 1>&2 | ||
48 | exit 1 | ||
49 | ;; | ||
50 | *) # first non-opt arg | ||
51 | break | ||
52 | ;; | ||
53 | esac | ||
54 | done | ||
55 | |||
56 | for file | ||
57 | do | ||
58 | if test -d "$file"; then | ||
59 | shift | ||
60 | else | ||
61 | break | ||
62 | fi | ||
63 | done | ||
64 | |||
65 | case $# in | ||
66 | 0) exit 0 ;; | ||
67 | esac | ||
68 | |||
69 | case $dirmode in | ||
70 | '') | ||
71 | if mkdir -p -- . 2>/dev/null; then | ||
72 | echo "mkdir -p -- $*" | ||
73 | exec mkdir -p -- "$@" | ||
74 | else | ||
75 | # On NextStep and OpenStep, the `mkdir' command does not | ||
76 | # recognize any option. It will interpret all options as | ||
77 | # directories to create, and then abort because `.' already | ||
78 | # exists. | ||
79 | test -d ./-p && rmdir ./-p | ||
80 | test -d ./-- && rmdir ./-- | ||
81 | fi | ||
82 | ;; | ||
83 | *) | ||
84 | if mkdir -m "$dirmode" -p -- . 2>/dev/null; then | ||
85 | echo "mkdir -m $dirmode -p -- $*" | ||
86 | exec mkdir -m "$dirmode" -p -- "$@" | ||
87 | else | ||
88 | # Clean up after NextStep and OpenStep mkdir. | ||
89 | for d in ./-m ./-p ./-- "./$dirmode"; | ||
90 | do | ||
91 | test -d $d && rmdir $d | ||
92 | done | ||
93 | fi | ||
94 | ;; | ||
95 | esac | ||
96 | |||
97 | for file | ||
98 | do | ||
99 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` | ||
100 | shift | ||
101 | |||
102 | pathcomp= | ||
103 | for d | ||
104 | do | ||
105 | pathcomp="$pathcomp$d" | ||
106 | case $pathcomp in | ||
107 | -*) pathcomp=./$pathcomp ;; | ||
108 | esac | ||
109 | |||
110 | if test ! -d "$pathcomp"; then | ||
111 | echo "mkdir $pathcomp" | ||
112 | |||
113 | mkdir "$pathcomp" || lasterr=$? | ||
114 | |||
115 | if test ! -d "$pathcomp"; then | ||
116 | errstatus=$lasterr | ||
117 | else | ||
118 | if test ! -z "$dirmode"; then | ||
119 | echo "chmod $dirmode $pathcomp" | ||
120 | lasterr="" | ||
121 | chmod "$dirmode" "$pathcomp" || lasterr=$? | ||
122 | |||
123 | if test ! -z "$lasterr"; then | ||
124 | errstatus=$lasterr | ||
125 | fi | ||
126 | fi | ||
127 | fi | ||
128 | fi | ||
129 | |||
130 | pathcomp="$pathcomp/" | ||
131 | done | ||
132 | done | ||
133 | |||
134 | exit $errstatus | ||
135 | |||
136 | # Local Variables: | ||
137 | # mode: shell-script | ||
138 | # sh-indentation: 2 | ||
139 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
140 | # time-stamp-start: "scriptversion=" | ||
141 | # time-stamp-format: "%:y-%02m-%02d.%02H" | ||
142 | # time-stamp-end: "$" | ||
143 | # End: | ||
diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 47143e5f..e69de29b 120000..100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in | |||
@@ -1 +0,0 @@ | |||
1 | /usr/share/gettext/po/Makefile.in.in \ No newline at end of file | ||
diff --git a/po/Rules-quot b/po/Rules-quot index 4ee3467f..e69de29b 120000..100644 --- a/po/Rules-quot +++ b/po/Rules-quot | |||
@@ -1 +0,0 @@ | |||
1 | /usr/share/gettext/po/Rules-quot \ No newline at end of file | ||