~timo-jyrinki/ubuntu/utopic/rhythmbox/enable_grilo_rhythmbox

« back to all changes in this revision

Viewing changes to aclocal.m4

Tags: upstream-0.11.1
ImportĀ upstreamĀ versionĀ 0.11.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
You have another version of autoconf.  If you want to use that,
17
17
you should regenerate the build system entirely.], [63])])
18
18
 
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
21
 
dnl
22
 
 
23
 
AC_DEFUN([AM_PATH_CHECK],
24
 
[
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]])
27
 
  AC_ARG_WITH([check],
28
 
  [  --with-check=PATH       prefix where check is installed [default=auto]])
29
 
 
30
 
  min_check_version=ifelse([$1], ,0.8.2,$1)
31
 
 
32
 
  AC_MSG_CHECKING(for check - version >= $min_check_version)
33
 
 
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])
37
 
  else
38
 
    if test "x$with_check" != x; then
39
 
      CHECK_CFLAGS="-I$with_check/include"
40
 
      CHECK_LIBS="-L$with_check/lib -lcheck"
41
 
    else
42
 
      CHECK_CFLAGS=""
43
 
      CHECK_LIBS="-lcheck"
44
 
    fi
45
 
 
46
 
    ac_save_CFLAGS="$CFLAGS"
47
 
    ac_save_LIBS="$LIBS"
48
 
 
49
 
    CFLAGS="$CFLAGS $CHECK_CFLAGS"
50
 
    LIBS="$CHECK_LIBS $LIBS"
51
 
 
52
 
    rm -f conf.check-test
53
 
    AC_COMPILE_IFELSE([AC_LANG_SOURCE([AC_INCLUDES_DEFAULT([])
54
 
#include <check.h>
55
 
 
56
 
int main ()
57
 
{
58
 
  int major, minor, micro;
59
 
  char *tmp_version;
60
 
 
61
 
  system ("touch conf.check-test");
62
 
 
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, &micro) != 3) {
66
 
     printf("%s, bad version string\n", "$min_check_version");
67
 
     return 1;
68
 
   }
69
 
    
70
 
  if ((CHECK_MAJOR_VERSION != check_major_version) ||
71
 
      (CHECK_MINOR_VERSION != check_minor_version) ||
72
 
      (CHECK_MICRO_VERSION != check_micro_version))
73
 
    {
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);
78
 
      return 1;
79
 
    }
80
 
 
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)))
84
 
    {
85
 
      return 0;
86
 
    }
87
 
  else
88
 
    {
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);
92
 
      printf("***\n"); 
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");
97
 
    }
98
 
 
99
 
  return 1;
100
 
}
101
 
])],, no_check=yes, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
102
 
 
103
 
    CFLAGS="$ac_save_CFLAGS"
104
 
    LIBS="$ac_save_LIBS"
105
 
 
106
 
    if test "x$no_check" = x ; then
107
 
      AC_MSG_RESULT(yes)
108
 
      ifelse([$2], , :, [$2])
109
 
    else
110
 
      AC_MSG_RESULT(no)
111
 
      if test -f conf.check-test ; then
112
 
        :
113
 
      else
114
 
        echo "*** Could not run check test program, checking why..."
115
 
        CFLAGS="$CFLAGS $CHECK_CFLAGS"
116
 
        LIBS="$CHECK_LIBS $LIBS"
117
 
        AC_TRY_LINK([
118
 
#include <stdio.h>
119
 
#include <stdlib.h>
120
 
 
121
 
#include <check.h>
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"
127
 
        echo "***"
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." ])
132
 
      
133
 
        CFLAGS="$ac_save_CFLAGS"
134
 
        LIBS="$ac_save_LIBS"
135
 
      fi
136
 
 
137
 
      CHECK_CFLAGS=""
138
 
      CHECK_LIBS=""
139
 
 
140
 
      rm -f conf.check-test
141
 
      ifelse([$3], , AC_MSG_ERROR([check not found]), [$3])
142
 
    fi
143
 
 
144
 
    AC_SUBST(CHECK_CFLAGS)
145
 
    AC_SUBST(CHECK_LIBS)
146
 
 
147
 
    rm -f conf.check-test
148
 
 
149
 
  fi
150
 
])
151
 
 
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
623
490
fi])
624
491
 
625
492
 
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],
629
 
[
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"
634
 
AC_SUBST(HELP_DIR)
635
 
 
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"
640
 
AC_SUBST(OMF_DIR)
641
 
 
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)
647
 
 
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"])
653
 
 
654
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
655
 
])
656
 
 
657
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
658
 
#
659
 
AC_DEFUN([GNOME_DOC_INIT],
660
 
[
661
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
662
 
 
663
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
664
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
665
 
 
666
 
if test "$gdu_cv_have_gdu" = "yes"; then
667
 
        ifelse([$2],,[:],[$2])
668
 
else
669
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
670
 
fi
671
 
 
672
 
GNOME_DOC_DEFINES
673
 
])
674
 
 
675
 
