Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | Reproducible build: Don't check for /etc/printcap on the build machine when |
| 2 | cross-compiling. Use AC_CHECK_FILE to set the cached variable |
| 3 | ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be |
| 4 | set in the environment to "yes" or "no" as appropriate for the target platform. |
| 5 | |
| 6 | --- net-snmp-5.8.original/configure.d/config_os_misc4 2018-11-20 17:05:03.986274522 +1300 |
| 7 | +++ net-snmp-5.8/configure.d/config_os_misc4 2018-11-20 17:08:32.250700448 +1300 |
| 8 | @@ -116,9 +116,9 @@ |
| 9 | [Path to the lpstat command]) |
| 10 | AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available]) |
| 11 | fi |
| 12 | -if test -r /etc/printcap; then |
| 13 | +AC_CHECK_FILE([/etc/printcap], |
| 14 | AC_DEFINE(HAVE_PRINTCAP, 1, [Set if /etc/printcap exists]) |
| 15 | -fi |
| 16 | +) |
| 17 | |
| 18 | |
| 19 | # Check ps args |