aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2021-06-23 18:09:48 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2021-06-23 18:09:48 +0000
commit303f8c98ee28150285d69bd213970144fe224da3 (patch)
tree3cdbf0cc482229b65481fe30049c92fa3c2f1faa /configure
parentbee57c535c29a01cadfaa660d8c0182288960c33 (diff)
downloadsg3_utils-303f8c98ee28150285d69bd213970144fe224da3.tar.gz
Haiku OS support, add pt function list in sg_pt_dummy.c; add slices to sg_mrq_dd
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@905 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure45
1 files changed, 44 insertions, 1 deletions
diff --git a/configure b/configure
index fd88c2b0..63b95625 100755
--- a/configure
+++ b/configure
@@ -665,6 +665,10 @@ PT_DUMMY_FALSE
PT_DUMMY_TRUE
DEBUG_FALSE
DEBUG_TRUE
+OS_OTHER_FALSE
+OS_OTHER_TRUE
+OS_HAIKU_FALSE
+OS_HAIKU_TRUE
OS_OPENBSD_FALSE
OS_OPENBSD_TRUE
OS_NETBSD_FALSE
@@ -683,6 +687,8 @@ OS_LINUX_FALSE
OS_LINUX_TRUE
OS_FREEBSD_FALSE
OS_FREEBSD_TRUE
+os_libs
+os_cflags
CPP
GETOPT_O_FILES
RT_LIB
@@ -13291,13 +13297,26 @@ printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
check_for_getrandom
CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO";;
- *-*-linux-gnu* | *-*-linux* | *)
+ *-*-linux-gnu* | *-*-linux*)
printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
check_for_linux_sg_v4_hdr
check_for_getrandom
check_for_linux_nvme_headers;;
+ *-*-haiku*)
+
+printf "%s\n" "#define SG_LIB_HAIKU 1" >>confdefs.h
+
+ os_cflags=''
+
+ os_libs=''
+ ;;
+ *)
+
+printf "%s\n" "#define SG_LIB_OTHER 1" >>confdefs.h
+
+ isother=yes;;
esac
# Define platform-specific symbol.
@@ -13373,6 +13392,22 @@ else
OS_OPENBSD_FALSE=
fi
+ if echo $host_os | grep '^haiku' > /dev/null; then
+ OS_HAIKU_TRUE=
+ OS_HAIKU_FALSE='#'
+else
+ OS_HAIKU_TRUE='#'
+ OS_HAIKU_FALSE=
+fi
+
+ if test "x$isother" = "xyes"; then
+ OS_OTHER_TRUE=
+ OS_OTHER_FALSE='#'
+else
+ OS_OTHER_TRUE='#'
+ OS_OTHER_FALSE=
+fi
+
# Check whether --enable-debug was given.
if test ${enable_debug+y}
@@ -13648,6 +13683,14 @@ if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${OS_HAIKU_TRUE}" && test -z "${OS_HAIKU_FALSE}"; then
+ as_fn_error $? "conditional \"OS_HAIKU\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${OS_OTHER_TRUE}" && test -z "${OS_OTHER_FALSE}"; then
+ as_fn_error $? "conditional \"OS_OTHER\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
as_fn_error $? "conditional \"DEBUG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5