~ubuntu-branches/ubuntu/wily/almanah/wily-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2014-09-25 10:57:46 UTC
  • mfrom: (10.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20140925105746-wthakwyowxrqrc11
Tags: 0.11.1-1
* Imported Upstream version 0.11.1
  (Closes: #745257) (LP: #1372074)
* debian/copyright: Update years and owners
* Declare compliance with Debian Policy 3.9.6
* Update Vcs-Browser URL to cgit web frontend

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.14 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
 
23
# appdata-xml.m4
 
24
#
 
25
# serial 4
 
26
 
 
27
dnl APPDATA_XML
 
28
dnl Installs and validates AppData XML files.
 
29
dnl
 
30
dnl Call APPDATA_XML in configure.ac to check for the appdata-validate tool.
 
31
dnl Add @APPDATA_XML_RULES@ to a Makefile.am to substitute the make rules. Add
 
32
dnl .appdata.xml files to appdata_XML in Makefile.am and they will be validated
 
33
dnl at make check time, if appdata-validate is installed, as well as installed
 
34
dnl to the correct location automatically. Add --enable-appdata-validate to
 
35
dnl DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when
 
36
dnl doing a distcheck.
 
37
dnl
 
38
dnl Adding files to appdata_XML does not distribute them automatically.
 
39
 
 
40
AC_DEFUN([APPDATA_XML],
 
41
[
 
42
  m4_pattern_allow([AM_V_GEN])
 
43
  AC_ARG_ENABLE([appdata-validate],
 
44
                [AS_HELP_STRING([--disable-appdata-validate],
 
45
                                [Disable validating AppData XML files during check phase])])
 
46
 
 
47
  AS_IF([test "x$enable_appdata_validate" != "xno"],
 
48
        [AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate])
 
49
         AS_IF([test "x$APPDATA_VALIDATE" = "x"],
 
50
               [have_appdata_validate=no],
 
51
               [have_appdata_validate=yes
 
52
                AC_SUBST([APPDATA_VALIDATE])])],
 
53
        [have_appdata_validate=no])
 
54
 
 
55
  AS_IF([test "x$have_appdata_validate" != "xno"],
 
56
        [appdata_validate=yes],
 
57
        [appdata_validate=no
 
58
         AS_IF([test "x$enable_appdata_validate" = "xyes"],
 
59
               [AC_MSG_ERROR([AppData validation was requested but appdata-validate was not found])])])
 
60
 
 
61
  AC_SUBST([appdataxmldir], [${datadir}/appdata])
 
62
 
 
63
  APPDATA_XML_RULES='
 
64
.PHONY : uninstall-appdata-xml install-appdata-xml clean-appdata-xml
 
65
 
 
66
mostlyclean-am: clean-appdata-xml
 
67
 
 
68
%.appdata.valid: %.appdata.xml
 
69
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \
 
70
                if test -n "$(APPDATA_VALIDATE)"; \
 
71
                        then $(APPDATA_VALIDATE) --nonet $${d}$<; fi \
 
72
                && touch [$]@
 
73
 
 
74
check-am: $(appdata_XML:.appdata.xml=.appdata.valid)
 
75
uninstall-am: uninstall-appdata-xml
 
76
install-data-am: install-appdata-xml
 
77
 
 
78
.SECONDARY: $(appdata_XML)
 
79
 
 
80
install-appdata-xml: $(appdata_XML)
 
81
        @$(NORMAL_INSTALL)
 
82
        if test -n "$^"; then \
 
83
                test -z "$(appdataxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appdataxmldir)"; \
 
84
                $(INSTALL_DATA) $^ "$(DESTDIR)$(appdataxmldir)"; \
 
85
        fi
 
86
 
 
87
uninstall-appdata-xml:
 
88
        @$(NORMAL_UNINSTALL)
 
89
        @list='\''$(appdata_XML)'\''; test -n "$(appdataxmldir)" || list=; \
 
90
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
91
        test -n "$$files" || exit 0; \
 
92
        echo " ( cd '\''$(DESTDIR)$(appdataxmldir)'\'' && rm -f" $$files ")"; \
 
93
        cd "$(DESTDIR)$(appdataxmldir)" && rm -f $$files
 
94
 
 
95
clean-appdata-xml:
 
96
        rm -f $(appdata_XML:.appdata.xml=.appdata.valid)
 
97
'
 
98
  _APPDATA_XML_SUBST(APPDATA_XML_RULES)
 
99
])
 
