|
1 | 1 | #!/bin/sh |
2 | | -# Script to generate ./configure using the autotools |
| 2 | +# Script to generate configure and Makefile using the autotools. |
3 | 3 | # |
4 | | -# Version: 20230405 |
| 4 | +# Version: 20241013 |
5 | 5 |
|
6 | 6 | EXIT_SUCCESS=0; |
7 | 7 | EXIT_FAILURE=1; |
8 | 8 |
|
9 | | -BINDIR="/usr/bin"; |
| 9 | +BINDIR=`which aclocal`; |
| 10 | +BINDIR=`dirname ${BINDIR}`; |
10 | 11 |
|
11 | | -if ! test -x "${BINDIR}/aclocal"; |
| 12 | +if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/usr/bin"; |
12 | 13 | then |
13 | | - BINDIR="/usr/local/bin"; |
| 14 | + BINDIR="/usr/bin"; |
14 | 15 | fi |
15 | | -if ! test -x "${BINDIR}/aclocal"; |
| 16 | +if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/usr/local/bin"; |
16 | 17 | then |
17 | 18 | BINDIR="/usr/local/bin"; |
18 | 19 | fi |
19 | | -if ! test -x "${BINDIR}/aclocal"; |
| 20 | +if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/opt/local/bin"; |
20 | 21 | then |
21 | 22 | # Default location of MacPorts installed binaries. |
22 | 23 | BINDIR="/opt/local/bin"; |
23 | 24 | fi |
24 | | -if ! test -x "${BINDIR}/aclocal"; |
| 25 | +if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/opt/homebrew/bin"; |
| 26 | +then |
| 27 | + # Default location of Homebrew installed binaries. |
| 28 | + BINDIR="/opt/homebrew/bin"; |
| 29 | +fi |
| 30 | +if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/mingw32/bin"; |
25 | 31 | then |
26 | 32 | # Default location of 32-bit MSYS2-MinGW installed binaries. |
27 | 33 | BINDIR="/mingw32/bin"; |
28 | 34 | fi |
29 | | -if ! test -x "${BINDIR}/aclocal"; |
| 35 | +if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/mingw64/bin"; |
30 | 36 | then |
31 | 37 | # Default location of 64-bit MSYS2-MinGW installed binaries. |
32 | 38 | BINDIR="/mingw64/bin"; |
|
91 | 97 |
|
92 | 98 | exit ${EXIT_FAILURE}; |
93 | 99 | fi |
94 | | - |
95 | 100 | if ! test -x "${AUTOCONF}"; |
96 | 101 | then |
97 | 102 | echo "Unable to find: autoconf"; |
98 | 103 |
|
99 | 104 | exit ${EXIT_FAILURE}; |
100 | 105 | fi |
101 | | - |
102 | 106 | if ! test -x "${AUTOHEADER}"; |
103 | 107 | then |
104 | 108 | echo "Unable to find: autoheader"; |
105 | 109 |
|
106 | 110 | exit ${EXIT_FAILURE}; |
107 | 111 | fi |
108 | | - |
109 | 112 | if ! test -x "${AUTOMAKE}"; |
110 | 113 | then |
111 | 114 | echo "Unable to find: automake"; |
112 | 115 |
|
113 | 116 | exit ${EXIT_FAILURE}; |
114 | 117 | fi |
115 | | - |
116 | 118 | if ! test -x "${AUTOPOINT}"; |
117 | 119 | then |
118 | 120 | echo "Unable to find: autopoint"; |
119 | 121 |
|
120 | 122 | exit ${EXIT_FAILURE}; |
121 | 123 | fi |
122 | | - |
123 | 124 | if ! test -x "${LIBTOOLIZE}"; |
124 | 125 | then |
125 | 126 | echo "Unable to find: libtoolize"; |
|
0 commit comments