diff options
author | konablend <[email protected]> | 2012-09-07 20:10:37 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2012-09-07 20:10:37 +0000 |
commit | 421129c9b2ae62557ef0afdcd82c0da750a1e000 (patch) | |
tree | 65d216511b3686c6c4ca268adc2d0b0f946245f2 /make/configure.py | |
parent | f5bd3741a9df3d157a223650740bc0510cf1e18a (diff) |
Add autotools { autoconf, automake, libtool } as contribs.
Primarily necessary for OSX platform after Xcode 4.2.x, but also useful for
any platform which is missing or has obsolete versions.
1. add configure option: --enable-local-autotools
2. --enable-local-autotools is automatically TRUE when any of { autoconf, automake, libtool } are not found in path.
3. --enable-local-autotools causes contribs of { m4, autoconf, automake, lib tool } to be built
4. add m4 to contrib (prerequisite for autoconf)
5. add autoconf to contrib (prerequisite for automaker and many contribs)
6. add automake to contrib (prerequisite for many contribs)
7. add libtool to contrib (prerequisite for many contribs)
8. All contribs (except the autotools themselves) automatically mark autotools as a prerequisite.
9. $(AUTOTOOL_MODULES) is available if other non-contrib modules need to mark as prerequisite.
10. PATH is automatically prefixed with contrib/bin for all modules, all targets.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4933 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make/configure.py')
-rw-r--r-- | make/configure.py | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/make/configure.py b/make/configure.py index ed78d026d..b6fe3b60c 100644 --- a/make/configure.py +++ b/make/configure.py @@ -1111,6 +1111,8 @@ def createCLI(): h = IfHost( 'Build and use local yasm', '*-*-*', none=optparse.SUPPRESS_HELP ).value grp.add_option( '--enable-local-yasm', default=False, action='store_true', help=h ) + h = IfHost( 'Build and use local autotools', '*-*-*', none=optparse.SUPPRESS_HELP ).value + grp.add_option( '--enable-local-autotools', default=False, action='store_true', help=h ) cli.add_option_group( grp ) @@ -1269,15 +1271,18 @@ try: else: gmake = ToolProbe( 'GMAKE.exe', 'gmake', 'make' ) - m4 = ToolProbe( 'M4.exe', 'm4' ) - mkdir = ToolProbe( 'MKDIR.exe', 'mkdir' ) - patch = ToolProbe( 'PATCH.exe', 'gpatch', 'patch' ) - rm = ToolProbe( 'RM.exe', 'rm' ) - ranlib = ToolProbe( 'RANLIB.exe', 'ranlib' ) - strip = ToolProbe( 'STRIP.exe', 'strip' ) - tar = ToolProbe( 'TAR.exe', 'gtar', 'tar' ) - wget = ToolProbe( 'WGET.exe', 'wget', abort=False ) - yasm = ToolProbe( 'YASM.exe', 'yasm', abort=False ) + m4 = ToolProbe( 'M4.exe', 'm4' ) + mkdir = ToolProbe( 'MKDIR.exe', 'mkdir' ) + patch = ToolProbe( 'PATCH.exe', 'gpatch', 'patch' ) + rm = ToolProbe( 'RM.exe', 'rm' ) + ranlib = ToolProbe( 'RANLIB.exe', 'ranlib' ) + strip = ToolProbe( 'STRIP.exe', 'strip' ) + tar = ToolProbe( 'TAR.exe', 'gtar', 'tar' ) + wget = ToolProbe( 'WGET.exe', 'wget', abort=False ) + yasm = ToolProbe( 'YASM.exe', 'yasm', abort=False ) + autoconf = ToolProbe( 'AUTOCONF.exe', 'autoconf', abort=False ) + automake = ToolProbe( 'AUTOMAKE.exe', 'automake', abort=False ) + libtool = ToolProbe( 'LIBTOOL.exe', 'libtool', abort=False ) xcodebuild = ToolProbe( 'XCODEBUILD.exe', 'xcodebuild', abort=False ) lipo = ToolProbe( 'LIPO.exe', 'lipo', abort=False ) @@ -1335,9 +1340,13 @@ try: action.run() ## enable local yasm when yasm probe fails - if Tools.yasm.fail and not options.enable_local_yasm: + if not options.enable_local_yasm and Tools.yasm.fail: options.enable_local_yasm = True + ## enable local autotools when any of { autoconf, automake, libtool } probe fails + if not options.enable_local_autotools and (Tools.autoconf.fail or Tools.automake.fail or Tools.libtool.fail): + options.enable_local_autotools = True + if build.system == 'mingw': dlfcn_test = """ #include <dlfcn.h> @@ -1499,7 +1508,8 @@ int main () doc.add( 'PREFIX/', cfg.prefix_final + os.sep ) doc.addBlank() - doc.add( 'FEATURE.local_yasm', int( options.enable_local_yasm ) ) + doc.add( 'FEATURE.local_yasm', int( options.enable_local_yasm )) + doc.add( 'FEATURE.local_autotools', int( options.enable_local_autotools )) doc.add( 'FEATURE.asm', 'disabled' ) doc.add( 'FEATURE.gtk', int( not options.disable_gtk )) doc.add( 'FEATURE.gtk.update.checks', int( not options.disable_gtk_update_checks )) |