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

Diff of /hydra/configure.in

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

revision 1.34 by nmav, Sat Nov 16 19:29:58 2002 UTC revision 1.34.2.7 by nmav, Fri Jan 10 08:46:44 2003 UTC
# Line 6  AC_INIT Line 6  AC_INIT
6    
7  AC_CANONICAL_HOST  AC_CANONICAL_HOST
8    
9  SERVER_VERSION="0.1.0"  SERVER_VERSION="0.1.3"
10  AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra])  AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra])
11  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])
12    
# Line 17  AM_CONFIG_HEADER(config.h) Line 17  AM_CONFIG_HEADER(config.h)
17    
18  AM_MAINTAINER_MODE  AM_MAINTAINER_MODE
19    
20    use_smp=yes
21    
22    AC_MSG_CHECKING(whether to include SMP support)
23    AC_ARG_ENABLE(smp, [  --disable-smp           Do not include SMP support],
24     [
25      if test "$enableval" = "yes" ; then
26       use_smp=yes
27      else
28       use_smp=no
29      fi
30     ]
31    )
32    
33    AC_MSG_RESULT($use_smp)
34    
35    if test "$use_smp" = "yes"; then
36     dnl Check for pthreads and do not define ENABLE_SMP
37     dnl if not found
38    
39        ACX_PTHREAD(
40         AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])
41         LIBS="$PTHREAD_LIBS $LIBS"
42         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
43         CC="$PTHREAD_CC"
44        )
45    fi
46    
47  dnl Checks for programs.  dnl Checks for programs.
48  AM_PROG_LEX  AM_PROG_LEX
49  AC_PROG_YACC  AC_PROG_YACC
# Line 41  AC_CHECK_TYPE( off_t, Line 68  AC_CHECK_TYPE( off_t,
68    AC_DEFINE( HAVE_OFF_T, 1, [have off_t type]),,    AC_DEFINE( HAVE_OFF_T, 1, [have off_t type]),,
69  )  )
70    
71  use_long_offsets=no  use_long_offsets=yes
72  AC_MSG_CHECKING([whether to enable long offsets usage])  AC_MSG_CHECKING([whether to enable long offsets usage])
73  AC_ARG_ENABLE(long-offsets,  AC_ARG_ENABLE(long-offsets,
74   [  --enable-long-offsets   enable the use of long (64bit) offsets in 32 bit systems],   [  --disable-long-offsets  disable the use of long (64bit) offsets in 32 bit systems],
75   [   [
76     if test "$enableval" = "no" ; then     if test "$enableval" = "no" ; then
77       use_long_offsets=no       use_long_offsets=no
# Line 59  AC_MSG_RESULT($use_long_offsets) Line 86  AC_MSG_RESULT($use_long_offsets)
86  if test $use_long_offsets = yes; then  if test $use_long_offsets = yes; then
87    
88   dnl GNU Libc needs this.   dnl GNU Libc needs this.
89   CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"   case $host_os in
90      *linux*)
91         CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
92      ;;
93     *)  ;;
94     esac
95   AC_CHECK_TYPE( off64_t,   AC_CHECK_TYPE( off64_t,
96     AC_DEFINE( HAVE_OFF64_T, 1, [have off64_t type]),,     AC_DEFINE( HAVE_OFF64_T, 1, [have off64_t type]),,
97   )   )
# Line 215  AC_ARG_ENABLE(ssl, [  --disable-ssl Line 247  AC_ARG_ENABLE(ssl, [  --disable-ssl
247  AC_MSG_RESULT($use_ssl)  AC_MSG_RESULT($use_ssl)
248    
249  if test "$use_ssl" = "yes"; then  if test "$use_ssl" = "yes"; then
250    AM_PATH_LIBGNUTLS( 0.5.9,    AM_PATH_LIBGNUTLS( 0.6.0,
251     AC_DEFINE(HAVE_LIBGNUTLS, 1, [Have libgnutls])     AC_DEFINE(HAVE_LIBGNUTLS, 1, [Have libgnutls])
252     LIBS="$LIBS $LIBGNUTLS_LIBS"     LIBS="$LIBS $LIBGNUTLS_LIBS"
253     CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"     CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
# Line 228  if test "$use_ssl" = "yes"; then Line 260  if test "$use_ssl" = "yes"; then
260    
261  fi  fi
262    
 use_smp=yes  
   
 AC_MSG_CHECKING(whether to include SMP support)  
 AC_ARG_ENABLE(smp, [  --disable-smp           Do not include SMP support],  
  [  
   if test "$enableval" = "yes" ; then  
    use_smp=yes  
   else  
    use_smp=no  
   fi  
  ]  
 )  
   
 AC_MSG_RESULT($use_smp)  
   
 if test "$use_smp" = "yes"; then  
     AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])  
     if test -n "$GCC"; then  
        CFLAGS="$CFLAGS -pthread"  
        AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])  
        CFLAGS="$CFLAGS -D_REENTRANT"  
     else  
        AC_CHECK_LIB( pthread, pthread_create, [  
           LIBS="-lpthread $LIBS"  
           AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])  
           CFLAGS="$CFLAGS -D_REENTRANT"  
        ])  
     fi  
 fi  
263    
264  if test "$use_smp" = "yes"; then use_hic=yes  if test "$use_smp" = "yes"; then use_hic=yes
265  else use_hic = no  else use_hic = no
# Line 390  fi Line 393  fi
393  # *so*, make a default makefile that just forces make to call gmake  # *so*, make a default makefile that just forces make to call gmake
394  # or whatever.  # or whatever.
395    
396  AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile examples/Makefile docs/Makefile])  AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile contrib/redhat/Makefile examples/Makefile docs/Makefile])
397    
398  AC_OUTPUT  AC_OUTPUT
399    

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.34.2.7

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26