1
dnl aclocal.m4 generated automatically by aclocal 1.4-p4
3
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4
dnl This file is free software; the Free Software Foundation
5
dnl gives unlimited permission to copy and/or distribute it,
6
dnl with or without modifications, as long as this notice is preserved.
8
dnl This program is distributed in the hope that it will be useful,
9
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
dnl PARTICULAR PURPOSE.
13
dnl Configure paths for librep
14
dnl $Id: rep.m4,v 1.6 1999/11/19 14:50:26 john Exp $
16
dnl AM_PATH_REP([MINIMUM_VERSION])
17
dnl Test for librep, define REP_VERSION, REP_CFLAGS, REP_LIBS and REP_EXECDIR
21
AC_ARG_WITH(rep_prefix,[ --with-rep-prefix=PFX Prefix where rep is installed (optional)],
22
[rep_prefix="$withval"], [rep_prefix=""])
23
if test "x$rep_prefix" = "x"; then
24
rep_config="rep-config"
26
rep_config="${rep_prefix}/bin/rep-config"
28
min_rep_version=ifelse([$1], ,0.1,$1)
29
AC_MSG_CHECKING(for rep - version >= $min_rep_version)
30
rep_version=`$rep_config --version`
31
if test $? -eq 0; then
32
rep_major=`echo $rep_version \
33
| sed -e 's/\([[0-9]]*\)\..*/\1/'`
34
rep_minor=`echo $rep_version \
35
| sed -e 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
36
min_rep_major=`echo $min_rep_version \
37
| sed -e 's/\([[0-9]]*\)\..*/\1/'`
38
min_rep_minor=`echo $min_rep_version \
39
| sed -e 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
40
if test '(' $rep_major -gt $min_rep_major ')' \
41
-o '(' $rep_major -eq $min_rep_major \
42
-a $rep_minor -ge $min_rep_minor ')';
44
REP_VERSION="${rep_version}"
45
REP_CFLAGS="`$rep_config --cflags`"
46
REP_LIBS="`$rep_config --libs`"
47
REP_EXECDIR="`$rep_config --execdir`"
52
AC_MSG_RESULT([version ${rep_version}])
54
AC_MSG_ERROR([version ${rep_version}; require $min_rep_version])
57
AC_MSG_ERROR([can't find librep; is it installed?])
60
dnl scan for GNU msgfmt
61
AC_MSG_CHECKING(for GNU msgfmt)
63
for p in `echo "$PATH" | sed -e 's/:/ /g'`; do
64
if test -x $p/msgfmt; then
65
if $p/msgfmt --version 2>&1 | grep GNU >/dev/null; then
70
if test x$REP_MSGFMT != x; then
71
AC_MSG_RESULT($REP_MSGFMT)
73
AC_MSG_RESULT(unavailable, disabling i18n)
79
# Configure paths for IMLIB
81
# stolen from Manish Singh
82
# Shamelessly stolen from Owen Taylor
84
dnl AM_PATH_IMLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
85
dnl Test for IMLIB, and define IMLIB_CFLAGS and IMLIB_LIBS
87
AC_DEFUN(AM_PATH_IMLIB,
89
dnl Get the cflags and libraries from the imlib-config script
91
AC_ARG_WITH(imlib-prefix,[ --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional)],
92
imlib_prefix="$withval", imlib_prefix="")
93
AC_ARG_WITH(imlib-exec-prefix,[ --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional)],
94
imlib_exec_prefix="$withval", imlib_exec_prefix="")
95
AC_ARG_ENABLE(imlibtest, [ --disable-imlibtest Do not try to compile and run a test IMLIB program],
96
, enable_imlibtest=yes)
98
if test x$imlib_exec_prefix != x ; then
99
imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix"
100
if test x${IMLIB_CONFIG+set} != xset ; then
101
IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config
104
if test x$imlib_prefix != x ; then
105
imlib_args="$imlib_args --prefix=$imlib_prefix"
106
if test x${IMLIB_CONFIG+set} != xset ; then
107
IMLIB_CONFIG=$imlib_prefix/bin/imlib-config
111
AC_PATH_PROG(IMLIB_CONFIG, imlib-config, no)
112
min_imlib_version=ifelse([$1], ,1.8.2,$1)
113
AC_MSG_CHECKING(for IMLIB - version >= $min_imlib_version)
115
if test "$IMLIB_CONFIG" = "no" ; then
118
IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags`
119
IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs`
121
imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \
122
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
123
imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \
124
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
125
imlib_micro_version=`$IMLIB_CONFIG $imlib_args --version | \
126
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
127
if test "x$enable_imlibtest" = "xyes" ; then
128
ac_save_CFLAGS="$CFLAGS"
130
CFLAGS="$CFLAGS $IMLIB_CFLAGS"
131
LIBS="$LIBS $IMLIB_LIBS"
133
dnl Now check if the installed IMLIB is sufficiently new. (Also sanity
134
dnl checks the results of imlib-config to some extent
144
my_strdup (char *str)
150
new_str = malloc ((strlen (str) + 1) * sizeof(char));
151
strcpy (new_str, str);
161
int major, minor, micro;
164
system ("touch conf.imlibtest");
166
/* HP/UX 9 (%@#!) writes to sscanf strings */
167
tmp_version = my_strdup("$min_imlib_version");
168
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
169
printf("%s, bad version string\n", "$min_imlib_version");
173
if (($imlib_major_version > major) ||
174
(($imlib_major_version == major) && ($imlib_minor_version > minor)) ||
175
(($imlib_major_version == major) && ($imlib_minor_version == minor) &&
176
($imlib_micro_version >= micro)))
182
printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version);
183
printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
184
printf("*** best to upgrade to the required version.\n");
185
printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n");
186
printf("*** to point to the correct copy of imlib-config, and remove the file\n");
187
printf("*** config.cache before re-running configure\n");
192
],, no_imlib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
193
CFLAGS="$ac_save_CFLAGS"
197
if test "x$no_imlib" = x ; then
199
ifelse([$2], , :, [$2])
202
if test "$IMLIB_CONFIG" = "no" ; then
203
echo "*** The imlib-config script installed by IMLIB could not be found"
204
echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in"
205
echo "*** your path, or set the IMLIB_CONFIG environment variable to the"
206
echo "*** full path to imlib-config."
208
if test -f conf.imlibtest ; then
211
echo "*** Could not run IMLIB test program, checking why..."
212
CFLAGS="$CFLAGS $IMLIB_CFLAGS"
213
LIBS="$LIBS $IMLIB_LIBS"
218
[ echo "*** The test program compiled, but did not run. This usually means"
219
echo "*** that the run-time linker is not finding IMLIB or finding the wrong"
220
echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your"
221
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
222
echo "*** to the installed location Also, make sure you have run ldconfig if that"
223
echo "*** is required on your system"
225
echo "*** If you have an old version installed, it is best to remove it, although"
226
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
227
[ echo "*** The test program failed to compile or link. See the file config.log for the"
228
echo "*** exact error that occured. This usually means IMLIB was incorrectly installed"
229
echo "*** or that you have moved IMLIB since it was installed. In the latter case, you"
230
echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG" ])
231
CFLAGS="$ac_save_CFLAGS"
237
ifelse([$3], , :, [$3])
239
AC_SUBST(IMLIB_CFLAGS)
244
# Check for gdk-imlib
245
AC_DEFUN(AM_PATH_GDK_IMLIB,
247
dnl Get the cflags and libraries from the imlib-config script
249
AC_ARG_WITH(imlib-prefix,[ --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional)],
250
imlib_prefix="$withval", imlib_prefix="")
251
AC_ARG_WITH(imlib-exec-prefix,[ --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional)],
252
imlib_exec_prefix="$withval", imlib_exec_prefix="")
253
AC_ARG_ENABLE(imlibtest, [ --disable-imlibtest Do not try to compile and run a test IMLIB program],
254
, enable_imlibtest=yes)
256
if test x$imlib_exec_prefix != x ; then
257
imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix"
258
if test x${IMLIB_CONFIG+set} != xset ; then
259
IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config
262
if test x$imlib_prefix != x ; then
263
imlib_args="$imlib_args --prefix=$imlib_prefix"
264
if test x${IMLIB_CONFIG+set} != xset ; then
265
IMLIB_CONFIG=$imlib_prefix/bin/imlib-config
269
AC_PATH_PROG(IMLIB_CONFIG, imlib-config, no)
270
min_imlib_version=ifelse([$1], ,1.8.2,$1)
271
AC_MSG_CHECKING(for IMLIB - version >= $min_imlib_version)
273
if test "$IMLIB_CONFIG" = "no" ; then
276
GDK_IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags-gdk`
277
GDK_IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs-gdk`
279
imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \
280
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
281
imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \
282
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
283
if test "x$enable_imlibtest" = "xyes" ; then
284
ac_save_CFLAGS="$CFLAGS"
286
CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
287
LIBS="$LIBS $GDK_IMLIB_LIBS"
289
dnl Now check if the installed IMLIB is sufficiently new. (Also sanity
290
dnl checks the results of imlib-config to some extent
296
#include <gdk_imlib.h>
303
system ("touch conf.gdkimlibtest");
305
/* HP/UX 9 (%@#!) writes to sscanf strings */
306
tmp_version = g_strdup("$min_imlib_version");
307
if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
308
printf("%s, bad version string\n", "$min_imlib_version");
312
if (($imlib_major_version > major) ||
313
(($imlib_major_version == major) && ($imlib_minor_version >= minor)))
319
printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version);
320
printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
321
printf("*** best to upgrade to the required version.\n");
322
printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n");
323
printf("*** to point to the correct copy of imlib-config, and remove the file\n");
324
printf("*** config.cache before re-running configure\n");
329
],, no_imlib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
330
CFLAGS="$ac_save_CFLAGS"
334
if test "x$no_imlib" = x ; then
336
ifelse([$2], , :, [$2])
339
if test "$IMLIB_CONFIG" = "no" ; then
340
echo "*** The imlib-config script installed by IMLIB could not be found"
341
echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in"
342
echo "*** your path, or set the IMLIB_CONFIG environment variable to the"
343
echo "*** full path to imlib-config."
345
if test -f conf.gdkimlibtest ; then
348
echo "*** Could not run IMLIB test program, checking why..."
349
CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
350
LIBS="$LIBS $GDK_IMLIB_LIBS"
353
#include <gdk_imlib.h>
355
[ echo "*** The test program compiled, but did not run. This usually means"
356
echo "*** that the run-time linker is not finding IMLIB or finding the wrong"
357
echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your"
358
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
359
echo "*** to the installed location Also, make sure you have run ldconfig if that"
360
echo "*** is required on your system"
362
echo "*** If you have an old version installed, it is best to remove it, although"
363
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
364
[ echo "*** The test program failed to compile or link. See the file config.log for the"
365
echo "*** exact error that occured. This usually means IMLIB was incorrectly installed"
366
echo "*** or that you have moved IMLIB since it was installed. In the latter case, you"
367
echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG" ])
368
CFLAGS="$ac_save_CFLAGS"
374
ifelse([$3], , :, [$3])
376
AC_SUBST(GDK_IMLIB_CFLAGS)
377
AC_SUBST(GDK_IMLIB_LIBS)
378
rm -f conf.gdkimlibtest
1
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
381
14
# Configure paths for GTK+
382
# Owen Taylor 97-11-3
15
# Owen Taylor 1997-2001
384
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
385
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
17
dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
18
dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
19
dnl pass to pkg-config
387
AC_DEFUN(AM_PATH_GTK,
21
AC_DEFUN([AM_PATH_GTK_2_0],
389
dnl Get the cflags and libraries from the gtk-config script
23
dnl Get the cflags and libraries from pkg-config
391
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
392
gtk_config_prefix="$withval", gtk_config_prefix="")
393
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
394
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
395
AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
25
AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
396
26
, enable_gtktest=yes)
28
pkg_config_args=gtk+-2.0
398
29
for module in . $4
402
gtk_config_args="$gtk_config_args gthread"
33
pkg_config_args="$pkg_config_args gthread-2.0"
407
if test x$gtk_config_exec_prefix != x ; then
408
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
409
if test x${GTK_CONFIG+set} != xset ; then
410
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
413
if test x$gtk_config_prefix != x ; then
414
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
415
if test x${GTK_CONFIG+set} != xset ; then
416
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
420
AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
421
min_gtk_version=ifelse([$1], ,0.99.7,$1)
422
AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
424
if test "$GTK_CONFIG" = "no" ; then
40
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
42
if test x$PKG_CONFIG != xno ; then
43
if pkg-config --atleast-pkgconfig-version 0.7 ; then
46
echo "*** pkg-config too old; version 0.7 or better required."
427
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
428
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
429
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
54
min_gtk_version=ifelse([$1], ,2.0.0,$1)
55
AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
57
if test x$PKG_CONFIG != xno ; then
58
## don't try to run the test against uninstalled libtool libs
59
if $PKG_CONFIG --uninstalled $pkg_config_args; then
60
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
64
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
71
if test x"$no_gtk" = x ; then
72
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
73
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
74
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
430
75
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
431
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
76
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
432
77
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
433
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
78
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
434
79
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
435
80
if test "x$enable_gtktest" = "xyes" ; then
436
81
ac_save_CFLAGS="$CFLAGS"
573
208
rm -f conf.gtktest
212
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
213
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
214
dnl also defines GSTUFF_PKG_ERRORS on error
215
AC_DEFUN(PKG_CHECK_MODULES, [
218
if test -z "$PKG_CONFIG"; then
219
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
222
if test "$PKG_CONFIG" = "no" ; then
223
echo "*** The pkg-config script could not be found. Make sure it is"
224
echo "*** in your path, or set the PKG_CONFIG environment variable"
225
echo "*** to the full path to pkg-config."
226
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
228
PKG_CONFIG_MIN_VERSION=0.9.0
229
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
230
AC_MSG_CHECKING(for $2)
232
if $PKG_CONFIG --exists "$2" ; then
236
AC_MSG_CHECKING($1_CFLAGS)
237
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
238
AC_MSG_RESULT($$1_CFLAGS)
240
AC_MSG_CHECKING($1_LIBS)
241
$1_LIBS=`$PKG_CONFIG --libs "$2"`
242
AC_MSG_RESULT($$1_LIBS)
246
## If we have a custom action on failure, don't print errors, but
247
## do set a variable so people can do so.
248
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
249
ifelse([$4], ,echo $$1_PKG_ERRORS,)
255
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
256
echo "*** See http://www.freedesktop.org/software/pkgconfig"
260
if test $succeeded = yes; then
261
ifelse([$3], , :, [$3])
263
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])
269
dnl Configure paths for librep
270
dnl $Id: rep.m4,v 1.6 1999/11/19 14:50:26 john Exp $
272
dnl AM_PATH_REP([MINIMUM_VERSION])
273
dnl Test for librep, define REP_VERSION, REP_CFLAGS, REP_LIBS and REP_EXECDIR
275
AC_DEFUN(AM_PATH_REP,
277
AC_ARG_WITH(rep_prefix,[ --with-rep-prefix=PFX Prefix where rep is installed (optional)],
278
[rep_prefix="$withval"], [rep_prefix=""])
279
if test "x$rep_prefix" = "x"; then
280
rep_config="rep-config"
282
rep_config="${rep_prefix}/bin/rep-config"
284
min_rep_version=ifelse([$1], ,0.1,$1)
285
AC_MSG_CHECKING(for rep - version >= $min_rep_version)
286
rep_version=`$rep_config --version`
287
if test $? -eq 0; then
288
rep_major=`echo $rep_version \
289
| sed -e 's/\([[0-9]]*\)\..*/\1/'`
290
rep_minor=`echo $rep_version \
291
| sed -e 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
292
min_rep_major=`echo $min_rep_version \
293
| sed -e 's/\([[0-9]]*\)\..*/\1/'`
294
min_rep_minor=`echo $min_rep_version \
295
| sed -e 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
296
if test '(' $rep_major -gt $min_rep_major ')' \
297
-o '(' $rep_major -eq $min_rep_major \
298
-a $rep_minor -ge $min_rep_minor ')';
300
REP_VERSION="${rep_version}"
301
REP_CFLAGS="`$rep_config --cflags`"
302
REP_LIBS="`$rep_config --libs`"
303
REP_EXECDIR="`$rep_config --execdir`"
304
AC_SUBST(REP_VERSION)
307
AC_SUBST(REP_EXECDIR)
308
AC_MSG_RESULT([version ${rep_version}])
310
AC_MSG_ERROR([version ${rep_version}; require $min_rep_version])
313
AC_MSG_ERROR([can't find librep; is it installed?])
316
dnl scan for GNU msgfmt
317
AC_MSG_CHECKING(for GNU msgfmt)
319
for p in `echo "$PATH" | sed -e 's/:/ /g'`; do
320
if test -x $p/msgfmt; then
321
if $p/msgfmt --version 2>&1 | grep GNU >/dev/null; then
326
if test x$REP_MSGFMT != x; then
327
AC_MSG_RESULT($REP_MSGFMT)
329
AC_MSG_RESULT(unavailable, disabling i18n)