Changeset bea6db0 for configure


Ignore:
Timestamp:
2023-03-07T21:43:36Z (21 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
59c9fa4d
Parents:
50d0a72
git-author:
Jelmer Vernooij <jelmer@…> (07-03-23 21:43:36)
git-committer:
GitHub <noreply@…> (07-03-23 21:43:36)
Message:

Fix systemd autodetection (#175)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r50d0a72 rbea6db0  
    160160                                                        $ssl
    161161--external_json_parser=0/1/auto Use External JSON parser $external_json_parser
    162 --systemd=0/1   Enable/disable automatic detection
    163                 of systemd directories                  $systemd
     162--systemd=0/1   Enable/disable systemd                  $systemd
    164163
    165164
     
    752751if [ ! "$systemd" = "0" ]; then
    753752    if ! $PKG_CONFIG --exists systemd ; then
    754         if [ -n "$systemdsystemunitdir" ] || [ $systemd -eq 1 ]; then
     753        if [ $systemd -eq 1 ]; then
    755754            echo "systemd requested but not found"
    756755            exit 1
     
    758757            systemd=0
    759758        fi
     759    elif [ $systemd = "auto" ]; then
     760        systemd=1
    760761    fi
    761762fi
     
    10371038
    10381039if [ "$systemd" = "1" ]; then
    1039         echo '  systemd autodetection enabled.'
    1040 else
    1041         echo '  systemd autodetection disabled.'
     1040        echo '  systemd enabled.'
     1041else
     1042        echo '  systemd disabled.'
    10421043fi
    10431044
Note: See TracChangeset for help on using the changeset viewer.