diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-02 13:38:27 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-02 13:38:27 +0000 |
commit | 4df1759a3636108839f9533268c8ce1b7156e132 (patch) | |
tree | c8ce12529845eecb930907829ca1ad3805f79628 /configure.ac | |
parent | fcaec2c34641a5dc3da7423e81ad7b1415fe078d (diff) | |
download | mana-4df1759a3636108839f9533268c8ce1b7156e132.tar.gz mana-4df1759a3636108839f9533268c8ce1b7156e132.tar.bz2 mana-4df1759a3636108839f9533268c8ce1b7156e132.tar.xz mana-4df1759a3636108839f9533268c8ce1b7156e132.zip |
Added check for pthread library (needed for FreeBSD, still needs to be checked
on MacOS X) and some cleanups.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 53631d9c..d34fa856 100755 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,9 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET # Checks for libraries +AC_CHECK_LIB([pthread], [pthread_create], , +AC_MSG_ERROR([ *** Unable to find pthread library ])) + AC_CHECK_LIB([guichan], [gcnGuichanVersion], , AC_MSG_ERROR([ *** Unable to find Guichan library (guichan.sf.net)])) @@ -86,7 +89,7 @@ fi AC_PATH_PROG(LIBSDL_CONFIG, sdl-config) if test -n "$LIBSDL_CONFIG"; then - LIBSDL_LIBS="`$LIBSDL_CONFIG --libs` -lSDL_image -lSDL_mixer -lpthread " + LIBSDL_LIBS="`$LIBSDL_CONFIG --libs` -lSDL_image -lSDL_mixer" LIBSDL_CFLAGS="`$LIBSDL_CONFIG --cflags`" AC_SUBST(LIBSDL_LIBS) AC_SUBST(LIBSDL_CFLAGS) |