100
 
 
101
dnl _APPDATA_XML_SUBST(VARIABLE)
 
102
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
103
AC_DEFUN([_APPDATA_XML_SUBST],
 
104
[
 
105
AC_SUBST([$1])
 
106
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
107
]
 
108
)
 
109
 
23
110
dnl GLIB_GSETTINGS
24
111
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
25
112
dnl the schema should be compiled
59
146
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
60
147
 
61
148
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
62
 
        $(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 [$]@
 
149
        $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
63
150
 
64
151
all-am: $(gsettings_SCHEMAS:.xml=.valid)
65
152
uninstall-am: uninstall-gsettings-schemas
9176
9263
# generated from the m4 files accompanying Automake X.Y.
9177
9264
# (This private macro should not be called outside this file.)
9178
9265
AC_DEFUN([AM_AUTOMAKE_VERSION],
9179
 
[am__api_version='1.14'
 
9266
[am__api_version='1.13'
9180
9267
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9181
9268
dnl require some minimum version.  Point them to the right macro.
9182
 
m4_if([$1], [1.14], [],
 
9269
m4_if([$1], [1.13.4], [],
9183
9270
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9184
9271
])
9185
9272
 
9195
9282
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9196
9283
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9197
9284
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9198
 
[AM_AUTOMAKE_VERSION([1.14])dnl
 
9285
[AM_AUTOMAKE_VERSION([1.13.4])dnl
9199
9286
m4_ifndef([AC_AUTOCONF_VERSION],
9200
9287
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9201
9288
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9562
9649
# This macro actually does too much.  Some checks are only needed if
9563
9650
# your package does certain things.  But this isn't really a big deal.
9564
9651
 
9565
 
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9566
 
m4_define([AC_PROG_CC],
9567
 
m4_defn([AC_PROG_CC])
9568
 
[_AM_PROG_CC_C_O
9569
 
])
9570
 
 
9571
9652
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9572
9653
# AM_INIT_AUTOMAKE([OPTIONS])
9573
9654
# -----------------------------------------------
9676
9757
AC_CONFIG_COMMANDS_PRE(dnl
9677
9758
[m4_provide_if([_AM_COMPILER_EXEEXT],
9678
9759
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9679
 
 
9680
 
# POSIX will say in a future version that running "rm -f" with no argument
9681
 
# is OK; and we want to be able to make that assumption in our Makefile
9682
 
# recipes.  So use an aggressive probe to check that the usage we want is
9683
 
# actually supported "in the wild" to an acceptable degree.
9684
 
# See automake bug#10828.
9685
 
# To make any issue more visible, cause the running configure to be aborted
9686
 
# by default if the 'rm' program in use doesn't match our expectations; the
9687
 
# user can still override this though.
9688
 
if rm -f && rm -fr && rm -rf; then : OK; else
9689
 
  cat >&2 <<'END'
9690
 
Oops!
9691
 
 
9692
 
Your 'rm' program seems unable to run without file operands specified
9693
 
on the command line, even when the '-f' option is present.  This is contrary
9694
 
to the behaviour of most rm programs out there, and not conforming with
9695
 
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9696
 
 
9697
 
Please tell bug-automake@gnu.org about your system, including the value
9698
 
of your $PATH and any error possibly output before this message.  This
9699
 
can help us improve future automake versions.
9700
 
 
9701
 
END
9702
 
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9703
 
    echo 'Configuration will proceed anyway, since you have set the' >&2
9704
 
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9705
 
    echo >&2
9706
 
  else
9707
 
    cat >&2 <<'END'
9708
 
Aborting the configuration process, to ensure you take notice of the issue.
9709
 
 
9710
 
You can download and install GNU coreutils to get an 'rm' implementation
9711
 
that behaves properly: <http://www.gnu.org/software/coreutils/>.
9712
 
 
9713
 
If you want to complete the configuration process using your problematic
9714
 
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9715
 
to "yes", and re-run configure.
9716
 
 
9717
 
END
9718
 
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9719
 
  fi
9720
 
fi])
 
9760
])
9721
9761
 
9722
9762
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9723
9763
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9725
9765
m4_define([_AC_COMPILER_EXEEXT],
9726
9766
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9727
9767
 
 
9768
 
9728
9769
# When config.status generates a header, we must update the stamp-h file.
9729
9770
# This file resides in the same directory as the config header
9730
9771
# that is generated.  The stamp files are numbered to have different names.
9836
9877
rm -f confinc confmf
9837
9878
])
9838
9879
 
 
9880
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
9881
#
 
9882
# This file is free software; the Free Software Foundation
 
9883
# gives unlimited permission to copy and/or distribute it,
 
9884
# with or without modifications, as long as this notice is preserved.
 
9885
 
 
9886
# AM_PROG_CC_C_O
 
9887
# --------------
 
9888
# Like AC_PROG_CC_C_O, but changed for automake.
 
9889
AC_DEFUN([AM_PROG_CC_C_O],
 
9890
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
9891
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9892
AC_REQUIRE_AUX_FILE([compile])dnl
 
9893
# FIXME: we rely on the cache variable name because
 
9894
# there is no other way.
 
9895
set dummy $CC
 
9896
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
9897
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
9898
if test "$am_t" != yes; then
 
9899
   # Losing compiler, so override with the script.
 
9900
   # FIXME: It is wrong to rewrite CC.
 
9901
   # But if we don't then we get into trouble of one sort or another.
 
9902
   # A longer-term fix would be to have automake use am__CC in this case,
 
9903
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
9904
   CC="$am_aux_dir/compile $CC"
 
9905
fi
 
9906
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
9907
dnl setting of CC.
 
9908
m4_define([AC_PROG_CC],
 
9909
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
9910
])
 
9911
 
9839
9912
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9840
9913
 
9841
9914
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9906
9979
AC_DEFUN([_AM_IF_OPTION],
9907
9980
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9908
9981
 
9909
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9910
 
#
9911
 
# This file is free software; the Free Software Foundation
9912
 
# gives unlimited permission to copy and/or distribute it,
9913
 
# with or without modifications, as long as this notice is preserved.
9914
 
 
9915
 
# _AM_PROG_CC_C_O
9916
 
# ---------------
9917
 
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
9918
 
# to automatically call this.
9919
 
AC_DEFUN([_AM_PROG_CC_C_O],
9920
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9921
 
AC_REQUIRE_AUX_FILE([compile])dnl
9922
 
AC_LANG_PUSH([C])dnl
9923
 
AC_CACHE_CHECK(
9924
 
  [whether $CC understands -c and -o together],
9925
 
  [am_cv_prog_cc_c_o],
9926
 
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9927
 
  # Make sure it works both with $CC and with simple cc.
9928
 
  # Following AC_PROG_CC_C_O, we do the test twice because some
9929
 
  # compilers refuse to overwrite an existing .o file with -o,
9930
 
  # though they will create one.
9931
 
  am_cv_prog_cc_c_o=yes
9932
 
  for am_i in 1 2; do
9933
 
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9934
 
         && test -f conftest2.$ac_objext; then
9935
 
      : OK
9936
 
    else
9937
 
      am_cv_prog_cc_c_o=no
9938
 
      break
9939
 
    fi
9940
 
  done
9941
 
  rm -f core conftest*
9942
 
  unset am_i])
9943
 
if test "$am_cv_prog_cc_c_o" != yes; then
9944
 
   # Losing compiler, so override with the script.
9945
 
   # FIXME: It is wrong to rewrite CC.
9946
 
   # But if we don't then we get into trouble of one sort or another.
9947
 
   # A longer-term fix would be to have automake use am__CC in this case,
9948
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9949
 
   CC="$am_aux_dir/compile $CC"
9950
 
fi
9951
 
AC_LANG_POP([C])])
9952
 
 
9953
 
# For backward compatibility.
9954
 
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9955
 
 
9956
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9957
 
#
9958
 
# This file is free software; the Free Software Foundation
9959
 
# gives unlimited permission to copy and/or distribute it,
9960
 
# with or without modifications, as long as this notice is preserved.
9961
 
 
9962
 
# AM_RUN_LOG(COMMAND)
9963
 
# -------------------
9964
 
# Run COMMAND, save the exit status in ac_status, and log it.
9965
 
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9966
 
AC_DEFUN([AM_RUN_LOG],
9967
 
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9968
 
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9969
 
   ac_status=$?
9970
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9971
 
   (exit $ac_status); }])
9972
 
 
9973
9982
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9974
9983
 
9975
9984
# Copyright (C) 1996-2013 Free Software Foundation, Inc.