summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
]
)