[Mplayer-cvslog] CVS: main configure,1.186,1.187

pl pl at mplayer.dev.hu
Sat Oct 13 18:53:57 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv13919

Modified Files:
	configure 
Log Message:
added functions :
 + cc_check() replaces "$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1
 + die() replaces echo "Error blah" / flush tempfiles / exit
 + boolean OS macros : linux() bsd() bsdos() freebsd() openbsd()
   (note: bsd = bsdos || freebsd || openbsd)
changed handling of directories with "for" loops (tempdir && css detection)
added XXX where things need to be checked for a particular OS
removed unnecessary tempfile flush
modified a few if... which were not obvious to read for more readability
reidented the --help message for it to be more "80-char-wide-terms" aware
changed a few echo ... echo ... echo ... to cat <<EOF
enabled THREAD_SAFE's flags for BSD's and Linux (-D_REENTRANT)


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -r1.186 -r1.187
--- configure	13 Oct 2001 15:33:12 -0000	1.186
+++ configure	13 Oct 2001 16:53:37 -0000	1.187
@@ -107,6 +107,43 @@
 #
 # --
 
+# SOME MACROS/USEFUL FUNCTIONS
+# Returns error code only - NO displaye
+function cc_check() {
+	"$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1
+	return "$?"
+}
+
+# Display error message, flushes tempfile, exit 
[...1031 lines suppressed...]
+  ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip
+EOF
+  else
+    echo "Ok, found Win32 codecs directory at $_win32libdir."
+  fi
 else
-    echo "NOTE: WIN32 codec DLLs are not supported on your CPU ($host_arch)."
-    echo "You may encounter a few AVI files that cannot be played due to"
-    echo "missing opensource video/audio codec support."
+  cat <<EOF	
+NOTE: WIN32 codec DLLs are not supported on your CPU ($host_arch).
+You may encounter a few AVI files that cannot be played due to missing
+opensource video/audio codec support.
+EOF
 fi
 
 # Last move:
+rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP"
 
-rm -f $TMPO $TMPC $TMPS




More information about the MPlayer-cvslog mailing list