34dd76b48ea01b4e388c631b09443bad9c278d8e
[gentoo.git] / games-strategy / liquidwar6 / files / liquidwar6-0.4.3681-check-headers.patch
1 From: Julian Ospald <hasufell@gentoo.org>
2 Date: Wed Jun  4 16:01:18 UTC 2014
3 Subject: fix header checks
4
5         our multilib wrapped headers are broken shit
6
7 --- a/configure.ac
8 +++ b/configure.ac
9 @@ -55,7 +55,7 @@
10  AC_SUBST(LW6_VERSION_MINOR)
11  
12  dnl Headers, some are optional
13 -AC_CHECK_HEADERS(arpa/inet.h caca.h ctype.h CUnit/CUnit.h CUnit/Automated.h CUnit/CUCurses.h dirent.h errno.h execinfo.h expat.h fcntl.h gc/gc.h gmp.h GL/gl.h GL/glu.h GLES2/gl2.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng16/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h)
14 +AC_CHECK_HEADERS(arpa/inet.h caca.h ctype.h CUnit/CUnit.h CUnit/Automated.h CUnit/CUCurses.h dirent.h errno.h execinfo.h expat.h fcntl.h gc/gc.h gmp.h GL/gl.h GL/glu.h GLES2/gl2.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng16/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h)
15  
16  dnl GNULIB stuff, http://www.gnu.org/software/gnulib/
17  gl_00GNULIB
18 @@ -477,40 +477,42 @@
19  fi
20  SDL_EXTRA="${SDL_EXTRA_CFLAGS} ${SDL_EXTRA_LIBS}"
21  
22 +CFLAGS="$CFLAGS $SDL_EXTRA_CFLAGS"
23 +
24  AC_CHECK_HEADER(SDL/SDL.h, HAVE_SDL_H=1, AC_MSG_WARN([
25  *** Liquid War 6 needs SDL (http://www.libsdl.org/)
26 -]),[${SDL_EXTRA}])
27 +]),[])
28  AC_CHECK_LIB(SDL, SDL_Init, HAVE_LIBSDL=1, AC_MSG_WARN([
29  *** Liquid War 6 needs SDL (http://www.libsdl.org/)
30 -]),[${SDL_EXTRA}])
31 +]),[])
32  
33  AC_CHECK_HEADER(GL/gl.h, HAVE_GL_GL_H=1,AC_MSG_WARN([
34  *** Liquid War 6 needs Mesa (http://www.mesa3d.org/)
35 -]),[${SDL_EXTRA}])
36 +]),[])
37  AC_CHECK_LIB(GL, glBegin, HAVE_LIBGL=1, AC_MSG_WARN([
38  *** Liquid War 6 needs Mesa (http://www.mesa3d.org/)
39 -]),[${SDL_EXTRA}])
40 +]),[])
41  
42  AC_CHECK_HEADER(GL/glu.h, HAVE_GL_GLU_H=1,AC_MSG_WARN([
43  *** Liquid War 6 needs GLU (http://www.mesa3d.org/)
44 -]),[${SDL_EXTRA}])
45 +]),[])
46  AC_CHECK_LIB(GLU, gluBeginCurve, HAVE_LIBGLU=1, AC_MSG_WARN([
47  *** Liquid War 6 needs GLU (http://www.mesa3d.org/)
48 -]),[${SDL_EXTRA}])
49 +]),[])
50  
51  AC_CHECK_HEADER(SDL/SDL_image.h, HAVE_SDL_IMAGE_H=1, AC_MSG_WARN([
52  *** Liquid War 6 needs SDL_image (http://www.libsdl.org/projects/SDL_image/)
53 -]),[${SDL_EXTRA}])
54 +]),[])
55  AC_CHECK_LIB(SDL_image, IMG_Load, HAVE_LIBSDL_IMAGE=1, AC_MSG_WARN([
56  *** Liquid War 6 needs SDL_image (http://www.libsdl.org/projects/SDL_image/)
57 -]),[${SDL_EXTRA}])
58 +]),[])
59  
60  AC_CHECK_HEADER(SDL/SDL_ttf.h, HAVE_SDL_TTF_H=1, AC_MSG_WARN([
61  *** Liquid War 6 needs SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/)
62 -]),[${SDL_EXTRA}])
63 +]),[])
64  AC_CHECK_LIB(SDL_ttf, TTF_Init, HAVE_LIBSDL_TTF=1, AC_MSG_WARN([
65  *** Liquid War 6 needs SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/)
66 -]),[${SDL_EXTRA}])
67 +]),[])
68  
69  AC_ARG_ENABLE([mod-gl1], AS_HELP_STRING([--enable-mod-gl1],[compile mod-gl1 default=yes]), [enable_mod_gl1=$enableval], [enable_mod_gl1=yes])
70