| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 | 6 |
| 7 source pkg_info | |
| 8 source ../../build_tools/common.sh | |
| 9 | 7 |
| 10 export NACL_CONFIGURE_PATH=\ | 8 export NACL_CONFIGURE_PATH=\ |
| 11 ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix/configure | 9 ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix/configure |
| 12 | 10 |
| 13 if [ ${NACL_GLIBC} != "1" ]; then | 11 if [ ${NACL_GLIBC} != "1" ]; then |
| 14 export EXTRA_CONFIGURE_ARGS="--disable-shared" | 12 export EXTRA_CONFIGURE_ARGS="--disable-shared" |
| 15 export MAKE_TARGETS="libmk4.a" | 13 export MAKE_TARGETS="libmk4.a" |
| 16 else | 14 else |
| 17 export MAKE_TARGETS="libmk4.so libmk4.a" | 15 export MAKE_TARGETS="libmk4.so libmk4.a" |
| 18 fi | 16 fi |
| 19 | 17 |
| 20 AutoconfStep() { | 18 AutoconfStep() { |
| 21 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 19 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 22 pushd unix | 20 pushd unix |
| 23 autoconf | 21 autoconf |
| 24 popd | 22 popd |
| 25 } | 23 } |
| 26 | 24 |
| 27 ConfigureStep() { | 25 ConfigureStep() { |
| 28 AutoconfStep | 26 AutoconfStep |
| 29 DefaultConfigureStep | 27 DefaultConfigureStep |
| 30 } | 28 } |
| 31 | |
| 32 DefaultPackageInstall | |
| 33 exit 0 | |
| OLD | NEW |