]> git.armaanb.net Git - opendoas.git/blobdiff - configure
fix pamcleanup
[opendoas.git] / configure
index f5474ed819c5f824ea4c5c4ddf3d02a9f45cc2b4..48a515a6776312956c716ebf5790a01c0e43cabb 100755 (executable)
--- a/configure
+++ b/configure
@@ -55,7 +55,7 @@ CONFIG_MK=config.mk
 rm -f "$CONFIG_MK"
 
 # : ${VERSION:="$(git describe --dirty --tags --long --always)"}
-: ${VERSION:="0.3"}
+: ${VERSION:="0.3.1"}
 
 cat <<EOF >>$CONFIG_MK
 PREFIX   ?=    ${PREFIX:="/usr"}
@@ -266,16 +266,6 @@ int main(void) {
 check_func "bsd_auth_h" "$src" && \
        have_bsd_auth_h=1
 
-#
-# Check for sys/tree.h.
-#
-src='
-#include <sys/tree.h>
-int main(void) {
-       return 0;
-}'
-check_func "sys_tree_h" "$src"
-
 #
 # Check for pam_appl.h.
 #
@@ -342,3 +332,15 @@ int main(void) {
 check_func "pledge" "$src" || {
        printf 'OPENBSD  +=     pledge-noop.o\n' >>$CONFIG_MK
 }
+
+#
+#
+#
+src='
+#include <stdlib.h>
+int main(void){return 0;}
+__attribute__((__unused__)) static void foo(void){return;}
+'
+check_func "__attribute__" "$src" || {
+       printf 'CFLAGS  +=      -DNO_ATTRIBUTE_ON_RETURN_TYPE=1\n' >>$CONFIG_MK
+}