summaryrefslogtreecommitdiff
blob: 0f1e6beb6feb40c5ef8addc29d312d40597d2184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
https://svn.savannah.gnu.org/viewvc/fbi-improved/trunk/configure.ac?r1=1474&r2=1521

--- trunk/configure.ac
+++ trunk/configure.ac
@@ -1128,15 +1128,17 @@
 			fim_handle_sdl='no'
 		fi
         else
-dnl		if test x$fim_cv_want_static == x1 ; then 
-			LIBSDL_CONFIG_FLAGS=--static-libs
-dnl		else
-dnl			LIBSDL_CONFIG_FLAGS=--libs
-dnl		fi
 		AC_MSG_NOTICE([Activating LIBSDL.])
 		fim_handle_sdl='yes'
                 LIBSDL_CXXFLAGS=`$LIBSDL_CONFIG --cflags`
                 CXXFLAGS="$CXXFLAGS $LIBSDL_CXXFLAGS"
+		LIBSDL_CONFIG_FLAGS=--static-libs
+		if $LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS ; then 
+			LIBSDL_CONFIG_FLAGS=--static-libs
+		else
+			LIBSDL_CONFIG_FLAGS=--libs
+		fi
+		AC_MSG_NOTICE([Invoking $LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS.])
                 LIBS="$LIBS `$LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS`"
 		# finish this !
                 #FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS SDLDevice.o"