From a8831d96bdd3caf44bccbc0356daa8c1195c5c6b Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 4 Feb 2002 15:18:41 +0000 Subject: [w3m-dev 02984] inline image improvements and cleanups * config.h.dist (HAVE_SYMLINK) added * config.h.dist (HAVE_LSTAT): added * configure: symlink() check * configure: lstat() check * fm.h (maxLoadImage): added * form.c (form_write_from_file): s/HAVE_READLINK/HAVE_LSTAT/ * image.c: include * image.c (MAX_LOAD_IMAGE): default 8 * image.c (max_load_image): deleted * image.c (n_load_image): added * image.c (showImageProgress): added * image.c (loadImage): check load image count s/HAVE_READLINK/HAVE_LSTAT/ (HAVE_SYMLINK) showImageProgress * local.c: include s/HAVE_READLINK/HAVE_LSTAT/ * rc.c (CMT_MAX_LOAD_IMAGE): added * rc.c (max_load_image): added * doc/README.img: update * doc-jp/README.img: update * file.c (process_img): pre_int fix From: Hironori Sakamoto --- configure | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 31bafb2..52a7b3d 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: configure,v 1.60 2002/02/03 06:23:37 ukai Exp $ +# $Id: configure,v 1.61 2002/02/04 15:18:41 ukai Exp $ # Configuration. # @@ -1421,6 +1421,23 @@ else def_have_getwd="#undef HAVE_GETWD" fi +####### symlink +cat > _zmachdep.c << EOF +main() +{ + char path[64],lpath[64]; + symlink(path,lpath); +} +EOF +if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +then + echo "You have symlink()." + def_have_symlink="#define HAVE_SYMLINK" +else + echo "You don't have symlink()." + def_have_symlink="#undef HAVE_SYMLINK" +fi + ####### readlink cat > _zmachdep.c << EOF main() @@ -1438,6 +1455,26 @@ else def_have_readlink="#undef HAVE_READLINK" fi +####### lstat +cat > _zmachdep.c << EOF +#include +#include +main() +{ + struct stat st; + char path[64]; + lstat(path,&st); +} +EOF +if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +then + echo "You have lstat()." + def_have_lstat="#define HAVE_LSTAT" +else + echo "You don't have lstat()." + def_have_lstat="#undef HAVE_LSTAT" +fi + ####### setenv cat > _zmachdep.c << EOF #include @@ -2136,7 +2173,9 @@ $def_have_wait3 $def_have_strftime $def_have_getcwd $def_have_getwd +$def_have_symlink $def_have_readlink +$def_have_lstat $def_have_setenv $def_have_putenv $def_have_srand48 -- cgit v1.2.3