- Timestamp:
- 2022-12-04T17:09:00Z (2 years ago)
- Branches:
- master
- Children:
- 2bd8f39
- Parents:
- 7e90c03
- git-author:
- Björn Bidar <bjorn.bidar@…> (04-12-22 17:09:00)
- git-committer:
- GitHub <noreply@…> (04-12-22 17:09:00)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r7e90c03 r8ca172f 19 19 includedir='$prefix/include/bitlbee/' 20 20 systemdsystemunitdir='' 21 sysusersdir='' 21 22 libevent='/usr/' 22 23 pidfile='/var/run/bitlbee.pid' … … 55 56 56 57 pie=1 58 59 systemd=auto 57 60 58 61 arch=$(uname -s) … … 129 132 --plugindir=... $plugindir 130 133 --systemdsystemunitdir=... $systemdsystemunitdir 134 --sysusersdir $sysusersdir 131 135 --pidfile=... $pidfile 132 136 --config=... $config … … 157 161 $ssl 158 162 --external_json_parser=0/1/auto Use External JSON parser $external_json_parser 163 --systemd=0/1 Enable/disable systemd support $systemd 159 164 160 165 … … 750 755 fi 751 756 752 if [ -z "$systemdsystemunitdir" ]; then 753 if $PKG_CONFIG --exists systemd; then 754 systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 755 fi 756 fi 757 if [ -n "$systemdsystemunitdir" ]; then 758 if [ "$systemdsystemunitdir" != "no" ]; then 759 echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings 760 fi 757 if [ ! "$systemd" = 0 ]; then 758 if ! $PKG_CONFIG --exists systemd ; then 759 if [ -n "$systemdsystemunitdir" ] || [ "$systemd" -eq 1 ]; then 760 echo "systemd requested but not found" 761 exit 1 762 else 763 systemd=0 764 fi 765 fi 766 fi 767 768 pkgconf_systemd_var() { 769 # First try deprecated variable, use newer variable if not found 770 if $PKG_CONFIG --print-variables systemd | grep -q $1 ; then 771 $PKG_CONFIG --variable=$1 systemd 772 else 773 $PKG_CONFIG --variable=$2 systemd 774 fi 775 } 776 777 if [ "$systemd" -eq 1 ]; then 778 if [ -z "$systemdsystemunitdir" ]; then 779 systemdsystemunitdir=$(pkgconf_systemd_var systemdsystemunitdir systemd_system_unit_dir) 780 fi 781 if [ -z "$tmpfiles_dir" ] ; then 782 tmpfilesdir=$(pkgconf_systemd_var tmpfilesdir tmpfiles_dir) 783 fi 784 if [ -z "$sysusersdir" ] ; then 785 sysusersdir=$(pkgconf_systemd_var sysusersdir sysusers_dir) 786 fi 787 788 echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings 789 echo "SYSUSERSDIR=$sysusersdir" >> Makefile.settings 761 790 fi 762 791 … … 1005 1034 fi 1006 1035 1007 if [ -n "$systemdsystemunitdir"]; then1036 if [ "$systemd" -eq 1 ]; then 1008 1037 echo ' systemd enabled.' 1009 1038 else
Note: See TracChangeset
for help on using the changeset viewer.