dnl These modifications are to allow for an empty cross compiler tree. dnl In the situation that cross-linking is impossible, the variable dnl `cross_linkable' will be substituted with "yes". dnl AC_DEFUN([hurd_MIG_RETCODE], [dnl # See if mig groks `retcode'. AC_CACHE_CHECK(whether $MIG supports the retcode keyword, hurd_cv_mig_retcode, [cat > conftest.defs <<\EOF #include #include subsystem foobar 1000; type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE ctype: mach_port_t; simpleroutine foobar_reply ( reply_port: reply_port_t; err: kern_return_t, RetCode); EOF if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AS_MESSAGE_LOG_FD()]); then hurd_cv_mig_retcode=yes else hurd_cv_mig_retcode=no fi rm -f conftest*]) if test $hurd_cv_mig_retcode = yes; then AC_DEFINE(HAVE_MIG_RETCODE) fi]) dnl The following check is based on a similar check in GNU inetutils 1.4.0. dnl dnl hurd_LIB_NCURSESW -- check for, and configure, ncursesw dnl dnl If libncursesw is found to exist on this system and the --disable-ncursesw dnl flag wasn't specified, defines LIBNCURSESW with the appropriate linker dnl specification, and possibly defines NCURSESW_INCLUDE with the appropriate dnl -I flag to get access to ncursesw include files. dnl AC_DEFUN([hurd_LIB_NCURSESW], [ AC_ARG_ENABLE(ncursesw, [ --disable-ncursesw Do not use ncursesw], , enable_ncursesw=yes) if test "$enable_ncursesw" = yes; then AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW="-lncursesw") if test "$LIBNCURSESW"; then AC_ARG_WITH(ncursesw-include-dir, [ --with-ncursesw-include-dir=DIR Set directory containing the include files for use with -lncursesw, when it isn't installed as the default curses library. If DIR is "none", then no special ncursesw include files are used. --without-ncursesw-include-dir Equivalent to --with-ncursesw-include-dir=none])dnl if test "${with_ncursesw_include_dir+set}" = set; then AC_MSG_CHECKING(for ncursesw include dir) case "$with_ncursesw_include_dir" in no|none) hurd_cv_includedir_ncursesw=none;; *) hurd_cv_includedir_ncursesw="$with_ncursesw_include_dir";; esac AC_MSG_RESULT($hurd_cv_includedir_ncursesw) else AC_CACHE_CHECK(for ncursesw include dir, hurd_cv_includedir_ncursesw, for D in $includedir $prefix/include /local/include /usr/local/include /include /usr/include; do if test -d $D/ncursesw; then hurd_cv_includedir_ncursesw="$D/ncursesw" break fi test "$hurd_cv_includedir_ncursesw" \ || hurd_cv_includedir_ncursesw=none done) fi if test "$hurd_cv_includedir_ncursesw" = none; then NCURSESW_INCLUDE="" else NCURSESW_INCLUDE="-I$hurd_cv_includedir_ncursesw" fi fi fi AC_SUBST(NCURSESW_INCLUDE) AC_SUBST(LIBNCURSESW)])dnl