~chtsanti/squid/icap-max-connections

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Christos Tsantilas
  • Date: 2009-04-11 09:00:59 UTC
  • mfrom: (9294.1.333 trunk)
  • Revision ID: chtsanti@users.sourceforge.net-20090411090059-8n47p1kyy1cqfqkn
MergeĀ FromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
dnl  Configuration input file for Squid
3
2
dnl
4
3
dnl  $Id$
176
175
)
177
176
AC_SUBST(DEFAULT_LOG_DIR)
178
177
 
 
178
DEFAULT_PIDFILE="$localstatedir/squid.pid"
 
179
AC_ARG_WITH(pidfile,
 
180
  AC_HELP_STRING([--with-pidfile=PATH],
 
181
                 Default location for squid PID file. default: $DEFAULT_PIDFILE),
 
182
 [ case $withval in
 
183
   yes|no)
 
184
     AC_MSG_ERROR( --with-pidfile requires a file PATH. --with-pidfile=PATH )
 
185
     ;;
 
186
   *)
 
187
     DEFAULT_PIDFILE="$withval"
 
188
     ;;
 
189
   esac
 
190
 ]
 
191
)
 
192
AC_SUBST(DEFAULT_PIDFILE)
 
193
 
179
194
dnl Gerben Wierda <Gerben_Wierda@RnA.nl>
180
195
case "$host" in
181
196
    mab-next-nextstep3)
510
525
    STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT"
511
526
fi
512
527
 
 
528
AH_TEMPLATE(HAVE_FS_UFS, "Define to 1 if ufs filesystem module is build")
 
529
AH_TEMPLATE(HAVE_FS_AUFS, "Define to 1 if aufs filesystem module is build")
 
530
AH_TEMPLATE(HAVE_FS_DISKD, "Define to 1 if diskd filesystem module is build")
 
531
AH_TEMPLATE(HAVE_FS_COSS, "Define to 1 if coss filesystem module is build")
 
532
 
 
533
 
513
534
dnl got final STORE_MODULES, build library lists
514
535
dnl This list will not be needed when each fs library has its own Makefile
515
536
STORE_LIBS_TO_BUILD=
517
538
dnl These are the same as STORE_LIBS_TO_BUILD, but with a path
518
539
STORE_LIBS_TO_ADD=
519
540
for fs in $STORE_MODULES; do
520
 
    STORE_LIBS_TO_BUILD="$STORE_LIBS_TO_BUILD lib${fs}.a"
521
 
    STORE_LIBS_TO_ADD="$STORE_LIBS_TO_ADD fs/lib${fs}.a"
 
541
    STORE_LIBS_TO_BUILD="$STORE_LIBS_TO_BUILD lib${fs}.la"
 
542
    STORE_LIBS_TO_ADD="$STORE_LIBS_TO_ADD fs/lib${fs}.la"
 
543
    HAVE_FS_TYPE=HAVE_FS_`echo $fs | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 
 
544
    AC_DEFINE_UNQUOTED($HAVE_FS_TYPE, 1)
522
545
done
523
546
 
524
547
AC_SUBST(STORE_LIBS_TO_BUILD)
1576
1599
dnl Authentication libraries to build
1577
1600
dnl This list will not be needed when each auth library has its own Makefile
1578
1601
AUTH_LIBS_TO_BUILD=
1579
 
dnl Authentication libraries to link authenticating executables with.
1580
 
dnl These are the same as AUTH_LIBS_TO_BUILD, but with a path
1581
 
AUTH_LIBS_TO_ADD=
1582
1602
for module in $AUTH_MODULES; do
1583
 
    AUTH_LIBS_TO_BUILD="$AUTH_LIBS_TO_BUILD lib${module}.a"
1584
 
    AUTH_LIBS_TO_ADD="$AUTH_LIBS_TO_ADD auth/lib${module}.a"
 
1603
    AUTH_LIBS_TO_BUILD="$AUTH_LIBS_TO_BUILD lib${module}.la"
1585
1604
done
1586
1605
AC_SUBST(AUTH_MODULES)
1587
 
AC_SUBST(AUTH_LIBS_TO_ADD)
1588
1606
AC_SUBST(AUTH_LIBS_TO_BUILD)
1589
1607
 
1590
1608
dnl bundled auth modules, in order to have handy defines for the cppunit testsuite
3578
3596
AC_DEFINE(LIBRESOLV_DNS_TTL_HACK,1,[If libresolv.a has been hacked to export _dns_ttl_])],
3579
3597
AC_MSG_RESULT(no))
3580
3598
 
3581
 
AC_MSG_CHECKING(if inet_ntoa() actually works)
3582
 
AC_TRY_RUN([
3583
 
#include <stdlib.h>
3584
 
#include <stdio.h>
3585
 
#include <sys/types.h>
3586
 
#include <netinet/in.h>
3587
 
#include <arpa/inet.h>
3588
 
main ()
3589
 
{
3590
 
        FILE *fp;
3591
 
        struct in_addr in;
3592
 
        in.s_addr = inet_addr("1.2.3.4");
3593
 
        fp = fopen("conftestval", "w"); 
3594
 
        fprintf (fp, "%s\n", inet_ntoa(in));
3595
 
        exit(0);
3596
 
}
3597
 
],
3598
 
INET_NTOA_RESULT=`cat conftestval`,
3599
 
INET_NTOA_RESULT="broken",
3600
 
INET_NTOA_RESULT="broken")
3601
 
if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
3602
 
        AC_MSG_RESULT("yes")
3603
 
else
3604
 
        AC_MSG_RESULT("no")
3605
 
        case "$host_os" in
3606
 
        mingw|mingw32)
3607
 
          AC_MSG_NOTICE([Using Win32 resolver instead.])
3608
 
          ;;
3609
 
        *)
3610
 
          AC_MSG_NOTICE([Will use our own inet_ntoa().])
3611
 
          AC_LIBOBJ(inet_ntoa)
3612
 
#         AC_MSG_WARN([This looks bad, and probably prevents Squid from working.])
3613
 
#         AC_MSG_WARN([If you're on IRIX and using GCC 2.8, you probably need])
3614
 
#         AC_MSG_WARN([to use the IRIX C compiler instead.])
3615
 
#         sleep 10
3616
 
          ;;
3617
 
        esac
3618
 
fi
3619
 
 
3620
3599
if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
3621
3600
AC_MSG_CHECKING(for working statvfs() interface)
3622
3601
AC_TRY_COMPILE([
3806
3785
        scripts/RunAccel \
3807
3786
        src/Makefile \
3808
3787
        src/base/Makefile \
 
3788
        src/acl/Makefile \
3809
3789
        src/fs/Makefile \
3810
3790
        src/repl/Makefile \
3811
3791
        src/auth/Makefile \
3812
3792
        src/adaptation/Makefile \
3813
3793
        src/adaptation/icap/Makefile \
3814
3794
        src/adaptation/ecap/Makefile \
 
3795
        src/esi/Makefile \
3815
3796
        src/icmp/Makefile \
3816
3797
        src/ip/Makefile \
3817
3798
        contrib/Makefile \