summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-16 19:59:43 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-16 19:59:43 (EST)
commit067070e2358e2d2ecc26e7877b2b485829eb5402 (patch)
tree4f42699a48ee6ab3db59e928c1b6e2cf0a1a0885
parent9ec97d38b4cb32c90667693de4434f9ee2ea767f (diff)
configure.ac: Don't look for fdisk if sfdisk is found
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
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
]
)