]>
Commit | Line | Data |
---|---|---|
36074319 UH |
1 | #!/bin/sh |
2 | ## | |
a986cfff | 3 | ## This file is part of the sigrok-firmware-fx2lafw project. |
36074319 UH |
4 | ## |
5 | ## Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de> | |
6 | ## | |
7 | ## This program is free software; you can redistribute it and/or modify | |
8 | ## it under the terms of the GNU General Public License as published by | |
9 | ## the Free Software Foundation; either version 2 of the License, or | |
10 | ## (at your option) any later version. | |
11 | ## | |
12 | ## This program is distributed in the hope that it will be useful, | |
13 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ## GNU General Public License for more details. | |
16 | ## | |
17 | ## You should have received a copy of the GNU General Public License | |
18 | ## along with this program; if not, write to the Free Software | |
19 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
20 | ## | |
21 | ||
22 | OS=`uname` | |
23 | ||
36074319 UH |
24 | if [ "x$OS" = "xDarwin" ]; then |
25 | if [ -d /sw/share/aclocal ]; then | |
26 | # fink installs aclocal macros here | |
27 | ACLOCAL_DIR="-I /sw/share/aclocal" | |
28 | elif [ -d /opt/local/share/aclocal ]; then | |
29 | # Macports installs aclocal macros here | |
30 | ACLOCAL_DIR="-I /opt/local/share/aclocal" | |
31 | elif [ -d /usr/local/share/aclocal ]; then | |
32 | # Homebrew installs aclocal macros here | |
33 | ACLOCAL_DIR="-I /usr/local/share/aclocal" | |
34 | elif [ -d /usr/share/aclocal ]; then | |
35 | # Xcode installs aclocal macros here | |
36 | ACLOCAL_DIR="-I /usr/share/aclocal" | |
37 | fi | |
36074319 UH |
38 | fi |
39 | ||
40 | echo "Generating build system..." | |
41 | mkdir -p autostuff | |
42 | aclocal ${ACLOCAL_DIR} || exit 1 | |
43 | autoheader || exit 1 | |
44 | automake --add-missing --copy || exit 1 | |
45 | autoconf || exit 1 | |
46 |