[go: up one dir, main page]

File: includes_headers.m4

package info (click to toggle)
fakechroot 2.19-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,052 kB
  • ctags: 966
  • sloc: ansic: 6,858; sh: 5,994; makefile: 347; perl: 169; java: 5
file content (22 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# include_headers.m4 - macro which generates prolog for C programs
#
# Copyright (c) 2010 Piotr Roszatycki <dexter@debian.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# ACX_INCLUDES_HEADERS(HEADER-FILES, [PROLOG])
# -------------------------------------------
# Generates a prolog which can replace standard AC_INCLUDES_DEFAULT

AC_DEFUN([ACX_INCLUDES_HEADERS],
    [
$2
        m4_foreach_w([myheader], [$1],
            [
[@%:@ifdef HAVE_]AS_TR_CPP(myheader)
[@%:@include <]myheader[>]
[@%:@endif]
                ])])