aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSeebs <seebs@seebs.net>2018-01-16 19:29:26 -0600
committerSeebs <seebs@seebs.net>2018-01-16 19:40:22 -0600
commit0a3e435085046f535074f498a3de75a7704fb14c (patch)
tree24199cdbe1d5cba07ca9f70c0bcb83af1bac4a2a /configure
parent4a8a71f1e78860262e189ba36a19afca956b81c2 (diff)
downloadpseudo-0a3e435085046f535074f498a3de75a7704fb14c.tar.gz
pseudo-0a3e435085046f535074f498a3de75a7704fb14c.tar.bz2
pseudo-0a3e435085046f535074f498a3de75a7704fb14c.zip
Merge epoll support
Original commit message: The idea came up here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11309 and here: http://lists.openembedded.org/pipermail/openembedded-core/2017-August/141491.html Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> I've adapted this to make epoll a configure-time option; you must use --enable-epoll to get the new behavior. I've also confirmed that it builds both ways and appears to run, and restored the SIGUSR2 functionality (except for the state check) for the epoll case. Signed-off-by: Seebs <seebs@seebs.net>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 22a0692..d7980d7 100755
--- a/configure
+++ b/configure
@@ -25,6 +25,7 @@ opt_arch=x86
opt_bits=
opt_sqlite=/usr
opt_rpath=
+opt_epoll=
opt_memory=
opt_async=
opt_xattr=
@@ -43,6 +44,7 @@ usage()
echo >&2 " [--libdir=...]"
echo >&2 " [--suffix=...]"
echo >&2 " [--enable-memory-db]"
+ echo >&2 " [--enable-epoll]"
echo >&2 " [--enable-xattr]"
echo >&2 " [--enable-xattrdb]"
echo >&2 " [--enable-profiling]"
@@ -116,6 +118,12 @@ do
--enable-profiling=yes | --enable-profiling)
opt_profiling=true
;;
+ --enable-epoll=no)
+ opt_epoll=false
+ ;;
+ --enable-epoll=yes | --enable-epoll)
+ opt_epoll=true
+ ;;
--enable-xattr=no)
opt_xattr=false
;;
@@ -255,6 +263,10 @@ if [ -z "$opt_async" ]; then
opt_async=false
fi
+if [ -z "$opt_epoll" ]; then
+ opt_epoll=false
+fi
+
if $opt_async; then
FORCE_ASYNC="-DPSEUDO_FORCE_ASYNC"
else
@@ -283,6 +295,12 @@ if [ -z "$opt_xattr" ]; then
fi
fi
+if $opt_epoll; then
+ EPOLL="-DPSEUDO_EPOLL"
+else
+ EPOLL=""
+fi
+
if $opt_xattr || $opt_xattrdb; then
if ! $xattr_runs; then
echo >&2 "WARNING: getfattr doesn't work, but xattr-related features requestd."
@@ -322,6 +340,7 @@ touch func_deps.mk
sed -e '
s,@PREFIX@,'"$opt_prefix"',g
+ s,@EPOLL@,'"$EPOLL"',g
s,@XATTR@,'"$opt_xattr"',g
s,@XATTRDB@,'"$opt_xattrdb"',g
s,@PROFILING@,'"$opt_profiling"',g