TAR=gtar
NPROC=gnproc
LDFLAGS=""
- CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
+ CFLAGS=""
+ export PATH="/opt/csw/bin:/usr/ccs/bin:$PATH"
;;
solaris11)
TAR=gtar
NPROC=nproc
LDFLAGS=""
- CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
+ CFLAGS=""
export PATH="$PATH:/usr/perl5/bin"
;;
;;
esac
-# Set configure options for each build configuration
+# Enter the source directory
+cd "$SRCDIR"
+
+# Run bootstrap in the source directory prior to configure
+./bootstrap
+
+# Get source version from configure script
+eval "$(grep '^PACKAGE_VERSION=' ./configure)"
+
+# Set configure options and environment variables for each build
+# configuration.
CONF_OPTS=""
case "$conf" in
static)
CONF_OPTS="--disable-compiler-tls"
;;
+debug-rcu)
+ echo "Enable RCU sanity checks for debugging"
+ if vergte "$PACKAGE_VERSION" "0.10"; then
+ CONF_OPTS="--enable-rcu-debug"
+ else
+ CFLAGS="$CFLAGS -DDEBUG_RCU"
+ fi
+ ;;
+
*)
echo "Standard build"
CONF_OPTS=""
;;
esac
-
-# Enter the source directory
-cd "$SRCDIR"
-
-# Run bootstrap in the source directory prior to configure
-./bootstrap
-
-# Get source version from configure script
-eval "$(grep '^PACKAGE_VERSION=' ./configure)"
-
-
# Build type
# oot : out-of-tree build
# dist: build via make dist