Re: msys : convert datadir to windows directory syntax

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

 




Hey,

On Mon, 3 Sep 2007, Keith Marshall wrote:

On Monday 03 September 2007 18:31, Vincent Torri wrote:
With msys, it is defined as /usr/local/share. But I use that macro
with fopen, which returns an error (file not found)

I would like it to be c:/***/***/local/share

Is it possible ?

Yes.  You can use the MSYS_AC_CANONICAL_PATH macro, published some time
ago on the MinGW/MSYS lists:
http://article.gmane.org/gmane.comp.gnu.mingw.msys/2785

I have a problem with that macro. First note, that I am using autoconf 2.61.

Here is how I use that macro:

in configure.ac:

efreet_datadir=$datadir
case "$host_os" in
   mingw|mingw32)
      MSYS_AC_CANONICAL_PATH([efreet_datadir], [$datadir])
   ;;
esac
AC_SUBST(efreet_datadir)

But in the created Makefile, the value of efreet_datadir is:

efreet_datadir = D:/msys/1.0/home/vincent/tmp/e17/libs/efreet/${datarootdir}

do you know why ?

thank you

Vincent Torri


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux