Hi! I found a comment in some macro i used to use some time ago (to define directories). It seems that since autoconf 2.60 $datadir contains $datarootdir, so either use $datarootdir directly, or change the MSYS_... Macro to do an eval on that variable, so it gets resolved. Heres the macro too: AC_DEFUN([WGCC_DEFINE_DIR], [ prefix_NONE= exec_prefix_NONE= test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn dnl refers to ${prefix}. Thus we have to use `eval' twice. eval ac_define_dir="\"[$]$2\"" eval ac_define_dir="\"$ac_define_dir\"" AC_SUBST($1, "$ac_define_dir") AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) test "$prefix_NONE" && prefix=NONE test "$exec_prefix_NONE" && exec_prefix=NONE ]) Cheers, Markus Vincent Torri <> wrote: > 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 -- Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz Sitz der Gesellschaft: Friesach bei Graz UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf