--- a/configure
+++ b/configure
@@ -7,22 +7,22 @@
 ##  Copyright 2002 Lucumo   ##
 ##############################
 
-prefix='/usr/local/'
+prefix='@TERMUX_PREFIX@/'
 bindir='$prefix/bin/'
-sbindir='$prefix/sbin/'
+sbindir='$prefix/bin/'
 etcdir='$prefix/etc/bitlbee/'
 mandir='$prefix/share/man/'
 datadir='$prefix/share/bitlbee/'
-config='/var/lib/bitlbee/'
+config='$prefix/var/lib/bitlbee/'
 libdir='$prefix/lib/'
 plugindir='$prefix/lib/bitlbee/'
 includedir='$prefix/include/bitlbee/'
 systemdsystemunitdir=''
-libevent='/usr/'
-pidfile='/var/run/bitlbee.pid'
+libevent='$prefix/'
+pidfile='$prefix/var/run/bitlbee.pid'
 ipcsocket=''
 pcdir='$prefix/lib/pkgconfig'
-systemlibdirs="/lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib"
+systemlibdirs="@TERMUX_PREFIX@/lib"
 sysroot=''
 
 configure_args="$@"
