From 067070e2358e2d2ecc26e7877b2b485829eb5402 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 16 Jan 2016 19:59:43 -0500 Subject: configure.ac: Don't look for fdisk if sfdisk is found --- diff --git a/configure.ac b/configure.ac index 417ff9c..18eafaf 100644 --- a/configure.ac +++ b/configure.ac @@ -180,11 +180,15 @@ AC_ARG_WITH( esac ], [ - AC_PATH_PROG([FDISK], [fdisk]) - if test -z "${FDISK}"; then - HAVE_FDISK=false + if ! ${HAVE_SFDISK}; then + AC_PATH_PROG([FDISK], [fdisk]) + if test -z "${FDISK}"; then + HAVE_FDISK=false + else + HAVE_FDISK=true + fi else - HAVE_FDISK=true + HAVE_FDISK=false fi ] ) -- cgit v0.9.1