Changeset 3ca4d9c in git for m4/ax_append_flag.m4
- Timestamp:
- Nov 14, 2022, 12:24:38 PM (17 months ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 660715de78e3fdf9dcc3f9388b1a1c61ec1c2ec5
- Parents:
- f0d4bd4caae9db63763bba2f6c56156355628e8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ax_append_flag.m4
rf0d4bd4 r3ca4d9c 1 1 # =========================================================================== 2 # http s://www.gnu.org/software/autoconf-archive/ax_append_flag.html2 # http://www.gnu.org/software/autoconf-archive/ax_append_flag.html 3 3 # =========================================================================== 4 4 # … … 24 24 # Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> 25 25 # 26 # Copying and distribution of this file, with or without modification, are 27 # permitted in any medium without royalty provided the copyright notice 28 # and this notice are preserved. This file is offered as-is, without any 29 # warranty. 26 # This program is free software: you can redistribute it and/or modify it 27 # under the terms of the GNU General Public License as published by the 28 # Free Software Foundation, either version 3 of the License, or (at your 29 # option) any later version. 30 # 31 # This program is distributed in the hope that it will be useful, but 32 # WITHOUT ANY WARRANTY; without even the implied warranty of 33 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 34 # Public License for more details. 35 # 36 # You should have received a copy of the GNU General Public License along 37 # with this program. If not, see <http://www.gnu.org/licenses/>. 38 # 39 # As a special exception, the respective Autoconf Macro's copyright owner 40 # gives unlimited permission to copy, distribute and modify the configure 41 # scripts that are the output of Autoconf when processing the Macro. You 42 # need not follow the terms of the GNU General Public License when using 43 # or distributing such scripts, even though portions of the text of the 44 # Macro appear in them. The GNU General Public License (GPL) does govern 45 # all other use of the material that constitutes the Autoconf Macro. 46 # 47 # This special exception to the GPL applies to versions of the Autoconf 48 # Macro released by the Autoconf Archive. When you make and distribute a 49 # modified version of the Autoconf Macro, you may extend this special 50 # exception to the GPL to apply to your modified version as well. 30 51 31 #serial 852 #serial 2 32 53 33 54 AC_DEFUN([AX_APPEND_FLAG], 34 [dnl 35 AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF 36 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) 37 AS_VAR_SET_IF(FLAGS,[ 38 AS_CASE([" AS_VAR_GET(FLAGS) "], 39 [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], 40 [ 41 AS_VAR_APPEND(FLAGS,[" $1"]) 42 AC_RUN_LOG([: FLAGS="$FLAGS"]) 43 ]) 44 ], 45 [ 46 AS_VAR_SET(FLAGS,[$1]) 47 AC_RUN_LOG([: FLAGS="$FLAGS"]) 48 ]) 55 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX 56 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl 57 AS_VAR_SET_IF(FLAGS, 58 [case " AS_VAR_GET(FLAGS) " in 59 *" $1 "*) 60 AC_RUN_LOG([: FLAGS already contains $1]) 61 ;; 62 *) 63 AC_RUN_LOG([: FLAGS="$FLAGS $1"]) 64 AS_VAR_SET(FLAGS, ["AS_VAR_GET(FLAGS) $1"]) 65 ;; 66 esac], 67 [AS_VAR_SET(FLAGS,["$1"])]) 49 68 AS_VAR_POPDEF([FLAGS])dnl 50 69 ])dnl AX_APPEND_FLAG 51
Note: See TracChangeset
for help on using the changeset viewer.