/[hydra]/hydra/configure.in
ViewVC logotype

Diff of /hydra/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by nmav, Thu Sep 26 14:20:20 2002 UTC revision 1.10 by nmav, Sat Sep 28 17:49:13 2002 UTC
# Line 1  Line 1 
1  dnl $Id$  dnl $Id$
2  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
3  AC_PREREQ(2.50)  AC_PREREQ(2.50)
 AC_INIT(src/boa.c)  
4    
5  AC_DEFINE_UNQUOTED(SERVER_VERSION, "0.0.2", [Version of Hydra])  AC_INIT
6    
7    SERVER_VERSION="0.0.3"
8    AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra])
9  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])
10    
11  AM_INIT_AUTOMAKE($SERVER_NAME, $SERVER_VERSION, [nothing here])  AM_INIT_AUTOMAKE(hydra, $SERVER_VERSION, [nothing here])
12    
13  dnl Make config.h  dnl Make config.h
14  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
15    
16    AM_MAINTAINER_MODE
17    
18  dnl Checks for programs.  dnl Checks for programs.
19  AM_PROG_LEX  AM_PROG_LEX
20  AC_PROG_YACC  AC_PROG_YACC
# Line 151  AC_MSG_RESULT($use_ssl) Line 155  AC_MSG_RESULT($use_ssl)
155    
156  if test "$use_ssl" = "yes"; then  if test "$use_ssl" = "yes"; then
157    AM_PATH_LIBGNUTLS( 0.5.8,    AM_PATH_LIBGNUTLS( 0.5.8,
158    AC_DEFINE(HAVE_LIBGNUTLS,1, [Have libgnutls]),     AC_DEFINE(HAVE_LIBGNUTLS, 1, [Have libgnutls]),
159    AC_MSG_WARN([[     LIBS="$LIBS $LIBGNUTLS_LIBS"
160       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
161       AC_DEFINE( ENABLE_SSL, 1, [whether to enable ssl]),
162      AC_MSG_ERROR([[
163     ***     ***
164     *** libgnutls was not found. You may want to get it from     *** libgnutls was not found. You may want to get it from
165     *** ftp://ftp.gnutls.org/pub/gnutls/     *** ftp://ftp.gnutls.org/pub/gnutls/
166    ]]))    ]]))
167    
   LIBS="$LIBS $LIBGNUTLS_LIBS"  
   CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"  
   AC_DEFINE( ENABLE_SSL, 1, [whether to enable ssl])  
168  fi  fi
169    
170  use_smp=yes  use_smp=yes
# Line 183  if test "$use_smp" = "yes"; then Line 187  if test "$use_smp" = "yes"; then
187      AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])      AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])
188      LIBS="-lpthread $LIBS"      LIBS="-lpthread $LIBS"
189    ])    ])
190      CFLAGS="$CFLAGS -D_REENTRANT"
191    fi
192    
193    if test "$use_smp" = "yes"; then use_hic=yes
194    else use_hic = no
195    fi
196    
197    AC_MSG_CHECKING(whether to include HIC (internally handled CGIs) support)
198    AC_ARG_ENABLE(hic, [  --disable-hic           Do not include HIC support],
199     [
200      if test "$enableval" = "yes" ; then
201        if test "$use_smp" = "yes"; then use_hic=yes
202        else use_hic = no
203        fi
204      else
205       use_hic=no
206      fi
207     ]
208    )
209    
210    AC_MSG_RESULT($use_hic)
211    
212    if test "$use_hic" = "yes"; then
213      AC_CHECK_LIB(dl, dlopen,
214       LIBS="$LIBS -ldl"
215       AC_DEFINE( ENABLE_HIC, 1, [whether to use HIC code])
216      )
217  fi  fi
218    
219        
# Line 267  AC_SUBST(SCANDIR) Line 298  AC_SUBST(SCANDIR)
298  AC_CONFIG_FILES([Makefile src/Makefile extras/Makefile contrib/Makefile examples/Makefile docs/Makefile])  AC_CONFIG_FILES([Makefile src/Makefile extras/Makefile contrib/Makefile examples/Makefile docs/Makefile])
299    
300  AC_OUTPUT  AC_OUTPUT
301    
302    echo "**********************************************************"
303    echo ""
304    echo "An example configuration file for hydra can be found at"
305    echo "examples/hydra.conf."
306    echo ""
307    echo "**********************************************************"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.10

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26