diff options
author | eddyg <[email protected]> | 2007-10-11 19:46:43 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2007-10-11 19:46:43 +0000 |
commit | 82d12896b6f48d7049aee762ddd59e61499caf9c (patch) | |
tree | 9730a81a25d91fe942d70bc12ad3fde0de754bbb /configure | |
parent | 0f0738745170bd3fdd56c0580a164e50b515c12d (diff) |
Port HandBrake to Solaris, most of the heavy lifting provided by begi.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1019 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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` @@ -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" @@ -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" @@ -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 @@ -90,6 +108,7 @@ C++FLAGS = $CCFLAGS ; OPTIM = $OPTIM ; DEFINES = $DEFINES ; LINKLIBS = $LINKLIBS ; +MAKE = $MAKE ; EOF echo |