From b4cb8ab9b0553572a2910b31cacb737cac0ee6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 11 Feb 2004 16:51:59 +0000 Subject: [PATCH] If there is a --with-PACKAGE=path but no --with-PACKAGE-config, go seach for path/PACKEGE-config and use it if it exists. Inspired by Harald Barth git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13328 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/test-package.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cf/test-package.m4 b/cf/test-package.m4 index eb6b1b241..f8372a8bc 100644 --- a/cf/test-package.m4 +++ b/cf/test-package.m4 @@ -67,6 +67,14 @@ fi $1_cflags= $1_libs= +case "$with_$1_config" in +yes|no|""|"$7") + if test -f $with_$1/bin/$7 ; then + with_$1_config=$with_$1/bin/$7 + fi + ;; +esac + case "$with_$1_config" in yes|no|"") ;;