Commit | Line | Data |
---|---|---|
62e010af | 1 | # -*- sh -*- |
c38ad11c | 2 | # Site defaults for the MinGW configuration of GNU Emacs. |
3946d31b EZ |
3 | # |
4 | # This file's purpose is to short-circuit configure-time tests for | |
5 | # which we want to provide the results instead of letting the | |
6 | # 'configure' script do that. This is mainly for features that | |
7 | # 'configure' tests that are implemented as part of Emacs sources, not | |
8 | # as part of system libraries. The idea is to set shell variables | |
9 | # that appear to the script as cached values. | |
10 | # | |
11 | # For each header file foo.h you want to supply test results, set the | |
12 | # value of a shell variable ac_cv_header_foo_h. The value should be | |
13 | # yes if the header is deemed to exist, no otherwise. Or it could be | |
14 | # something else, if the value computed by 'configure' requires that. | |
f4f38fad DM |
15 | # In general, since configure (when invoked from an MSYS environment) |
16 | # instructs GCC to use header files in nt/inc, you should not need to | |
17 | # futz with header file tests. But there are exceptions, like with | |
18 | # getopt.h below (which is a MinGW system header, but we do not want | |
19 | # to use it). | |
3946d31b EZ |
20 | # |
21 | # For each library function foo you want to supply test results, set | |
22 | # the value of a shell variable ac_cv_func_foo. Again, the value is | |
23 | # determined by what 'configure' expects; sometimes it could be "not | |
24 | # needed" or whatever, see the examples below. In addition, you may | |
25 | # need to set the various gl_cv_* variables for those tests that come | |
26 | # from gnulib. | |
27 | # | |
28 | # In short, examine the test in 'configure' and push the knobs that | |
29 | # are necessary to steer the test in the direction you need, by | |
8a9f4fb4 | 30 | # judiciously setting variables that control the test results. |
c38ad11c EZ |
31 | |
32 | # We want to use getopt.h from gnulib | |
33 | ac_cv_header_getopt_h=no | |
34 | ||
673558be EZ |
35 | # We don't want our struct timeval replaced due to Posix conformance |
36 | gl_cv_sys_struct_timeval_tv_sec=yes | |
37 | ||
9e5b5c79 EZ |
38 | # ACL functions are implemented in w32.c |
39 | ac_cv_search_acl_get_file="none required" | |
40 | ac_cv_func_acl_get_file=yes | |
c38ad11c | 41 | ac_cv_func_acl_set_file=yes |
9e5b5c79 EZ |
42 | ac_cv_func_acl_free=yes |
43 | ac_cv_func_acl_from_text=yes | |
44 | gl_cv_func_working_acl_get_file=yes | |
c38ad11c EZ |
45 | # Autoconf's test program is not smart enough, and fails to detect gethostname |
46 | ac_cv_func_gethostname=yes | |
47 | # Implemented as sys_select in w32proc.c | |
48 | ac_cv_func_select=yes | |
6cd0eaeb EZ |
49 | ac_cv_func_pselect=yes |
50 | gl_cv_sig_pselect=yes | |
51 | gl_cv_func_pselect_detects_ebadf=yes | |
c38ad11c EZ |
52 | # Implemented as sys_shutdown in w32.c |
53 | ac_cv_func_shutdown=yes | |
54 | # Implemented in w32proc.c | |
55 | ac_cv_func_setitimer=yes | |
56 | # Implemented as sys_sendto in w32.c | |
57 | ac_cv_func_sendto=yes | |
cb11bd95 EZ |
58 | # Implemented as sys_recvfrom in w32.c |
59 | ac_cv_func_recvfrom=yes | |
c38ad11c EZ |
60 | # Implemented as sys_getsockname in w32.c |
61 | ac_cv_func_getsockname=yes | |
62 | # Implemented as sys_getpeername in w32.c | |
63 | ac_cv_func_getpeername=yes | |
da6c9624 EZ |
64 | # Implemented as sys_socket in w32.c |
65 | ac_cv_func_socket=yes | |
c38ad11c | 66 | # Implemented in w32.c |
63f5c6c2 | 67 | ac_cv_func_mkostemp=yes |
c38ad11c | 68 | ac_cv_func_readlink=yes |
da6c9624 EZ |
69 | ac_cv_func_symlink=yes |
70 | # Avoid run-time tests of readlink and symlink, which will fail | |
c38ad11c | 71 | gl_cv_func_readlink_works=yes |
da6c9624 | 72 | gl_cv_func_symlink_works=yes |
c38ad11c EZ |
73 | ac_cv_func_readlinkat=yes |
74 | ac_cv_func_faccessat=yes | |
067428c1 PE |
75 | # Implemented in w32.c |
76 | ac_cv_func_fcntl=yes | |
77 | gl_cv_func_fcntl_f_dupfd_cloexec=yes | |
78 | gl_cv_func_fcntl_f_dupfd_works=yes | |
c38ad11c | 79 | # We don't need fdopendir |
52aa6b17 | 80 | ac_cv_func_fdopendir="not-needed" |
ef904742 EZ |
81 | gl_cv_func_fdopendir_works="no-but-not-needed-so-yes" |
82 | # Implemented in w32.c | |
da6c9624 EZ |
83 | ac_cv_func_lstat=yes |
84 | gl_cv_func_lstat_dereferences_slashed_symlink=yes | |
ef904742 EZ |
85 | ac_cv_func_fstatat=yes |
86 | gl_cv_func_fstatat_zero_flag=yes | |
ef904742 EZ |
87 | # Aliased to _commit in ms-w32.h |
88 | ac_cv_func_fsync=yes | |
da6c9624 EZ |
89 | ac_cv_func_fdatasync=yes |
90 | # Implemented in w32proc.c | |
91 | ac_cv_func_pthread_sigmask=yes | |
cb11bd95 | 92 | # Avoid gnulib replacement |
6cd0eaeb | 93 | gl_threads_api=posix |
cb11bd95 EZ |
94 | gl_cv_func_pthread_sigmask_return_works=yes |
95 | gl_cv_func_pthread_sigmask_unblock_works="not relevant" | |
da6c9624 EZ |
96 | # Implemented in w32proc.c |
97 | emacs_cv_langinfo_codeset=yes | |
98 | # Declared in ms-w32.h | |
99 | ac_cv_have_decl_alarm=yes | |
100 | # Avoid including the gnulib dup2 module | |
101 | gl_cv_func_dup2_works=yes | |
102 | # Defined in w32.c | |
103 | ac_cv_func_getloadavg=yes | |
104 | # Avoid compiling gnulib mktime | |
105 | gl_cv_func_working_mktime=yes | |
106 | # Implemented in w32.c | |
067428c1 | 107 | ac_cv_func_pipe2=yes |
da6c9624 EZ |
108 | ac_cv_have_decl_unsetenv=yes |
109 | ac_cv_func_unsetenv=yes | |
110 | gt_cv_func_unsetenv_ret='int' | |
111 | gl_cv_func_unsetenv_works=yes | |
112 | gl_cv_func_stat_dir_slash=yes | |
113 | gl_cv_func_stat_file_slash=yes | |
cb11bd95 | 114 | ac_cv_func_random=yes |
6cd0eaeb EZ |
115 | # Implemented in w32.c as sys_putenv |
116 | gl_cv_func_svid_putenv=yes |