1 dnl Provides option to change library probes.
3 dnl This file provides RRA_ENABLE_REDUCED_DEPENDS, which adds the configure
4 dnl option --enable-reduced-depends to request that library probes assume
5 dnl shared libraries are in use and dependencies of libraries should not be
6 dnl probed. If this option is given, the shell variable rra_reduced_depends
7 dnl is set to true; otherwise, it is set to false.
9 dnl This macro doesn't do much but is defined separately so that other macros
10 dnl can require it with AC_REQUIRE.
12 dnl Written by Russ Allbery <rra@stanford.edu>
13 dnl Copyright 2005, 2006, 2007
14 dnl The Board of Trustees of the Leland Stanford Junior University
16 dnl This file is free software; the authors give unlimited permission to copy
17 dnl and/or distribute it, with or without modifications, as long as this
18 dnl notice is preserved.
20 AC_DEFUN([RRA_ENABLE_REDUCED_DEPENDS],
21 [rra_reduced_depends=false
22 AC_ARG_ENABLE([reduced-depends],
23 [AS_HELP_STRING([--enable-reduced-depends],
24 [Try to minimize shared library dependencies])],
25 [AS_IF([test x"$enableval" = xyes], [rra_reduced_depends=true])])])