Skip to content

Commit

Permalink
Port HandBrake to Solaris, most of the heavy lifting provided by begi.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1019 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
eddyg committed Oct 11, 2007
1 parent 0f07387 commit 82d1289
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 70 deletions.
21 changes: 20 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CXX="g++"
CCFLAGS="$CCFLAGS -Wall -g"
OPTIM="$OPTIM -O3 -funroll-loops"
LINKLIBS="-lz"
MAKE=make

# System-specific flags
SYSTEM=`uname -s`
Expand Down Expand Up @@ -55,6 +56,10 @@ case $SYSTEM in
DEFINES="$DEFINES SYS_CYGWIN USE_PTHREAD"
LINKLIBS="$LINKLIBS -lpthread"
;;
SunOS)
DEFINES="$DEFINES SYS_SunOS USE_PTHREAD _LARGEFILE_SOURCE _FILE_OFFSET_BITS=64"
LINKLIBS="$LINKLIBS -lpthread -lsocket -lnsl"
;;

*)
echo "Unsupported operating system"
Expand All @@ -70,7 +75,7 @@ int main()
return *( (char *) &i );
}
EOF
if ( cc -o testconf testconf.c && ./testconf ) > /dev/null 2>&1
if ( $CC -o testconf testconf.c && ./testconf ) > /dev/null 2>&1
then
echo "Endian: big"
DEFINES="$DEFINES WORDS_BIGENDIAN"
Expand All @@ -79,6 +84,19 @@ else
fi
rm -f testconf.c testconf

#
# Use Gnu make when available over the built in make
#
if ( make --version | grep GNU ) > /dev/null 2>&1
then
MAKE=make
elif ( gmake --version | grep GNU ) > /dev/null 2>&1
then
MAKE=gmake
else
MAKE=make
fi

# Generate config.jam
rm -f config.jam
cat << EOF > config.jam
Expand All @@ -90,6 +108,7 @@ C++FLAGS = $CCFLAGS ;
OPTIM = $OPTIM ;
DEFINES = $DEFINES ;
LINKLIBS = $LINKLIBS ;
MAKE = $MAKE ;
EOF

echo
Expand Down
Loading

0 comments on commit 82d1289

Please sign in to comment.