]> sourceware.org Git - newlib-cygwin.git/blob - winsup/configure.in
c40d3d2c485316a0cefe84fc76506092e7a24baf
[newlib-cygwin.git] / winsup / configure.in
1 dnl Autoconf configure script for Cygwin.
2 dnl Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006,
3 dnl 2009 Red Hat, Inc.
4 dnl
5 dnl This file is part of Cygwin.
6 dnl
7 dnl This software is a copyrighted work licensed under the terms of the
8 dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9 dnl details.
10 dnl
11 dnl Process this file with autoconf to produce a configure script.
12
13 AC_PREREQ(2.59)dnl
14 AC_INIT(Makefile.in)
15
16 INSTALL=`cd $srcdir/..; echo $(pwd)/install-sh -c`
17
18 AC_PROG_INSTALL
19 AC_CANONICAL_SYSTEM
20
21 GCC_NO_EXECUTABLES
22
23 LIB_AC_PROG_CC
24 LIB_AC_PROG_CXX
25
26 AC_LANG_C
27
28 INSTALL_LICENSE=
29
30 case "$target" in
31 *cygwin*)
32 if ! test -d $srcdir/cygwin; then
33 AC_MSG_ERROR("No cygwin dir. Can't build Cygwin. Exiting...")
34 fi
35 AC_CONFIG_SUBDIRS(cygwin)
36 INSTALL_LICENSE="install-license"
37 ;;
38 *mingw*)
39 if ! test -d $srcdir/mingw; then
40 AC_MSG_ERROR("No mingw dir. Can't build Mingw. Exiting...")
41 fi
42 ;;
43 esac
44
45 if test -d $srcdir/mingw; then
46 AC_CONFIG_SUBDIRS(mingw)
47 fi
48 AC_CONFIG_SUBDIRS(w32api cygserver)
49
50 case "$with_cross_host" in
51 ""|*cygwin*)
52 # if test -d $srcdir/bz2lib; then
53 # AC_CONFIG_SUBDIRS(bz2lib)
54 # fi
55 # if test -d $srcdir/zlib; then
56 # AC_CONFIG_SUBDIRS(zlib)
57 # fi
58 if test -d $srcdir/lsaauth; then
59 AC_CONFIG_SUBDIRS(lsaauth)
60 fi
61 AC_CONFIG_SUBDIRS(utils doc)
62 ;;
63 esac
64
65 AC_SUBST(INSTALL_LICENSE)
66
67 AC_PROG_MAKE_SET
68
69 AC_OUTPUT(Makefile)
This page took 0.03778 seconds and 4 git commands to generate.