File: autogen.sh

package info (click to toggle)
wmnut 0.70-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 408 kB
  • sloc: ansic: 1,119; makefile: 55; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Pre-configure step for WMNut

if (command -v pkg-config) >/dev/null 2>/dev/null ; then
    NUTVER="`pkg-config --modversion libupsclient`"
    case "$NUTVER" in
        [01].*|2.[01234567].*)
            echo "WARNING: pkg-config finds older NUT ($NUTVER) libraries than required by this WMNut release. You may get build warnings, or have to pass custom ones with configure options!" >&2
            echo "===========" >&2
            ;;
        "") echo "WARNING: pkg-config did not find NUT libraries. You may have to pass custom ones with configure options!" >&2
            echo "===========" >&2
            ;;
    esac
fi

autoreconf -i