19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
dnl (i.e. pass to gconftool-2
25
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
dnl you should install foo.schemas files
29
AC_DEFUN([AM_GCONF_SOURCE_2],
31
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
34
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
37
AC_ARG_WITH([gconf-source],
38
AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
[Config database for installing schema files.]),
40
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
42
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
45
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
49
AC_ARG_WITH([gconf-schema-file-dir],
50
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
[Directory for installing schema files.]),
52
[GCONF_SCHEMA_FILE_DIR="$withval"],)
54
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
57
AC_ARG_ENABLE(schemas-install,
58
AC_HELP_STRING([--disable-schemas-install],
59
[Disable the schemas installation]),
62
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
64
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
67
# Configure paths for GLIB
68
# Owen Taylor 1997-2001
70
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
71
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
72
dnl gthread, or gio is specified in MODULES, pass to pkg-config
74
AC_DEFUN([AM_PATH_GLIB_2_0],
76
dnl Get the cflags and libraries from pkg-config
78
AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
79
, enable_glibtest=yes)
81
pkg_config_args=glib-2.0
86
pkg_config_args="$pkg_config_args gmodule-2.0"
89
pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
92
pkg_config_args="$pkg_config_args gobject-2.0"
95
pkg_config_args="$pkg_config_args gthread-2.0"
98
pkg_config_args="$pkg_config_args $module-2.0"
103
PKG_PROG_PKG_CONFIG([0.16])
107
if test "x$PKG_CONFIG" = x ; then
112
min_glib_version=ifelse([$1], ,2.0.0,$1)
113
AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
115
if test x$PKG_CONFIG != xno ; then
116
## don't try to run the test against uninstalled libtool libs
117
if $PKG_CONFIG --uninstalled $pkg_config_args; then
118
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
122
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
129
if test x"$no_glib" = x ; then
130
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
131
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
132
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
134
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
135
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
136
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
137
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
138
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
139
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
140
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
141
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
142
if test "x$enable_glibtest" = "xyes" ; then
143
ac_save_CFLAGS="$CFLAGS"
145
CFLAGS="$CFLAGS $GLIB_CFLAGS"
146
LIBS="$GLIB_LIBS $LIBS"
148
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
149
dnl checks the results of pkg-config to some extent)
160
unsigned int major, minor, micro;
163
fclose (fopen ("conf.glibtest", "w"));
165
/* HP/UX 9 (%@#!) writes to sscanf strings */
166
tmp_version = g_strdup("$min_glib_version");
167
if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
168
printf("%s, bad version string\n", "$min_glib_version");
172
if ((glib_major_version != $glib_config_major_version) ||
173
(glib_minor_version != $glib_config_minor_version) ||
174
(glib_micro_version != $glib_config_micro_version))
176
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
177
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
178
glib_major_version, glib_minor_version, glib_micro_version);
179
printf ("*** was found! If pkg-config was correct, then it is best\n");
180
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
181
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
182
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
183
printf("*** required on your system.\n");
184
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
185
printf("*** to point to the correct configuration files\n");
187
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
188
(glib_minor_version != GLIB_MINOR_VERSION) ||
189
(glib_micro_version != GLIB_MICRO_VERSION))
191
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
192
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
193
printf("*** library (version %d.%d.%d)\n",
194
glib_major_version, glib_minor_version, glib_micro_version);
198
if ((glib_major_version > major) ||
199
((glib_major_version == major) && (glib_minor_version > minor)) ||
200
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
206
printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
207
glib_major_version, glib_minor_version, glib_micro_version);
208
printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
209
major, minor, micro);
210
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
212
printf("*** If you have already installed a sufficiently new version, this error\n");
213
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
214
printf("*** being found. The easiest way to fix this is to remove the old version\n");
215
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
216
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
217
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
218
printf("*** so that the correct libraries are found at run-time))\n");
223
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
224
CFLAGS="$ac_save_CFLAGS"
228
if test "x$no_glib" = x ; then
229
AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
230
ifelse([$2], , :, [$2])
233
if test "$PKG_CONFIG" = "no" ; then
234
echo "*** A new enough version of pkg-config was not found."
235
echo "*** See http://www.freedesktop.org/software/pkgconfig/"
237
if test -f conf.glibtest ; then
240
echo "*** Could not run GLIB test program, checking why..."
241
ac_save_CFLAGS="$CFLAGS"
243
CFLAGS="$CFLAGS $GLIB_CFLAGS"
244
LIBS="$LIBS $GLIB_LIBS"
248
], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
249
[ echo "*** The test program compiled, but did not run. This usually means"
250
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
251
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
252
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
253
echo "*** to the installed location Also, make sure you have run ldconfig if that"
254
echo "*** is required on your system"
256
echo "*** If you have an old version installed, it is best to remove it, although"
257
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
258
[ echo "*** The test program failed to compile or link. See the file config.log for the"
259
echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
260
CFLAGS="$ac_save_CFLAGS"
269
ifelse([$3], , :, [$3])
271
AC_SUBST(GLIB_CFLAGS)
273
AC_SUBST(GLIB_GENMARSHAL)
274
AC_SUBST(GOBJECT_QUERY)
275
AC_SUBST(GLIB_MKENUMS)
280
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
281
dnl the schema should be compiled
284
AC_DEFUN([GLIB_GSETTINGS],
286
m4_pattern_allow([AM_V_GEN])
287
AC_ARG_ENABLE(schemas-compile,
288
AS_HELP_STRING([--disable-schemas-compile],
289
[Disable regeneration of gschemas.compiled on install]),
290
[case ${enableval} in
291
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
292
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
293
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
295
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
296
PKG_PROG_PKG_CONFIG([0.16])
297
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
298
if test x$cross_compiling != xyes; then
299
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
301
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
303
AC_SUBST(GLIB_COMPILE_SCHEMAS)
304
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
305
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
307
ifelse([$1],,[:],[$1])
311
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
313
mostlyclean-am: clean-gsettings-schemas
315
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
317
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
318
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
320
all-am: $(gsettings_SCHEMAS:.xml=.valid)
321
uninstall-am: uninstall-gsettings-schemas
322
install-data-am: install-gsettings-schemas
324
.SECONDARY: $(gsettings_SCHEMAS)
326
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
328
if test -n "$^"; then \
329
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
330
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
331
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
334
uninstall-gsettings-schemas:
336
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
337
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
338
test -n "$$files" || exit 0; \
339
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
340
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
341
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
343
clean-gsettings-schemas:
344
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
346
ifdef gsettings_ENUM_NAMESPACE
347
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
348
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
351
_GSETTINGS_SUBST(GSETTINGS_RULES)
354
dnl _GSETTINGS_SUBST(VARIABLE)
355
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
356
AC_DEFUN([_GSETTINGS_SUBST],
359
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
363
dnl -*- mode: autoconf -*-
364
dnl Copyright 2009 Johan Dahlin
366
dnl This file is free software; the author(s) gives unlimited
367
dnl permission to copy and/or distribute it, with or without
368
dnl modifications, as long as this notice is preserved.
373
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
375
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
376
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
377
AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
379
dnl enable/disable introspection
380
m4_if([$2], [require],
382
enable_introspection=yes
384
AC_ARG_ENABLE(introspection,
385
AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
386
[Enable introspection for this build]),,
387
[enable_introspection=auto])
390
AC_MSG_CHECKING([for gobject-introspection])
392
dnl presence/version checking
393
AS_CASE([$enable_introspection],
395
found_introspection="no (disabled, use --enable-introspection to enable)"
398
PKG_CHECK_EXISTS([gobject-introspection-1.0],,
399
AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
400
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
401
found_introspection=yes,
402
AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
405
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
408
AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
411
AC_MSG_RESULT([$found_introspection])
413
INTROSPECTION_SCANNER=
414
INTROSPECTION_COMPILER=
415
INTROSPECTION_GENERATE=
416
INTROSPECTION_GIRDIR=
417
INTROSPECTION_TYPELIBDIR=
418
if test "x$found_introspection" = "xyes"; then
419
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
420
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
421
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
422
INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
423
INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
424
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
425
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
426
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
428
AC_SUBST(INTROSPECTION_SCANNER)
429
AC_SUBST(INTROSPECTION_COMPILER)
430
AC_SUBST(INTROSPECTION_GENERATE)
431
AC_SUBST(INTROSPECTION_GIRDIR)
432
AC_SUBST(INTROSPECTION_TYPELIBDIR)
433
AC_SUBST(INTROSPECTION_CFLAGS)
434
AC_SUBST(INTROSPECTION_LIBS)
435
AC_SUBST(INTROSPECTION_MAKEFILE)
437
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
442
dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
444
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
446
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
450
dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
453
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
455
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
458
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
459
# serial 1 (pkg-config-0.24)
461
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
463
# This program is free software; you can redistribute it and/or modify
464
# it under the terms of the GNU General Public License as published by
465
# the Free Software Foundation; either version 2 of the License, or
466
# (at your option) any later version.
468
# This program is distributed in the hope that it will be useful, but
469
# WITHOUT ANY WARRANTY; without even the implied warranty of
470
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
471
# General Public License for more details.
473
# You should have received a copy of the GNU General Public License
474
# along with this program; if not, write to the Free Software
475
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
477
# As a special exception to the GNU General Public License, if you
478
# distribute this file as part of a program that contains a
479
# configuration script generated by Autoconf, you may include it under
480
# the same distribution terms that you use for the rest of that program.
482
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
483
# ----------------------------------
484
AC_DEFUN([PKG_PROG_PKG_CONFIG],
485
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
486
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
487
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
488
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
489
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
491
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
492
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
494
if test -n "$PKG_CONFIG"; then
495
_pkg_min_version=m4_default([$1], [0.9.0])
496
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
497
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
504
])# PKG_PROG_PKG_CONFIG
506
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
508
# Check to see whether a particular set of modules exists. Similar
509
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
511
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
512
# only at the first occurence in configure.ac, so if the first place
513
# it's called might be skipped (such as if it is within an "if", you
514
# have to call PKG_CHECK_EXISTS manually
515
# --------------------------------------------------------------
516
AC_DEFUN([PKG_CHECK_EXISTS],
517
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
518
if test -n "$PKG_CONFIG" && \
519
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
520
m4_default([$2], [:])
521
m4_ifvaln([$3], [else
525
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
526
# ---------------------------------------------
527
m4_define([_PKG_CONFIG],
528
[if test -n "$$1"; then
530
elif test -n "$PKG_CONFIG"; then
531
PKG_CHECK_EXISTS([$3],
532
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
539
# _PKG_SHORT_ERRORS_SUPPORTED
540
# -----------------------------
541
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
542
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
543
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
544
_pkg_short_errors_supported=yes
546
_pkg_short_errors_supported=no
548
])# _PKG_SHORT_ERRORS_SUPPORTED
551
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
552
# [ACTION-IF-NOT-FOUND])
555
# Note that if there is a possibility the first call to
556
# PKG_CHECK_MODULES might not happen, you should be sure to include an
557
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
560
# --------------------------------------------------------------
561
AC_DEFUN([PKG_CHECK_MODULES],
562
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
563
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
564
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
567
AC_MSG_CHECKING([for $1])
569
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
570
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
572
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
573
and $1[]_LIBS to avoid the need to call pkg-config.
574
See the pkg-config man page for more details.])
576
if test $pkg_failed = yes; then
578
_PKG_SHORT_ERRORS_SUPPORTED
579
if test $_pkg_short_errors_supported = yes; then
580
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
582
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
584
# Put the nasty error message in config.log where it belongs
585
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
587
m4_default([$4], [AC_MSG_ERROR(
588
[Package requirements ($2) were not met:
592
Consider adjusting the PKG_CONFIG_PATH environment variable if you
593
installed software in a non-standard prefix.
597
elif test $pkg_failed = untried; then
599
m4_default([$4], [AC_MSG_FAILURE(
600
[The pkg-config script could not be found or is too old. Make sure it
601
is in your PATH or set the PKG_CONFIG environment variable to the full
606
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
609
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
610
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
614
])# PKG_CHECK_MODULES
616
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
618
24
# This file is free software; the Free Software Foundation
1867
1273
AC_SUBST([am__untar])
1868
1274
]) # _AM_PROG_TAR
1276
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1277
# serial 1 (pkg-config-0.24)
1279
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
1281
# This program is free software; you can redistribute it and/or modify
1282
# it under the terms of the GNU General Public License as published by
1283
# the Free Software Foundation; either version 2 of the License, or
1284
# (at your option) any later version.
1286
# This program is distributed in the hope that it will be useful, but
1287
# WITHOUT ANY WARRANTY; without even the implied warranty of
1288
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1289
# General Public License for more details.
1291
# You should have received a copy of the GNU General Public License
1292
# along with this program; if not, write to the Free Software
1293
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1295
# As a special exception to the GNU General Public License, if you
1296
# distribute this file as part of a program that contains a
1297
# configuration script generated by Autoconf, you may include it under
1298
# the same distribution terms that you use for the rest of that program.
1300
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1301
# ----------------------------------
1302
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1303
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1304
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1305
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1306
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1307
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1309
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1310
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1312
if test -n "$PKG_CONFIG"; then
1313
_pkg_min_version=m4_default([$1], [0.9.0])
1314
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1315
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1316
AC_MSG_RESULT([yes])
1322
])# PKG_PROG_PKG_CONFIG
1324
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1326
# Check to see whether a particular set of modules exists. Similar
1327
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1329
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1330
# only at the first occurence in configure.ac, so if the first place
1331
# it's called might be skipped (such as if it is within an "if", you
1332
# have to call PKG_CHECK_EXISTS manually
1333
# --------------------------------------------------------------
1334
AC_DEFUN([PKG_CHECK_EXISTS],
1335
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1336
if test -n "$PKG_CONFIG" && \
1337
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1338
m4_default([$2], [:])
1339
m4_ifvaln([$3], [else
1343
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1344
# ---------------------------------------------
1345
m4_define([_PKG_CONFIG],
1346
[if test -n "$$1"; then
1348
elif test -n "$PKG_CONFIG"; then
1349
PKG_CHECK_EXISTS([$3],
1350
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1357
# _PKG_SHORT_ERRORS_SUPPORTED
1358
# -----------------------------
1359
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1360
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1361
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1362
_pkg_short_errors_supported=yes
1364
_pkg_short_errors_supported=no
1366
])# _PKG_SHORT_ERRORS_SUPPORTED
1369
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1370
# [ACTION-IF-NOT-FOUND])
1373
# Note that if there is a possibility the first call to
1374
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1375
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1378
# --------------------------------------------------------------
1379
AC_DEFUN([PKG_CHECK_MODULES],
1380
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1381
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1382
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1385
AC_MSG_CHECKING([for $1])
1387
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1388
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1390
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1391
and $1[]_LIBS to avoid the need to call pkg-config.
1392
See the pkg-config man page for more details.])
1394
if test $pkg_failed = yes; then
1396
_PKG_SHORT_ERRORS_SUPPORTED
1397
if test $_pkg_short_errors_supported = yes; then
1398
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1400
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1402
# Put the nasty error message in config.log where it belongs
1403
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1405
m4_default([$4], [AC_MSG_ERROR(
1406
[Package requirements ($2) were not met:
1410
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1411
installed software in a non-standard prefix.
1415
elif test $pkg_failed = untried; then
1417
m4_default([$4], [AC_MSG_FAILURE(
1418
[The pkg-config script could not be found or is too old. Make sure it
1419
is in your PATH or set the PKG_CONFIG environment variable to the full
1424
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
1427
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1428
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1429
AC_MSG_RESULT([yes])
1432
])# PKG_CHECK_MODULES
1434
# Configure paths for GLIB
1435
# Owen Taylor 1997-2001
1437
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
1438
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
1439
dnl gthread, or gio is specified in MODULES, pass to pkg-config
1441
AC_DEFUN([AM_PATH_GLIB_2_0],
1443
dnl Get the cflags and libraries from pkg-config
1445
AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
1446
, enable_glibtest=yes)
1448
pkg_config_args=glib-2.0
1453
pkg_config_args="$pkg_config_args gmodule-2.0"
1456
pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
1459
pkg_config_args="$pkg_config_args gobject-2.0"
1462
pkg_config_args="$pkg_config_args gthread-2.0"
1465
pkg_config_args="$pkg_config_args $module-2.0"
1470
PKG_PROG_PKG_CONFIG([0.16])
1474
if test "x$PKG_CONFIG" = x ; then
1479
min_glib_version=ifelse([$1], ,2.0.0,$1)
1480
AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
1482
if test x$PKG_CONFIG != xno ; then
1483
## don't try to run the test against uninstalled libtool libs
1484
if $PKG_CONFIG --uninstalled $pkg_config_args; then
1485
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
1489
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
1496
if test x"$no_glib" = x ; then
1497
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
1498
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
1499
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
1500
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
1502
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
1503
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
1504
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
1505
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
1506
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
1507
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
1508
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
1509
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
1510
if test "x$enable_glibtest" = "xyes" ; then
1511
ac_save_CFLAGS="$CFLAGS"
1512
ac_save_LIBS="$LIBS"
1513
CFLAGS="$CFLAGS $GLIB_CFLAGS"
1514
LIBS="$GLIB_LIBS $LIBS"
1516
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
1517
dnl checks the results of pkg-config to some extent)
1528
unsigned int major, minor, micro;
1531
fclose (fopen ("conf.glibtest", "w"));
1533
/* HP/UX 9 (%@#!) writes to sscanf strings */
1534
tmp_version = g_strdup("$min_glib_version");
1535
if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
1536
printf("%s, bad version string\n", "$min_glib_version");
1540
if ((glib_major_version != $glib_config_major_version) ||
1541
(glib_minor_version != $glib_config_minor_version) ||
1542
(glib_micro_version != $glib_config_micro_version))
1544
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1545
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1546
glib_major_version, glib_minor_version, glib_micro_version);
1547
printf ("*** was found! If pkg-config was correct, then it is best\n");
1548
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
1549
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1550
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1551
printf("*** required on your system.\n");
1552
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
1553
printf("*** to point to the correct configuration files\n");
1555
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1556
(glib_minor_version != GLIB_MINOR_VERSION) ||
1557
(glib_micro_version != GLIB_MICRO_VERSION))
1559
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1560
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1561
printf("*** library (version %d.%d.%d)\n",
1562
glib_major_version, glib_minor_version, glib_micro_version);
1566
if ((glib_major_version > major) ||
1567
((glib_major_version == major) && (glib_minor_version > minor)) ||
1568
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1574
printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
1575
glib_major_version, glib_minor_version, glib_micro_version);
1576
printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
1577
major, minor, micro);
1578
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1580
printf("*** If you have already installed a sufficiently new version, this error\n");
1581
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1582
printf("*** being found. The easiest way to fix this is to remove the old version\n");
1583
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
1584
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1585
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1586
printf("*** so that the correct libraries are found at run-time))\n");
1591
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
1592
CFLAGS="$ac_save_CFLAGS"
1593
LIBS="$ac_save_LIBS"
1596
if test "x$no_glib" = x ; then
1597
AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
1598
ifelse([$2], , :, [$2])
1601
if test "$PKG_CONFIG" = "no" ; then
1602
echo "*** A new enough version of pkg-config was not found."
1603
echo "*** See http://www.freedesktop.org/software/pkgconfig/"
1605
if test -f conf.glibtest ; then
1608
echo "*** Could not run GLIB test program, checking why..."
1609
ac_save_CFLAGS="$CFLAGS"
1610
ac_save_LIBS="$LIBS"
1611
CFLAGS="$CFLAGS $GLIB_CFLAGS"
1612
LIBS="$LIBS $GLIB_LIBS"
1616
], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
1617
[ echo "*** The test program compiled, but did not run. This usually means"
1618
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1619
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1620
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1621
echo "*** to the installed location Also, make sure you have run ldconfig if that"
1622
echo "*** is required on your system"
1624
echo "*** If you have an old version installed, it is best to remove it, although"
1625
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
1626
[ echo "*** The test program failed to compile or link. See the file config.log for the"
1627
echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
1628
CFLAGS="$ac_save_CFLAGS"
1629
LIBS="$ac_save_LIBS"
1637
GLIB_COMPILE_RESOURCES=""
1638
ifelse([$3], , :, [$3])
1640
AC_SUBST(GLIB_CFLAGS)
1642
AC_SUBST(GLIB_GENMARSHAL)
1643
AC_SUBST(GOBJECT_QUERY)
1644
AC_SUBST(GLIB_MKENUMS)
1645
AC_SUBST(GLIB_COMPILE_RESOURCES)
1650
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
1651
dnl the schema should be compiled
1654
AC_DEFUN([GLIB_GSETTINGS],
1656
m4_pattern_allow([AM_V_GEN])
1657
AC_ARG_ENABLE(schemas-compile,
1658
AS_HELP_STRING([--disable-schemas-compile],
1659
[Disable regeneration of gschemas.compiled on install]),
1660
[case ${enableval} in
1661
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
1662
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
1663
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
1665
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
1666
PKG_PROG_PKG_CONFIG([0.16])
1667
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
1668
if test x$cross_compiling != xyes; then
1669
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
1671
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
1673
AC_SUBST(GLIB_COMPILE_SCHEMAS)
1674
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
1675
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
1677
ifelse([$1],,[:],[$1])
1681
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
1683
mostlyclean-am: clean-gsettings-schemas
1685
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
1687
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
1688
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
1690
all-am: $(gsettings_SCHEMAS:.xml=.valid)
1691
uninstall-am: uninstall-gsettings-schemas
1692
install-data-am: install-gsettings-schemas
1694
.SECONDARY: $(gsettings_SCHEMAS)
1696
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
1698
if test -n "$^"; then \
1699
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
1700
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
1701
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
1704
uninstall-gsettings-schemas:
1705
@$(NORMAL_UNINSTALL)
1706
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
1707
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
1708
test -n "$$files" || exit 0; \
1709
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
1710
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
1711
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
1713
clean-gsettings-schemas:
1714
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
1716
ifdef gsettings_ENUM_NAMESPACE
1717
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
1718
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
1721
_GSETTINGS_SUBST(GSETTINGS_RULES)
1724
dnl _GSETTINGS_SUBST(VARIABLE)
1725
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1726
AC_DEFUN([_GSETTINGS_SUBST],
1729
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1733
dnl -*- mode: autoconf -*-
1734
dnl Copyright 2009 Johan Dahlin
1736
dnl This file is free software; the author(s) gives unlimited
1737
dnl permission to copy and/or distribute it, with or without
1738
dnl modifications, as long as this notice is preserved.
1743
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
1745
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1746
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1747
AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
1749
dnl enable/disable introspection
1750
m4_if([$2], [require],
1752
enable_introspection=yes
1754
AC_ARG_ENABLE(introspection,
1755
AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
1756
[Enable introspection for this build]),,
1757
[enable_introspection=auto])
1760
AC_MSG_CHECKING([for gobject-introspection])
1762
dnl presence/version checking
1763
AS_CASE([$enable_introspection],
1765
found_introspection="no (disabled, use --enable-introspection to enable)"
1768
PKG_CHECK_EXISTS([gobject-introspection-1.0],,
1769
AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
1770
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
1771
found_introspection=yes,
1772
AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
1775
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
1778
AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
1781
AC_MSG_RESULT([$found_introspection])
1783
INTROSPECTION_SCANNER=
1784
INTROSPECTION_COMPILER=
1785
INTROSPECTION_GENERATE=
1786
INTROSPECTION_GIRDIR=
1787
INTROSPECTION_TYPELIBDIR=
1788
if test "x$found_introspection" = "xyes"; then
1789
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
1790
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
1791
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
1792
INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
1793
INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
1794
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
1795
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
1796
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
1798
AC_SUBST(INTROSPECTION_SCANNER)
1799
AC_SUBST(INTROSPECTION_COMPILER)
1800
AC_SUBST(INTROSPECTION_GENERATE)
1801
AC_SUBST(INTROSPECTION_GIRDIR)
1802
AC_SUBST(INTROSPECTION_TYPELIBDIR)
1803
AC_SUBST(INTROSPECTION_CFLAGS)
1804
AC_SUBST(INTROSPECTION_LIBS)
1805
AC_SUBST(INTROSPECTION_MAKEFILE)
1807
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
1812
dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
1814
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
1816
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
1820
dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
1823
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
1825
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
1870
1828
m4_include([m4/gettext.m4])
1829
m4_include([m4/gtk-doc.m4])
1871
1830
m4_include([m4/iconv.m4])
1872
1831
m4_include([m4/intlmacosx.m4])
1873
1832
m4_include([m4/intltool.m4])