diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-04 15:18:41 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-04 15:18:41 +0000 |
commit | a8831d96bdd3caf44bccbc0356daa8c1195c5c6b (patch) | |
tree | 344bb330ff3f5ad7a0e321926d708a376ebc5fe4 /configure | |
parent | indent breaks config.h Makefile parts (diff) | |
download | w3m-a8831d96bdd3caf44bccbc0356daa8c1195c5c6b.tar.gz w3m-a8831d96bdd3caf44bccbc0356daa8c1195c5c6b.zip |
[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 <sys/stat.h>
* 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 <sys/stat.h>
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 <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 41 |
1 files changed, 40 insertions, 1 deletions
@@ -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 <sys/types.h> +#include <sys/stat.h> +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 <stdlib.h> @@ -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 |