autoconf
[Top][All Lists]
Advanced

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

Re: Detecting the need for DOS pathnames


From: Richard Dawe
Subject: Re: Detecting the need for DOS pathnames
Date: Wed, 09 Apr 2003 12:09:09 +0100

Hello.

Paul Smith wrote:
> 
> I'm working with someone on a port of GNU make to OS/2.  They can
> actually run configure on that system, which is nice.  One of the macros
> I've used a lot is HAVE_DOS_PATHS, which tells GNU make whether a
> pathname could have backslashes and especially drive specifiers (C:
> etc.) in the pathname.
> 
> Is there a good way to write this test in autoconf?  The person I'm
> working with suggests something like this:
> 
>   if test "$PATH_SEPARATOR" = ';'; then
>     AC_DEFINE(HAVE_DOS_PATHS, 1
>               [Define this if your system requires backslashes or drive specs 
> in pathnames.])
>   fi
> 
> Is this really the best way to handle this situation?  Seems a little
> dodgy to me...
[snip]

Have you looked at m4/dos.m4 from coreutils 5.0? This does a compile-time test
for Windows or DOS definitions from the compiler (e.g.: _WIN32, __MSDOS__).
Maybe you could adapt it to check for OS/2 too?

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]




reply via email to

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