X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=configure.in;h=d96ea7a6b561a56039bc55bb8e9eecd026318f26;hp=06cbf68d84da14561081b158dc5253b43b489b80;hb=4a1c090df7a6b35c83f067afacb325b5cb84139a;hpb=1f891156892a4a9f16b13c62baa9471e11994fcd diff --git a/configure.in b/configure.in index 06cbf68d..d96ea7a6 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.34 2002/03/06 20:57:00 morcego Exp $ +dnl $Id: configure.in,v 1.38 2002/03/08 14:13:50 morcego Exp $ dnl dnl Written by and Copyright (C) 2001 the SourceForge dnl IJBSWA team. http://ijbswa.sourceforge.net @@ -28,6 +28,20 @@ dnl or write to the Free Software Foundation, Inc., 59 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl dnl $Log: configure.in,v $ +dnl Revision 1.38 2002/03/08 14:13:50 morcego +dnl Fixing configure, to remove a command not found error. +dnl +dnl Revision 1.37 2002/03/08 12:58:21 oes +dnl Tiny bugfix in AC_ARG_WITH(debug) +dnl +dnl Revision 1.36 2002/03/06 23:50:36 morcego +dnl Will not test for a text browser if we are not using docbook. +dnl +dnl Revision 1.35 2002/03/06 21:55:52 morcego +dnl New configure option: --with-docbook=(yes|no|directory) +dnl Preliminary new platform detection code included. Will work with the +dnl old one for now. No use just trowing it away +dnl dnl Revision 1.34 2002/03/06 20:57:00 morcego dnl Fixing detection of stylesheets on SuSe. dnl @@ -250,13 +264,13 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.34 $) +AC_REVISION($Revision: 1.38 $) AC_INIT(jcc.c) AC_CONFIG_HEADER(config.h) AC_CANONICAL_HOST -dodk=dump -DKPREFIX="none" +dodk=auto +DKPREFIX=none AC_ARG_WITH(docbook, dnl --with-docbook=[[yes|no|directory]] Enable docbook documentation creation @@ -320,7 +334,7 @@ dnl ================================================================= AC_ARG_WITH(debug, [ --with-debug Enable debug mode], [ - if test "x$withval" != "$xno" ; then + if test "x$withval" != "xno" ; then if test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then if test "$GDB"; then @@ -381,8 +395,8 @@ else fi fi -if test $dodk = dump; then - dodk = no +if test $dodk = auto; then + dodk=no if test $target_type = unix; then case "$host_os" in linux* | gnu*) @@ -421,7 +435,7 @@ fi AC_SUBST(WIN_ONLY) dnl Checking which text html browser we have avaliable -if test $target_type = unix; then +if test $dodk != no; then AC_CHECK_PROGS(WDUMP,w3m lynx links,false) if test "$WDUMP" = false; then AC_MSG_ERROR(You need some kind of text browser to continue \(w3m, lynx and links are supported\)) @@ -445,9 +459,12 @@ AC_SUBST(JADEBIN) dnl Checking for the docbook.dsl stylesheet file if test $dodk = yes; then - if test $DKPREFIX = none; then - AC_CHECK_FILE(/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl,DKPREFIX=/usr/share/sgml/docbook/dsssl-stylesheets,AC_CHECK_FILE(/usr/share/sgml/docbkdsl/html/docbook.dsl,DKPREFIX=/usr/share/sgml/docbkdsl)) - fi + if test $DKPREFIX = none; then + AC_CHECK_FILE(/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl, + DKPREFIX=/usr/share/sgml/docbook/dsssl-stylesheets, + AC_CHECK_FILE(/usr/share/sgml/docbkdsl/html/docbook.dsl, + DKPREFIX=/usr/share/sgml/docbkdsl)) + fi fi AC_SUBST(DKPREFIX) @@ -799,6 +816,14 @@ AC_ARG_ENABLE(editor, fi], AC_DEFINE(FEATURE_CGI_EDIT_ACTIONS)) +AC_ARG_ENABLE(no-gifs, +[ --enable-no-gifs Use politically correct PNG format instead of GIF + for built-in images. May not work with all browsers.], +[if test $enableval = yes; then + AC_DEFINE(FEATURE_NO_GIFS) +fi]) + + dnl pcre/pcrs is needed for CGI anyway, so dnl the choice is only between static and dnl dynamic: