~mmach/netext73/pkgconf

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: mmach
  • Date: 2024-02-21 19:22:23 UTC
  • Revision ID: netbit73@gmail.com-20240221192223-5l809fiqh21udwrd
1.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl configure.ac
 
2
dnl m4 preprocessor script for autotools
 
3
dnl
 
4
dnl Copyright (c) 2011, 2012, 2013, 2014 pkgconf authors (see AUTHORS).
 
5
dnl
 
6
dnl Permission to use, copy, modify, and/or distribute this software for any
 
7
dnl purpose with or without fee is hereby granted, provided that the above
 
8
dnl copyright notice and this permission notice appear in all copies.
 
9
dnl
 
10
dnl This software is provided 'as is' and without any warranty, express or
 
11
dnl implied.  In no event shall the authors be liable for any damages arising
 
12
dnl from the use of this software.
 
13
 
 
14
AC_PREREQ([2.68])
 
15
AC_INIT([pkgconf], [1.8.1], [https://github.com/pkgconf/pkgconf/issues/new])
 
16
AC_CONFIG_SRCDIR([cli/main.c])
 
17
AC_CONFIG_MACRO_DIR([m4])
 
18
AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"])
 
19
AX_CHECK_COMPILE_FLAG([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
 
20
AX_CHECK_COMPILE_FLAG([-Wformat=2], [CFLAGS="$CFLAGS -Wformat=2"])
 
21
AX_CHECK_COMPILE_FLAG([-std=gnu99], [CFLAGS="$CFLAGS -std=gnu99"], [
 
22
        AX_CHECK_COMPILE_FLAG([-std=c99], [CFLAGS="$CFLAGS -std=c99"])
 
23
])
 
24
AC_CONFIG_HEADERS([libpkgconf/config.h])
 
25
AC_CHECK_FUNCS([strlcpy strlcat strndup])
 
26
AC_CHECK_HEADERS([sys/stat.h])
 
27
AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects])
 
28
AM_SILENT_RULES([yes])
 
29
LT_INIT
 
30
 
 
31
AC_SYS_LARGEFILE
 
32
 
 
33
AC_ARG_WITH([personality-dir],[AC_HELP_STRING([--with-personality-dir],[specify
 
34
             the place where cross-compile personality files will be found])],
 
35
             PERSONALITY_PATH="$withval",
 
36
             PERSONALITY_PATH="${datadir}/pkgconfig/personality.d:${sysconfdir}/pkgconfig/personality.d")
 
37
 
 
38
AC_SUBST([PERSONALITY_PATH])
 
39
 
 
40
AC_ARG_WITH([pkg-config-dir],[AC_HELP_STRING([--with-pkg-config-dir],[specify
 
41
             the place where pc files will be found])],PKG_DEFAULT_PATH="$withval",
 
42
             PKG_DEFAULT_PATH="${libdir}/pkgconfig:${datadir}/pkgconfig")
 
43
 
 
44
AC_SUBST([PKG_DEFAULT_PATH])
 
45
 
 
46
AC_ARG_WITH([system-libdir],[AC_HELP_STRING([--with-system-libdir],[specify the
 
47
             system library directory (default LIBDIR)])],
 
48
             SYSTEM_LIBDIR="$withval", SYSTEM_LIBDIR="${libdir}")
 
49
 
 
50
AC_SUBST([SYSTEM_LIBDIR])
 
51
 
 
52
AC_ARG_WITH([system-includedir],[AC_HELP_STRING([--with-system-includedir],[specify the
 
53
             system include directory (default INCLUDEDIR)])],
 
54
             SYSTEM_INCLUDEDIR="$withval", SYSTEM_INCLUDEDIR="${includedir}")
 
55
 
 
56
AC_SUBST([SYSTEM_INCLUDEDIR])
 
57
 
 
58
AC_PROG_CPP
 
59
AC_PROG_CC
 
60
AC_PROG_INSTALL
 
61
AC_PROG_LN_S
 
62
 
 
63
AC_CONFIG_FILES([Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh])
 
64
AC_OUTPUT