Merge from emacs-24; up to 2013-01-01T11:02:14Z!rudalics@gmx.at
[bpt/emacs.git] / nt / mingw-cfg.site
1 #! /bin/sh
2 # Site defaults for the MinGW configuration of GNU Emacs.
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.
15 # In general, since nt/msysconfig.sh instructs GCC to use header files
16 # in nt/inc, you should not need to futz with header file tests. But
17 # there are exceptions, like with getopt.h below (which is a MinGW
18 # system header, but we do not want to use it).
19 #
20 # For each library function foo you want to supply test results, set
21 # the value of a shell variable ac_cv_func_foo. Again, the value is
22 # determined by what 'configure' expects; sometimes it could be "not
23 # needed" or whatever, see the examples below. In addition, you may
24 # need to set the various gl_cv_* variables for those tests that come
25 # from gnulib.
26 #
27 # In short, examine the test in 'configure' and push the knobs that
28 # are necessary to steer the test in the direction you need, by
29 # judiciously setting variables that control the test results.
30
31 # We want to use getopt.h from gnulib
32 ac_cv_header_getopt_h=no
33
34 # ACL functions are implemented in w32.c
35 ac_cv_search_acl_get_file="none required"
36 ac_cv_func_acl_get_file=yes
37 ac_cv_func_acl_set_file=yes
38 ac_cv_func_acl_free=yes
39 ac_cv_func_acl_from_text=yes
40 gl_cv_func_working_acl_get_file=yes
41 # Autoconf's test program is not smart enough, and fails to detect gethostname
42 ac_cv_func_gethostname=yes
43 # Implemented as sys_select in w32proc.c
44 ac_cv_func_select=yes
45 ac_cv_func_pselect=yes
46 gl_cv_sig_pselect=yes
47 gl_cv_func_pselect_detects_ebadf=yes
48 # Implemented as sys_shutdown in w32.c
49 ac_cv_func_shutdown=yes
50 # Implemented in w32proc.c
51 ac_cv_func_setitimer=yes
52 # Implemented as sys_sendto in w32.c
53 ac_cv_func_sendto=yes
54 # Implemented as sys_recvfrom in w32.c
55 ac_cv_func_recvfrom=yes
56 # Implemented as sys_getsockname in w32.c
57 ac_cv_func_getsockname=yes
58 # Implemented as sys_getpeername in w32.c
59 ac_cv_func_getpeername=yes
60 # Implemented as sys_socket in w32.c
61 ac_cv_func_socket=yes
62 # Implemented in w32.c
63 ac_cv_func_readlink=yes
64 ac_cv_func_symlink=yes
65 # Avoid run-time tests of readlink and symlink, which will fail
66 gl_cv_func_readlink_works=yes
67 gl_cv_func_symlink_works=yes
68 ac_cv_func_readlinkat=yes
69 ac_cv_func_faccessat=yes
70 # Implemented in w32.c
71 ac_cv_func_fcntl=yes
72 gl_cv_func_fcntl_f_dupfd_cloexec=yes
73 gl_cv_func_fcntl_f_dupfd_works=yes
74 # We don't need fdopendir
75 ac_cv_func_fdopendir="not-needed"
76 gl_cv_func_fdopendir_works="no-but-not-needed-so-yes"
77 # Implemented in w32.c
78 ac_cv_func_lstat=yes
79 gl_cv_func_lstat_dereferences_slashed_symlink=yes
80 ac_cv_func_fstatat=yes
81 gl_cv_func_fstatat_zero_flag=yes
82 # Aliased to _commit in ms-w32.h
83 ac_cv_func_fsync=yes
84 ac_cv_func_fdatasync=yes
85 # Implemented in w32proc.c
86 ac_cv_func_pthread_sigmask=yes
87 # Avoid gnulib replacement
88 gl_threads_api=posix
89 gl_cv_func_pthread_sigmask_return_works=yes
90 gl_cv_func_pthread_sigmask_unblock_works="not relevant"
91 # Implemented in w32proc.c
92 emacs_cv_langinfo_codeset=yes
93 # Declared in ms-w32.h
94 ac_cv_have_decl_alarm=yes
95 # Avoid including the gnulib dup2 module
96 gl_cv_func_dup2_works=yes
97 # Defined in w32.c
98 ac_cv_func_getloadavg=yes
99 # Avoid compiling gnulib mktime
100 gl_cv_func_working_mktime=yes
101 # Implemented in w32.c
102 ac_cv_func_pipe2=yes
103 ac_cv_have_decl_unsetenv=yes
104 ac_cv_func_unsetenv=yes
105 gt_cv_func_unsetenv_ret='int'
106 gl_cv_func_unsetenv_works=yes
107 gl_cv_func_stat_dir_slash=yes
108 gl_cv_func_stat_file_slash=yes
109 ac_cv_func_random=yes
110 # Implemented in w32.c as sys_putenv
111 gl_cv_func_svid_putenv=yes