aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2007-05-29 12:17:14 +0000
committerDai Sato <satodai@w3m.jp>2007-05-29 12:17:14 +0000
commitd4152b113b6bd2d13ec598a3b87e04dbcde002ec (patch)
tree4c85b9107628efa77847a04916c0c3cbce5ccbd7 /configure
parentdelete unused macros, change void to static void. [w3m-dev 04260] (diff)
downloadw3m-d4152b113b6bd2d13ec598a3b87e04dbcde002ec.tar.gz
w3m-d4152b113b6bd2d13ec598a3b87e04dbcde002ec.zip
unbreak sysmouse support. [w3m-dev 04262]
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure38
1 files changed, 37 insertions, 1 deletions
diff --git a/configure b/configure
index 478d1bd..36da158 100755
--- a/configure
+++ b/configure
@@ -7020,7 +7020,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <machine/console.h>
+#include <sys/consio.h>
MOUSE_GETINFO
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
@@ -7047,7 +7047,43 @@ else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <machine/console.h>
+ MOUSE_GETINFO
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ cat >>confdefs.h <<\_ACEOF
+#define USE_SYSMOUSE 1
+_ACEOF
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+rm -f conftest.err conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_ext