Changeset 08964da for configure


Ignore:
Timestamp:
2023-04-08T21:00:25Z (20 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
612b49d
Parents:
cad74fb
git-author:
Robert Scheck <robert-scheck@…> (08-04-23 21:00:25)
git-committer:
GitHub <noreply@…> (08-04-23 21:00:25)
Message:

Fix ./configure: line 760: [: auto: integer expression expected (#188)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rcad74fb r08964da  
    756756fi
    757757
    758 if [ ! "$systemd" = 0 ]; then
    759     if ! $PKG_CONFIG --exists systemd ; then
    760         if [ $systemd -eq 1 ]; then
     758if [ ! "$systemd" = "0" ]; then
     759    if ! $PKG_CONFIG --exists systemd; then
     760        if [ "$systemd" = "1" ]; then
    761761            echo "systemd requested but not found"
    762762            exit 1
     
    764764            systemd=0
    765765        fi
    766     elif [ $systemd = "auto" ]; then
     766    elif [ "$systemd" = "auto" ]; then
    767767        systemd=1
    768768    fi
     
    771771pkgconf_systemd_var() {
    772772    # First try deprecated variable, use newer variable if not found
    773     if $PKG_CONFIG --print-variables systemd | grep -q $1 ; then
    774         $PKG_CONFIG --variable=$1 systemd
     773    if $PKG_CONFIG --print-variables systemd | grep -q "$1"; then
     774        $PKG_CONFIG --variable="$1" systemd
    775775    else
    776         $PKG_CONFIG --variable=$2 systemd
     776        $PKG_CONFIG --variable="$2" systemd
    777777    fi
    778778}
    779779
    780 if [ "$systemd" -eq 1 ]; then
     780if [ "$systemd" = "1" ]; then
    781781        if [ -z "$systemdsystemunitdir" ]; then
    782782                systemdsystemunitdir=$(pkgconf_systemd_var systemdsystemunitdir systemd_system_unit_dir)
    783783        fi
    784         if [ -z "$sysusersdir" ] ; then
     784        if [ -z "$sysusersdir" ]; then
    785785                sysusersdir=$(pkgconf_systemd_var sysusersdir sysusers_dir)
    786786        fi
Note: See TracChangeset for help on using the changeset viewer.