]> git.armaanb.net Git - opendoas.git/blobdiff - configure
fix err messages
[opendoas.git] / configure
index d8543218f2e7f2101de3c6fcf5b4326d7f62a57c..1bb827fc8e11cd5f2ef713f5ad152c9ecb10b4d4 100755 (executable)
--- a/configure
+++ b/configure
@@ -264,6 +264,16 @@ 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.
 #
@@ -274,7 +284,7 @@ int main(void) {
 }'
 [ -z "$have_bsd_auth_h" ] && \
        check_func "pam_appl_h" "$src" && {
-               printf 'SRCS     +=     doas_pam.c\n' >>$CONFIG_MK
+               printf 'SRCS     +=     pam.c\n' >>$CONFIG_MK
                printf 'LDFLAGS  +=     -lpam\n' >>$CONFIG_MK
        }