2013-11-07 08:19:52 +08:00
|
|
|
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
|
2006-05-25 00:59:03 +08:00
|
|
|
|
2012-11-27 03:50:45 +08:00
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
2013-11-07 08:19:52 +08:00
|
|
|
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
|
|
|
|
# Inc.
|
2012-11-23 21:22:47 +08:00
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
2006-05-25 00:59:03 +08:00
|
|
|
|
2012-11-23 21:22:47 +08:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
# PARTICULAR PURPOSE.
|
2006-05-25 00:59:03 +08:00
|
|
|
|
2012-11-23 21:22:47 +08:00
|
|
|
dnl This provides configure definitions used by all the cygwin
|
|
|
|
dnl configure.in files.
|
2006-05-25 00:59:03 +08:00
|
|
|
|
2012-11-23 21:22:47 +08:00
|
|
|
AC_DEFUN([AC_CYGWIN_INCLUDES], [
|
|
|
|
: ${ac_cv_prog_CXX:=$CXX}
|
|
|
|
: ${ac_cv_prog_CC:=$CC}
|
|
|
|
|
|
|
|
cygwin_headers=$(realdirpath "$winsup_srcdir/cygwin/include")
|
|
|
|
if test -z "$cygwin_headers"; then
|
|
|
|
AC_MSG_ERROR([cannot find $winsup_srcdir/cygwin/include directory])
|
|
|
|
fi
|
2006-05-25 00:59:03 +08:00
|
|
|
|
2012-11-23 21:22:47 +08:00
|
|
|
newlib_headers=$(realdirpath $winsup_srcdir/../newlib/libc/include)
|
|
|
|
if test -z "$newlib_headers"; then
|
|
|
|
AC_MSG_ERROR([cannot find newlib source directory: $winsup_srcdir/../newlib/libc/include])
|
|
|
|
fi
|
|
|
|
newlib_headers="$target_builddir/newlib/targ-include $newlib_headers"
|
2006-05-25 00:59:03 +08:00
|
|
|
|
2020-10-03 21:41:58 +08:00
|
|
|
INCLUDES="-I${srcdir}/../cygwin -I${target_builddir}/winsup/cygwin"
|
|
|
|
INCLUDES="${INCLUDES} -isystem ${cygwin_headers}"
|
|
|
|
for h in ${newlib_headers}; do
|
|
|
|
INCLUDES="${INCLUDES} -isystem $h"
|
|
|
|
done
|
|
|
|
AC_SUBST(INCLUDES)
|
2006-05-25 00:59:03 +08:00
|
|
|
])
|
|
|
|
|
2012-11-23 21:22:47 +08:00
|
|
|
AC_DEFUN([AC_CONFIGURE_ARGS], [
|
|
|
|
configure_args=X
|
|
|
|
for f in $ac_configure_args; do
|
|
|
|
case "$f" in
|
|
|
|
*--srcdir*) ;;
|
|
|
|
*) configure_args="$configure_args $f" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
configure_args=$(/usr/bin/expr "$configure_args" : 'X \(.*\)')
|
|
|
|
AC_SUBST(configure_args)
|
2006-05-25 00:59:03 +08:00
|
|
|
])
|
|
|
|
|
2012-11-23 21:22:47 +08:00
|
|
|
AC_SUBST(target_builddir)
|
|
|
|
AC_SUBST(winsup_srcdir)
|
2006-05-25 00:59:03 +08:00
|
|
|
|