]> sourceware.org Git - newlib-cygwin.git/blob - winsup/mingw/profile/configure.in
update to newer autoconf
[newlib-cygwin.git] / winsup / mingw / profile / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl This file is part of Mingw runtime.
4 dnl
5 dnl This program is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 2 of the License, or
8 dnl (at your option) any later version.
9 dnl
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this program; if not, write to the Free Software
17 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 AC_PREREQ(2.59)
20 AC_INIT(gcrt0.c)
21
22 CC=${CC-cc}
23 AC_SUBST(CC)
24 AS=${AS-as}
25 AC_SUBST(AS)
26 AR=${AR-ar}
27 AC_SUBST(AR)
28 LD=${LD-ld}
29 AC_SUBST(LD)
30 RANLIB=${RANLIB-ranlib}
31 AC_SUBST(RANLIB)
32 DLLTOOL=${DLLTOOL-dlltool}
33 AC_SUBST(DLLTOOL)
34 DLLWRAP=${DLLWRAP-dllwrap}
35 AC_SUBST(DLLWRAP)
36 AC_CANONICAL_SYSTEM
37
38 LIBGMON_A=libgmon.a
39
40 case "$target_os" in
41 *mingw32crt*)
42 CRT_ID=1
43 MNO_CYGWIN=
44 RUNTIME=crtdll
45 CRT0S="gcrt1.o gcrt2.o"
46 ;;
47 *cygwin*)
48 CRT_ID=2
49 MNO_CYGWIN=-mno-cygwin
50 RUNTIME=msvcrt
51 CRT0S=gcrt0.o
52 # Do not build libm.a when building under Cygwin winsup. Otherwise, it'll
53 # overwrite Cygwin's one. Likewise for libgmon.a.
54 ;;
55 *)
56 # Build it for MSVCRT by default.
57 CRT_ID=2
58 MNO_CYGWIN=
59 RUNTIME=msvcrt
60 CRT0S="gcrt1.o gcrt2.o"
61 ;;
62 esac
63
64 W32API_INCLUDE='-I $(srcdir)/../../w32api/include'
65
66 AC_SUBST(CRT_ID)
67 AC_SUBST(RUNTIME)
68 AC_SUBST(MNO_CYGWIN)
69 AC_SUBST(LIBGMON_A)
70 AC_SUBST(CRT0S)
71 AC_SUBST(W32API_INCLUDE)
72
73 AC_PROG_INSTALL
74 AC_OUTPUT(Makefile)
75
This page took 0.038609 seconds and 5 git commands to generate.