]> git.sesse.net Git - vlc/commitdiff
* configure.ac: Attempt to work without a C++ compiler.
authorSam Hocevar <sam@videolan.org>
Fri, 28 Jan 2005 15:37:09 +0000 (15:37 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 28 Jan 2005 15:37:09 +0000 (15:37 +0000)
configure.ac

index 860c459ab1c8b850b07fd6278e38a59481a4d00d..550b413966ae050c19b318f837b82f834062a281 100644 (file)
@@ -257,7 +257,7 @@ then
 fi
 
 dnl Check for fvtable-thunks support for mingw32
-if test "${SYS}" = "mingw32"
+if test "${SYS}" = "mingw32" -a "${CXX}" != ""
 then
 AC_LANG_PUSH(C++)
     AC_CACHE_CHECK([if \$CXX accepts -fvtable-thunks],
@@ -1234,7 +1234,7 @@ if test "${enable_livedotcom}" = "yes"; then
   dnl
   dnl test for --with-livedotcom-tree
   dnl
-  if test -z "${with_livedotcom_tree}"; then
+  if test -z "${with_livedotcom_tree}" -a "${CXX}" != ""; then
     AC_LANG_PUSH(C++)
     CPPFLAGS_save="${CPPFLAGS}"
     CPPFLAGS_livedotcom="-I/usr/include/liveMedia -I/usr/include/groupsock -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment"
@@ -1750,7 +1750,7 @@ dnl  matroska demux plugin
 dnl
 AC_ARG_ENABLE(mkv,
   [  --enable-mkv            Matroska demux support (default enabled)])
-if test "${enable_mkv}" != "no"; then
+if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then
   AC_LANG_PUSH(C++)
   AC_CHECK_HEADERS(ebml/EbmlVersion.h, [
     AC_CHECK_HEADERS(matroska/KaxVersion.h, [
@@ -2935,7 +2935,7 @@ dnl Roku HD1000 Video output module
 dnl
 AC_ARG_ENABLE(hd1000v,
   [  --enable-hd1000v        HD1000 Video Output module (default enabled on HD1000)])
-if test "${enable_hd1000v}" != "no" &&
+if test "${enable_hd1000v}" != "no" -a "${CXX}" != "" &&
   (test "${SYS}" != "mingw32" || test "${enable_hd1000v}" = "yes")
 then
   AC_LANG_PUSH([C++])
@@ -3242,7 +3242,7 @@ dnl  Roku HD1000 audio
 dnl
 AC_ARG_ENABLE(hd1000a,
   [  --enable-hd1000a        HD1000 audio module (default enabled on HD1000)])
-if test "${enable_hd1000a}" != "no" &&
+if test "${enable_hd1000a}" != "no" -a "${CXX}" != "" &&
   (test "${SYS}" != "mingw32" || test "${enable_hd1000a}" = "yes")
 then
   AC_LANG_PUSH([C++])
@@ -3455,7 +3455,7 @@ then
       fi ])
   # look for wx-config
   AC_PATH_PROG(WX_CONFIG, wx-config, no, ${WXWINDOWS_PATH})
-  if test "${WX_CONFIG}" != "no"
+  if test "${WX_CONFIG}" != "no" -a "${CXX}" != ""
   then
     if expr 2.3.0 \> `${WX_CONFIG} --version` >/dev/null
     then