OSDN Git Service

* fhandler_process.cc: Drop unneeded includes.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / aclocal.m4
1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005  Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 # GCC_NO_EXECUTABLES
15 # -----------------
16 # FIXME: The GCC team has specific needs which the current Autoconf
17 # framework cannot solve elegantly.  This macro implements a dirty
18 # hack until Autoconf is able to provide the services its users
19 # need.
20 #
21 # Several of the support libraries that are often built with GCC can't
22 # assume the tool-chain is already capable of linking a program: the
23 # compiler often expects to be able to link with some of such
24 # libraries.
25 #
26 # In several of these libraries, workarounds have been introduced to
27 # avoid the AC_PROG_CC_WORKS test, that would just abort their
28 # configuration.  The introduction of AC_EXEEXT, enabled either by
29 # libtool or by CVS autoconf, have just made matters worse.
30 #
31 # Unlike the previous AC_NO_EXECUTABLES, this test does not
32 # disable link tests at autoconf time, but at configure time.
33 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
34 AC_DEFUN_ONCE([GCC_NO_EXECUTABLES],
35 [m4_divert_push([KILL])
36
37 AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])
38 AC_BEFORE([$0], [AC_LINK_IFELSE])
39
40 m4_define([_AC_COMPILER_EXEEXT],
41 AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
42 # FIXME: Cleanup?
43 AS_IF([AC_TRY_EVAL(ac_link)], [gcc_no_link=no], [gcc_no_link=yes])
44 if test x$gcc_no_link = xyes; then
45   # Setting cross_compile will disable run tests; it will
46   # also disable AC_CHECK_FILE but that's generally
47   # correct if we can't link.
48   cross_compiling=yes
49   EXEEXT=
50 else
51   m4_defn([_AC_COMPILER_EXEEXT])dnl
52 fi
53 )
54
55 m4_define([AC_LINK_IFELSE],
56 if test x$gcc_no_link = xyes; then
57   AC_MSG_ERROR([Link tests are not allowed after [[$0]].])
58 fi
59 m4_defn([AC_LINK_IFELSE]))
60
61 dnl This is a shame.  We have to provide a default for some link tests,
62 dnl similar to the default for run tests.
63 m4_define([AC_FUNC_MMAP],
64 if test x$gcc_no_link = xyes; then
65   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
66     ac_cv_func_mmap_fixed_mapped=no
67   fi
68 fi
69 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
70   m4_defn([AC_FUNC_MMAP])
71 fi)
72
73 m4_divert_pop()dnl
74 ])# GCC_NO_EXECUTABLES
75
76 m4_include([acinclude.m4])