-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure.ac
66 lines (47 loc) · 1.64 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
dnl Process this file with autoconf to produce a configure script.
AC_INIT([xapian-evaluation], [1.5.0], [https://xapian.org/bugs])
AC_PREREQ([2.64])
AM_INIT_AUTOMAKE([1.10.1 -Wportability tar-ustar])
AC_CONFIG_SRCDIR([src/trec_index.cc])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
LT_PREREQ([2.2.6])
LT_INIT
dnl Checks for programs.
AC_PROG_CXX
AC_CANONICAL_HOST
# Checked: freebsd8.0 openbsd4.6 solaris2.9 solaris2.10
case $host_os in
linux* | k*bsd*-gnu | freebsd* | openbsd* | solaris*)
dnl Vanilla libtool sets this to "unknown" which it then handles as "yes".
link_all_deplibs_CXX=no
;;
esac
case $host_os in
linux*)
dnl Extract search path from ldconfig which is more reliable than the way
dnl vanilla libtool extracts them from ld.so.conf.
d=`/sbin/ldconfig -N -X -v 2>&AS_MESSAGE_LOG_FD|$SED 's,^\(/.*\):\( (.*)\)\?$,\1,p;d'|tr '\n' ' '`
test -z "$d" || sys_lib_dlsearch_path_spec=$d
;;
esac
dnl Probe for any options needed to enable C++11 support.
AX_CXX_COMPILE_STDCXX_11
dnl Run tests using the C++ compiler.
AC_LANG_CPLUSPLUS
dnl Enable large file support if possible.
AC_SYS_LARGEFILE
dnl Check for xapian-core.
XO_LIB_XAPIAN([], [], [xapian-config])
dnl We want XAPIAN_CXXFLAGS to be used for configure tests.
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $XAPIAN_CXXFLAGS"
dnl Check for headers.
AC_CHECK_HEADERS([fcntl.h sys/time.h unistd.h utime.h])
dnl Restore CXXFLAGS to those the user specified or autoconf defaulted to.
CXXFLAGS=$save_CXXFLAGS
dnl **************************
dnl * Build the output files *
dnl **************************
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT