#3 variuos fixes
Merged 2 years ago by andyp. Opened 2 years ago by fabbione.

file modified
+10
@@ -53,6 +53,10 @@ 

  fi

  

  AC_PROG_CC

+ AC_PROG_CC_C99

+ if test "x$ac_cv_prog_cc_c99" = "xno"; then

+ 	AC_MSG_ERROR(["C99 support is required"])

+ fi

  AM_PROG_CC_C_O

  AC_PROG_LN_S

  AC_PROG_INSTALL
@@ -128,6 +132,12 @@ 

              [], [with_udevdir=\${prefix}/lib/udev])

  AC_SUBST([udevdir], [$with_udevdir])

  

+ AC_ARG_WITH([testvol],

+             AS_HELP_STRING([--with-testvol=FILE],

+ 			   [path to testvol (min 20GB sparse file) [default=${abs_top_builddir}/tests/testvol]]),

+             [], [with_testvol=\${abs_top_builddir}/tests/testvol])

+ AC_SUBST([testvol], [$with_testvol])

+ 

  # Checks for header files.

  AC_CHECK_HEADERS([fcntl.h libintl.h limits.h locale.h mntent.h stddef.h sys/file.h sys/ioctl.h sys/mount.h sys/time.h sys/vfs.h syslog.h termios.h])

  AC_CHECK_HEADER([linux/fs.h], [], [AC_MSG_ERROR([Unable to find linux/fs.h])])

file modified
+1 -2
@@ -7,8 +7,7 @@ 

  	$(TESTSUITE_AT) \

  	$(TESTSCRIPTS) \

  	package.m4 \

- 	atlocal \

- 	atconfig

+ 	atlocal.in

  

  DISTCLEANFILES = \

  	atlocal \

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- GFS_TGT="$abs_builddir/testvol"

+ GFS_TGT="@testvol@"

  GFS_TGT_SZ=20

  GFS_MKFS="mkfs.gfs2 -O -D"

  

  • Fix build failure on centos7/rhel7
  • allow testvol location to be configurable (CI sets it to /dev/shm for speed)
  • Fix a minor make dist issue with tests/ files

Pull-Request has been merged by andyp

2 years ago