We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 542

Summary: AM_PATH_SDL sets PATH but does not restore original PATH
Product: SDL Reporter: Damien Carbery <damien.carbery>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.13   
Hardware: Other   
OS: Solaris   
Attachments: Save old PATH and restore after tests.

Description Damien Carbery 2008-01-24 06:25:37 UTC
In SDL 1.2.13 sdl.m4 the AM_PATH_SDL function looks for sdl-config.
It sets the PATH:
 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
but does not save the current PATH or restore the current PATH at the end.

This breaks the build on Solaris because we have GNU tools in another dir (listed at the top of PATH) but non-GNU tools with the same names in $prefix/bin. Later configure tests finds the non-GNU tools and quits in error.
Comment 1 Damien Carbery 2008-01-24 06:26:16 UTC
Created attachment 246 [details]
Save old PATH and restore after tests.
Comment 2 Sam Lantinga 2008-01-24 07:52:27 UTC
This is fixed with subversion revision 3531.

Thanks!