| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 ## | 2 ## |
| 3 ## configure.sh | 3 ## configure.sh |
| 4 ## | 4 ## |
| 5 ## This script is sourced by the main configure script and contains | 5 ## This script is sourced by the main configure script and contains |
| 6 ## utility functions and other common bits that aren't strictly libvpx | 6 ## utility functions and other common bits that aren't strictly libvpx |
| 7 ## related. | 7 ## related. |
| 8 ## | 8 ## |
| 9 ## This build system is based in part on the FFmpeg configure script. | 9 ## This build system is based in part on the FFmpeg configure script. |
| 10 ## | 10 ## |
| (...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 fi | 1316 fi |
| 1317 fi | 1317 fi |
| 1318 ;; | 1318 ;; |
| 1319 esac | 1319 esac |
| 1320 | 1320 |
| 1321 # glibc needs these | 1321 # glibc needs these |
| 1322 if enabled linux; then | 1322 if enabled linux; then |
| 1323 add_cflags -D_LARGEFILE_SOURCE | 1323 add_cflags -D_LARGEFILE_SOURCE |
| 1324 add_cflags -D_FILE_OFFSET_BITS=64 | 1324 add_cflags -D_FILE_OFFSET_BITS=64 |
| 1325 fi | 1325 fi |
| 1326 | |
| 1327 # append any user defined extra cflags | |
| 1328 if [ -n "${extra_cflags}" ] ; then | |
| 1329 check_add_cflags ${extra_cflags} || \ | |
| 1330 die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler" | |
| 1331 fi | |
| 1332 } | 1326 } |
| 1333 | 1327 |
| 1334 process_toolchain() { | 1328 process_toolchain() { |
| 1335 process_common_toolchain | 1329 process_common_toolchain |
| 1336 } | 1330 } |
| 1337 | 1331 |
| 1338 print_config_mk() { | 1332 print_config_mk() { |
| 1339 saved_prefix="${prefix}" | 1333 saved_prefix="${prefix}" |
| 1340 prefix=$1 | 1334 prefix=$1 |
| 1341 makefile=$2 | 1335 makefile=$2 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 # Prepare the PWD for building. | 1417 # Prepare the PWD for building. |
| 1424 for f in ${OOT_INSTALLS}; do | 1418 for f in ${OOT_INSTALLS}; do |
| 1425 install -D "${source_path}/$f" "$f" | 1419 install -D "${source_path}/$f" "$f" |
| 1426 done | 1420 done |
| 1427 fi | 1421 fi |
| 1428 cp "${source_path}/build/make/Makefile" . | 1422 cp "${source_path}/build/make/Makefile" . |
| 1429 | 1423 |
| 1430 clean_temp_files | 1424 clean_temp_files |
| 1431 true | 1425 true |
| 1432 } | 1426 } |
| OLD | NEW |