autogen.sh
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 22 Feb 2015 23:21:32 +0100
changeset 9373 679eb3986e37
parent 7232 6f17d930be39
child 10398 165f98326b5c
permissions -rwxr-xr-x
Emscripten: Fixed out of range joystick device index after joystick disconnect.

After disconnecting a joystick the remaining kept their original device index.
This was not correct because the device index must be a number between 0 and
SDL_NumJoysticks(). It was fixed with ideas from SDL's joystick implementation
for Android. Some range checks were removed as the caller already checks them.
slouken@0
     1
#!/bin/sh
slouken@0
     2
#
slouken@1376
     3
echo "Generating build information using autoconf"
slouken@0
     4
echo "This may take a while ..."
slouken@0
     5
slouken@0
     6
# Regenerate configuration files
slouken@7232
     7
cat acinclude/* >aclocal.m4
slouken@1564
     8
found=false
slouken@1832
     9
for autoconf in autoconf autoconf259 autoconf-2.59
slouken@1564
    10
do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
slouken@1563
    11
done
slouken@1564
    12
if test x$found = xfalse; then
slouken@1564
    13
    echo "Couldn't find autoconf, aborting"
slouken@1564
    14
    exit 1
slouken@1564
    15
fi
slouken@1380
    16
(cd test; sh autogen.sh)
slouken@0
    17
slouken@0
    18
# Run configure for this platform
slouken@0
    19
echo "Now you are ready to run ./configure"