blob: c23e4a108034e24565283491d36c8b9ef0d4ecd0 (
plain)
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
|
#!/usr/bin/gawk -f
# A script for emulating configure on OS/2 without having even a Unix-like
# shell. Designed specifically for compiling gettext with gcc+emx.
BEGIN{
print "/* config.h. Generated automatically by configure.awk. */"
cfg["HAVE_ALLOCA"] = 1;
cfg["HAVE_ALLOCA_H"] = 1;
cfg["HAVE_LONG_FILE_NAMES"] = 1;
cfg["HAVE_VPRINTF"] = 1;
cfg["STDC_HEADERS"] = 1;
cfg["HAVE_GETCWD"] = 1;
cfg["HAVE_GETEGID"] = 1;
cfg["HAVE_GETEUID"] = 1;
cfg["HAVE_GETGID"] = 1;
cfg["HAVE_GETPAGESIZE"] = 1;
cfg["HAVE_GETUID"] = 1;
cfg["HAVE_ISASCII"] = 1;
cfg["HAVE_MBLEN"] = 1;
cfg["HAVE_MEMCPY"] = 1;
cfg["HAVE_MEMMOVE"] = 1;
cfg["HAVE_MEMSET"] = 1;
cfg["HAVE_PUTENV"] = 1;
cfg["HAVE_SETLOCALE"] = 1;
cfg["HAVE_STRCHR"] = 1;
cfg["HAVE_STRCSPN"] = 1;
cfg["HAVE_STRDUP"] = 1;
cfg["HAVE_STRERROR"] = 1;
cfg["HAVE_STRSTR"] = 1;
cfg["HAVE_STRTOUL"] = 1;
cfg["HAVE_UNAME"] = 1;
cfg["HAVE_LIMITS_H"] = 1;
cfg["HAVE_LOCALE_H"] = 1;
cfg["HAVE_MALLOC_H"] = 1;
cfg["HAVE_STDDEF_H"] = 1;
cfg["HAVE_STDLIB_H"] = 1;
cfg["HAVE_STRING_H"] = 1;
cfg["HAVE_SYS_PARAM_H"] = 1;
cfg["HAVE_UNISTD_H"] = 1;
cfg["HAVE_GETTIMEOFDAY"] = 1;
cfg["HAVE_PATHCONF"] = 1;
cfg["HAVE_RAISE"] = 1;
cfg["HAVE_SELECT"] = 1;
cfg["HAVE_STRPBRK"] = 1;
cfg["HAVE_UTIME"] = 1;
cfg["HAVE_UTIMES"] = 1;
cfg["HAVE_WAITPID"] = 1;
cfg["HAVE_ARPA_INET_H"] = 1;
cfg["HAVE_DIRENT_H"] = 1;
cfg["HAVE_FCNTL_H"] = 1;
cfg["HAVE_SYS_TIME_H"] = 1;
cfg["HAVE_TIME_H"] = 1;
cfg["HAVE_POSIX_SIGNALBLOCKING"] = 1;
cfg["HAVE_ERRNO_DECL"] = 1;
cfg["HAVE_ICONV"] = 1;
cfg["ICONV_CONST"] = "const";
cfg["_GNU_SOURCE"] = 1;
cfg["HAVE_UNSIGNED_LONG_LONG"] = 1;
cfg["HAVE_PTRDIFF_T"] = 1;
cfg["vfork"] = "fork";
cfg["uintmax_t"] = "unsigned long long";
cfg["HAVE_DECL_WCWIDTH"] = 0;
cfg["mbstate_t"] = "int";
cfg["SETLOCALE_CONST"] = "const";
cfg["ENABLE_NLS"] = 1;
cfg["PACKAGE"] = "\""PACKAGE"\"";
cfg["VERSION"] = "\""VERSION"\"";
}
/^#undef/ {
if (cfg[$2] != "")
print "#define "$2" "cfg[$2];
else
print "/* #undef "$2" */";
next
}
{
print $0
}
|