dnl -*- mode: autoconf -*-
676
 
 
677
 
# serial 1
678
 
 
679
 
dnl Usage:
680
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
681
 
AC_DEFUN([GTK_DOC_CHECK],
682
 
[
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"
690
 
  AC_SUBST(HTML_DIR)
691
 
 
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]]),,
696
 
    enable_gtk_doc=no)
697
 
 
698
 
  have_gtk_doc=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)
702
 
    fi
703
 
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
704
 
      have_gtk_doc=yes
705
 
    fi
706
 
 
707
 
  dnl do we want to do a version check?
708
 
ifelse([$1],[],,
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
713
 
        AC_MSG_RESULT(yes)
714
 
      else
715
 
        AC_MSG_RESULT(no)
716
 
        have_gtk_doc=no
717
 
      fi
718
 
    fi
719
 
])
720
 
    if test "$have_gtk_doc" != yes; then
721
 
      enable_gtk_doc=no
722
 
    fi
723
 
  fi
724
 
 
725
 
  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
726
 
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
727
 
])
728
 
 
729
 
 
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
734
 
 
735
 
case "$am__api_version" in
736
 
    1.[01234])
737
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
738
 
    ;;
739
 
    *)
740
 
    ;;
741
 
esac
742
 
 
743
 
if test -n "$1"; then
744
 
    AC_MSG_CHECKING(for intltool >= $1)
745
 
 
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`
749
 
    ]
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.])
753
 
fi
754
 
 
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 $< [$]@'
773
 
 
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)
792
 
 
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')
797
 
 
798
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
799
 
if test -z "$INTLTOOL_PERL"; then
800
 
   AC_MSG_ERROR([perl not found; required for intltool])
801
 
fi
802
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
803
 
   AC_MSG_ERROR([perl 5.x required for intltool])
804
 
fi
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
808
 
       AC_MSG_RESULT([ok])
809
 
   else
810
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
811
 
   fi
812
 
fi
813
 
 
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)
818
 
 
819
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
820
 
AC_SUBST(ALL_LINGUAS)
821
 
 
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],
827
 
    [DATADIRNAME=share],
828
 
    [case $host in
829
 
    *-*-solaris*)
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
834
 
    dnl in this case.
835
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
836
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
837
 
    ;;
838
 
    *)
839
 
    [DATADIRNAME=lib]
840
 
    ;;
841
 
    esac])
842
 
fi
843
 
AC_SUBST(DATADIRNAME)
844
 
 
845
 
IT_PO_SUBDIR([po])
846
 
 
847
 
dnl The following is very similar to
848
 
dnl
849
 
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
850
 
dnl
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.
858
 
dnl
859
 
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
860
 
dnl a reason for it.
861
 
 
862
 
AC_CONFIG_COMMANDS([intltool], [
863
 
 
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
874
 
    rm -f ${file}.out
875
 
  else
876
 
    mv -f ${file}.out ${file}
877
 
  fi
878
 
  chmod ugo+x ${file}
879
 
  chmod u+w ${file}
880
 
done
881
 
 
882
 
],
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}'])
888
 
 
889
 
])
890
 
 
891
 
 
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.
896
 
#
897
 
AC_DEFUN([IT_PO_SUBDIR],
898
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
899
 
dnl
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"
905
 
    >"$1/stamp-it.tmp"
906
 
    [sed '/^#/d
907
 
         s/^[[].*] *//
908
 
         /^[    ]*$/d
909
 
        '"s|^|  $ac_top_srcdir/|" \
910
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
911
 
    ]
912
 
    if test ! -f "$1/Makefile"; then
913
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
914
 
    fi
915
 
    mv "$1/Makefile" "$1/Makefile.tmp"
916
 
    [sed '/^POTFILES =/,/[^\\]$/ {
917
 
                /^POTFILES =/!d
918
 
                r $1/POTFILES
919
 
          }
920
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
921
 
    rm -f "$1/Makefile.tmp"
922
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
923
 
  ])
924
 
])dnl
925
 
])
926
 
 
927
 
 
928
 
# deprecated macros
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], ...)
932
 
 
933
 
 
934
493
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
935
494
 
936
495
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
7448
7007
 
7449
7008
_PKG_TEXT
7450
7009
 
7451
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
7010
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7452
7011
                [$4])
7453
7012
else
7454
7013
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8524
8083
AC_SUBST([am__untar])
8525
8084
]) # _AM_PROG_TAR
8526
8085
 
 
8086
m4_include([macros/check.m4])
 
8087
m4_include([macros/gnome-doc-utils.m4])
 
8088
m4_include([macros/gtk-doc.m4])
 
8089
m4_include([macros/intltool.m4])