Dean M Greer : configure: Don't prepend folder name for SDL.h.
Alexandre Julliard
julliard at winehq.org
Wed Dec 2 15:21:08 CST 2020
Module: wine
Branch: master
Commit: e4fbae832c868e9fcf5a91c58255fe3f4ea1cb30
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e4fbae832c868e9fcf5a91c58255fe3f4ea1cb30
Author: Dean M Greer <gcenx83 at gmail.com>
Date: Wed Dec 2 21:31:15 2020 +0100
configure: Don't prepend folder name for SDL.h.
This fixes pkgconfig SDL2 detection when SDL2 is installed in a non-standard location.
Signed-off-by: Dean M Greer <gcenx83 at gmail.com>
Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 8 ++++----
configure.ac | 2 +-
dlls/winebus.sys/bus_sdl.c | 4 ++--
include/config.h.in | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/configure b/configure
index d025c38934c..d8759253727 100755
--- a/configure
+++ b/configure
@@ -14966,12 +14966,12 @@ $as_echo "$as_me:${as_lineno-$LINENO}: sdl2 cflags: $SDL2_CFLAGS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: sdl2 libs: $SDL2_LIBS" >&5
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS"
-for ac_header in SDL2/SDL.h
+for ac_header in SDL.h
do :
- ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default"
-if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then :
+ ac_fn_c_check_header_mongrel "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
+if test "x$ac_cv_header_SDL_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
-#define HAVE_SDL2_SDL_H 1
+#define HAVE_SDL_H 1
_ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lSDL2" >&5
$as_echo_n "checking for -lSDL2... " >&6; }
diff --git a/configure.ac b/configure.ac
index e823543f1cd..168df52f791 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1712,7 +1712,7 @@ dnl **** Check for libSDL2 ****
if test "x$with_sdl" != "xno"
then
WINE_PACKAGE_FLAGS(SDL2,[sdl2],[-lSDL2],,,
- [AC_CHECK_HEADERS([SDL2/SDL.h],
+ [AC_CHECK_HEADERS([SDL.h],
[WINE_CHECK_SONAME(SDL2,SDL_Init,,,[$SDL2_LIBS],[[libSDL2-2.0*]])])])
fi
WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"],
diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
index 19c6f23e071..fa691011fde 100644
--- a/dlls/winebus.sys/bus_sdl.c
+++ b/dlls/winebus.sys/bus_sdl.c
@@ -27,8 +27,8 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SDL2_SDL_H
-# include <SDL2/SDL.h>
+#ifdef HAVE_SDL_H
+# include <SDL.h>
#endif
#define NONAMELESSUNION
diff --git a/include/config.h.in b/include/config.h.in
index c0d90c48677..c131f8f22bc 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -738,8 +738,8 @@
/* Define to 1 if you have the <scsi/sg.h> header file. */
#undef HAVE_SCSI_SG_H
-/* Define to 1 if you have the <SDL2/SDL.h> header file. */
-#undef HAVE_SDL2_SDL_H
+/* Define to 1 if you have the <SDL.h> header file. */
+#undef HAVE_SDL_H
/* Define to 1 if you have the <Security/Security.h> header file. */
#undef HAVE_SECURITY_SECURITY_H
More information about the wine-cvs
mailing list