• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ===========================================================================
2#   https://www.gnu.org/software/autoconf-archive/ax_ac_append_to_file.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   AX_AC_APPEND_TO_FILE([FILE],[DATA])
8#
9# DESCRIPTION
10#
11#   Appends the specified data to the specified Autoconf is run. If you want
12#   to append to a file when configure is run use AX_APPEND_TO_FILE instead.
13#
14# LICENSE
15#
16#   Copyright (c) 2009 Allan Caffee <allan.caffee@gmail.com>
17#
18#   Copying and distribution of this file, with or without modification, are
19#   permitted in any medium without royalty provided the copyright notice
20#   and this notice are preserved. This file is offered as-is, without any
21#   warranty.
22
23#serial 10
24
25AC_DEFUN([AX_AC_APPEND_TO_FILE],[
26AC_REQUIRE([AX_FILE_ESCAPES])
27m4_esyscmd(
28AX_FILE_ESCAPES
29[
30printf "%s" "$2" >> "$1"
31])
32])
33