~ubuntu-branches/debian/stretch/silversearcher-ag/stretch

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Hajime Mizuno
  • Date: 2014-01-29 23:23:00 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20140129232300-um66iqygxjyuy980
Tags: 0.19.2-1
* new upstream release
* debian/control
  - set Standards-Version: 3.9.5.
* debian/rules
  - add empty "override_dh_auto_test" to skip the test.
    because cram is required for testing, but package does not exist.
* debian/copyright
  - update copyright year to 2013-2014.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([the_silver_searcher], [0.18.1], [https://github.com/ggreer/the_silver_searcher/issues], [the_silver_searcher], [https://github.com/ggreer/the_silver_searcher])
 
1
AC_INIT(
 
2
    [the_silver_searcher],
 
3
    [0.19.2],
 
4
    [https://github.com/ggreer/the_silver_searcher/issues],
 
5
    [the_silver_searcher],
 
6
    [https://github.com/ggreer/the_silver_searcher])
 
7
 
2
8
AC_PROG_CC
3
9
AM_PROG_CC_C_O
4
10
AC_PREREQ([2.59])
7
13
 
8
14
m4_ifdef(
9
15
    [AM_SILENT_RULES],
10
 
    [AM_SILENT_RULES([yes])]
11
 
)
 
16
    [AM_SILENT_RULES([yes])])
12
17
 
13
18
PKG_CHECK_MODULES([PCRE], [libpcre])
14
 
PKG_CHECK_MODULES([LZMA], [liblzma])
15
19
 
16
20
# Run CFLAGS="-g" ./configure if you want debug symbols
17
 
CFLAGS="$CFLAGS $PCRE_CFLAGS -Wall -Wextra -std=c89 -D_GNU_SOURCE"
 
21
CFLAGS="$CFLAGS $PCRE_CFLAGS -Wall -Wextra -std=gnu89 -D_GNU_SOURCE"
18
22
LDFLAGS="$LDFLAGS"
19
23
 
20
24
AC_CHECK_HEADERS([pthread.h zlib.h lzma.h])
21
25
 
 
26
if test "$ac_cv_header_lzma_h" == yes
 
27
then
 
28
    PKG_CHECK_MODULES([LZMA], [liblzma])
 
29
else
 
30
    AC_MSG_WARN([LZMA lib not found. Compiling without compressed search support.])
 
31
fi
 
32
 
22
33
AC_CHECK_DECL([PCRE_CONFIG_JIT], [AC_DEFINE([USE_PCRE_JIT], [], [Use PCRE JIT])], [], [#include <pcre.h>])
23
34
 
24
35
AC_CHECK_MEMBER([struct dirent.d_type], [AC_DEFINE([HAVE_DIRENT_DTYPE], [], [Have dirent struct member d_type])], [], [[#include <dirent.h>]])