1*a3cefe7fSPierre Proncherydnl configure.ac 2*a3cefe7fSPierre Proncherydnl m4 preprocessor script for autotools 3*a3cefe7fSPierre Proncherydnl 4*a3cefe7fSPierre Proncherydnl Copyright (c) 2011, 2012, 2013, 2014 pkgconf authors (see AUTHORS). 5*a3cefe7fSPierre Proncherydnl 6*a3cefe7fSPierre Proncherydnl Permission to use, copy, modify, and/or distribute this software for any 7*a3cefe7fSPierre Proncherydnl purpose with or without fee is hereby granted, provided that the above 8*a3cefe7fSPierre Proncherydnl copyright notice and this permission notice appear in all copies. 9*a3cefe7fSPierre Proncherydnl 10*a3cefe7fSPierre Proncherydnl This software is provided 'as is' and without any warranty, express or 11*a3cefe7fSPierre Proncherydnl implied. In no event shall the authors be liable for any damages arising 12*a3cefe7fSPierre Proncherydnl from the use of this software. 13*a3cefe7fSPierre Pronchery 14*a3cefe7fSPierre ProncheryAC_PREREQ([2.71]) 15*a3cefe7fSPierre ProncheryAC_INIT([pkgconf],[2.5.1],[https://github.com/pkgconf/pkgconf/issues/new]) 16*a3cefe7fSPierre ProncheryAC_CONFIG_SRCDIR([cli/main.c]) 17*a3cefe7fSPierre ProncheryAC_CONFIG_MACRO_DIR([m4]) 18*a3cefe7fSPierre ProncheryAX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"]) 19*a3cefe7fSPierre ProncheryAX_CHECK_COMPILE_FLAG([-Wextra], [CFLAGS="$CFLAGS -Wextra"]) 20*a3cefe7fSPierre ProncheryAX_CHECK_COMPILE_FLAG([-Wformat=2], [CFLAGS="$CFLAGS -Wformat=2"]) 21*a3cefe7fSPierre ProncheryAX_CHECK_COMPILE_FLAG([-std=gnu99], [CFLAGS="$CFLAGS -std=gnu99"], [ 22*a3cefe7fSPierre Pronchery AX_CHECK_COMPILE_FLAG([-std=c99], [CFLAGS="$CFLAGS -std=c99"]) 23*a3cefe7fSPierre Pronchery]) 24*a3cefe7fSPierre ProncheryAC_CONFIG_HEADERS([libpkgconf/config.h]) 25*a3cefe7fSPierre ProncheryAC_CHECK_DECLS([strlcpy, strlcat, strndup], [], [], [[#include <string.h>]]) 26*a3cefe7fSPierre ProncheryAC_CHECK_DECLS([pledge, unveil], [], [], [[#include <unistd.h>]]) 27*a3cefe7fSPierre ProncheryAC_CHECK_DECLS([reallocarray]) 28*a3cefe7fSPierre ProncheryAC_CHECK_HEADERS([sys/stat.h]) 29*a3cefe7fSPierre ProncheryAM_INIT_AUTOMAKE([foreign dist-xz subdir-objects]) 30*a3cefe7fSPierre ProncheryAM_SILENT_RULES([yes]) 31*a3cefe7fSPierre ProncheryLT_INIT 32*a3cefe7fSPierre Pronchery 33*a3cefe7fSPierre ProncheryAC_SYS_LARGEFILE 34*a3cefe7fSPierre Pronchery 35*a3cefe7fSPierre ProncheryAC_ARG_WITH([personality-dir],[AS_HELP_STRING([--with-personality-dir],[specify 36*a3cefe7fSPierre Pronchery the place where cross-compile personality files will be found])], 37*a3cefe7fSPierre Pronchery PERSONALITY_PATH="$withval", 38*a3cefe7fSPierre Pronchery PERSONALITY_PATH="${datadir}/pkgconfig/personality.d:${sysconfdir}/pkgconfig/personality.d") 39*a3cefe7fSPierre Pronchery 40*a3cefe7fSPierre ProncheryAC_SUBST([PERSONALITY_PATH]) 41*a3cefe7fSPierre Pronchery 42*a3cefe7fSPierre ProncheryAC_ARG_WITH([pkg-config-dir],[AS_HELP_STRING([--with-pkg-config-dir],[specify 43*a3cefe7fSPierre Pronchery the place where pc files will be found])],PKG_DEFAULT_PATH="$withval", 44*a3cefe7fSPierre Pronchery PKG_DEFAULT_PATH="${libdir}/pkgconfig:${datadir}/pkgconfig") 45*a3cefe7fSPierre Pronchery 46*a3cefe7fSPierre ProncheryAC_SUBST([PKG_DEFAULT_PATH]) 47*a3cefe7fSPierre Pronchery 48*a3cefe7fSPierre ProncheryAC_ARG_WITH([system-libdir],[AS_HELP_STRING([--with-system-libdir],[specify the 49*a3cefe7fSPierre Pronchery system library directory (default LIBDIR)])], 50*a3cefe7fSPierre Pronchery SYSTEM_LIBDIR="$withval", SYSTEM_LIBDIR="${libdir}") 51*a3cefe7fSPierre Pronchery 52*a3cefe7fSPierre ProncheryAC_SUBST([SYSTEM_LIBDIR]) 53*a3cefe7fSPierre Pronchery 54*a3cefe7fSPierre ProncheryAC_ARG_WITH([system-includedir],[AS_HELP_STRING([--with-system-includedir],[specify the 55*a3cefe7fSPierre Pronchery system include directory (default INCLUDEDIR)])], 56*a3cefe7fSPierre Pronchery SYSTEM_INCLUDEDIR="$withval", SYSTEM_INCLUDEDIR="${includedir}") 57*a3cefe7fSPierre Pronchery 58*a3cefe7fSPierre ProncheryAC_SUBST([SYSTEM_INCLUDEDIR]) 59*a3cefe7fSPierre Pronchery 60*a3cefe7fSPierre ProncheryAC_PROG_CPP 61*a3cefe7fSPierre ProncheryAC_PROG_CC 62*a3cefe7fSPierre ProncheryAC_PROG_INSTALL 63*a3cefe7fSPierre ProncheryAC_PROG_LN_S 64*a3cefe7fSPierre Pronchery 65*a3cefe7fSPierre ProncheryAC_CONFIG_FILES([Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh]) 66*a3cefe7fSPierre ProncheryAC_OUTPUT 67