From c879edc02be2366e1278bb292aaa61b1a81b0c4f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 24 Jun 2018 15:59:36 -0400 Subject: configure.ac: Look for [s]fdisk/mke2fs in /sbin and /usr/sbin --- diff --git a/configure.ac b/configure.ac index e212c05..b3a8285 100644 --- a/configure.ac +++ b/configure.ac @@ -131,6 +131,7 @@ AC_ARG_WITH( fi ] ) +sbin_path="${PATH}${PATH_SEPARATOR}/sbin${PATH_SEPARATOR}/usr/sbin" AC_ARG_WITH( [sfdisk], [AS_HELP_STRING([--with-sfdisk=PATH], [path to sfdisk utility])], @@ -151,7 +152,7 @@ AC_ARG_WITH( esac ], [ - AC_PATH_PROG([SFDISK], [sfdisk]) + AC_PATH_PROG([SFDISK], [sfdisk], [], [${sbin_path}]) if test -z "${SFDISK}"; then HAVE_SFDISK=false else @@ -181,7 +182,7 @@ AC_ARG_WITH( ], [ if ! ${HAVE_SFDISK}; then - AC_PATH_PROG([FDISK], [fdisk]) + AC_PATH_PROG([FDISK], [fdisk], [], [${sbin_path}]) if test -z "${FDISK}"; then HAVE_FDISK=false else @@ -215,7 +216,7 @@ AC_ARG_WITH( esac ], [ - AC_PATH_PROG([MKE2FS], [mke2fs]) + AC_PATH_PROG([MKE2FS], [mke2fs], [], [${sbin_path}]) if test -z "${MKE2FS}"; then AC_MSG_ERROR([mke2fs not found]) fi -- cgit v0.9.1