mirror of
https://github.com/troglobit/finit.git
synced 2026-10-25 12:04:36 +00:00
Add --with-libite=PATH to configure script to use external libite
This commit makes it possible to build Finit with an external libite. Without this configure script option the libite submodule is used. With an external libite we make sure to set the SONAME to libite.so.2 to prevent runtime ABI issues with older libite versions. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
c354d0e7e6
commit
1f84edfb8c
2 files changed
+40
-6
No files matched your search
@@ -91,6 +91,12 @@ result()
|
||||
echo "Inetd : DISABLED"
|
||||
fi
|
||||
|
||||
if [ x"$libite" = x"" ]; then
|
||||
echo "Libite (LITE) : Built-in"
|
||||
else
|
||||
echo "Libite (LITE) : $libite + {/lib, /include}"
|
||||
fi
|
||||
|
||||
if [ $verbose -ne 1 ]; then
|
||||
echo "Quiet Finit : YES"
|
||||
else
|
||||
@@ -151,6 +157,8 @@ usage()
|
||||
echo " --with-username=USER User for 'startx' .conf option, default: root"
|
||||
echo " --with-hostname=NAME Hostname, if /etc/hostname is missing, default: noname"
|
||||
echo " --with-runlevel=LEVEL Runlevel to switch to after bootstrap (S), default: 2"
|
||||
echo " --with-libite=PATH Look for libite in PATH/include and PATH/lib"
|
||||
echo " This is for disabling the use of built-in libite."
|
||||
echo
|
||||
echo " --enable-embedded Embedded defaults, BusBox getty, mdev etc."
|
||||
echo " --enable-dbus Enable D-Bus plugin. Note: install plugin as well!"
|
||||
@@ -251,6 +259,10 @@ while [ "$*" != "" ]; do
|
||||
runlevel="$arg"
|
||||
;;
|
||||
|
||||
with-libite)
|
||||
libite="$arg"
|
||||
;;
|
||||
|
||||
enable-debug)
|
||||
debug=1
|
||||
;;
|
||||
@@ -349,8 +361,20 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
echo >> config.mk
|
||||
echo "export libdir plugindir incdir CPPFLAGS LDFLAGS LDLIBS STATIC" >> config.mk
|
||||
if [ x"$libite" != x"" ]; then
|
||||
echo "LIBITE = $libite" >> config.mk
|
||||
echo "CFLAGS += -I\$(LIBITE)/include" >> config.mk
|
||||
echo "LDFLAGS += -L\$(LIBITE)/lib" >> config.mk
|
||||
echo "LDLIBS += -l:libite.so.2" >> config.mk
|
||||
else
|
||||
echo "LDFLAGS += -L\$(TOPDIR)/libite" >> config.mk
|
||||
echo "LDLIBS += -lite" >> config.mk
|
||||
echo "DEPLIBS = libite/libite.a" >> config.mk
|
||||
fi
|
||||
|
||||
echo >> config.mk
|
||||
echo "export libdir plugindir incdir" >> config.mk
|
||||
echo "export CPPFLAGS LDFLAGS LDLIBS STATIC" >> config.mk
|
||||
|
||||
##############################################################################
|
||||
echo "/* Generated by finit configure script. */" > config.h
|
||||
|
||||
Reference in new issue
Block a user