16
16
You have another version of autoconf. If you want to use that,
17
17
you should regenerate the build system entirely.], [63])])
19
dnl AM_PATH_CHECK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
20
dnl Test for check, and define CHECK_CFLAGS and CHECK_LIBS
23
AC_DEFUN([AM_PATH_CHECK],
25
AC_MSG_WARN([A@&t@M_PATH_CHECK() is deprecated])
26
AC_MSG_WARN([[use P@&t@KG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead]])
28
[ --with-check=PATH prefix where check is installed [default=auto]])
30
min_check_version=ifelse([$1], ,0.8.2,$1)
32
AC_MSG_CHECKING(for check - version >= $min_check_version)
34
if test x$with_check = xno; then
35
AC_MSG_RESULT(disabled)
36
ifelse([$3], , AC_MSG_ERROR([disabling check is not supported]), [$3])
38
if test "x$with_check" != x; then
39
CHECK_CFLAGS="-I$with_check/include"
40
CHECK_LIBS="-L$with_check/lib -lcheck"
46
ac_save_CFLAGS="$CFLAGS"
49
CFLAGS="$CFLAGS $CHECK_CFLAGS"
50
LIBS="$CHECK_LIBS $LIBS"
53
AC_COMPILE_IFELSE([AC_LANG_SOURCE([AC_INCLUDES_DEFAULT([])
58
int major, minor, micro;
61
system ("touch conf.check-test");
63
/* HP/UX 9 (%@#!) writes to sscanf strings */
64
tmp_version = strdup("$min_check_version");
65
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
66
printf("%s, bad version string\n", "$min_check_version");
70
if ((CHECK_MAJOR_VERSION != check_major_version) ||
71
(CHECK_MINOR_VERSION != check_minor_version) ||
72
(CHECK_MICRO_VERSION != check_micro_version))
74
printf("\n*** The check header file (version %d.%d.%d) does not match\n",
75
CHECK_MAJOR_VERSION, CHECK_MINOR_VERSION, CHECK_MICRO_VERSION);
76
printf("*** the check library (version %d.%d.%d).\n",
77
check_major_version, check_minor_version, check_micro_version);
81
if ((check_major_version > major) ||
82
((check_major_version == major) && (check_minor_version > minor)) ||
83
((check_major_version == major) && (check_minor_version == minor) && (check_micro_version >= micro)))
89
printf("\n*** An old version of check (%d.%d.%d) was found.\n",
90
check_major_version, check_minor_version, check_micro_version);
91
printf("*** You need a version of check being at least %d.%d.%d.\n", major, minor, micro);
93
printf("*** If you have already installed a sufficiently new version, this error\n");
94
printf("*** probably means that the wrong copy of the check library and header\n");
95
printf("*** file is being found. Rerun configure with the --with-check=PATH option\n");
96
printf("*** to specify the prefix where the correct version was installed.\n");
101
])],, no_check=yes, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
103
CFLAGS="$ac_save_CFLAGS"
106
if test "x$no_check" = x ; then
108
ifelse([$2], , :, [$2])
111
if test -f conf.check-test ; then
114
echo "*** Could not run check test program, checking why..."
115
CFLAGS="$CFLAGS $CHECK_CFLAGS"
116
LIBS="$CHECK_LIBS $LIBS"
122
], , [ echo "*** The test program compiled, but did not run. This usually means"
123
echo "*** that the run-time linker is not finding check. You'll need to set your"
124
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
125
echo "*** to the installed location Also, make sure you have run ldconfig if that"
126
echo "*** is required on your system"
128
echo "*** If you have an old version installed, it is best to remove it, although"
129
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
130
[ echo "*** The test program failed to compile or link. See the file config.log for"
131
echo "*** the exact error that occured." ])
133
CFLAGS="$ac_save_CFLAGS"
140
rm -f conf.check-test
141
ifelse([$3], , AC_MSG_ERROR([check not found]), [$3])
144
AC_SUBST(CHECK_CFLAGS)
147
rm -f conf.check-test
152
19
dnl AM_GCONF_SOURCE_2
153
20
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
154
21
dnl (i.e. pass to gconftool-2
626
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
627
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
628
AC_DEFUN([GNOME_DOC_DEFINES],
630
AC_ARG_WITH([help-dir],
631
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
632
[with_help_dir='${datadir}/gnome/help'])
633
HELP_DIR="$with_help_dir"
636
AC_ARG_WITH([omf-dir],
637
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
638
[with_omf_dir='${datadir}/omf'])
639
OMF_DIR="$with_omf_dir"
642
AC_ARG_WITH([help-formats],
643
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
644
[with_help_formats=''])
645
DOC_USER_FORMATS="$with_help_formats"
646
AC_SUBST(DOC_USER_FORMATS)
648
AC_ARG_ENABLE([scrollkeeper],
649
[AC_HELP_STRING([--disable-scrollkeeper],
650
[do not make updates to the scrollkeeper database])],,
651
enable_scrollkeeper=yes)
652
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
654
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
657
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
659
AC_DEFUN([GNOME_DOC_INIT],
661
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
663
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
664
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
666
if test "$gdu_cv_have_gdu" = "yes"; then
667
ifelse([$2],,[:],[$2])
669
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
675
dnl -*- mode: autoconf -*-
680
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
681
AC_DEFUN([GTK_DOC_CHECK],
683
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
684
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
685
dnl for overriding the documentation installation directory
686
AC_ARG_WITH(html-dir,
687
AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
688
[with_html_dir='${datadir}/gtk-doc/html'])
689
HTML_DIR="$with_html_dir"
692
dnl enable/disable documentation building
693
AC_ARG_ENABLE(gtk-doc,
694
AC_HELP_STRING([--enable-gtk-doc],
695
[use gtk-doc to build documentation [default=no]]),,
699
if test x$enable_gtk_doc = xyes; then
700
if test -z "$PKG_CONFIG"; then
701
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
703
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
707
dnl do we want to do a version check?
709
[gtk_doc_min_version=$1
710
if test "$have_gtk_doc" = yes; then
711
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
712
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
720
if test "$have_gtk_doc" != yes; then
725
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
726
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
730
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
731
# serial 35 IT_PROG_INTLTOOL
732
AC_DEFUN([IT_PROG_INTLTOOL],
733
[AC_PREREQ([2.50])dnl
735
case "$am__api_version" in
737
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
743
if test -n "$1"; then
744
AC_MSG_CHECKING(for intltool >= $1)
746
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
747
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
748
[INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
750
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
751
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
752
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
755
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
756
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
757
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
758
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
759
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
760
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
761
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
762
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
763
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
764
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
765
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
766
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
767
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
768
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
769
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
770
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
771
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
772
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
774
AC_SUBST(INTLTOOL_DESKTOP_RULE)
775
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
776
AC_SUBST(INTLTOOL_KEYS_RULE)
777
AC_SUBST(INTLTOOL_PROP_RULE)
778
AC_SUBST(INTLTOOL_OAF_RULE)
779
AC_SUBST(INTLTOOL_PONG_RULE)
780
AC_SUBST(INTLTOOL_SERVER_RULE)
781
AC_SUBST(INTLTOOL_SHEET_RULE)
782
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
783
AC_SUBST(INTLTOOL_UI_RULE)
784
AC_SUBST(INTLTOOL_XAM_RULE)
785
AC_SUBST(INTLTOOL_KBD_RULE)
786
AC_SUBST(INTLTOOL_XML_RULE)
787
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
788
AC_SUBST(INTLTOOL_CAVES_RULE)
789
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
790
AC_SUBST(INTLTOOL_THEME_RULE)
791
AC_SUBST(INTLTOOL_SERVICE_RULE)
793
# Use the tools built into the package, not the ones that are installed.
794
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
795
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
796
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
798
AC_PATH_PROG(INTLTOOL_PERL, perl)
799
if test -z "$INTLTOOL_PERL"; then
800
AC_MSG_ERROR([perl not found; required for intltool])
802
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
803
AC_MSG_ERROR([perl 5.x required for intltool])
805
if test "x$2" != "xno-xml"; then
806
AC_MSG_CHECKING([for XML::Parser])
807
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
810
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
814
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
815
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
816
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
817
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
819
# Substitute ALL_LINGUAS so we can use it in po/Makefile
820
AC_SUBST(ALL_LINGUAS)
822
# Set DATADIRNAME correctly if it is not set yet
823
# (copied from glib-gettext.m4)
824
if test -z "$DATADIRNAME"; then
825
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
826
return _nl_msg_cat_cntr],
830
dnl On Solaris, if bind_textdomain_codeset is in libc,
831
dnl GNU format message catalog is always supported,
832
dnl since both are added to the libc all together.
833
dnl Hence, we'd like to go with DATADIRNAME=share
835
AC_CHECK_FUNC(bind_textdomain_codeset,
836
[DATADIRNAME=share], [DATADIRNAME=lib])
843
AC_SUBST(DATADIRNAME)
847
dnl The following is very similar to
849
dnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
851
dnl with the following slight differences:
852
dnl - the *.in files are in ac_aux_dir,
853
dnl - if the file haven't changed upon reconfigure, it's not touched,
854
dnl - the evaluation of the third parameter enables a hack which computes
855
dnl the actual value of $libdir,
856
dnl - the user sees "executing intltool commands", instead of
857
dnl "creating intltool-extract" and such.
859
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
862
AC_CONFIG_COMMANDS([intltool], [
864
for file in intltool-extract intltool-merge intltool-update; do
865
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
866
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
867
-e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
868
-e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
869
-e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
870
-e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
871
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
872
< ${ac_aux_dir}/${file}.in > ${file}.out
873
if cmp -s ${file} ${file}.out 2>/dev/null; then
876
mv -f ${file}.out ${file}
883
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
884
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
885
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
886
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
887
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
892
# IT_PO_SUBDIR(DIRNAME)
893
# ---------------------
894
# All po subdirs have to be declared with this macro; the subdir "po" is
895
# declared by IT_PROG_INTLTOOL.
897
AC_DEFUN([IT_PO_SUBDIR],
898
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
900
dnl The following CONFIG_COMMANDS should be exetuted at the very end
901
dnl of config.status.
902
AC_CONFIG_COMMANDS_PRE([
903
AC_CONFIG_COMMANDS([$1/stamp-it], [
904
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
909
'"s|^| $ac_top_srcdir/|" \
910
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
912
if test ! -f "$1/Makefile"; then
913
AC_MSG_ERROR([$1/Makefile is not ready.])
915
mv "$1/Makefile" "$1/Makefile.tmp"
916
[sed '/^POTFILES =/,/[^\\]$/ {
920
' "$1/Makefile.tmp" >"$1/Makefile"]
921
rm -f "$1/Makefile.tmp"
922
mv "$1/stamp-it.tmp" "$1/stamp-it"
929
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
930
# A hint is needed for aclocal from Automake <= 1.9.4:
931
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
934
493
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
936
495
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL