Date: Sat, 18 Aug 2001 09:56:13 -0700 (PDT) From: papowell@astart.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/29849: autoconf (port version) does not handle INSTALL environment correctly Message-ID: <200108181656.f7IGuD699205@h110.private>
next in thread | raw e-mail | index | archive | help
>Number: 29849 >Category: ports >Synopsis: autoconf does not handle INSTALL environment variable correctly >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Aug 18 10:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Patrick Powell <papowell@astart.com> >Release: FreeBSD 4.3-RELEASE i386 >Organization: Astart Technologies AKA LPRng.com >Environment: System: FreeBSD h110.private 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >Description: 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 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108181656.f7IGuD699205>