Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(870)

Unified Diff: third_party/instrumented_libraries/scripts/autogen.sh

Issue 612153002: Instrumented libraries: support building on Ubuntu Trusty (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/instrumented_libraries/scripts/autogen.sh
diff --git a/third_party/instrumented_libraries/scripts/autogen.sh b/third_party/instrumented_libraries/scripts/autogen.sh
new file mode 100755
index 0000000000000000000000000000000000000000..7b3b39035dc42acf96ef93413566bf7daa846010
--- /dev/null
+++ b/third_party/instrumented_libraries/scripts/autogen.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Sometimes there isn't a pre-generated configure script, and we must first run
+# autogen.sh to generate it. Even if there is one, sometimes we need to
+# re-generate it (in particular, the autoconf version on Trusty is newer than
+# what is expected by pre-generated configure scripts in some packages).
+
+# Unfortunately, we can't run autogen.sh unconditionally whenever it's present,
+# as that sometimes breaks build. Which is why we have this file.
+
+# Also, some packages may or may not have an autogen script, depending on
+# version. Rather than clutter the GYP file with conditionals, we simply do
+# nothing if the file is not present.
+
+if [ -x ./autogen.sh ]
+then
+ NOCONFIGURE=1 ./autogen.sh
+fi

Powered by Google App Engine
This is Rietveld 408576698