autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-users] MSYS_PREFIX_HACK


From: Bob Friesenhahn
Subject: Re: [Mingw-users] MSYS_PREFIX_HACK
Date: Wed, 30 Mar 2005 09:49:53 -0600 (CST)

On Wed, 30 Mar 2005, Keith MARSHALL wrote:
Surely, the better approach is to adapt autoconf, such that either
the AC_INIT setting of `ac_default_prefix' is more intelligent wrt
Win32 (or more specifically, MSYS) paths, or to adapt the AC_OUTPUT
reassignment of `prefix=$ac_default_prefix' to incorporate some
variant of the MSYS_PREFIX_HACK logic I presented earlier -- my
preference would be to have a more intelligent initialisation
for `ac_default_prefix', e.g. instead of:

 ac_default_prefix=/usr/local

say:

 ac_default_prefix=`exec 2>/dev/null;cd /usr/local;pwd -W` ||\
   ac_default_prefix=/usr/local

I have tested this alternative initialisation on every system
available to me.  On SunOS 5.5.1 with `sh', `ksh' and `bash', on

I am sure that this works great if the real Windows path represented by prefix contains embedded spacess. ;-)

Many/most packages will bomb as soon as they encounter spaces in paths.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]