From 903357b41263285e03bc83d41f9224d91ab4fb1a Mon Sep 17 00:00:00 2001 From: Rodeo Date: Fri, 7 Feb 2014 19:21:19 +0000 Subject: build: use a local version of pkg-config when necessary (Darwin-only). Automatically enabled when pkg-config detection fails, and can be forced with the --enable-local-pkgconfig configure option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6019 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- make/configure.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'make/configure.py') diff --git a/make/configure.py b/make/configure.py index 22bdce59f..9a9285cb1 100644 --- a/make/configure.py +++ b/make/configure.py @@ -1260,6 +1260,8 @@ def createCLI(): 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 ) + h = IfHost( 'Build and use local pkg-config', '*-*-darwin*', none=optparse.SUPPRESS_HELP ).value + grp.add_option( '--enable-local-pkgconfig', default=False, action='store_true', help=h ) cli.add_option_group( grp ) @@ -1430,6 +1432,7 @@ try: autoconf = ToolProbe( 'AUTOCONF.exe', 'autoconf', abort=False ) automake = ToolProbe( 'AUTOMAKE.exe', 'automake', abort=False ) libtool = ToolProbe( 'LIBTOOL.exe', 'libtool', abort=False ) + pkgconfig = ToolProbe( 'PKGCONFIG.exe', 'pkg-config', abort=False ) xcodebuild = ToolProbe( 'XCODEBUILD.exe', 'xcodebuild', abort=False ) lipo = ToolProbe( 'LIPO.exe', 'lipo', abort=False ) @@ -1501,6 +1504,11 @@ try: stdout.write( 'note: enabling local autotools\n' ) options.enable_local_autotools = True + ## enable local pkg-config when probe fails + if not options.enable_local_pkgconfig and Tools.pkgconfig.fail: + stdout.write( 'note: enabling local pkgconfig\n' ) + options.enable_local_pkgconfig = True + if build.system == 'mingw': dlfcn_test = """ #include @@ -1664,6 +1672,7 @@ int main () doc.addBlank() doc.add( 'FEATURE.local_yasm', int( options.enable_local_yasm )) doc.add( 'FEATURE.local_autotools', int( options.enable_local_autotools )) + doc.add( 'FEATURE.local_pkgconfig', int( options.enable_local_pkgconfig )) 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 )) -- cgit v1.2.3