Do not reject FreeBSD framebuffer
This reverts commit cb3118b389.
cf. https://github.com/tats/w3m/pull/221
			
			
This commit is contained in:
		| @@ -776,7 +776,6 @@ AC_DEFUN([AC_W3M_IMAGE], | |||||||
|    fi |    fi | ||||||
|   fi |   fi | ||||||
|   if test x"$fb" = xyes; then |   if test x"$fb" = xyes; then | ||||||
|    AC_CHECK_HEADER(linux/fb.h, [], [AC_MSG_ERROR([linux/fb.h not found])]) |  | ||||||
|    if test x"$have_imlib2" = xyes; then |    if test x"$have_imlib2" = xyes; then | ||||||
|      AC_DEFINE(USE_W3MIMG_FB) |      AC_DEFINE(USE_W3MIMG_FB) | ||||||
|      IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" |      IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" | ||||||
|   | |||||||
							
								
								
									
										266
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										266
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -7441,135 +7441,6 @@ fi | |||||||
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bgcolor" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bgcolor" >&5 | ||||||
| $as_echo "$enable_bgcolor" >&6; } | $as_echo "$enable_bgcolor" >&6; } | ||||||
|  |  | ||||||
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |  | ||||||
| $as_echo_n "checking for ANSI C header files... " >&6; } |  | ||||||
| if ${ac_cv_header_stdc+:} false; then : |  | ||||||
|   $as_echo_n "(cached) " >&6 |  | ||||||
| else |  | ||||||
|   cat confdefs.h - <<_ACEOF >conftest.$ac_ext |  | ||||||
| /* end confdefs.h.  */ |  | ||||||
| #include <stdlib.h> |  | ||||||
| #include <stdarg.h> |  | ||||||
| #include <string.h> |  | ||||||
| #include <float.h> |  | ||||||
|  |  | ||||||
| int |  | ||||||
| main () |  | ||||||
| { |  | ||||||
|  |  | ||||||
|   ; |  | ||||||
|   return 0; |  | ||||||
| } |  | ||||||
| _ACEOF |  | ||||||
| if ac_fn_c_try_compile "$LINENO"; then : |  | ||||||
|   ac_cv_header_stdc=yes |  | ||||||
| else |  | ||||||
|   ac_cv_header_stdc=no |  | ||||||
| fi |  | ||||||
| rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |  | ||||||
|  |  | ||||||
| if test $ac_cv_header_stdc = yes; then |  | ||||||
|   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |  | ||||||
|   cat confdefs.h - <<_ACEOF >conftest.$ac_ext |  | ||||||
| /* end confdefs.h.  */ |  | ||||||
| #include <string.h> |  | ||||||
|  |  | ||||||
| _ACEOF |  | ||||||
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |  | ||||||
|   $EGREP "memchr" >/dev/null 2>&1; then : |  | ||||||
|  |  | ||||||
| else |  | ||||||
|   ac_cv_header_stdc=no |  | ||||||
| fi |  | ||||||
| rm -f conftest* |  | ||||||
|  |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| if test $ac_cv_header_stdc = yes; then |  | ||||||
|   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |  | ||||||
|   cat confdefs.h - <<_ACEOF >conftest.$ac_ext |  | ||||||
| /* end confdefs.h.  */ |  | ||||||
| #include <stdlib.h> |  | ||||||
|  |  | ||||||
| _ACEOF |  | ||||||
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |  | ||||||
|   $EGREP "free" >/dev/null 2>&1; then : |  | ||||||
|  |  | ||||||
| else |  | ||||||
|   ac_cv_header_stdc=no |  | ||||||
| fi |  | ||||||
| rm -f conftest* |  | ||||||
|  |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| if test $ac_cv_header_stdc = yes; then |  | ||||||
|   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |  | ||||||
|   if test "$cross_compiling" = yes; then : |  | ||||||
|   : |  | ||||||
| else |  | ||||||
|   cat confdefs.h - <<_ACEOF >conftest.$ac_ext |  | ||||||
| /* end confdefs.h.  */ |  | ||||||
| #include <ctype.h> |  | ||||||
| #include <stdlib.h> |  | ||||||
| #if ((' ' & 0x0FF) == 0x020) |  | ||||||
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |  | ||||||
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |  | ||||||
| #else |  | ||||||
| # define ISLOWER(c) \ |  | ||||||
| 		   (('a' <= (c) && (c) <= 'i') \ |  | ||||||
| 		     || ('j' <= (c) && (c) <= 'r') \ |  | ||||||
| 		     || ('s' <= (c) && (c) <= 'z')) |  | ||||||
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |  | ||||||
| int |  | ||||||
| main () |  | ||||||
| { |  | ||||||
|   int i; |  | ||||||
|   for (i = 0; i < 256; i++) |  | ||||||
|     if (XOR (islower (i), ISLOWER (i)) |  | ||||||
| 	|| toupper (i) != TOUPPER (i)) |  | ||||||
|       return 2; |  | ||||||
|   return 0; |  | ||||||
| } |  | ||||||
| _ACEOF |  | ||||||
| if ac_fn_c_try_run "$LINENO"; then : |  | ||||||
|  |  | ||||||
| else |  | ||||||
|   ac_cv_header_stdc=no |  | ||||||
| fi |  | ||||||
| rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |  | ||||||
|   conftest.$ac_objext conftest.beam conftest.$ac_ext |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| fi |  | ||||||
| fi |  | ||||||
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |  | ||||||
| $as_echo "$ac_cv_header_stdc" >&6; } |  | ||||||
| if test $ac_cv_header_stdc = yes; then |  | ||||||
|  |  | ||||||
| $as_echo "#define STDC_HEADERS 1" >>confdefs.h |  | ||||||
|  |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| # On IRIX 5.3, sys/types and inttypes.h are conflicting. |  | ||||||
| for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |  | ||||||
| 		  inttypes.h stdint.h unistd.h |  | ||||||
| do : |  | ||||||
|   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |  | ||||||
| ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |  | ||||||
| " |  | ||||||
| if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |  | ||||||
|   cat >>confdefs.h <<_ACEOF |  | ||||||
| #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |  | ||||||
| _ACEOF |  | ||||||
|  |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| done |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -7813,14 +7684,6 @@ $as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;} | |||||||
|    fi |    fi | ||||||
|   fi |   fi | ||||||
|   if test x"$fb" = xyes; then |   if test x"$fb" = xyes; then | ||||||
|    ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" |  | ||||||
| if test "x$ac_cv_header_linux_fb_h" = xyes; then : |  | ||||||
|  |  | ||||||
| else |  | ||||||
|   as_fn_error $? "linux/fb.h not found" "$LINENO" 5 |  | ||||||
| fi |  | ||||||
|  |  | ||||||
|  |  | ||||||
|    if test x"$have_imlib2" = xyes; then |    if test x"$have_imlib2" = xyes; then | ||||||
|      $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h |      $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h | ||||||
|  |  | ||||||
| @@ -8939,6 +8802,135 @@ fi | |||||||
|  |  | ||||||
|  done |  done | ||||||
|  |  | ||||||
|  | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||||||
|  | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||||
|  | if ${ac_cv_header_stdc+:} false; then : | ||||||
|  |   $as_echo_n "(cached) " >&6 | ||||||
|  | else | ||||||
|  |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||||
|  | /* end confdefs.h.  */ | ||||||
|  | #include <stdlib.h> | ||||||
|  | #include <stdarg.h> | ||||||
|  | #include <string.h> | ||||||
|  | #include <float.h> | ||||||
|  |  | ||||||
|  | int | ||||||
|  | main () | ||||||
|  | { | ||||||
|  |  | ||||||
|  |   ; | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
|  | _ACEOF | ||||||
|  | if ac_fn_c_try_compile "$LINENO"; then : | ||||||
|  |   ac_cv_header_stdc=yes | ||||||
|  | else | ||||||
|  |   ac_cv_header_stdc=no | ||||||
|  | fi | ||||||
|  | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||||
|  |  | ||||||
|  | if test $ac_cv_header_stdc = yes; then | ||||||
|  |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||||
|  |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||||
|  | /* end confdefs.h.  */ | ||||||
|  | #include <string.h> | ||||||
|  |  | ||||||
|  | _ACEOF | ||||||
|  | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||||
|  |   $EGREP "memchr" >/dev/null 2>&1; then : | ||||||
|  |  | ||||||
|  | else | ||||||
|  |   ac_cv_header_stdc=no | ||||||
|  | fi | ||||||
|  | rm -f conftest* | ||||||
|  |  | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | if test $ac_cv_header_stdc = yes; then | ||||||
|  |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||||
|  |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||||
|  | /* end confdefs.h.  */ | ||||||
|  | #include <stdlib.h> | ||||||
|  |  | ||||||
|  | _ACEOF | ||||||
|  | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||||
|  |   $EGREP "free" >/dev/null 2>&1; then : | ||||||
|  |  | ||||||
|  | else | ||||||
|  |   ac_cv_header_stdc=no | ||||||
|  | fi | ||||||
|  | rm -f conftest* | ||||||
|  |  | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | if test $ac_cv_header_stdc = yes; then | ||||||
|  |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||||
|  |   if test "$cross_compiling" = yes; then : | ||||||
|  |   : | ||||||
|  | else | ||||||
|  |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||||
|  | /* end confdefs.h.  */ | ||||||
|  | #include <ctype.h> | ||||||
|  | #include <stdlib.h> | ||||||
|  | #if ((' ' & 0x0FF) == 0x020) | ||||||
|  | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||||
|  | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||||
|  | #else | ||||||
|  | # define ISLOWER(c) \ | ||||||
|  | 		   (('a' <= (c) && (c) <= 'i') \ | ||||||
|  | 		     || ('j' <= (c) && (c) <= 'r') \ | ||||||
|  | 		     || ('s' <= (c) && (c) <= 'z')) | ||||||
|  | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||||
|  | int | ||||||
|  | main () | ||||||
|  | { | ||||||
|  |   int i; | ||||||
|  |   for (i = 0; i < 256; i++) | ||||||
|  |     if (XOR (islower (i), ISLOWER (i)) | ||||||
|  | 	|| toupper (i) != TOUPPER (i)) | ||||||
|  |       return 2; | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
|  | _ACEOF | ||||||
|  | if ac_fn_c_try_run "$LINENO"; then : | ||||||
|  |  | ||||||
|  | else | ||||||
|  |   ac_cv_header_stdc=no | ||||||
|  | fi | ||||||
|  | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||||
|  |   conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | fi | ||||||
|  | fi | ||||||
|  | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||||
|  | $as_echo "$ac_cv_header_stdc" >&6; } | ||||||
|  | if test $ac_cv_header_stdc = yes; then | ||||||
|  |  | ||||||
|  | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||||
|  |  | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||||
|  | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||||
|  | 		  inttypes.h stdint.h unistd.h | ||||||
|  | do : | ||||||
|  |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||||
|  | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||||
|  | " | ||||||
|  | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||||
|  |   cat >>confdefs.h <<_ACEOF | ||||||
|  | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||||
|  | _ACEOF | ||||||
|  |  | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | done | ||||||
|  |  | ||||||
|  |  | ||||||
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library exists" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library exists" >&5 | ||||||
| $as_echo_n "checking GC library exists... " >&6; } | $as_echo_n "checking GC library exists... " >&6; } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user