]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- another try with %zend_zts
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 28 Oct 2005 07:16:40 +0000 (07:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.251

rpm.macros

index 30382c4ab7dae3283357ea85ea810cf399f1b867..6f9d583b48d1386e6f70e1c5dc38b91ac1bad442 100644 (file)
@@ -483,7 +483,7 @@ fi \
 %php_debug                             %(awk '/#define ZEND_DEBUG/{print $3}' %{__php_includedir}/main/php_config.h 2>/dev/null || echo ERROR)
 %zend_module_api               %(awk '/#define ZEND_MODULE_API_NO/{print $3}' %{__php_includedir}/Zend/zend_modules.h 2>/dev/null || echo ERROR)
 %zend_extension_api            %(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' %{__php_includedir}/Zend/zend_extensions.h 2>/dev/null || echo ERROR)
-%zend_zts                              %(grep -c '^#define ZTS 1' %{__php_includedir}/main/php_config.h 2>/dev/null || echo ERROR)
+%zend_zts                              %(Z=$(grep -sc '^#define ZTS 1' /usr/include/php/main/php_config.h); echo ${Z:-ERROR})
 
 # helper macro
 %__php_api_requires() Requires: php(%{expand:%1}) = %{expand:%{%{!?2:%{1}}%{?2}}}
This page took 0.035692 seconds and 4 git commands to generate.