~ubuntu-branches/ubuntu/gutsy/dansguardian/gutsy-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2005-04-08 21:02:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050408210242-ie5s6v0nbmlinpxn
Tags: 2.8.0.4-2
Added --oknodo to start-stop-daemon to get restarting 
working if it isn't started before (Closes: #303762)
Thanks to Kevin Traas for the patch 

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
installprefixdir=''
39
39
sysconfdir='/etc/dansguardian/'
40
40
sysvdir='/etc/rc.d/init.d/'
41
 
cgidir='/home/httpd/cgi-bin/'
 
41
cgidir='/var/www/cgi-bin/'
42
42
runas_usr='nobody'
43
43
runas_grp='nobody'
44
44
mandir='/usr/man/'
1651
1651
#line 1895 "configure"
1652
1652
#include "confdefs.h"
1653
1653
#include <ctype.h>
1654
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1655
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1654
#define ISLOWER(c) (islower(c))
 
1655
#define TOUPPER(c) (toupper(c))
1656
1656
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1657
 
1657
1658
int main () { int i; for (i = 0; i < 256; i++)
1658
1659
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1659
1660
exit (0); }
2184
2185
  echo $ac_n "(cached) $ac_c" 1>&6
2185
2186
fi
2186
2187
 
2187
 
# Check whether --enable-openssl or --disable-openssl was given.
2188
 
if test "${enable_openssl+set}" = set; then
2189
 
  enableval="$enable_openssl"
2190
 
 
2191
 
  case "$enableval" in
2192
 
  yes)
2193
 
    ac_cv_func_openssl='yes'
2194
 
    ;;
2195
 
  no)
2196
 
    ac_cv_func_openssl='no'
2197
 
    ;;
2198
 
  esac
2199
 
 
2200
 
fi
2201
 
 
2202
2188
 
2203
2189
# Check whether --enable-poll or --disable-poll was given.
2204
2190
if test "${enable_poll+set}" = set; then
2320
2306
fi
2321
2307
 
2322
2308
 
2323
 
echo $ac_n "checking for openssl""... $ac_c" 1>&6
2324
 
echo "configure:2624: checking for openssl" >&5
2325
 
if eval "test \"`echo '$''{'ac_cv_func_openssl'+set}'`\" = set"; then
2326
 
  echo $ac_n "(cached) $ac_c" 1>&6
2327
 
else
2328
 
  cat > conftest.$ac_ext <<EOF
2329
 
#line 2629 "configure"
2330
 
#include "confdefs.h"
2331
 
/* System header to define __stub macros and hopefully few prototypes,
2332
 
    which can conflict with char openssl(); below.  */
2333
 
#include <assert.h>
2334
 
/* Override any gcc2 internal prototype to avoid an error.  */
2335
 
/* We use char because int might match the return type of a gcc2
2336
 
    builtin and then its argument prototype would still apply.  */
2337
 
char openssl();
2338
 
 
2339
 
int main() {
2340
 
 
2341
 
/* The GNU C library defines this for functions which it implements
2342
 
    to always fail with ENOSYS.  Some functions are actually named
2343
 
    something starting with __ and the normal name is an alias.  */
2344
 
#if defined (__stub_openssl) || defined (__stub___openssl)
2345
 
choke me
2346
 
#else
2347
 
openssl();
2348
 
#endif
2349
 
 
2350
 
; return 0; }
2351
 
EOF
2352
 
if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353
 
  rm -rf conftest*
2354
 
  eval "ac_cv_func_openssl=yes"
2355
 
else
2356
 
  echo "configure: failed program was:" >&5
2357
 
  cat conftest.$ac_ext >&5
2358
 
  rm -rf conftest*
2359
 
  eval "ac_cv_func_openssl=no"
2360
 
fi
2361
 
rm -f conftest*
2362
 
fi
2363
 
 
2364
 
if eval "test \"`echo '$ac_cv_func_'openssl`\" = yes"; then
2365
 
  echo "$ac_t""yes" 1>&6
2366
 
  ac_cv_func_openssl='yes'
2367
 
else
2368
 
  echo "$ac_t""no" 1>&6
2369
 
fi
2370
 
 
2371
 
 
2372
2309
echo $ac_n "checking for how to include files in Makefile""... $ac_c" 1>&6
2373
2310
echo "configure:2673: checking for how to include files in Makefile" >&5
2374
2311
 
2548
2485
echo "PROXYUSER = $runas_usr" >>Makefile
2549
2486
echo "PROXYGROUP = $runas_grp" >>Makefile
2550
2487
echo "PIDDIR = $piddir" >>Makefile
 
2488
echo "libdir = /usr/lib" >>Makefile
2551
2489
 
2552
2490
echo "Generating platform.h...."
2553
2491
 
2848
2786
        rm -f dansguardian.conf
2849
2787
fi
2850
2788
 
2851
 
echo "# DansGuardian config file for version 2.7.7" >dansguardian.conf
 
2789
echo "# DansGuardian config file for version 2.8.0" >dansguardian.conf
2852
2790
echo "" >>dansguardian.conf
2853
2791
echo "# **NOTE** as of version 2.7.5 most of the list files are now in dansguardianf1.conf" >>dansguardian.conf
2854
2792
echo "" >>dansguardian.conf
3254
3192
        rm -f dansguardianf1.conf
3255
3193
fi
3256
3194
 
3257
 
echo "# DansGuardian filter group config file for version 2.7.7" >dansguardianf1.conf
 
3195
echo "# DansGuardian filter group config file for version 2.8.0" >dansguardianf1.conf
3258
3196
echo "" >>dansguardianf1.conf
3259
3197
echo "" >>dansguardianf1.conf
3260
3198
 
3403
3341
        rm -f logrotation
3404
3342
fi
3405
3343
echo "#!/bin/sh" >logrotation
3406
 
echo "# DansGuardian logrotation script for version 2.7.7" >>logrotation
 
3344
echo "# DansGuardian logrotation script for version 2.8.0" >>logrotation
3407
3345
echo "" >>logrotation
3408
3346
echo "LOG_DIR=$prefixdir$logdir" >>logrotation
3409
3347
echo "NUM_LOGS=4" >>logrotation