Skip site navigation (1) Skip section navigation (2)

Re: mingw configure failure detection

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: mingw configure failure detection
Date: 2004-05-28 17:28:22
Message-ID: 40B776B6.2040201@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-patches
Bruce Momjian wrote:

>Andrew Dunstan wrote:
>  
>
>>following up our conversation last night, I have tested the following 
>>with autoconf 2.57 and it apparently does the right thing:
>>
>># Links sometimes fail undetected on Mingw -
>># so here we detect it and warn the user
>>case $host_os in mingw*)
>>AC_CONFIG_COMMANDS([default],[
>>  for linkspec in : $config_links; do test "x$linkspec" = x: && continue
>>    linktry=`echo "$linkspec" | sed 's,:.*,,'`
>>    test -e $linktry || AC_MSG_WARN([ link for $linktry failed - please 
>>fix by hand])
>>  done
>>])
>>;;
>>esac
>>    
>>
>
>OK, got it working nicely:
>	
>	case $host_os in mingw*)
>	AC_CONFIG_COMMANDS([check_win32_symlinks],[
>	# Links sometimes fail undetected on Mingw -
>	# so here we detect it and warn the user
>	for FILE in "$CONFIG_LINKS"
>  
>

The quotes in the line above are spurious and need to be removed - they 
inhibit expansion of the variable into words, which is needed. I have 
checked that with the quotes removed the macro works correctly.

cheers

andrew

>	 do
>	        # test -e works for symlinks in the MinGW console
>	        test -e `expr "$FILE" : '\(^:*\)'` || AC_MSG_WARN([*** link for
>	$FILE - please fix by hand])
>	 done
>	])
>	        ;;
>	esac
>
>Applied.
>
>  
>


In response to

Responses

pgsql-patches by date

Next:From: Andreas PflugDate: 2004-05-28 17:42:48
Subject: Re: Libpq ssl fix
Previous:From: Tom LaneDate: 2004-05-28 17:12:09
Subject: Re: Libpq ssl fix

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group