cpp
[m6w6/ext-psi] / m4 / psi / psi.m4
index 984aa6064743c765f5fec1fd99a88c61359ed4af..92d8babcd21d1acad90ab3d6a26eb379d0f63d8f 100644 (file)
@@ -20,14 +20,14 @@ AC_DEFUN(PSI_CONFIG_INIT, [
        ])
        
        AC_MSG_CHECKING(for preprocessor defaults)
-       psi_cpp_predef=`$CPP -Wp,-dM - </dev/null`
-       psi_cpp_search=`$CPP -Wp,-v - </dev/null 2>&1 >/dev/null \
+       psi_cpp_predef=`$CPP -Wp,-dM $CPPFLAGS -D_GNU_SOURCE - </dev/null`
+       psi_cpp_search=`$CPP -Wp,-v $CPPFLAGS -D_GNU_SOURCE - </dev/null 2>&1 >/dev/null \
                | $AWK '
                        /include.*search.*start/ { 
                                capture = 1
                                next
                        }
-                       /[Ee]nd.*search/ {
+                       /@<:@Ee@:>@nd.*search/ {
                                capture = 0
                        }
                        {