1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 dnl This provides configure definitions used by all the cygwin
16 dnl configure.in files.
18 AC_DEFUN([AC_CYGWIN_INCLUDES], [
19 : ${ac_cv_prog_CXX:=$CXX}
20 : ${ac_cv_prog_CC:=$CC}
22 cygwin_headers=$(realdirpath "$winsup_srcdir/cygwin/include")
23 if test -z "$cygwin_headers"; then
24 AC_MSG_ERROR([cannot find $winsup_srcdir/cygwin/include directory])
27 newlib_headers=$(realdirpath $winsup_srcdir/../newlib/libc/include)
28 if test -z "$newlib_headers"; then
29 AC_MSG_ERROR([cannot find newlib source directory: $winsup_srcdir/../newlib/libc/include])
31 newlib_headers="$target_builddir/newlib/targ-include $newlib_headers"
33 INCLUDES="-I${srcdir}/../cygwin -I${target_builddir}/winsup/cygwin"
34 INCLUDES="${INCLUDES} -isystem ${cygwin_headers}"
35 for h in ${newlib_headers}; do
36 INCLUDES="${INCLUDES} -isystem $h"
41 AC_DEFUN([AC_CONFIGURE_ARGS], [
43 for f in $ac_configure_args; do
46 *) configure_args="$configure_args $f" ;;
49 configure_args=$(/usr/bin/expr "$configure_args" : 'X \(.*\)')
50 AC_SUBST(configure_args)
53 AC_SUBST(target_builddir)
54 AC_SUBST(winsup_srcdir)