| Summary: | autoconf does not handle INSTALL environment variable correctly | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | papowell |
| Component: | Individual Port(s) | Assignee: | Alan Eldridge <alane> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-ports->torstenb Over to maintainer Responsible Changed From-To: torstenb->portmgr The maintainer of autoconf is portmgr now Responsible Changed From-To: portmgr->alane alane maintains autoconf, not portmgr State Changed From-To: open->feedback Need to know more details about this. State Changed From-To: feedback->closed Should be submitted to GNU, no response from submittor |
I was using autoconf to generate an update for a distribution and found that when I set the 'INSTALL' environment variable the value of INSTALL was not getting passed to 'sub configures'. The culprit was a test in the configure acgeneral.m4 file: it does: ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac ])dnl but if the INSTALL variable is set to the empty string it causes '../' to be passed to sub-configures. You want to add a test for the empty string: ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ if test -n "$ac_given_INSTALL" ; then case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac; fi ])dnl