[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Autoconf-patches] Fix for AC_HEADER_TIOCGWINSZ
From: |
Pavel Roskin |
Subject: |
[Autoconf-patches] Fix for AC_HEADER_TIOCGWINSZ |
Date: |
Tue, 19 Sep 2000 20:16:23 -0400 (EDT) |
Hello!
Macros _AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H doesn't always set the cache
variable ac_cv_sys_tiocgwinsz_in_termios_h inside AC_CACHE_CHECK. Notably,
this variable is never set to "no".
Exactly the same problem exists in _AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL.
AC_HEADER_TIOCGWINSZ assumes those variables to be non-empty and fails
with a shell error, as reported by Nicolas Joly <address@hidden> in
address@hidden
This patch fixes the problem.
Regards,
Pavel Roskin
============================
Index: ChangeLog
--- ChangeLog Tue Sep 19 17:23:25 2000
+++ ChangeLog Tue Sep 19 20:05:20 2000
@@ -0,0 +1,6 @@
+2000-09-19 Pavel Roskin <address@hidden>
+
+ * acspecific.m4 (_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Cache
+ variable wasn't always set inside AC_CACHE_CHECK
+ (_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL): Likewise.
+
Index: acspecific.m4
--- acspecific.m4 Tue Sep 12 11:10:11 2000
+++ acspecific.m4 Tue Sep 19 19:38:18 2000
@@ -559,7 +559,8 @@
yes
#endif
],
- ac_cv_sys_tiocgwinsz_in_termios_h=yes)])
+[ac_cv_sys_tiocgwinsz_in_termios_h=yes],
+[ac_cv_sys_tiocgwinsz_in_termios_h=no])])
])# _AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H
@@ -575,7 +576,8 @@
yes
#endif
],
- ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes)])
+[ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes],
+[ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no])])
])# _AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL
============================
- [Autoconf-patches] Fix for AC_HEADER_TIOCGWINSZ,
Pavel Roskin <=