summaryrefslogtreecommitdiff
path: root/genqrcode/autogen.sh
blob: ab14d6c040e8f94bcb87125eb3f4e1b9867ff4af (plain)
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
29
30
31
32
33
34
35
#!/bin/sh

set -e

if [ `uname -s` = Darwin ]; then
    LIBTOOLIZE=glibtoolize
else
    LIBTOOLIZE=libtoolize
fi

ACLOCAL_OPT=""
if [ -d /usr/local/share/aclocal ]; then
    ACLOCAL_OPT="-I /usr/local/share/aclocal"
elif [ -d /opt/local/share/aclocal ]; then
    ACLOCAL_OPT="-I /opt/local/share/aclocal"
elif [ -d /usr/share/aclocal ]; then
    ACLOCAL_OPT="-I /usr/share/aclocal"
fi

if [ ! -d use ]; then
    mkdir use
fi

if [ ! -d m4 ]; then
    mkdir m4
fi

autoheader

aclocal $ACLOCAL_OPT

$LIBTOOLIZE --automake --copy
automake --add-missing --copy

autoconf