Vladimir Marek wrote:

> Solaris 9 + SunStudio 12 seems to work fine. Just single nit:
> 
> ./configure says
> ========================================================================
> checking sys/ptem.h presence... yes
> configure: WARNING: sys/ptem.h: present but cannot be compiled
> configure: WARNING: sys/ptem.h:     check for missing prerequisite headers?
> configure: WARNING: sys/ptem.h: see the Autoconf documentation
> configure: WARNING: sys/ptem.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result
> configure: WARNING: sys/ptem.h: in the future, the compiler will take 
> precedence
> ========================================================================
> 
> Reason is that sys/ptem.h needs sys/stream.h being included first ( I
> found it documented here
> http://www.gnu.org/software/autoconf/manual/html_node/Header-Portability.html
> )
> 
> It seems to go away when I modify the configure.in like this, but I'm
> not autoconf expert ...:
> ========================================================================
> --- vim72a/src/configure.in     út črn 24 12:01:39 2008
> +++ vim72ax/src/configure.in    st črn 25 08:56:18 2008
> @@ -2071,10 +2071,14 @@
>         termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h 
> \
>         iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
>         sys/resource.h sys/systeminfo.h locale.h \
> -       sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
> +       sys/stream.h termios.h libc.h sys/statfs.h \
>         poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
>         libgen.h util/debug.h util/msg18n.h frame.h \
>         sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h)
> +AC_CHECK_HEADERS([sys/ptem.h], [], [],
> +[#if defined(sun)
> +#  include <sys/stream.h>
> +#endif])

Looks almost OK.  This should be slightly better:

dnl sys/ptem.h depends on sys/stream.h on Solaris 9
AC_CHECK_HEADERS(sys/ptem.h, [], [],
[#if defined HAVE_SYS_STREAM_H
#  include <sys/stream.h>
#endif])


-- 
From "know your smileys":
 <>:-)  Bishop

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui