| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 set -e |
| 4 |
| 3 # use libtoolize if available, otherwise look for glibtoolize (darwin) | 5 # use libtoolize if available, otherwise look for glibtoolize (darwin) |
| 4 if (libtoolize --version) < /dev/null > /dev/null 2>&1; then | 6 if (libtoolize --version) < /dev/null > /dev/null 2>&1; then |
| 5 LIBTOOLIZE=libtoolize | 7 LIBTOOLIZE=libtoolize |
| 6 elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then | 8 elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then |
| 7 LIBTOOLIZE=glibtoolize | 9 LIBTOOLIZE=glibtoolize |
| 8 else | 10 else |
| 9 echo "libtoolize or glibtoolize was not found! Please install libtool." | 11 echo "libtoolize or glibtoolize was not found! Please install libtool." 1>&2 |
| 10 exit | 12 exit 1 |
| 11 fi | 13 fi |
| 12 | 14 |
| 13 $LIBTOOLIZE --copy --force || exit 1 | 15 $LIBTOOLIZE --copy --force || exit 1 |
| 14 aclocal || exit 1 | 16 aclocal || exit 1 |
| 15 autoheader || exit 1 | 17 autoheader || exit 1 |
| 16 autoconf || exit 1 | 18 autoconf || exit 1 |
| 17 automake -a -c || exit 1 | 19 automake -a -c || exit 1 |
| 18 ./configure --enable-maintainer-mode --enable-debug-log \ | |
| 19 --enable-examples-build $* | |
| OLD | NEW |