]>
Commit | Line | Data |
---|---|---|
4c36016b | 1 | dnl This provides configure definitions used by all the cygwin |
99fc5e10 CF |
2 | dnl configure.in files. |
3 | ||
4c36016b | 4 | AC_DEFUN([AC_CYGWIN_INCLUDES], [ |
4c36016b CF |
5 | : ${ac_cv_prog_CXX:=$CXX} |
6 | : ${ac_cv_prog_CC:=$CC} | |
7 | ||
8 | cygwin_headers=$(realdirpath "$winsup_srcdir/cygwin/include") | |
9 | if test -z "$cygwin_headers"; then | |
10 | AC_MSG_ERROR([cannot find $winsup_srcdir/cygwin/include directory]) | |
11 | fi | |
12 | ||
13 | newlib_headers=$(realdirpath $winsup_srcdir/../newlib/libc/include) | |
14 | if test -z "$newlib_headers"; then | |
15 | AC_MSG_ERROR([cannot find newlib source directory: $winsup_srcdir/../newlib/libc/include]) | |
99fc5e10 | 16 | fi |
4c36016b | 17 | newlib_headers="$target_builddir/newlib/targ-include $newlib_headers" |
99fc5e10 | 18 | |
cf25b559 CV |
19 | AM_CPPFLAGS="-I${winsup_srcdir}/cygwin -I${target_builddir}/winsup/cygwin" |
20 | AM_CPPFLAGS="${AM_CPPFLAGS} -isystem ${cygwin_headers}" | |
b55e3f19 | 21 | for h in ${newlib_headers}; do |
cf25b559 | 22 | AM_CPPFLAGS="${AM_CPPFLAGS} -isystem $h" |
b55e3f19 | 23 | done |
cf25b559 | 24 | AC_SUBST(AM_CPPFLAGS) |
99fc5e10 | 25 | ]) |
4c36016b | 26 | |
4c36016b CF |
27 | AC_SUBST(target_builddir) |
28 | AC_SUBST(winsup_srcdir) |