aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2021-01-29 22:28:31 -0500
committerTheodore Ts'o <tytso@mit.edu>2021-01-29 22:28:31 -0500
commit24487a7fa64bfa92bea21be3ca8c155e5de7438f (patch)
treed98a6625bf2f7c6abafeafe48a56535625c27a02
parent2b0d66bbec7807597673b7e00f2d9ff04439c307 (diff)
downloade2fsprogs-24487a7fa64bfa92bea21be3ca8c155e5de7438f.tar.gz
configure.ac: fix build failure on systems with pthreads && !fuse support
The configure script checks for pthread.h as part of double-checking that the FUSE support works correctly, which implicitly defined HAVE_PHREAD_H. If the FUSE libraries are not present (or fuse support is explicitly disabled), this check doesn't happen and so HAVE_PTHREAD_H is not defined, and this causes a build failure. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 9d41d0693..6b8b7f4b5 100755
--- a/configure
+++ b/configure
@@ -10448,7 +10448,7 @@ fi
done
fi
-for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
+for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h pthread.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
diff --git a/configure.ac b/configure.ac
index 141c4d9c0..42b6f4862 100644
--- a/configure.ac
+++ b/configure.ac
@@ -975,6 +975,7 @@ AC_CHECK_HEADERS(m4_flatten([
malloc.h
mntent.h
paths.h
+ pthread.h
semaphore.h
setjmp.h
signal.h