[ci] Fix netbsd job to upgrade existing packages
[xapian.git] / xapian-maintainer-tools / profiling / configure.ac
blob6381024d25719f25f4e274e11643e21963a591a6
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([xapian-profiler], [1.5.0], [https://xapian.org/bugs])
4 AC_CONFIG_MACRO_DIRS([m4])
5 AM_INIT_AUTOMAKE([foreign -Wall -Wportability -Werror])
6 dnl We don't want to build static libraries, but without this we get a
7 dnl warning from autoreconf.
8 AM_PROG_AR
9 LT_INIT([disable-static])
11 AC_CONFIG_HEADERS([config.h])
12 AC_CONFIG_SRCDIR([profiler.c])
14 AC_PROG_CC
16 AC_CHECK_SIZEOF([int])
17 AC_CHECK_SIZEOF([long])
18 AC_CHECK_SIZEOF([long long])
19 AC_CHECK_SIZEOF([off_t], [], [#include <sys/types.h>])
21 dnl Check for 64-bit versions (AC_CHECK_FUNCS only checks linkage which matches
22 dnl what we need as we want to be able to find the symbol with dlopen).
23 AC_CHECK_FUNCS([open64 pread64 pwrite64])
25 AC_CHECK_FUNCS([fsync fdatasync])
27 AC_SEARCH_LIBS([dlopen], [dl])
29 dnl Enable extra warning flags for building with GCC.
30 if test yes = "$GCC"; then
31   AM_CXXFLAGS="$AM_CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align"
33 AC_SUBST([AM_CXXFLAGS])
35 AC_CONFIG_FILES([Makefile])
36 AC_OUTPUT