]> git.pld-linux.org Git - packages/mpc.git/blame - mpc-missing_macros.patch
- up to 0.23
[packages/mpc.git] / mpc-missing_macros.patch
CommitLineData
564dea06
JP
1diff -urN mpc-0.23.orig/m4/ax_append_link_flags.m4 mpc-0.23/m4/ax_append_link_flags.m4
2--- mpc-0.23.orig/m4/ax_append_link_flags.m4 1970-01-01 01:00:00.000000000 +0100
3+++ mpc-0.23/m4/ax_append_link_flags.m4 2013-07-21 18:37:14.628220134 +0200
4@@ -0,0 +1,63 @@
5+# ===========================================================================
6+# http://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html
7+# ===========================================================================
8+#
9+# SYNOPSIS
10+#
11+# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS])
12+#
13+# DESCRIPTION
14+#
15+# For every FLAG1, FLAG2 it is checked whether the linker works with the
16+# flag. If it does, the flag is added FLAGS-VARIABLE
17+#
18+# If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is
19+# used. During the check the flag is always added to the linker's flags.
20+#
21+# If EXTRA-FLAGS is defined, it is added to the linker's default flags
22+# when the check is done. The check is thus made with the flags: "LDFLAGS
23+# EXTRA-FLAGS FLAG". This can for example be used to force the linker to
24+# issue an error when a bad flag is given.
25+#
26+# NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG.
27+# Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS.
28+#
29+# LICENSE
30+#
31+# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
32+#
33+# This program is free software: you can redistribute it and/or modify it
34+# under the terms of the GNU General Public License as published by the
35+# Free Software Foundation, either version 3 of the License, or (at your
36+# option) any later version.
37+#
38+# This program is distributed in the hope that it will be useful, but
39+# WITHOUT ANY WARRANTY; without even the implied warranty of
40+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
41+# Public License for more details.
42+#
43+# You should have received a copy of the GNU General Public License along
44+# with this program. If not, see <http://www.gnu.org/licenses/>.
45+#
46+# As a special exception, the respective Autoconf Macro's copyright owner
47+# gives unlimited permission to copy, distribute and modify the configure
48+# scripts that are the output of Autoconf when processing the Macro. You
49+# need not follow the terms of the GNU General Public License when using
50+# or distributing such scripts, even though portions of the text of the
51+# Macro appear in them. The GNU General Public License (GPL) does govern
52+# all other use of the material that constitutes the Autoconf Macro.
53+#
54+# This special exception to the GPL applies to versions of the Autoconf
55+# Macro released by the Autoconf Archive. When you make and distribute a
56+# modified version of the Autoconf Macro, you may extend this special
57+# exception to the GPL to apply to your modified version as well.
58+
59+#serial 3
60+
61+AC_DEFUN([AX_APPEND_LINK_FLAGS],
62+[AC_REQUIRE([AX_CHECK_LINK_FLAG])
63+AC_REQUIRE([AX_APPEND_FLAG])
64+for flag in $1; do
65+ AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3])
66+done
67+])dnl AX_APPEND_LINK_FLAGS
68diff -urN mpc-0.23.orig/m4/ax_check_link_flag.m4 mpc-0.23/m4/ax_check_link_flag.m4
69--- mpc-0.23.orig/m4/ax_check_link_flag.m4 1970-01-01 01:00:00.000000000 +0100
70+++ mpc-0.23/m4/ax_check_link_flag.m4 2013-07-21 18:37:23.158219873 +0200
71@@ -0,0 +1,71 @@
72+# ===========================================================================
73+# http://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html
74+# ===========================================================================
75+#
76+# SYNOPSIS
77+#
78+# AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS])
79+#
80+# DESCRIPTION
81+#
82+# Check whether the given FLAG works with the linker or gives an error.
83+# (Warnings, however, are ignored)
84+#
85+# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
86+# success/failure.
87+#
88+# If EXTRA-FLAGS is defined, it is added to the linker's default flags
89+# when the check is done. The check is thus made with the flags: "LDFLAGS
90+# EXTRA-FLAGS FLAG". This can for example be used to force the linker to
91+# issue an error when a bad flag is given.
92+#
93+# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
94+# macro in sync with AX_CHECK_{PREPROC,COMPILE}_FLAG.
95+#
96+# LICENSE
97+#
98+# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
99+# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
100+#
101+# This program is free software: you can redistribute it and/or modify it
102+# under the terms of the GNU General Public License as published by the
103+# Free Software Foundation, either version 3 of the License, or (at your
104+# option) any later version.
105+#
106+# This program is distributed in the hope that it will be useful, but
107+# WITHOUT ANY WARRANTY; without even the implied warranty of
108+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
109+# Public License for more details.
110+#
111+# You should have received a copy of the GNU General Public License along
112+# with this program. If not, see <http://www.gnu.org/licenses/>.
113+#
114+# As a special exception, the respective Autoconf Macro's copyright owner
115+# gives unlimited permission to copy, distribute and modify the configure
116+# scripts that are the output of Autoconf when processing the Macro. You
117+# need not follow the terms of the GNU General Public License when using
118+# or distributing such scripts, even though portions of the text of the
119+# Macro appear in them. The GNU General Public License (GPL) does govern
120+# all other use of the material that constitutes the Autoconf Macro.
121+#
122+# This special exception to the GPL applies to versions of the Autoconf
123+# Macro released by the Autoconf Archive. When you make and distribute a
124+# modified version of the Autoconf Macro, you may extend this special
125+# exception to the GPL to apply to your modified version as well.
126+
127+#serial 2
128+
129+AC_DEFUN([AX_CHECK_LINK_FLAG],
130+[AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_ldflags_$4_$1])dnl
131+AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [
132+ ax_check_save_flags=$LDFLAGS
133+ LDFLAGS="$LDFLAGS $4 $1"
134+ AC_LINK_IFELSE([AC_LANG_PROGRAM()],
135+ [AS_VAR_SET(CACHEVAR,[yes])],
136+ [AS_VAR_SET(CACHEVAR,[no])])
137+ LDFLAGS=$ax_check_save_flags])
138+AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
139+ [m4_default([$2], :)],
140+ [m4_default([$3], :)])
141+AS_VAR_POPDEF([CACHEVAR])dnl
142+])dnl AX_CHECK_LINK_FLAGS
This page took 0.076551 seconds and 4 git commands to generate.