1GPT-UNDEFINES(8) User Contributed Perl Documentation GPT-UNDEFINES(8)
2
3
4
6 gpt-undefines - Generate a list of preprocessor macros that are not
7 defined.
8
10 gpt-undefines [-srcdir=PATH -config -disable-undefs -verbose -help]
11 headers containing defines
12
14 gpt-undefines Generates a list of preprocessor macros that are not
15 defined internally in the source code. Macros that are defined in the
16 header files listed during gpt-undefines's invocation will also be
17 excluded.
18
20 -srcdir=PATH
21 Use PATH as the directory containing the source code. Source code
22 in the entire directory tree will be scanned. Default PATH is the
23 directory gpt-undefines was invoked in.
24
25 -config
26 Prints the list out in a format that can be pasted into an
27 installable header file.
28
29 -disable-undefs
30 Do not count commented out undefines as a define. This technique is
31 used by autoconf to indicate a negative test result. Example:
32
33 /* #undef HAVE_TCP_FASTACK */
34
36 By default the defines tested for by the configure script are stored in
37 a file called config.h. This file should never be installed. to add
38 autoconf defines to config.h simply add the define in the following
39 format to the file acconfig.h:
40
41 #undef AUTOCONF_DEFINE
42
43 acconfig.h is tranformed into a config.h.in by the script autoheader.
44 Then the configure script transform it into config.h.
45
46 A problem occurs when the autoconf defines are used in installed header
47 files. In this case the defines should be put in an installable header
48 file using the following format:
49
50 #ifndef AUTOCONF_DEFINE
51 #undef AUTOCONF_DEFINE
52 #endif
53
55 autoconf(1) autoheader(1)
56
58 Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau
59 <eblau.ncsa.uiuc.edu>
60
61
62
63perl v5.12.3 2011-03-24 GPT-UNDEFINES(8)