changeset 23815:ee4e0332a2f6

Change ggi and SDL tests so that linking problems with --enable-static are more likely to be detected.
author reimar
date Fri, 20 Jul 2007 21:27:17 +0000
parents ddb9e516fab8
children f1a98937d141
files configure
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jul 20 18:17:58 2007 +0000
+++ b/configure	Fri Jul 20 21:27:17 2007 +0000
@@ -4154,7 +4154,7 @@
 if test "$_ggi" = auto ; then
   cat > $TMPC << EOF
 #include <ggi/ggi.h>
-int main(void) { return 0; }
+int main(void) { ggiInit(); ggiWmhInit(); return 0; }
 EOF
   _ggi=no
   cc_check -lggi && _ggi=yes
@@ -4606,7 +4606,10 @@
 if test "$_sdl" = auto || test "$_sdl" = yes ; then
   cat > $TMPC << EOF
 #include <SDL.h>
-int main(int argc, char *argv[]) { return 0; }
+int main(int argc, char *argv[]) {
+  SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE);
+  return 0;
+}
 EOF
   _sdl=no
   if "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then