|
|
@@ -2046,48 +2046,6 @@ fi
|
|
|
|
|
|
} # ac_fn_cxx_try_link
|
|
|
|
|
|
-# ac_fn_cxx_try_run LINENO
|
|
|
-# ------------------------
|
|
|
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
|
-# that executables *can* be run.
|
|
|
-ac_fn_cxx_try_run ()
|
|
|
-{
|
|
|
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
- if { { ac_try="$ac_link"
|
|
|
-case "(($ac_try" in
|
|
|
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
- *) ac_try_echo=$ac_try;;
|
|
|
-esac
|
|
|
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
-$as_echo "$ac_try_echo"; } >&5
|
|
|
- (eval "$ac_link") 2>&5
|
|
|
- ac_status=$?
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
|
- { { case "(($ac_try" in
|
|
|
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
- *) ac_try_echo=$ac_try;;
|
|
|
-esac
|
|
|
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
-$as_echo "$ac_try_echo"; } >&5
|
|
|
- (eval "$ac_try") 2>&5
|
|
|
- ac_status=$?
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
- test $ac_status = 0; }; }; then :
|
|
|
- ac_retval=0
|
|
|
-else
|
|
|
- $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
|
- $as_echo "$as_me: failed program was:" >&5
|
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
-
|
|
|
- ac_retval=$ac_status
|
|
|
-fi
|
|
|
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
|
- eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
|
- as_fn_set_status $ac_retval
|
|
|
-
|
|
|
-} # ac_fn_cxx_try_run
|
|
|
-
|
|
|
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
|
# ---------------------------------------------------------
|
|
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
|
@@ -2175,6 +2133,48 @@ fi
|
|
|
|
|
|
} # ac_fn_cxx_check_header_mongrel
|
|
|
|
|
|
+# ac_fn_cxx_try_run LINENO
|
|
|
+# ------------------------
|
|
|
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
|
+# that executables *can* be run.
|
|
|
+ac_fn_cxx_try_run ()
|
|
|
+{
|
|
|
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
+ if { { ac_try="$ac_link"
|
|
|
+case "(($ac_try" in
|
|
|
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
+ *) ac_try_echo=$ac_try;;
|
|
|
+esac
|
|
|
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
+$as_echo "$ac_try_echo"; } >&5
|
|
|
+ (eval "$ac_link") 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
|
+ { { case "(($ac_try" in
|
|
|
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
+ *) ac_try_echo=$ac_try;;
|
|
|
+esac
|
|
|
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
+$as_echo "$ac_try_echo"; } >&5
|
|
|
+ (eval "$ac_try") 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
+ test $ac_status = 0; }; }; then :
|
|
|
+ ac_retval=0
|
|
|
+else
|
|
|
+ $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
|
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ ac_retval=$ac_status
|
|
|
+fi
|
|
|
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
|
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
|
+ as_fn_set_status $ac_retval
|
|
|
+
|
|
|
+} # ac_fn_cxx_try_run
|
|
|
+
|
|
|
# ac_fn_cxx_check_func LINENO FUNC VAR
|
|
|
# ------------------------------------
|
|
|
# Tests whether FUNC exists, setting the cache variable VAR accordingly
|
|
|
@@ -16028,6 +16028,41 @@ fi
|
|
|
fi
|
|
|
|
|
|
|
|
|
+# Check for SDL headers
|
|
|
+
|
|
|
+ac_fn_cxx_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
|
|
|
+if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
|
|
|
+
|
|
|
+else
|
|
|
+ as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+ac_fn_cxx_check_header_mongrel "$LINENO" "SDL/SDL_mixer.h" "ac_cv_header_SDL_SDL_mixer_h" "$ac_includes_default"
|
|
|
+if test "x$ac_cv_header_SDL_SDL_mixer_h" = x""yes; then :
|
|
|
+
|
|
|
+else
|
|
|
+ as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+ac_fn_cxx_check_header_mongrel "$LINENO" "SDL/SDL_image.h" "ac_cv_header_SDL_SDL_image_h" "$ac_includes_default"
|
|
|
+if test "x$ac_cv_header_SDL_SDL_image_h" = x""yes; then :
|
|
|
+
|
|
|
+else
|
|
|
+ as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+ac_fn_cxx_check_header_mongrel "$LINENO" "SDL/SDL_ttf.h" "ac_cv_header_SDL_SDL_ttf_h" "$ac_includes_default"
|
|
|
+if test "x$ac_cv_header_SDL_SDL_ttf_h" = x""yes; then :
|
|
|
+
|
|
|
+else
|
|
|
+ as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
# Check for SDL libraries
|
|
|
saved_LIBS=$LIBS
|
|
|
# Extract the first word of "sdl-config", so it can be a program name with args.
|
|
|
@@ -16395,7 +16430,6 @@ FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
|
|
|
LIBS=$saved_LIBS
|
|
|
|
|
|
# Checks for header files.
|
|
|
-
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
|
|
$as_echo_n "checking for ANSI C header files... " >&6; }
|
|
|
if test "${ac_cv_header_stdc+set}" = set; then :
|