Fix crash on app list start page contents not existing.
[chromium-blink-merge.git] / third_party / instrumented_libraries / scripts / autogen.sh
blob7b3b39035dc42acf96ef93413566bf7daa846010
1 #!/bin/bash
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 # Sometimes there isn't a pre-generated configure script, and we must first run
7 # autogen.sh to generate it. Even if there is one, sometimes we need to
8 # re-generate it (in particular, the autoconf version on Trusty is newer than
9 # what is expected by pre-generated configure scripts in some packages).
11 # Unfortunately, we can't run autogen.sh unconditionally whenever it's present,
12 # as that sometimes breaks build. Which is why we have this file.
14 # Also, some packages may or may not have an autogen script, depending on
15 # version. Rather than clutter the GYP file with conditionals, we simply do
16 # nothing if the file is not present.
18 if [ -x ./autogen.sh ]
19 then
20 NOCONFIGURE=1 ./autogen.sh