aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xerces-c2/scripts/check-config-options
blob: ad49dd3b1c0adc9df4ca6c780d31329947b3c508 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# $FreeBSD$

rc=0

if test -n "${WITH_NATIVE}"; then
    rc=$(expr $rc + 1)
fi
if test -n "${WITH_ICU}"; then
    rc=$(expr $rc + 1)
fi
if test -n "${WITH_ICONVFBSD}"; then
    rc=$(expr $rc + 1)
fi

if test ${rc} -ne 1; then
    echo "ERROR: please re-run make config and" >&2
    if test ${rc} -gt 1; then
        echo -n "only " >&2
    fi
    echo "select one of the three transcoders." >&2

    exit 254
fi

exit 0

# end