aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDave Yeo <daveryeo@telus.net>2007-12-05 23:15:24 +0000
committerDiego Biurrun <diego@biurrun.de>2007-12-05 23:15:24 +0000
commitd22e844250d511587023ef78457f7fdd21fc23a5 (patch)
treeb78faa73f881263a1d692d8a114227669373c7df /configure
parentb17270878e53de0c444b51a20b929187fceb9631 (diff)
downloadffmpeg-d22e844250d511587023ef78457f7fdd21fc23a5.tar.gz
OS/2 support restored in cleaner form.
patch by Dave Yeo, daveryeo telus net Originally committed as revision 11172 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure
index 703d0d504d..3aecec90a7 100755
--- a/configure
+++ b/configure
@@ -71,6 +71,7 @@ show_help(){
echo " --enable-pp enable GPLed postprocessing support [default=no]"
echo " --enable-swscaler software scaler support [default=no]"
echo " --enable-beosthreads use BeOS threads [default=no]"
+ echo " --enable-os2threads use OS/2 threads [default=no]"
echo " --enable-pthreads use pthreads [default=no]"
echo " --enable-w32threads use Win32 threads [default=no]"
echo " --enable-x11grab enable X11 grabbing [default=no]"
@@ -637,6 +638,7 @@ CONFIG_LIST="
THREADS_LIST='
beosthreads
+ os2threads
pthreads
w32threads
'
@@ -1219,6 +1221,34 @@ case $targetos in
targetos=irix
ranlib="echo ignoring ranlib"
;;
+ os/2*)
+ ar="emxomfar -p256"
+ ranlib="echo ignoring ranlib"
+ strip="lxlite"
+ ln_s="cp -f"
+ add_cflags "-Zomf"
+ EXESUF=".exe"
+ FFLDFLAGS="-Zomf -Zbin-files -Zargs-wild -Zmap"
+ SHFLAGS='$(NAME).def -Zdll -Zomf'
+ FFSERVERLDFLAGS=""
+ LIBSUF="_s.lib"
+ SLIBPREF=""
+ SLIBSUF=".dll"
+ SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
+ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(shell echo $(NAME) | cut -c1-6)$(LIBMAJOR)$(SLIBSUF)'
+ SLIB_CREATE_DEF_CMD='echo LIBRARY $(SLIBNAME_WITH_MAJOR) INITINSTANCE TERMINSTANCE > $(NAME).def; \
+ echo PROTMODE >> $(NAME).def; \
+ echo CODE PRELOAD MOVEABLE DISCARDABLE >> $(NAME).def; \
+ echo DATA PRELOAD MOVEABLE MULTIPLE NONSHARED >> $(NAME).def; \
+ echo EXPORTS >> $(NAME).def; \
+ emxexp -o $(OBJS) >> $(NAME).def'
+ SLIB_EXTRA_CMD='emximp -o $(LIBPREF)$(NAME)_dll.a $(NAME).def; \
+ emximp -o $(LIBPREF)$(NAME)_dll.lib $(NAME).def;'
+ SLIB_INSTALL_EXTRA_CMD='install -m 644 $(LIBPREF)$(NAME)_dll.a $(LIBPREF)$(NAME)_dll.lib "$(LIBDIR)"'
+ SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib'
+ vhook="no"
+ ;;
+
*)
targetos="${targetos}-UNKNOWN"
;;
@@ -1936,6 +1966,7 @@ if enabled shared; then
echo "SLIBNAME=${SLIBNAME}" >> config.mak
echo "SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}" >> config.mak
echo "SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}" >> config.mak
+ echo "SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD}" >> config.mak
echo "SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}" >> config.mak
echo "SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD}" >> config.mak
echo "SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}" >> config.mak