Index: openldap-2.4.39/build/openldap.m4 =================================================================== --- openldap-2.4.39.orig/build/openldap.m4 2014-01-25 14:36:15.000000000 +0100 +++ openldap-2.4.39/build/openldap.m4 2015-02-19 10:58:35.128769091 +0100 @@ -328,7 +328,7 @@ AC_DEFUN([OL_BDB_HEADER_VERSION], #endif __db_version DB_VERSION_MAJOR ]) - set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none + set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none ol_cv_bdb_major=${3} ]) case $ol_cv_bdb_major in [[1-9]]*) : ;; *) @@ -344,7 +344,7 @@ AC_CACHE_CHECK([for Berkeley DB minor ve #endif __db_version DB_VERSION_MINOR ]) - set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none + set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none ol_cv_bdb_minor=${3} ]) case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)