~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-11-02 23:27:19 UTC
  • mfrom: (0.35.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091102232719-61ay35095dhbuxfm
Tags: 0.95.3+dfsg-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Build-dep on libltdl3-dev instead of libltdl-dev for updating earlier
    releases more easily
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
AC_PREREQ([2.59])
21
21
dnl For a release change [devel] to the real version [0.xy]
22
22
dnl also change VERSION below
23
 
AC_INIT([clamav], [0.95.2], [http://bugs.clamav.net/])
 
23
AC_INIT([ClamAV], [0.95.3], [http://bugs.clamav.net/], [clamav], [http://www.clamav.net/])
24
24
 
25
25
dnl put configure auxiliary into config
26
26
AC_CONFIG_AUX_DIR([config])
32
32
AC_CREATE_TARGET_H([target.h])
33
33
 
34
34
dnl -Wall and -Werror here are NOT CFLAGS, they refer to automake warnings
 
35
dnl enable stealth builds and psychedelic tests
35
36
AM_INIT_AUTOMAKE([-Wall -Wportability -Wno-override -Werror std-options foreign dist-bzip2 no-define])
36
37
 
37
38
dnl we told automake to not define these, since we want to include
38
39
dnl the date in the version
39
40
AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package])
40
41
 
41
 
VERSION="0.95.2"
 
42
dnl change this on a release
 
43
VERSION="0.95.3"
 
44
dnl VERSION="devel-`date +%Y%m%d`"
42
45
AC_DEFINE_UNQUOTED([VERSION],"$VERSION",[Version number of package])
43
46
 
44
47
LC_CURRENT=6
45
 
LC_REVISION=4
 
48
LC_REVISION=5
46
49
LC_AGE=0
47
50
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
48
51
AC_SUBST([LIBCLAMAV_VERSION])
97
100
                                AC_MSG_RESULT([ok (${gcc_version})])
98
101
                                ;;
99
102
                esac
100
 
                # bb #1581 - temporarely add -fno-strict-aliasing so gcc 4.4.0
101
 
                # works correctly
102
 
                CFLAGS="$CFLAGS -fno-strict-aliasing"
 
103
                case "${gcc_version}" in
 
104
                    [[56789]].* | 4.[[3456789]].*)
 
105
                        # bb #1581 - temporarely add -fno-strict-aliasing so gcc 4.4.0
 
106
                        # works correctly
 
107
                        CFLAGS="$CFLAGS -fno-strict-aliasing"
 
108
                        ;;
 
109
                    *)
 
110
                        ;;
 
111
                esac
103
112
        fi
104
113
else
105
114
        CFLAGS="$CFLAGS -O0"
422
431
AC_SEARCH_LIBS([gethostent],[nsl], [(LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl")])
423
432
 
424
433
AC_CHECK_FUNCS([poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat strcasestr inet_ntop setgroups initgroups ctime_r mkstemp mallinfo])
 
434
AC_FUNC_FSEEKO
 
435
 
 
436
dnl Check if anon maps are available, check if we can determine the page size
425
437
AC_C_FUNC_MMAP_PRIVATE
426
 
AC_FUNC_FSEEKO
427
 
 
 
438
AC_C_FUNC_PAGESIZE
428
439
AC_ARG_ENABLE([mempool],[  --disable-mempool       disable memory pools], enable_mempool=$enableval, enable_mempool="yes")
429
440
if test "$enable_mempool" = "yes"; then
430
441
        if test "$ac_cv_c_mmap_private" != "yes"; then
431
442
                AC_MSG_NOTICE([****** mempool support disabled (mmap not available or not usable)])
432
443
        else
433
 
                AC_CHECK_FUNC([getpagesize], [
 
444
                if test "$ac_cv_c_can_get_pagesize" != "yes"; then
 
445
                        AC_MSG_NOTICE([****** mempool support disabled (pagesize cannot be determined)])
 
446
                else
434
447
                        AC_C_FUNC_MMAP_ANONYMOUS
435
448
                        if test "$ac_cv_c_mmap_anonymous" = "no"; then
436
449
                                AC_MSG_NOTICE([****** mempool support disabled (anonymous mmap not available)])
437
450
                        else
438
451
                                AC_DEFINE([USE_MPOOL],1,[enable memory pools])
439
452
                        fi
440
 
                ], [AC_MSG_NOTICE([****** mempool support disabled (getpagesize not available)])])
 
453
                fi
441
454
        fi
442
455
fi
443
456
 
1078
1091
        AC_DEFINE([CL_THREAD_SAFE],1,[thread safe])
1079
1092
        AC_DEFINE([_REENTRANT],1,[thread safe])
1080
1093
    fi
 
1094
    LIBS="$LIBS -lgen"
1081
1095
    AC_DEFINE([C_IRIX],1,[os is irix])
1082
1096
    ;;
1083
1097
interix*)