From 7c65b81ed434b1fc27265710f07826d44fe542b9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 17 Feb 2005 23:39:56 +0000 Subject: r5438: Keep new CFLAGS if the compiler accepted them. (This used to be commit d0a6b973307ba3b740f18214f14682495a607c63) --- source4/build/smb_build/public.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/build/smb_build') diff --git a/source4/build/smb_build/public.m4 b/source4/build/smb_build/public.m4 index 6ce57b0083..12238bbcc8 100644 --- a/source4/build/smb_build/public.m4 +++ b/source4/build/smb_build/public.m4 @@ -181,9 +181,9 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG], SMB_EXT_LIB_ENABLE($1, YES) AC_MSG_RESULT(yes), AC_MSG_RESULT(no), + CFLAGS="$OLD_CFLAGS" AC_MSG_WARN([cannot run when cross-compiling])) - CFLAGS="$OLD_CFLAGS" SMB_EXT_LIB($1, [`$PKG_CONFIG --libs-only-l '$2'`], -- cgit