equal
deleted
inserted
replaced
4638 # definitions. It is replaced with custom functionality when building |
4638 # definitions. It is replaced with custom functionality when building |
4639 # custom sources. |
4639 # custom sources. |
4640 #CUSTOM_AUTOCONF_INCLUDE |
4640 #CUSTOM_AUTOCONF_INCLUDE |
4641 |
4641 |
4642 # Do not change or remove the following line, it is needed for consistency checks: |
4642 # Do not change or remove the following line, it is needed for consistency checks: |
4643 DATE_WHEN_GENERATED=1448463381 |
4643 DATE_WHEN_GENERATED=1449049746 |
4644 |
4644 |
4645 ############################################################################### |
4645 ############################################################################### |
4646 # |
4646 # |
4647 # Initialization / Boot-strapping |
4647 # Initialization / Boot-strapping |
4648 # |
4648 # |
56335 # Pick the lowest of memory in gb and number of cores. |
56335 # Pick the lowest of memory in gb and number of cores. |
56336 if test "$memory_gb" -lt "$NUM_CORES"; then |
56336 if test "$memory_gb" -lt "$NUM_CORES"; then |
56337 JOBS="$memory_gb" |
56337 JOBS="$memory_gb" |
56338 else |
56338 else |
56339 JOBS="$NUM_CORES" |
56339 JOBS="$NUM_CORES" |
56340 # On bigger machines, leave some room for other processes to run |
|
56341 if test "$JOBS" -gt "4"; then |
|
56342 JOBS=`expr $JOBS '*' 90 / 100` |
|
56343 fi |
|
56344 fi |
|
56345 # Cap number of jobs to 16 |
|
56346 if test "$JOBS" -gt "16"; then |
|
56347 JOBS=16 |
|
56348 fi |
56340 fi |
56349 if test "$JOBS" -eq "0"; then |
56341 if test "$JOBS" -eq "0"; then |
56350 JOBS=1 |
56342 JOBS=1 |
56351 fi |
56343 fi |
56352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 |
56344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 |