This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
autoconf.sed
85 lines (80 loc) · 1.85 KB
/
autoconf.sed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# $Id$
1i\
#ifndef _OKWS_ARPCCONF_H_\
#define _OKWS_ARPCCONF_H_ 1
$a\
\
#endif /* !_OKWS_ARPCCONF_H_ */
/^#define inline/b skip
/^#define xdr_ops_t/b skip
/^#define [a-z]/b pdefine
/ DMALLOC/b pdefine
/ HAVE_CLOCK_GETTIME/b pdefine
/ HAVE_DEV_XFS/b pdefine
/ HAVE_GETRUSAGE/b pdefine
/ HAVE_GMP_CXX_OPS/b pdefine
/ HAVE_INET_ATON/b pdefine
/ HAVE_INT32_T/b pdefine
/ HAVE_INT64_T/b pdefine
/ HAVE_MEMCPY/b pdefine
/ HAVE_MEMORY_H/b pdefine
/ HAVE_MODE_T/b pdefine
/ HAVE_OFF_T_64/b pdefine
/ HAVE_PREAD/b pdefine
/ HAVE_PREAD_DECL/b pdefine
/ HAVE_PWRITE/b pdefine
/ HAVE_PWRITE_DECL/b pdefine
/ HAVE_RLIM_T/b pdefine
/ HAVE_SOCKLEN_T/b pdefine
/ HAVE_STRCASECMP/b pdefine
/ HAVE_STRCHR/b pdefine
/ HAVE_STRERROR/b pdefine
/ HAVE_SYS_FILE_H/b pdefine
/ HAVE_SYS_FILIO_H/b pdefine
/ HAVE_SYS_RUSAGE_H/b pdefine
/ HAVE_SYS_SOCKIO_H/b pdefine
/ HAVE_SYS_TIME_H/b pdefine
/ HAVE_SYS_WAIT_H/b pdefine
/ HAVE_TIMES/b pdefine
/ HAVE_TIMESPEC/b pdefine
/ HAVE_U_CHAR/b pdefine
/ HAVE_U_INT/b pdefine
/ HAVE_U_INT8_T/b pdefine
/ HAVE_U_INT16_T/b pdefine
/ HAVE_U_INT32_T/b pdefine
/ HAVE_U_INT64_T/b pdefine
/ HAVE_U_LONG/b pdefine
/ NEED_FCHDIR_DECL/b pdefine
/ NEED_GETRUSAGE_DECL/b pdefine
/ NEED_MKSTEMP_DECL/b pdefine
/ NEED_RES_INIT_DECL/b pdefine
/ NEED_RES_MKQUERY_DECL/b pdefine
/ NEED_XDR_CALLMSG_DECL/b pdefine
/ SETGROUPS_NEEDS_GRP_H/b pdefine
/ SIZEOF_LONG/b pdefine
/ SIZEOF_LONG_LONG/b pdefine
/ STDC_HEADERS/b pdefine
/ TIME_WITH_SYS_TIME/b pdefine
/ WORDS_BIGENDIAN/b pdefine
/ HAVE_PTH/b pdefine
/ HAVE_MYSQL/b pdefine
/ HAVE_CLONE/b pdefine
/ HAVE_RFORK/b pdefine
/ HAVE_RFORK_THREAD/b pdefine
/ HAVE_KTHREADS/b pdefine
/ HAVE_PTHREADS/b pdefine
/ OKWS_VERSION/b pdefine
/ HAVE_RECENT_FLEX/b pdefine
/ HAVE_EXPAT/b pdefine
/ HAVE_SSL/b pdefine
/ HAVE_LINUX_PRCTL_DUMP/b pdefine
/ RPC_MY_UNKNOWNADDR/b pdefine
:skip
d
n
:pdefine
s/#define \([^ ]*\).*/\
#ifndef \1\
&\
#endif/p
d